NetBox plugin for synchronizing Proxmox inventory data
Project description
Proxmox2NetBox
NetBox plugin for synchronizing Proxmox inventory data into NetBox (NetBox v4).
Compatibility
- NetBox:
>=4.2.0, <5.0.0 - Python:
>=3.8 - Plugin package version in this repository:
1.1.4
What Works (Current Runtime)
Out-of-the-box sync requires only a configured Proxmox Endpoint in NetBox.
Implemented sync flows:
- Proxmox nodes -> NetBox
dcim.Device - Proxmox QEMU/LXC VMs -> NetBox
virtualization.VirtualMachine - VM interfaces from Proxmox config -> NetBox
virtualization.VMInterface - Endpoint metadata refresh (
mode,version,repoid, cluster name) - Sync process tracking in
SyncProcess
Runtime Architecture (Source of Truth)
Core sync logic is consolidated in:
proxmox2netbox/services/proxmox_sync.py
Backward-compatible import shim (kept intentionally):
proxmox2netbox/proxmox_sync.py
Primary runtime entrypoints:
- UI endpoints:
proxmox2netbox/views/sync.py - Connection/status badge:
proxmox2netbox/views/keepalive_status.py - Proxmox card data:
proxmox2netbox/views/cards.py - Job wrapper:
proxmox2netbox/jobs.py(Proxmox2NetBoxSyncJob)
Installation (NetBox v4)
1. Install plugin package
Inside NetBox environment:
pip install proxmox2netbox
If you run netbox-docker, also pin the package in your Docker requirements file so it survives rebuilds/redeploys:
# local_requirements.txt
proxmox2netbox==1.1.4
2. Enable plugin
In NetBox configuration.py:
PLUGINS = ["proxmox2netbox"]
3. Run migrations/static
python manage.py migrate
python manage.py collectstatic --no-input
Configure and Run Sync
Configure Proxmox Endpoint
In NetBox UI:
Plugins -> Proxmox2NetBox -> Endpoints -> Proxmox Endpoints- Create at least one endpoint with:
username- either
passwordor (token_name+token_value) - host via
domainand/orip_address
Run sync from UI
Plugins -> Proxmox2NetBox -> Full Update- Available actions:
Sync NodesSync Virtual MachinesFull Update Sync
Run sync as NetBox Job (wrapper)
jobs.py provides a queue-compatible wrapper around the existing service layer.
Example from NetBox shell:
from proxmox2netbox.jobs import Proxmox2NetBoxSyncJob
from proxmox2netbox.choices import SyncTypeChoices
# Full sync
Proxmox2NetBoxSyncJob.enqueue(sync_type=SyncTypeChoices.ALL)
# Devices only
Proxmox2NetBoxSyncJob.enqueue(sync_type=SyncTypeChoices.DEVICES)
# Virtual machines only
Proxmox2NetBoxSyncJob.enqueue(sync_type=SyncTypeChoices.VIRTUAL_MACHINES)
Behavior note:
- Job class is an orchestrator only.
- Sync mapping, payloads, and upsert logic remain in
services/proxmox_sync.py.
Development & Validation
Static checks
ruff check proxmox2netbox --select F401,F403,F811,F821,F841,E712
python -m compileall -q proxmox2netbox
Django checks (inside NetBox runtime)
python manage.py check
python manage.py makemigrations --check --dry-run
Tests
Current repository state contains no active pytest test modules.
pytest
# expected: no tests ran
Publish to PyPI
Prerequisites
- You must have access to the
proxmox2netboxproject on PyPI. - If the name is unavailable for your account, change
project.nameinpyproject.tomlto a unique name before publishing. - Configure one of these publish methods:
- Add
PYPI_API_TOKENas a repository secret in GitHub, or - Configure a matching Trusted Publisher in PyPI for this GitHub repository/workflow:
- Owner:
patricklind - Repository:
Proxmox2Netbox - Workflow file:
.github/workflows/publish-python-package.yml - Environment name:
pypi
Local preflight
python -m build
twine check dist/*
Publish via GitHub Actions
- Bump
versioninpyproject.tomland plugin config version in source. - Create and push a tag:
git tag -a vX.Y.Z -m "Release vX.Y.Z"
git push origin vX.Y.Z
release.ymlcreates the GitHub Release from the tag and dispatches package publish.publish-python-package.ymlpublishes to PyPI (release event and manual/dispatch supported).- After publish:
pip install proxmox2netbox
Repository Layout (Relevant Runtime Files)
proxmox2netbox/
__init__.py
jobs.py
models/
services/
proxmox_sync.py
proxmox_sync.py # compatibility shim
views/
sync.py
keepalive_status.py
cards.py
urls.py
forms/
filtersets.py
tables/
Scope
This repository ships a NetBox plugin runtime only.
Legacy FastAPI/backend-service components are removed from runtime, docs, and packaging scope.
Wiki
- GitHub Wiki URL:
https://github.com/patricklind/Proxmox2Netbox/wiki - Wiki source files in this repository:
wiki/
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 proxmox2netbox-1.1.4.tar.gz.
File metadata
- Download URL: proxmox2netbox-1.1.4.tar.gz
- Upload date:
- Size: 3.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bad245998ce45720f3e91fa4fa93caae1e89fb9bea573e0b0821c1d37fe3f1e1
|
|
| MD5 |
a0a98aa2836f133a367f9692698ee599
|
|
| BLAKE2b-256 |
b1a7021c6a71007b97cd4f68240fabe784091e77386afe93402741b6db6dd691
|
Provenance
The following attestation bundles were made for proxmox2netbox-1.1.4.tar.gz:
Publisher:
publish-python-package.yml on patricklind/Proxmox2Netbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
proxmox2netbox-1.1.4.tar.gz -
Subject digest:
bad245998ce45720f3e91fa4fa93caae1e89fb9bea573e0b0821c1d37fe3f1e1 - Sigstore transparency entry: 995581486
- Sigstore integration time:
-
Permalink:
patricklind/Proxmox2Netbox@a6b8ed2743cf50da960edb6efef827164965e890 -
Branch / Tag:
refs/tags/v1.1.4 - Owner: https://github.com/patricklind
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-package.yml@a6b8ed2743cf50da960edb6efef827164965e890 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file proxmox2netbox-1.1.4-py3-none-any.whl.
File metadata
- Download URL: proxmox2netbox-1.1.4-py3-none-any.whl
- Upload date:
- Size: 3.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41bbbd6cfb9e7e3e5d2462c874fc03c9ad5216c248f6bbf6338d42c212faa153
|
|
| MD5 |
76770ad5bf22c89023850a331bfe082b
|
|
| BLAKE2b-256 |
a832c120b68fe701926ce6303811645c8d705a62da043834ac4af8764d0b8664
|
Provenance
The following attestation bundles were made for proxmox2netbox-1.1.4-py3-none-any.whl:
Publisher:
publish-python-package.yml on patricklind/Proxmox2Netbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
proxmox2netbox-1.1.4-py3-none-any.whl -
Subject digest:
41bbbd6cfb9e7e3e5d2462c874fc03c9ad5216c248f6bbf6338d42c212faa153 - Sigstore transparency entry: 995581498
- Sigstore integration time:
-
Permalink:
patricklind/Proxmox2Netbox@a6b8ed2743cf50da960edb6efef827164965e890 -
Branch / Tag:
refs/tags/v1.1.4 - Owner: https://github.com/patricklind
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python-package.yml@a6b8ed2743cf50da960edb6efef827164965e890 -
Trigger Event:
workflow_dispatch
-
Statement type: