Pcornel
Automation · Proxmox Automation

Network Automation

Cheat sheet · https://pcornel.dk/topic.php?topic=5726

Back to the Topic

Answer

Proxmox network automation manages Linux bridges, bonds and VLANs in /etc/network/interfaces or SDN zones and VNets via the API, applying changes with ifreload -a.

Remember

  • Configure bridges, bonds and VLANs in /etc/network/interfaces or SDN.
  • SDN zones and VNets manage networks cluster-wide.
  • ifreload -a applies changes.

First checks

  • cat /etc/network/interfaces — node networking
  • pvesh get /cluster/sdn/vnets — SDN vnets
  • pvesh set /cluster/sdn — apply SDN

Commands

pvesh set /cluster/sdn

Verify in this order

automation → SDN API / interfaces → ifreload

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5726

Confirmation

Confirm action

Continue?