netutils
netutils copied to clipboard
Interface Sorting Issue
As a network engineer, I might want to sort my interfaces as they appear on the devices. This way, I could render my configuration easier and faster.
In this sense, interfaces in the Cisco configuration are listed in a non-alphabetical way and following rules are applied:
- Port Channel interfaces are listed first
- First round of sorting the Ethernet interfaces is based on the
slot position - Second round of sorting the Ethernet interfaces is based on the interface type name + slot position, taking care of the duplicated slot positions
The current behaviour of sort_interface_list does not provide similar user experience
Please look at this comment: https://github.com/networktocode/netutils/issues/37#issuecomment-898090634