diff --git a/lib/SNMP/Info/Layer3/H3C.pm b/lib/SNMP/Info/Layer3/H3C.pm index 8ba099b1..b62e07ef 100644 --- a/lib/SNMP/Info/Layer3/H3C.pm +++ b/lib/SNMP/Info/Layer3/H3C.pm @@ -136,6 +136,16 @@ sub i_ignore { sub agg_ports { return agg_ports_lag(@_) } +# CH: overwrite and always return empty mapping for qb_fdb_index +# see https://github.com/netdisco/snmp-info/issues/218 +# if no fdb->vlan mapping is available the fdb is assumed to be the vlan +# which is ok for h3c +# otherwise h3c will deliver a broken vlan mapping and nodes will jump +# other all vlans +sub qb_fdb_index { + return {}; +} + 1; __END__ @@ -221,6 +231,11 @@ Returns the OS extracted from C. Returns the software version. Either C or extracted from C. +=item $h3c->qb_fdb_index() + +overwritten to always return empty hash as implementation on +h3c is broken. + =back =head2 Globals imported from SNMP::Info::Layer3