Production-ready NetBox plugin for UniFi synchronization
Project description
netbox_unifi_sync
netbox_unifi_sync is a NetBox 4.2+ plugin that runs UniFi -> NetBox sync jobs inside NetBox workers.
Features
- Device sync (devices, interfaces, VLANs, prefixes, WLANs, uplink relations, IP assignments)
- DHCP scope sync to NetBox IP Ranges
- UniFi auth via API key or legacy login (username/password + optional MFA)
- Manual and scheduled sync jobs
- Runtime settings stored in plugin models (
Settings,Controllers,Site mappings)
Quick Start
1. Install
pip install netbox-unifi-sync
PyPI project page: https://pypi.org/project/netbox-unifi-sync/
For netbox-docker, add the package to local_requirements.txt before build:
echo "netbox-unifi-sync" >> local_requirements.txt
2. Enable plugin in NetBox
PLUGINS = ["netbox_unifi_sync"]
PLUGINS_CONFIG = {
"netbox_unifi_sync": {}
}
Debian note: NetBox 4.5+ requires API_TOKEN_PEPPERS in configuration.py:
API_TOKEN_PEPPERS = {
1: "replace-with-a-long-random-secret",
}
3. Apply migrations
python manage.py migrate
4. Configure in UI
Go to Plugins -> UniFi Sync and configure:
Settings(tenant_name,netbox_roles, defaults)Controllers(URL, auth mode, credentials)Site mappings(if UniFi/NetBox site names differ)
5. Run first sync
- UI:
Plugins -> UniFi Sync -> Sync Dashboard -> Run now - CLI:
python manage.py netbox_unifi_sync_run --dry-run --json
python manage.py netbox_unifi_sync_run --cleanup
Credentials
Set credentials only in Plugins -> UniFi Sync -> Controllers.
Do not store UniFi credentials in PLUGINS_CONFIG.
Documentation
- Server install guide
- NetBox plugin mode
- Configuration reference
- Troubleshooting
- Release and PyPI publish
- netbox-docker setup
- Wiki source pages
- GitHub Wiki
Security Notes
- SSL verification defaults to
true - Secrets are redacted in run history and audit logs
- Timeouts/retries/backoff are configurable
Maintainer: Release to PyPI
- Bump version in:
pyproject.toml([project].version)netbox_unifi_sync/version.py(__version__)
- Configure PyPI Trusted Publisher (OIDC) for this repository/workflow.
- Create and push tag
vX.Y.Z:git tag -a vX.Y.Z -m "Release vX.Y.Z"git push origin vX.Y.Z
release.ymlcreates GitHub Release.publish-python-package.ymlpublishes package to PyPI when release is published.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file netbox_unifi_sync-0.1.3.tar.gz.
File metadata
- Download URL: netbox_unifi_sync-0.1.3.tar.gz
- Upload date:
- Size: 176.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24c4b9e2e32484da52b7ccffb493456685b66f8970989ec3d32aae7937a8873b
|
|
| MD5 |
e02f5a46c1c6fa759fd1bde261ec78c0
|
|
| BLAKE2b-256 |
67562bcfdb310f00bf33c5f09b02e737b876af2ca978663708232f7276e367c7
|
Provenance
The following attestation bundles were made for netbox_unifi_sync-0.1.3.tar.gz:
Publisher:
publish-python-package.yml on unifi2netbox/netbox-unifi-sync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netbox_unifi_sync-0.1.3.tar.gz -
Subject digest:
24c4b9e2e32484da52b7ccffb493456685b66f8970989ec3d32aae7937a8873b - Sigstore transparency entry: 995795663
- Sigstore integration time:
-
Permalink:
unifi2netbox/netbox-unifi-sync@42fbf4a8928583f124067ac8cbdc30af4357893b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/unifi2netbox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-package.yml@42fbf4a8928583f124067ac8cbdc30af4357893b -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file netbox_unifi_sync-0.1.3-py3-none-any.whl.
File metadata
- Download URL: netbox_unifi_sync-0.1.3-py3-none-any.whl
- Upload date:
- Size: 141.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0401b560a217d66d1df5ab53176a66617164f83c1985064bb8115768f4a0a547
|
|
| MD5 |
37e7166eb7b4c15f92f8765408b86f3f
|
|
| BLAKE2b-256 |
2d9fda8b62c52bba1a7e6397cbd918206c6445ea1faea0a6d96587f88c81bace
|
Provenance
The following attestation bundles were made for netbox_unifi_sync-0.1.3-py3-none-any.whl:
Publisher:
publish-python-package.yml on unifi2netbox/netbox-unifi-sync
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
netbox_unifi_sync-0.1.3-py3-none-any.whl -
Subject digest:
0401b560a217d66d1df5ab53176a66617164f83c1985064bb8115768f4a0a547 - Sigstore transparency entry: 995795667
- Sigstore integration time:
-
Permalink:
unifi2netbox/netbox-unifi-sync@42fbf4a8928583f124067ac8cbdc30af4357893b -
Branch / Tag:
refs/heads/main - Owner: https://github.com/unifi2netbox
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-package.yml@42fbf4a8928583f124067ac8cbdc30af4357893b -
Trigger Event:
workflow_dispatch
-
Statement type: