Show both "real" and NAT IP addresses when viewing a device in the API #11009

Open
opened 2025-12-29 21:39:07 +01:00 by adam · 0 comments
Owner

Originally created by @robduffy2010 on GitHub (Apr 10, 2025).

NetBox version

v4.2.6

Feature type

Change to existing functionality

Proposed functionality

Display both the real primary IP address and corresponding NAT IP when viewing a device in the API. This should be simple change to the brief fields on the IPAddress serializer. I can take ownership and submit a PR.

Use case

When viewing a device object via the API, only the real OR NAT IP is shown, depending on which has been selected as the primary IP. We use several different tools, some of which can use a device's NAT IP and others which must use the real IP address. These tools use Netbox as an inventory and don't support additional logic to perform extra API lookups to retrieve the desired IP. As a result, in for these tools to work simultaneously, both the primary real IP and NAT IP should be displayed in the API.

Database changes

NA

External dependencies

NA

Originally created by @robduffy2010 on GitHub (Apr 10, 2025). ### NetBox version v4.2.6 ### Feature type Change to existing functionality ### Proposed functionality Display both the real primary IP address and corresponding NAT IP when viewing a device in the API. This should be simple change to the brief fields on the IPAddress serializer. I can take ownership and submit a PR. ### Use case When viewing a device object via the API, only the real OR NAT IP is shown, depending on which has been selected as the primary IP. We use several different tools, some of which can use a device's NAT IP and others which must use the real IP address. These tools use Netbox as an inventory and don't support additional logic to perform extra API lookups to retrieve the desired IP. As a result, in for these tools to work simultaneously, both the primary real IP and NAT IP should be displayed in the API. ### Database changes NA ### External dependencies NA
adam added the type: featurenetboxneeds milestonestatus: backlogcomplexity: low labels 2025-12-29 21:39:08 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11009