Some or all enabled VLANs are sometimes missing from Cisco trunk ports

Bug #1595445 reported by Morten Brekkevold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
High
Morten Brekkevold

Bug Description

The list of trunk-enabled VLANs on a Cisco device is retrieved through the CISCO-VTP-MIB.

The list is made up of a string of 4096 bits for each trunk port, and these 4096 bits are split into four 1024-bit long SNMP table columns.

NAV's cisco_vtp_mib.py implementation concatenates these four columns into one bitstring, but stops concatenation on the first empty bitstring (this is taken as an indicator that there are no more enabled VLANs with higher vlan tags).

Tests from the University of Linköping reveals that this isn't always the case. Some Cisco devices populate only columns that have any set bits at all. If all enabled VLANs are above 2048, for example, the first two columns may be empty and no VLANs are detected by NAV.

The tests also indicate that the bitstrings aren't always padded out to a full 1024 bits, so a simple concatenation isn't enough to ensure a correct result.

Changed in nav:
status: Confirmed → In Progress
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :
Changed in nav:
milestone: none → 4.5.2
status: In Progress → Fix Committed
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

The same problem presents itself in Portadmin, which replicates the algorithm from the ipdevpoll implementation for live polling. This must also be fixed before we can close this bug.

Changed in nav:
status: Fix Committed → In Progress
tags: added: portadmin
Revision history for this message
Morten Brekkevold (mbrekkevold) wrote :

PortAdmin fix is committed here: https://nav.uninett.no/hg/nav/rev/a64710aebfb8

Changed in nav:
status: In Progress → Fix Committed
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.