Skip to content

Module to abbreviate and/or lengthen Cisco IOS interface names.

License

Notifications You must be signed in to change notification settings

ArnesSI/cisco-iface-abbrev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cisco-iface-abbrev

Module to abbreviate and/or lengthen Cisco IOS interface names.

Functions

get_both(in_name)

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')

get_short(in_name)

Returns the abbreviated name.

>>> import cisco_iface_abbrev
>>> cisco_iface_abbrev.get_short('Port-channel1')
'Po1'

get_long(in_name)

Returns the expanded name.

>>> import cisco_iface_abbrev
>>> cisco_iface_abbrev.get_long('Tu3')
'Tunnel3'

About

Module to abbreviate and/or lengthen Cisco IOS interface names.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages