Device: Management: Primary IPv4: 'NAT for ...' link contains erroneous trailing ')', breaks link #5925

Closed
opened 2025-12-29 19:34:18 +01:00 by adam · 3 comments
Owner

Originally created by @geor-g on GitHub (Jan 11, 2022).

Originally assigned to: @jeremystretch on GitHub.

NetBox version

v3.1.5

Python version

3.9

Steps to Reproduce

  1. Create IPv4 address 192.168.41.101/24
  2. Create another IPv4 address 10.25.220.7/24
  3. Establish NAT mapping between them: 192.168.41.101/24 is NAT inside of 10.25.220.7/24
  4. Assign 192.168.41.101/24 as primary IP to a device
  5. Open this device
  6. Below Management, next to Primary IPv4, click on the link (NAT for 10.25.220.7/24)

Expected Behavior

The link should point to the correct location <a href="/ipam/ip-addresses/1031/">.

Observed Behavior

The link points to the incorrect location <a href="/ipam/ip-addresses/1031/)"> which breaks it.

2022-01-11_16-18

Originally created by @geor-g on GitHub (Jan 11, 2022). Originally assigned to: @jeremystretch on GitHub. ### NetBox version v3.1.5 ### Python version 3.9 ### Steps to Reproduce 1. Create IPv4 address `192.168.41.101/24` 2. Create another IPv4 address `10.25.220.7/24` 2. Establish NAT mapping between them: `192.168.41.101/24` is `NAT inside` of `10.25.220.7/24` 2. Assign `192.168.41.101/24` as `primary IP` to a device 3. Open this device 4. Below `Management`, next to `Primary IPv4`, click on the link `(NAT for 10.25.220.7/24)` ### Expected Behavior The link should point to the correct location `<a href="/ipam/ip-addresses/1031/">`. ### Observed Behavior The link points to the incorrect location `<a href="/ipam/ip-addresses/1031/)">` which breaks it. ![2022-01-11_16-18](https://user-images.githubusercontent.com/8934138/148982527-bdf1f4a7-5750-4f87-977f-c3268f1f841c.png)
adam added the type: bugstatus: accepted labels 2025-12-29 19:34:18 +01:00
adam closed this issue 2025-12-29 19:34:18 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jan 11, 2022):

@mrmrcoleman would you like to take this one?

@jeremystretch commented on GitHub (Jan 11, 2022): @mrmrcoleman would you like to take this one?
Author
Owner

@mcoleman-NS1 commented on GitHub (Jan 12, 2022):

I'll take it!

@mcoleman-NS1 commented on GitHub (Jan 12, 2022): I'll take it!
Author
Owner

@jeremystretch commented on GitHub (Feb 3, 2022):

Going to snag this real quick for v3.1.7.

@jeremystretch commented on GitHub (Feb 3, 2022): Going to snag this real quick for v3.1.7.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#5925