Commit Graph

1704 Commits

Author SHA1 Message Date
Alexander Hartmaier
efb32ac10d add Cisco BGP MIB support to all Cisco Layer 3 devices (#451)
This also adds a munge_inetaddress function which can be used to parse a 
binary IP address as defined by the SNMP InetAddress type.
2022-03-14 21:37:27 +00:00
Oliver Gorwits
7f3028cbdb more tolerant of weird subname calls in autoload 2022-03-02 22:11:56 +00:00
Oliver Gorwits
1c1dbe6464 remove custom CPAN::Uploader 2021-11-14 19:37:12 +00:00
Oliver Gorwits
b98b68c718 avoid error on macOS(?) with netmask of 64 or 128 on v4 addr 2021-10-23 22:38:33 +01:00
Oliver Gorwits
f55edced32 release 3.81 3.81 2021-10-07 17:16:42 +01:00
Oliver Gorwits
0d7b482edd only substr if layers returns 2021-10-07 17:09:50 +01:00
Oliver Gorwits
933766120f fix sprintf to printf 2021-10-07 16:52:33 +01:00
nick n
fbfa2ec154 i/if_ignore cleanup (#377)
* does not have an i_ignore function, don't mention it in the docs

* these interfaces don't even exist on oneaccess

remove i_ignore, mark tests as complete now

* don't see a reason for a function, so remove it:

sub i_ignore {return;}
2021-10-07 13:19:32 +01:00
Oliver Gorwits
0e75c44cb8 #401 add DLink layers always 2+3 2021-10-07 12:01:02 +01:00
Oliver Gorwits
bce84023ca #374 undefined error from H3C class 2021-10-07 11:41:38 +01:00
Oliver Gorwits
a0cd7c57e2 #378 fix several uninitialized vars 2021-10-07 10:19:28 +01:00
Oliver Gorwits
d535cea7db #394 Recognise hyphenated cumulus version strings 2021-10-07 09:15:40 +01:00
Oliver Gorwits
21f3b2b199 #400 change IPv6 decode warning to be debug-only 2021-10-07 09:01:45 +01:00
nick n
9f12bcf676 trapeze and nws deep recursion fix (#443)
* trapeze serial deep recursion

* NWSS2300 has the same problem

* same workaround as trapeze

* return empty if not found
2021-10-07 08:52:45 +01:00
Oliver Gorwits
dd1688a587 Update release.yml 2021-09-27 10:14:51 +01:00
Oliver Gorwits
8c50ef81af Update test_and_publish.yml 2021-09-27 10:14:38 +01:00
Oliver Gorwits
8b753c83af Update release.yml 2021-09-27 10:09:09 +01:00
Oliver Gorwits
7e3300552d if: github.repository == ‘netdisco/snmp-info’ 2021-09-27 10:08:54 +01:00
Oliver Gorwits
a3be7337bb if: github.repository == ‘netdisco/netdisco’ 2021-09-27 10:08:04 +01:00
Oliver Gorwits
1bf87a4cb2 release 3.80 3.80 2021-09-22 22:40:21 +01:00
Oliver Gorwits
d4269ad79b fix test for Layer3::Cisco.pm 2021-09-22 22:33:59 +01:00
Oliver Gorwits
807cd20da0 release 3.79 3.79 2021-09-22 22:14:43 +01:00
Oliver Gorwits
23a247c048 change default class for Cisco from Layer3::Cisco to Layer3::CiscoSwitch 2021-09-22 22:13:38 +01:00
Ambroise
2b3674dcae Add support for Riverbed SteelheadEx and Steelfusion (#438)
* Retrieve Serial Number and device type for CheckPoint devices at right place in MIB

* Add support for SteelheadEx and Steelfusion

* Update Info.pm

* fix tests

Co-authored-by: Oliver Gorwits <ollyg@users.noreply.github.com>
Co-authored-by: Oliver Gorwits <oliver@cpan.org>
2021-09-21 15:51:10 +01:00
Oliver Gorwits
86e120ea5f do not squawk to irc on pull_request test failure 2021-09-21 15:50:37 +01:00
Oliver Gorwits
48725546a2 fix error in pull_request event spec 2021-09-21 09:07:50 +01:00
Florian Schlichting
4731bbfe2f Fix typo in Whiterabbit.pm (#439) 2021-09-21 05:17:27 +02:00
nick n
6dc369efbc add link aggregation for fortios (#437)
* lag support for fortigate

* a few more tests

* mention fortinet lag
2021-09-12 21:01:11 +02:00
Oliver Gorwits
afc8eefaf1 release 3.78 3.78 2021-09-09 06:15:52 +01:00
Oliver Gorwits
d8a532febe Fix undefined value error in Bridge.pm i_vlan 2021-09-08 20:23:13 +01:00
Oliver Gorwits
fe39d38897 release 3.77 3.77 2021-09-04 06:28:03 +01:00
Oliver Gorwits
44cb254ee0 release 3.76 3.76 2021-09-03 21:10:54 +01:00
Oliver Gorwits
72d6d87bf9 working around flaky ruckus kit 2021-09-03 21:07:52 +01:00
Oliver Gorwits
81b8082fd4 release 3.75 3.75 2021-09-02 20:41:43 +01:00
Oliver Gorwits
948d96ed28 remove weird char breaking test 2021-09-02 19:57:13 +01:00
Oliver Gorwits
765a6417b2 set_i_vlan support for Ruckus/Brocade/Foundry 2021-09-02 19:04:33 +01:00
Oliver Gorwits
5a895a09ca release 3.74 3.74 2021-08-24 12:29:56 +01:00
Christoph Handel
2773594274 CH: patch H3C broken node-vlan mapping (#416)
* CH: patch H3C broken node-vlan mapping

see https://github.com/netdisco/snmp-info/issues/218

--+ qb_fw_vlan

qb_fw_vlan is called to figure out in which vlan a mac is located.

fetch qb_fw_port. This is a hash

  fdb_id.mac => fdb_port

for each key split of fdb_id

try to look it up in qb_fdb_ids to translate it to vlan
otherwise use it directly as vlan.

--+ qb_fw_port

qb_fw_port fetchs snmp dot1qTpFdbPort, oid 1.3.6.1.2.1.17.7.1.2.2.1.2

This snmp table returns

  fdb_id.mac => fdb_port

as an example data fetched from a HP switch (Layer2::HP)

  SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.3.52.20.95.80.231.59 = INTEGER: 9

fdb_id: 3
mac: 34:14:5f:50:e7:3b
fdb_port: 9
and an expample for a H3C (Layer3::H3C)

  SNMPv2-SMI::mib-2.17.7.1.2.2.1.2.1.0.17.17.117.83.217 = INTEGER: 891

fdb_id: 1
mac: 0:11:11:75:53:d9
fdb_port: 891

snmp looks got. Verified with netdisco

/opt/netdisco/bin/netdisco-do show -d <SWITCH> -e Layer3::H3C::qb_fw_port
/opt/netdisco/bin/netdisco-do show -d <SWITCH> -e Layer2::HP::qb_fw_port

result looks good.

--+ qb_fdb_index

qb_fdb_index fetches snmp dot1qVlanFdbId which is oid 1.3.6.1.2.1.17.7.1.4.2.1.3

This snmp table returns

  timestamp.vlan => fdb_id

netdisco will strip the timestamp and build a hash

  fdb_id => vlan

for a HP switch i get snmp data

  SNMPv2-SMI::mib-2.17.7.1.4.2.1.3.0.64 = Gauge32: 6

vlan: 64
fdb_id: 6
for a H3C i get

  SNMPv2-SMI::mib-2.17.7.1.4.2.1.3.3330.64 = Gauge32: 1

vlan: 64
fdb_id: 1

and there are the issues.

not all vlans are listed
every line has fdb_id 1
as in all H3C switches i checked, the fdb_id is equal to the vlan i patched out
qb_fdb_index to return an empty hash.

* CH: H3C fix pod caverage test

Co-authored-by: Christoph Handel <c.handel@gsi.de>
2021-08-23 22:27:42 +01:00
Oliver Gorwits
846bb46e33 fix version 2021-08-23 16:22:45 +01:00
Oliver Gorwits
33d69e8dea Merge branch 'master' of github.com:netdisco/snmp-info 2021-08-23 16:20:44 +01:00
Oliver Gorwits
bbf5a5a570 also test on PR 2021-08-23 16:20:33 +01:00
Christoph Handel
651169f726 Whiterabbit (#417)
* CH: add white rabbit

* CH: .

* CH: better version field

* CH: whiterabbit fix version and pod documentation

* fix mib links

and a few wihtespace cleanups

* map enterprises.96

map enterprises.96 to whiterabbit.

this is the id of cern, only layer3::whiterabbit uses it

* removed inherited modules

remove modules that get pulled in via snmp::info::layer3
use SNMP::Info::LLDP;
use SNMP::Info::Bridge;

remove module that doesn't seems to be used
use Socket;

Co-authored-by: Christoph Handel <c.handel@gsi.de>
Co-authored-by: nick n <39005454+inphobia@users.noreply.github.com>
2021-08-23 16:13:28 +01:00
Jeroen van Ingen Schenau
9b8dc0916c Support PVID (vlan) change on Arista (#432) 2021-08-23 16:08:17 +01:00
Oliver Gorwits
f7ca5dfde2 github action: fix version format 2021-08-23 16:02:42 +01:00
Oliver Gorwits
80b88fbbb4 github action: update for latest ways from netdisco 2021-08-23 15:58:40 +01:00
Oliver Gorwits
98281e7df6 Update runtests.yml 2021-08-19 10:45:04 +01:00
Oliver Gorwits
470aca5c68 annoying typo 2021-08-18 20:35:13 +01:00
Oliver Gorwits
8f0183eeb8 add cpan upload to release 2021-08-18 20:30:23 +01:00
Oliver Gorwits
b5d88076a8 add release for SNMP::Info why not 2021-08-18 08:33:45 +01:00
Oliver Gorwits
56ceb86f97 Delete .travis.yml.disabled 2021-08-17 13:42:24 +01:00