NAT Assignment clears when editing IP address. #1050

Closed
opened 2025-12-29 16:28:17 +01:00 by adam · 6 comments
Owner

Originally created by @tcope0094 on GitHub (Jun 19, 2017).

Issue type: Bug Report

Python version: 3.5
NetBox version: 2.0.7

When editing an existing IP address that has a NAT assignment, the NAT assignment clears when saving whatever changes are made.

For instance I edited an IP address to change the description, saved my changes and the NAT assignment was gone after saving the description changes.

So everytime I edit an IP address I have to add the NAT assignment back.

Originally created by @tcope0094 on GitHub (Jun 19, 2017). <!-- Please note: GitHub issues are to be used only for feature requests and bug reports. For installation assistance or general discussion, please join us on the mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please indicate "bug report" or "feature request" below. Be sure to search the existing set of issues (both open and closed) to see if a similar issue has already been raised. --> ### Issue type: Bug Report <!-- If filing a bug, please indicate the version of Python and NetBox you are running. (This is not necessary for feature requests.) --> **Python version:** 3.5 **NetBox version:** 2.0.7 <!-- If filing a bug, please record the exact steps taken to reproduce the bug and any errors messages that are generated. If filing a feature request, please precisely describe the data model or workflow you would like to see implemented, and provide a use case. --> When editing an existing IP address that has a NAT assignment, the NAT assignment clears when saving whatever changes are made. For instance I edited an IP address to change the description, saved my changes and the NAT assignment was gone after saving the description changes. So everytime I edit an IP address I have to add the NAT assignment back.
adam added the type: bug label 2025-12-29 16:28:17 +01:00
adam closed this issue 2025-12-29 16:28:18 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jun 19, 2017):

I'm not able to replicate this behavior. Could you please provide the list of steps needed to recreate the bug, beginning with creating a new IP?

@jeremystretch commented on GitHub (Jun 19, 2017): I'm not able to replicate this behavior. Could you please provide the list of steps needed to recreate the bug, beginning with creating a new IP?
Author
Owner

@jeremystretch commented on GitHub (Jun 28, 2017):

Closing due to lack of activity.

@jeremystretch commented on GitHub (Jun 28, 2017): Closing due to lack of activity.
Author
Owner

@zevlag commented on GitHub (Jul 3, 2017):

I'm suggesting we reopen this. It happens for me too!
Python 2.7.9
v2.0.8-dev

When I view an IP with a NAT Address assigned it's there:
screen shot 2017-07-03 at 9 55 42 am

But when I click "Edit" on the IP address, the NAT details don't load, and thus when I click "Update" the NAT Assignment is lost.
screen shot 2017-07-03 at 9 56 25 am
screen shot 2017-07-03 at 9 56 31 am

@zevlag commented on GitHub (Jul 3, 2017): I'm suggesting we reopen this. It happens for me too! Python 2.7.9 v2.0.8-dev When I view an IP with a NAT Address assigned it's there: ![screen shot 2017-07-03 at 9 55 42 am](https://user-images.githubusercontent.com/7240045/27800502-e2e1df5a-5fd6-11e7-8591-2b54ee12d808.png) But when I click "Edit" on the IP address, the NAT details don't load, and thus when I click "Update" the NAT Assignment is lost. ![screen shot 2017-07-03 at 9 56 25 am](https://user-images.githubusercontent.com/7240045/27800530-076c01e8-5fd7-11e7-8bdd-a91c48948fd3.png) ![screen shot 2017-07-03 at 9 56 31 am](https://user-images.githubusercontent.com/7240045/27800529-07693210-5fd7-11e7-9eeb-98f086776ce3.png)
Author
Owner

@zevlag commented on GitHub (Jul 3, 2017):

Step By Step

1AddFirstIP.png
2AddSecondIP.png
3ViewSecondIP.png
4EditSecondIP.png
5NATMissingSecondIP.png

1addfirstip
2addsecondip
3viewsecondip
4editsecondip
5natmissingsecondip

@zevlag commented on GitHub (Jul 3, 2017): Step By Step 1AddFirstIP.png 2AddSecondIP.png 3ViewSecondIP.png 4EditSecondIP.png 5NATMissingSecondIP.png ![1addfirstip](https://user-images.githubusercontent.com/7240045/27800841-58b09d2e-5fd8-11e7-9395-6c3f5634294b.png) ![2addsecondip](https://user-images.githubusercontent.com/7240045/27800843-58c08720-5fd8-11e7-87b8-5593d8b2d28c.png) ![3viewsecondip](https://user-images.githubusercontent.com/7240045/27800845-58ca3a7c-5fd8-11e7-914d-359832665191.png) ![4editsecondip](https://user-images.githubusercontent.com/7240045/27800842-58bffdd2-5fd8-11e7-8500-61f202d66468.png) ![5natmissingsecondip](https://user-images.githubusercontent.com/7240045/27800844-58c1e0f2-5fd8-11e7-9c86-7daa65153963.png)
Author
Owner

@jeremystretch commented on GitHub (Jul 3, 2017):

Thanks, will have a look.

@jeremystretch commented on GitHub (Jul 3, 2017): Thanks, will have a look.
Author
Owner

@jeremystretch commented on GitHub (Jul 5, 2017):

To provide additional context: This occurs only when the inside NAT IP address is not assigned to a device/interface. The problem is that the chained select widgets in the form are not allowing the initialization of the assigned NAT IP.

@jeremystretch commented on GitHub (Jul 5, 2017): To provide additional context: This occurs only when the inside NAT IP address is not assigned to a device/interface. The problem is that the chained select widgets in the form are not allowing the initialization of the assigned NAT IP.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1050