Module to abbreviate and/or lengthen Cisco IOS interface names.
Expands or shortens Cisco interface name given in in_name. Returns a tuple of short and long version.
>>> import cisco_iface_abbrev
>>> cisco_iface_abbrev.get_both('Te1/0/1')
('Te1/0/1', 'TenGigabitEthernet1/0/1')
Returns the abbreviated name.
>>> import cisco_iface_abbrev
>>> cisco_iface_abbrev.get_short('Port-channel1')
'Po1'
Returns the expanded name.
>>> import cisco_iface_abbrev
>>> cisco_iface_abbrev.get_long('Tu3')
'Tunnel3'