How creekorful/netbox-pve-sync works
netbox-pve-sync is a script that synchronizes Proxmox VE inventory into NetBox. Its principal workflow is to read PVE cluster and VM information, then create or update corresponding NetBox records; the README also documents tracking VM disks, network interfaces, IPs, prefixes, MACs, VLANs, and pool tags. The sampled source shows VM processing handling interfaces and disks, and interface processing handling prefixes, IP addresses, and VLANs. Several orchestration details are omitted from the excerpts, so those connections rely on README statements rather than claims about unsampled calls.
Main entry points: __init__.py Sync entrypoint
Components 11
Synchronization
- Sync entrypoint
netbox_pve_sync/__init__.py
Compute Inventory
- Node inventory
netbox_pve_sync/__init__.py - Pool tags
netbox_pve_sync/__init__.py - HA and replication
netbox_pve_sync/__init__.py - Virtual machines
netbox_pve_sync/__init__.py
Network Inventory
- VM interfaces
netbox_pve_sync/__init__.py - IP and prefixes
netbox_pve_sync/__init__.py - VLANs
netbox_pve_sync/__init__.py
Disk Inventory
- Virtual disks
netbox_pve_sync/__init__.py
Other components
- Proxmox VE
- NetBox
Connections 14
- Proxmox VE → Sync entrypoint: provides inventory
README.md - Sync entrypoint → NetBox: synchronizes records
README.md - Sync entrypoint → Node inventory: processes nodes
netbox_pve_sync/__init__.py - Sync entrypoint → Pool tags: collects pools
netbox_pve_sync/__init__.py - Sync entrypoint → HA and replication: collects status
netbox_pve_sync/__init__.py - Sync entrypoint → Virtual machines: processes VMs
netbox_pve_sync/__init__.py - Virtual machines → VM interfaces: handles interfaces
netbox_pve_sync/__init__.py - VM interfaces → IP and prefixes: creates or updates
netbox_pve_sync/__init__.py - VM interfaces → VLANs: creates or updates
netbox_pve_sync/__init__.py - Virtual machines → Virtual disks: handles disks
netbox_pve_sync/__init__.py - Pool tags → NetBox: creates tags
netbox_pve_sync/__init__.py - Node inventory → NetBox: updates devices
netbox_pve_sync/__init__.py - Virtual machines → NetBox: creates or updates
netbox_pve_sync/__init__.py - Virtual disks → NetBox: creates or updates
netbox_pve_sync/__init__.py