UI Bug with Displaying Primary IP Address with NAT IP on a Virtual Machine #148

Closed
opened 2026-04-05 16:22:17 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @robduffy2010 on 3/13/2026

NetBox Edition

NetBox Community

NetBox Version

v4.5.4

Python Version

3.12

Steps to Reproduce

  1. Create an IP
  2. Create another IP and assign it as the outside NAT IP for the first IP
  3. Create a Virtual Machine
  4. Assign the first IP to the virtual machine
  5. View the virtual machine with attention given to the Primary IPv4 NAT address. The brackets are spread very far apart on either side of the NAT IP

Expected Behavior

There should be no extra spacing before and after the brackets surrounding the NAT IP.

Observed Behavior

There is a large amount of extra space surrounding the NAT IP before and after the brackets.

It looks like this

Primary IPv4 10.10.100.129 ( NAT: 10.20.30.30 )

But should look like this

Primary IPv4 10.10.100.129 (NAT: 10.20.30.30)

I can submit a PR with a fix. It's almost identical to the bug I previously submitted for this problem on devices.

*Originally created by @robduffy2010 on 3/13/2026* ### NetBox Edition NetBox Community ### NetBox Version v4.5.4 ### Python Version 3.12 ### Steps to Reproduce 1. Create an IP 2. Create another IP and assign it as the outside NAT IP for the first IP 3. Create a Virtual Machine 4. Assign the first IP to the virtual machine 5. View the virtual machine with attention given to the Primary IPv4 NAT address. The brackets are spread very far apart on either side of the NAT IP ### Expected Behavior There should be no extra spacing before and after the brackets surrounding the NAT IP. ### Observed Behavior There is a large amount of extra space surrounding the NAT IP before and after the brackets. It looks like this Primary IPv4 10.10.100.129 ( NAT: 10.20.30.30 ) But should look like this Primary IPv4 10.10.100.129 (NAT: 10.20.30.30) I can submit a PR with a fix. It's almost identical to [the bug](https://github.com/netbox-community/netbox/issues/21527) I previously submitted for this problem on devices.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#148