freewifi 0.1.7 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@ class NEWhubWifiApi_1
12
12
 
13
13
 
14
14
  def get_info_subs_from_mik_1(subs_mac, controllers_ip)
15
+ input_parameters = {:subs_mac => subs_mac, :controllers_ip => controllers_ip}
15
16
  #region get additional information
16
17
 
17
18
  subscribers_mac = subs_mac
@@ -30,7 +31,8 @@ def get_info_subs_from_mik_1(subs_mac, controllers_ip)
30
31
  mikrot_connection1.get_reply('/caps-man/registration-table/getall') do |req, sentence|
31
32
 
32
33
  req.reply.each do |reply|
33
- if reply.key?('!re')
34
+ if reply.key?('mac-address')
35
+ #p reply
34
36
  if reply['mac-address'] == subscribers_mac
35
37
 
36
38
  access_point = reply['interface']
@@ -90,7 +92,7 @@ def get_info_subs_from_mik_1(subs_mac, controllers_ip)
90
92
  #endregion
91
93
  answ = subscribers_mac+ "---" + access_point + "---" + ssid_ap + "---" + tx_rate_set + "---"+ tx_rate + "---"+ rx_rate + "---"+ rx_signal + "---"+ uptime + "---"+ packets + "---"+ bytes
92
94
 
93
- return answ
95
+ answ
94
96
 
95
97
  end
96
98
 
@@ -243,9 +243,9 @@ class NEWhubWifi_1
243
243
  conf_5ghz_name = "auto_cfg_5ghz_#{companyname}_#{wifissid}"
244
244
  command_conf_5ghz = "/caps-man configuration add name=#{conf_5ghz_name} ssid=#{wifissid} country=belarus mode=ap hw-retries=15 channel=5_channel_5GHz_number1_power23 datapath=1_datapath_MTS_Local-forwarding security=security_without_passphrase_default_FREE-WiFi"
245
245
 
246
- command_provisioning_24ghz = "/caps-man provisioning add hw-supported-modes=b,g,gn ip-address-ranges=#{ap_ip} action=create-dynamic-enabled master-configuration=#{conf_24ghz_name} name-format=identity"
246
+ command_provisioning_24ghz = "/caps-man provisioning add hw-supported-modes=b,g,gn ip-address-ranges=#{ap_ip} action=create-dynamic-enabled place-before=30 master-configuration=#{conf_24ghz_name} name-format=identity"
247
247
 
248
- command_provisioning_5ghz = "/caps-man provisioning add hw-supported-modes=a,ac,an ip-address-ranges=#{ap_ip} action=create-dynamic-enabled master-configuration=#{conf_24ghz_name} name-format=identity"
248
+ command_provisioning_5ghz = "/caps-man provisioning add hw-supported-modes=a,ac,an ip-address-ranges=#{ap_ip} action=create-dynamic-enabled place-before=30 master-configuration=#{conf_24ghz_name} name-format=identity"
249
249
 
250
250
  Net::SSH.start(capsman1, capsman_user1, :password => capsman_pass1) do |ssh|
251
251
  result = ssh.exec!(command_conf_24ghz)
@@ -1,3 +1,3 @@
1
1
  module Freewifi_1
2
- VERSION = "0.1.7"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freewifi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dzmitry Buynovskiy
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-28 00:00:00.000000000 Z
11
+ date: 2020-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -218,12 +218,15 @@ files:
218
218
  - lib/freewifi.rb
219
219
  - lib/freewifi/additional/additional_functions.rb
220
220
  - lib/freewifi/cisco/any/cisco_schemes_conf_gen.rb
221
+ - lib/freewifi/cisco/iwag/get_iwag_data.rb
222
+ - lib/freewifi/cisco/iwag/iwag_database_worker.rb
221
223
  - lib/freewifi/cisco/iwag/iwag_telnet_connector.rb
222
224
  - lib/freewifi/config.rb
223
225
  - lib/freewifi/database/mongo/mongoconnector.rb
224
226
  - lib/freewifi/database/mysql/database_methods_wifi.rb
225
227
  - lib/freewifi/general/wifi_portal_procedures.rb
226
228
  - lib/freewifi/huawei/hua_controller_class.rb
229
+ - lib/freewifi/mikrotik/automation/get_data_ssh_fun.rb
227
230
  - lib/freewifi/mikrotik/getsubscribermikrotik.rb
228
231
  - lib/freewifi/mikrotik/newhub_mtik_api.rb
229
232
  - lib/freewifi/mikrotik/newhub_mtik_ssh.rb
@@ -235,7 +238,7 @@ licenses:
235
238
  - MIT
236
239
  metadata:
237
240
  allowed_push_host: https://rubygems.org/
238
- post_install_message:
241
+ post_install_message:
239
242
  rdoc_options: []
240
243
  require_paths:
241
244
  - lib
@@ -250,9 +253,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
250
253
  - !ruby/object:Gem::Version
251
254
  version: '0'
252
255
  requirements: []
253
- rubyforge_project:
256
+ rubyforge_project:
254
257
  rubygems_version: 2.6.14
255
- signing_key:
258
+ signing_key:
256
259
  specification_version: 4
257
260
  summary: gem for Public WiFi
258
261
  test_files: []