Closed Kani999 closed 1 year ago
Workaround
from netutils.interface import abbreviated_interface_name
BASE_INTERFACES_EXTENDED = {
"FourHundredGigabitEthernet": "FourHundredGigabitEthernet",
}
REVERSE_MAPPING_EXTENDED = {
"FourHundredGigabitEthernet": "FH"
}
print(abbreviated_interface_name("FourHundredGigabitEthernet0/0/1/4", BASE_INTERFACES_EXTENDED, REVERSE_MAPPING_EXTENDED))
output >> FH0/0/1/4
@Kani999 Thanks for that. #285 has been opened to resolve the issue.
Environment
Expected Behavior
Return abbreviated interface name
FH0/0/1/4
Observed Behavior
Returned canonical name
FourHundredGigabitEthernet0/0/1/4
Steps to Reproduce