Closed nniehoff closed 3 years ago
Yes, it is annoying as it complicates automation. It bug.
It should be solved everywhere by using:
For example: https://github.com/napalm-automation/napalm/blob/develop/napalm/ios/ios.py#L937
Will work on it.
@nniehoff issu #74 should be solved in develop branch a bit question is "vlan" interfaces ... should be canonicalized too?
Environment
Python version ('python3 --version'): 3.7.9
When I collect
get_lldp_neighbors_detail()
from the switch the dictionary is keyed off of the short interface namesgi1
instead ofgigabitethernet1
. Based on the napalm documentation here I expected this to be keyed off of the full namegigabitethernet1
as shown in the output ofshow run
. Inspecting the output ofshow lldp neighbors
from the switch, I see the short name as well. This very well may just be a question if this is expected or not, maybe I'm the only one that expected the full names in which case I'll change my logic around a bit.Steps to Reproduce
Expected Behavior
I expected to see the dictionary from
get_lldp_neighbors_detail
to be keyed off of the full names of the interfacesgigabitethernetX
versus the short name ofgiX
Observed Behavior
The dictionary returned by
get_lldp_neighbors_detail
is keyed off of the short names ofgiX
instead ofgigabitethernetX
.