netcrawl 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/netcrawl/method/lldp.rb +1 -1
- data/netcrawl.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30abf7c1a361b2c52d77ac36533832c2e79e0b51
|
4
|
+
data.tar.gz: dee3be4a0509301907aee28fd13bdf21d6f72d02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6724f5b7b0386a4194ad1a642ebe4dd53e64eed63cb40a7963482e6914cb0cceea49d77f31d8ef1dcf95a46385086095b8432f4d6638feccd9c5eab33b17e825
|
7
|
+
data.tar.gz: 3adebdc60fe94aef26f6bc5de35d018394d48cef580ccfc395a7ef07371541e1b496ad9d9ce8a2a87b0824ca33286fa38e9b5e079a57f5835bbc8d48742d1efc
|
data/lib/netcrawl/method/lldp.rb
CHANGED
@@ -36,7 +36,7 @@ class NetCrawl
|
|
36
36
|
peer.oid = get_oid_hash peer_id
|
37
37
|
ip = @mib.by_partial OID[:lldpRemManAddrIfSubtype], peer_id
|
38
38
|
peer.raw_ip = ip.oid[-4..-1].join('.') if ip # FIXME: IPv4 specific
|
39
|
-
peer.raw_ip ||= 192.0.2.255 # sometimes we can't fnd any IP (EX2200 talking Arista found)
|
39
|
+
peer.raw_ip ||= '192.0.2.255' # sometimes we can't fnd any IP (EX2200 talking Arista found)
|
40
40
|
peer.raw_name = @mib[OID[:lldpRemSysName], peer_id].value
|
41
41
|
peer.ip = get_ip peer.raw_ip, peer.raw_name
|
42
42
|
peer.dst = @mib[OID[:lldpRemPortId], peer_id].value
|
data/netcrawl.gemspec
CHANGED