Skip to content

fix(netbox): IPv6 → primary_ip6; don’t map unknown reachability to offline - #77

Merged
jacobyoby merged 1 commit into
mainfrom
cursor/export-netbox-ipv6-5ca7
Sep 9, 2026
Merged

jacobyoby merged 1 commit into
mainfrom
cursor/export-netbox-ipv6-5ca7

Conversation

@jacobyoby

Copy link
Copy Markdown
Owner

Closes #72.

Problem

Export-NetBox still stuffed every node IP into primary_ip4 (leaving primary_ip6 unused) and mapped Reachable=$null to offline — the same honesty bug the wizard already fixed for DrawIO.

Change

  • IPv4 identity → primary_ip4; IPv6 identity → primary_ip6 (the other column empty).
  • Each node still has one identity IP (inventory contract). A dual-stack host is two rows; family is taken from that row’s IP.
  • Reachable=$true → active, $false → offline, $null → empty status (NetBox has no unknown; do not invent a status).
  • Pester: v6-only, v4-only, dual-stack, and $null Reachable must not become offline.
  • README NetBox mapping + CHANGELOG [Unreleased] updated.

Out of scope

Gallery release, SnmpWalk IPv6, cred-map IPv6, CI smoke, MCP, LLDP.

Verification

./tests/run-tests.sh (pwsh/Pester). Touched tests are Export-NetBox (#38) and Export-NetBox (#72).

Open in Web Open in Cursor 

Export-NetBox put every node IP in primary_ip4 and treated Reachable=$null
as offline. Place IPv6 in primary_ip6 (v6-only leaves primary_ip4 empty),
leave status empty when reachability is unknown, and cover v4/v6/dual-stack
plus the null-reachable regression in Pester.

Closes #72.

Co-authored-by: Jacobrakai <jacobyoby@users.noreply.github.com>
@jacobyoby
jacobyoby marked this pull request as ready for review September 9, 2026 20:05
@jacobyoby
jacobyoby merged commit b73f5e2 into main Sep 9, 2026
7 checks passed
@jacobyoby
jacobyoby deleted the cursor/export-netbox-ipv6-5ca7 branch September 9, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export-NetBox: IPv6 → primary_ip6; don’t map Reachable=$null to offline

2 participants