Pcornel
Automation · NetBox

IP Addresses

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

Back to the Topic

Answer

IP addresses in NetBox are individual addresses with mask, status, role, DNS name and assignment to an interface, which automation can allocate and use to build configs.

Remember

  • IP addresses are assigned to interfaces.
  • Status and role describe use.
  • DNS name can drive DNS automation.

First checks

  • curl -s -H 'Authorization: Token <t>' 'https://<netbox>/api/ipam/ip-addresses/?address=<ip>' — lookup
  • dns_name field — DNS sync
  • Assigned object (interface) — binding

Verify in this order

IP record → interface + DNS

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

Confirmation

Confirm action

Continue?