Automation · NetBox
VRFs
Cheat sheet · https://pcornel.dk/topic.php?topic=5881
Answer
VRFs in NetBox model separate routing tables with route distinguishers and route targets, allowing overlapping prefixes and IP addresses to be tracked correctly.
Remember
- VRFs have route distinguishers and route targets.
- They allow overlapping prefixes.
- Enforce unique prefixes per VRF if needed.
First checks
curl -s -H 'Authorization: Token <t>' https://<netbox>/api/ipam/vrfs/— VRFs- Route targets import/export — MPLS/EVPN
- Tenant association — multi-tenancy
Verify in this order
VRF + RTs → device configs
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=5881