Repository navigation
The first public release of Interface Profiles: a NetBox plugin that gives interfaces a role, such as an access port or an uplink, and configures them from it. Interface attributes, VLANs and the rendered device configuration follow the role.
📖 Documentation: https://retigra.github.io/netbox-interface-profiles/latest/
📦 PyPI: https://pypi.org/project/netbox-interface-profiles/
Features
- Interface roles and role groups: describe what an interface is for, and assign one role per interface from the device's Interface Roles tab, the interface page, in bulk, by import or through the REST API.
- Interface templates: the interface attributes a role applies, globally or per site group or site: enabled, management only, description, speed, duplex, MTU, VRF, 802.1Q mode, untagged and tagged VLANs and the Q-in-Q service VLAN (by VID, resolved in the interface's site), VLAN translation policy, PoE mode and PoE type. Every nullable attribute can be explicitly cleared.
- Synchronization: apply changed templates to every interface with a role as a background job, with a dry run that lists every change before it is saved.
- Config templates: Jinja2 templates rendering the configuration of an interface per role and platform, optionally narrowed down by device type and tags, stored locally or synchronized from a data source. Device config templates embed them with
interface_config_render(). - Permissions: delegate which roles a team may assign with NetBox object permissions on role assignments.
- REST API and GraphQL for all objects, plus the read-only
interface-configs/endpoint returning the role, matching templates and rendered configuration of an interface in a single call.
Compatibility
| Plugin version | NetBox | Python |
|---|---|---|
| 0.1.x | 4.7.0–4.7.x | 3.12+ |
Installation
source /opt/netbox/venv/bin/activate
pip install netbox-interface-profiles==0.1.0Add "interface_profiles" to PLUGINS in configuration.py, then apply the migrations, collect the static files and restart NetBox and its worker:
cd /opt/netbox/netbox
python manage.py migrate
python manage.py collectstatic --no-input
sudo systemctl restart netbox netbox-rqSee the installation guide and the quick start to set up a first role.