Automation · IPAM Automation
VLANs
Cheat sheet · https://pcornel.dk/topic.php?topic=5865
Answer
VLANs in IPAM are recorded with ID, name, site or group and linked prefixes, so automation can configure switch ports and SVIs consistently from the same data.
Remember
- VLANs have ID, name and scope.
- Link VLANs to prefixes.
- Use them to generate switch config.
First checks
curl -s -H 'Authorization: Token <t>' https://<netbox>/api/ipam/vlans/?site=<site>— VLANs- VLAN groups/scopes — uniqueness domain
- VLAN ↔ prefix mapping — consistency
Verify in this order
VLAN record → interfaces/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=5865