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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1c01f85ae4e6dc37a6f146713d8644545444ff64
4
- data.tar.gz: 1b8b573ae2c159508436a82ce55e79f4e13f44a9
2
+ SHA256:
3
+ metadata.gz: de7df2e4f50c6cf7d58753e5dbe628b68894e63bcff90583b51cc0df9b5473f0
4
+ data.tar.gz: 695200021d395ba9289a58aeb0355a7758c5a7b333d14deaf7b44a88fa2ee592
5
5
  SHA512:
6
- metadata.gz: cb3fbbe1ed2ce428c7a34ca6284b3eb8f19ed43c8349c048d271a8963ae4da429e1820f04ac21f9e3627ce73161a4b9d8497188ea3f9bc5e6b35ba9c4868bf5d
7
- data.tar.gz: 12a2c4d55fde83f33bf27338683cfd2bd24f8569ab676f627bcb4ca699f8da1b39dfd51e65881e9e14be17eaac1c17ec5d61f2b274befa14daf809398a49580a
6
+ metadata.gz: fa9de8ca4248ec93725301d0e474c4cb3715278a68f199d41bc2e5ef1a0e5c51febf9a95a9f460ec87173520c769548be38493ab67bdc6a473626201c9bf85c6
7
+ data.tar.gz: a2644184b60f7d74b380797709791c736177b73f082f886b8c7902b296840ffd1373705fde92ae0c844e37695f60379d70b7f9151b2cdabfbc281b092cbcfc72
@@ -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
- ip = data[:ip].to_s.unpack("C*").map(&:to_s).join(?.)
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
 
@@ -1,3 +1,3 @@
1
1
  module WlcSnmp
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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: 2017-08-27 00:00:00.000000000 Z
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.6.11
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