On Fri, 18 Mar 2011 13:58:36 +0100 Joachim Tingvold email@example.com wrote:
individual switch port, NAV has assigned a port number to it, based on the port number found in BRIDGE-MIB (this number is unique across the IP device, even when it has multiple modules).
You are referring to dot1dBasePort, yes?
If a device doesn't reply to ifName, but a bridge port number was found, it could substitute the port number for the ifName value - only falling back to ifDescr if it's not a switch port. What do you think?
Yes, that sounds good. If this happens, maybe one should also keep the ifDescr in the «IP Device Info»-section?
As long as an ifDescr value was found for an interface, it is stored in the db. We're only discussing alternate ways to derive an ifName value if none is found on the device.
Are the port numbers NAV has found for your switch reasonable?
If you're referring to «Port» in the «IP Device Info»-section, then yes, it's reasonable (it's an integer, going from 1 through 26).
I've posted this as a wishlist item here: https://bugs.launchpad.net/nav/+bug/739718