Installation
Requirements
Section titled “Requirements”- NetBox 4.7. See compatibility for the versions each release supports.
- Python 3.12 or later.
- A running NetBox worker (
manage.py rqworker), because role synchronizations run as background jobs.
The plugin has no Python dependencies beyond those of NetBox.
Install the package
Section titled “Install the package”Install the netbox-interface-profiles package into the virtual
environment of NetBox:
source /opt/netbox/venv/bin/activatepip install netbox-interface-profilesTo keep the plugin installed when NetBox is upgraded, add it to local_requirements.txt in the NetBox root:
echo "netbox-interface-profiles" >> /opt/netbox/local_requirements.txtTo try the latest development version instead, install from GitHub:
pip install git+https://github.com/retigra/netbox-interface-profilesnetbox-docker
Section titled “netbox-docker”Add the package to plugin_requirements.txt and rebuild the image, as described in the
netbox-docker plugin instructions:
netbox-interface-profiles==0.1.0Enable the plugin
Section titled “Enable the plugin”Add the plugin to PLUGINS in configuration.py:
PLUGINS = [ "interface_profiles",]The plugin has no required settings. An empty entry in PLUGINS_CONFIG is enough:
PLUGINS_CONFIG = { "interface_profiles": {},}Apply migrations
Section titled “Apply migrations”Create the plugin’s database tables, collect its static files and restart NetBox and its worker:
cd /opt/netbox/netboxpython manage.py migratepython manage.py collectstatic --no-inputsudo systemctl restart netbox netbox-rqThe Interface Roles menu now appears in the navigation, and devices have an Interface Roles tab.