netcrawl 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/netcrawl/config.rb +1 -1
- data/lib/netcrawl/method/lldp.rb +1 -0
- data/netcrawl.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e82d00b9bf01521dcf3897a8e66feef8c05b400c
|
4
|
+
data.tar.gz: 7fdbd8e5e4cb955a3d810db5f6ff1e2003bc26ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 757a4c4fe57016d23dabd95240f60e3db8984755bc1929ce61d4c380d6c0eeab8a12cca4c88666dd80222454ae82b98db5d46d3182ea8b805b68a8e59a016714
|
7
|
+
data.tar.gz: dcb1611a9312750b97afcd0c483b14e643240d298eb0a6a8944c048d5a99574a7fb4fb2ec275a0d60218317ef7a78382830fd0b26f62d1c9a0aa1adf1b180636
|
data/lib/netcrawl/config.rb
CHANGED
@@ -11,7 +11,7 @@ class NetCrawl
|
|
11
11
|
Config.default.snmp.community = 'public'
|
12
12
|
Config.default.snmp.timeout = 1
|
13
13
|
Config.default.snmp.retries = 2
|
14
|
-
Config.default.snmp.bulkrows =
|
14
|
+
Config.default.snmp.bulkrows = 30 # 1500B packet should fit about 50 :cdpCacheAddress rows
|
15
15
|
Config.default.dot.bothlinks = false # keep both a-b and b-a links
|
16
16
|
Config.default.dot.linklabels = true # label link with interface names
|
17
17
|
Config.default.dot.color = [ # regexp of host => color
|
data/lib/netcrawl/method/lldp.rb
CHANGED
@@ -36,6 +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
40
|
peer.raw_name = @mib[OID[:lldpRemSysName], peer_id].value
|
40
41
|
peer.ip = get_ip peer.raw_ip, peer.raw_name
|
41
42
|
peer.dst = @mib[OID[:lldpRemPortId], peer_id].value
|
data/netcrawl.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: netcrawl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Saku Ytti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: snmp
|