This plugin aims to give an overview of ports availability at both rack and device level.
Basically it's just a clone of standards racks and devices view, with an added column for ports count (free/total)
This can be explained as: given a location, show the port count for all racks that contains at least one free 40GE port from network switches
All the "magic" is done with dynamic count subqueries, driven by a custom form that extends the base ones (devices and racks) by adding the various ports types filtering options.
For instance, the "ports aggregation" field is always threre, the other fields are dynamically added based on its selection
By now, "free ports" are counted with the same condition of stock Netbox's filter "Occupied == No", meaning no cable connected and not marked as connected.
If you have already installed some other plugin, just repeat the process and everything should be just fine.
If it's the first time installing a plugin, follow this steps:
- Clone this repo into a "convenient" directory to be used in Netbox. (e.g. a "plugin" directory inside netbox root)
- Add
'aggregatron'
toPLUGINS
in Netbox'sconfiguration.py
- Create
local_requirements.txt
in Netbox root directory and add-e /path/to/plugin/dir/
, this is needed to ensure the plugin gets re-intsalled with every Netbox update. - Install the plugin with
pip install -e path/to/plugin/dir/
, or just runupgrade.sh
. - Restart Netbox services (
sudo systemctl restart netbox netbox-rq
) - Everything should be up n'running, and the entry points for racks and devices overview view should be available in the side menu.