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/
Features
- Interface roles: describe what an interface is for and assign it from the device page, in bulk, or through the REST API.
- Interface templates: set the description, speed, duplex, MTU, VRF, 802.1Q mode, VLANs, VLAN translation policy and PoE per role, globally or per site group or site. VLANs are set by VID and resolved in the interface's site.
- Synchronization: apply changed templates to every interface with a role, with a dry run to review the changes first.
- Config templates: render per-interface device configuration with Jinja2, per platform, device type and tags, and embed it in NetBox device config templates.
- Permissions: delegate which roles a team may assign with NetBox object permissions.
- REST API and GraphQL: every object is available through the APIs, and a single call returns the role and rendered configuration of an interface for automation.
Compatibility
| NetBox Version | Plugin Version | Python |
|---|---|---|
| 4.7.x | 0.1.x | 3.12+ |
See COMPATIBILITY.md for details. The plugin has no Python dependencies beyond those of NetBox.
Installing
Install the package into the virtual environment of NetBox:
source /opt/netbox/venv/bin/activate
pip install netbox-interface-profiles
For netbox-docker, add netbox-interface-profiles to plugin_requirements.txt, see
the
netbox-docker plugin instructions.
Enable the plugin in configuration.py. It has no required settings:
PLUGINS = [
"interface_profiles",
]
Apply the migrations, collect the static files and restart NetBox and its
worker. Role synchronizations run as background jobs, so a NetBox worker
(manage.py rqworker) must be running.
cd /opt/netbox/netbox
python manage.py migrate
python manage.py collectstatic --no-input
sudo systemctl restart netbox netbox-rq
See the installation guide for all steps, and the quick start to set up a first role.
Automation
The interface-configs endpoint returns the role, the matching templates and
the rendered configuration of an interface by its ID:
curl -H "Authorization: Bearer $NETBOX_TOKEN" \
https://netbox.example.com/api/plugins/interface-profiles/interface-configs/123/
{
"id": 123,
"interface": { "id": 123, "name": "Gi1/0/1", "...": "..." },
"interface_role": { "id": 4, "name": "Workstation", "...": "..." },
"interface_template": { "id": 7, "name": "Default", "...": "..." },
"config_template": { "id": 3, "name": "IOS access port", "...": "..." },
"config": "switchport mode access\nswitchport access vlan 100",
"config_error": null
}
It supports all of NetBox's interface filters, e.g.
?device=sw01&has_interface_role=true. See the
REST API reference.
Development
A Docker Compose environment runs a full NetBox stack with the plugin installed in editable mode and hot reloading enabled. See docker/README.md, TESTING.md and Writing documentation.
cd docker && docker compose up # NetBox at http://localhost:8000
make docker-test # run the test suite
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for guidelines. Bugs and feature requests can be submitted via GitHub Issues. Changes are listed in the changelog.
Credits
Based on the NetBox plugin tutorial
(demo repository,
tutorial), and
created with Cookiecutter and the
netbox-community/cookiecutter-netbox-plugin
project template.
License
Licensed under the GNU Affero General Public License v3.0.
Metadata
Release files for netbox-interface-profiles 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netbox_interface_profiles-0.1.0.tar.gz | 101.2 kB | With provenance | Details for netbox_interface_profiles-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netbox_interface_profiles-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for netbox_interface_profiles-0.1.0-py3-none-any.whl |
Total release size: 241.4 kB
Release files / netbox_interface_profiles-0.1.0.tar.gz
| Download URL | netbox_interface_profiles-0.1.0.tar.gz |
|---|---|
| Size | 101.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
291e4d843e71a152baa3ac620edaf56a30052927ea803e28562b9ad52b57d92e
|
|
BLAKE2b-256 checksum How to use checksums |
1c6fb7b802969aee9aedf338f7d663796a8a4ba97bb96302ffb91dc58dba7702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / netbox_interface_profiles-0.1.0-py3-none-any.whl
| Download URL | netbox_interface_profiles-0.1.0-py3-none-any.whl |
|---|---|
| Size | 140.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fecd14d0169128b801b3af2efd24bd8fa07a776689d8ef387a66d151aa787432
|
|
BLAKE2b-256 checksum How to use checksums |
5700bd82fdd6b51c989054f4d58061df8c89cdf32496fa50cd9590148af0a1b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for netbox-interface-profiles 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for netbox_interface_profiles-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.