wlc_snmp 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/wlc_snmp/client.rb +5 -1
- data/lib/wlc_snmp/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: de7df2e4f50c6cf7d58753e5dbe628b68894e63bcff90583b51cc0df9b5473f0
|
4
|
+
data.tar.gz: 695200021d395ba9289a58aeb0355a7758c5a7b333d14deaf7b44a88fa2ee592
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa9de8ca4248ec93725301d0e474c4cb3715278a68f199d41bc2e5ef1a0e5c51febf9a95a9f460ec87173520c769548be38493ab67bdc6a473626201c9bf85c6
|
7
|
+
data.tar.gz: a2644184b60f7d74b380797709791c736177b73f082f886b8c7902b296840ffd1373705fde92ae0c844e37695f60379d70b7f9151b2cdabfbc281b092cbcfc72
|
data/lib/wlc_snmp/client.rb
CHANGED
@@ -85,7 +85,11 @@ module WlcSnmp
|
|
85
85
|
user: MIB_LWAPP_CLIENT_USER,
|
86
86
|
ssid: MIB_LWAPP_CLIENT_SSID,
|
87
87
|
).map do |data|
|
88
|
-
|
88
|
+
if data[:ip].is_a?(SNMP::IpAddress)
|
89
|
+
ip = data[:ip].to_s
|
90
|
+
else
|
91
|
+
ip = data[:ip].to_s.unpack("C*").map(&:to_s).join(?.)
|
92
|
+
end
|
89
93
|
mac = airespace_clients[ip] ? airespace_clients[ip] : nil
|
90
94
|
ap_mac = unpack_mac(data[:ap_mac])
|
91
95
|
|
data/lib/wlc_snmp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wlc_snmp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sorah Fukumori
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
version: '0'
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
|
-
rubygems_version: 2.
|
111
|
+
rubygems_version: 2.7.3
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: Wrapper of snmp.gem for easy interacting with Cisco WLC
|