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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e88a7108f8469c3a858d557c74ffea3a00f4ed7e
4
- data.tar.gz: e80b670c19a52eda6e64b59408ec18aee2528653
3
+ metadata.gz: e82d00b9bf01521dcf3897a8e66feef8c05b400c
4
+ data.tar.gz: 7fdbd8e5e4cb955a3d810db5f6ff1e2003bc26ba
5
5
  SHA512:
6
- metadata.gz: 9a0ad9ec096098a890da9214f1fc97a10d3de0d279c4a39e70c41992583de1e5310cf1f604bdc1181267754f9226fc1bd040ec3aa174714d50c98b0ce3917266
7
- data.tar.gz: a5519ab481db54c1c4cd7b6259b59e36e4b59261b3f72fa22c04575a2b69e53f0e1a8633fdbacaf041aeae5ab79baf14fedf82aed9257237030050044f70b048
6
+ metadata.gz: 757a4c4fe57016d23dabd95240f60e3db8984755bc1929ce61d4c380d6c0eeab8a12cca4c88666dd80222454ae82b98db5d46d3182ea8b805b68a8e59a016714
7
+ data.tar.gz: dcb1611a9312750b97afcd0c483b14e643240d298eb0a6a8944c048d5a99574a7fb4fb2ec275a0d60218317ef7a78382830fd0b26f62d1c9a0aa1adf1b180636
@@ -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 = 35 # 1500B packet should fit about 50 :cdpCacheAddress rows
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
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'netcrawl'
3
- s.version = '0.0.3'
3
+ s.version = '0.0.4'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = [ 'Saku Ytti' ]
6
6
  s.email = %w( saku@ytti.fi )
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.3
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-05 00:00:00.000000000 Z
11
+ date: 2014-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: snmp