freewifi 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/freewifi.iml +1 -1
- data/.idea/workspace.xml +87 -347
- data/lib/freewifi.rb +1 -7
- data/lib/freewifi/cisco/any/cisco_schemes_conf_gen.rb +2 -1
- data/lib/freewifi/cisco/iwag/iwag_telnet_connector.rb +19 -5
- data/lib/freewifi/config.rb +1 -0
- data/lib/freewifi/general/wifi_portal_procedures.rb +346 -385
- data/lib/freewifi/mikrotik/automation/get_data_ssh_fun.rb +2 -0
- data/lib/freewifi/mikrotik/newhub_mtik_api.rb +4 -2
- data/lib/freewifi/version.rb +1 -1
- metadata +3 -2
@@ -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?('
|
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
|
-
|
95
|
+
answ
|
94
96
|
|
95
97
|
end
|
96
98
|
|
data/lib/freewifi/version.rb
CHANGED
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.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dzmitry Buynovskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04
|
11
|
+
date: 2020-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -224,6 +224,7 @@ files:
|
|
224
224
|
- lib/freewifi/database/mysql/database_methods_wifi.rb
|
225
225
|
- lib/freewifi/general/wifi_portal_procedures.rb
|
226
226
|
- lib/freewifi/huawei/hua_controller_class.rb
|
227
|
+
- lib/freewifi/mikrotik/automation/get_data_ssh_fun.rb
|
227
228
|
- lib/freewifi/mikrotik/getsubscribermikrotik.rb
|
228
229
|
- lib/freewifi/mikrotik/newhub_mtik_api.rb
|
229
230
|
- lib/freewifi/mikrotik/newhub_mtik_ssh.rb
|