NetBox Plugin to order interfaces more intuitively
NetBox plugin to order interfaces more intuitively
:warning: This plugin hacks into NetBox: This plugin definitely does not follow the supported plugin protocol, and can break NetBox!
This plugin in compatible with NetBox 2.8. Because of the way this plugin hacks into the internals of NetBox compatibility with other versions is not guaranteed.
netbox_reorder to your
/opt/netbox/local_requirements.txt file. Create it if it doesn't exist.
If you are using a local version of the plugin, for example for development, add
-e /opt/path/to/plugin instead.
Then enable the plugin in
PLUGINS = [ 'netbox_reorder', ]
And finally run
/opt/netbox/upgrade.sh. This will download and install the plugin and update the database when necessary. Don't forget to run
sudo systemctl restart netbox netbox-rq like
upgrade.sh tells you!
This plugin overrides the default interface sorting algorithm of NetBox.
Ordering of mixed interface type names
Some devices (for example Juniper switches) can have mixed interface type names. By default NetBox orders these as follows:
This is because the interface type (
xe) has precedence over the last part of the interface name. This makes sense when using certain Cisco equipment that has both FastEthernet and GigabitEthernet interfaces with the same numbers:
NetBox has consciously chosen this sorting algorithm. This plugin implements an alternative more intuitive algorithm where the ordering will be:
The downside is that Cisco equipment with duplicate ports numbers will be less intuitive:
Ordering of virtual chassis interfaces
NetBox orders interfaces first by device name and then by name. This can cause interfaces in a virtual chassis to appear in an unexpected order. Consider for example the following virtual chassis:
|Device Name||Position||Interface names|
When viewing the virtual chassis the intuitive order of interfaces would be first
xe-2/x/y and finally
However, because NetBox by default sorts first on device name, the order will be first
xe-3/x/y and finally
Why? Because "three" comes before "two" alphabetically.
This plugin patches NetBox to implement the intuitive order.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size netbox_reorder-1.0.1-py3-none-any.whl (8.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size netbox_reorder-1.0.1.tar.gz (8.3 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for netbox_reorder-1.0.1-py3-none-any.whl