Pcornel
Automation · IPAM Automation

VRFs

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

Back to the Topic

Answer

VRFs in IPAM separate overlapping address spaces, so the same prefix can exist in different VRFs. Automation must always allocate within the correct VRF.

Remember

  • VRFs separate overlapping address spaces.
  • The same prefix can exist in two VRFs.
  • Allocate within the correct VRF.

First checks

  • curl -s -H 'Authorization: Token <t>' https://<netbox>/api/ipam/vrfs/ — VRFs
  • Route targets — import/export
  • enforce_unique per VRF — duplicates

Verify in this order

VRF → prefixes/IPs → device VRF config

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=5866

Confirmation

Confirm action

Continue?