Set device primary IP in NetBox #4

Open
opened 2026-08-05 19:42:20 +10:00 by unkinben · 0 comments
Owner

Problem

netbox_device.primary_ipv4 is read-only in provider 4.3.0. The devices module currently binds the IP to the transitional bootstrap interface but cannot mark it as the device primary IP, so NetBox devices show no primary address.

Proposal

Decide how primary IP gets set:

  • via discovery/reality side (e.g. the PuppetDB backfill or bootapi post-provision hook setting it through the API), or
  • a NetBox provider upgrade if a newer release makes primary_ipv4 settable.

Acceptance

Devices managed by terraform-infra have their primary IPv4 set in NetBox, with the chosen mechanism documented.

https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT

## Problem `netbox_device.primary_ipv4` is read-only in provider 4.3.0. The devices module currently binds the IP to the transitional bootstrap interface but cannot mark it as the device primary IP, so NetBox devices show no primary address. ## Proposal Decide how primary IP gets set: - via discovery/reality side (e.g. the PuppetDB backfill or bootapi post-provision hook setting it through the API), or - a NetBox provider upgrade if a newer release makes `primary_ipv4` settable. ## Acceptance Devices managed by terraform-infra have their primary IPv4 set in NetBox, with the chosen mechanism documented. https://claude.ai/code/session_01JUoARVdmhxKQHyyyp1pxeT
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: unkin/terraform-infra#4