Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAT Assignment clears when editing IP address. #1289

Closed
tcope0094 opened this issue Jun 19, 2017 · 6 comments
Closed

NAT Assignment clears when editing IP address. #1289

tcope0094 opened this issue Jun 19, 2017 · 6 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@tcope0094
Copy link

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.

@jeremystretch
Copy link
Member

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
Copy link
Member

Closing due to lack of activity.

@zevlag
Copy link
Contributor

zevlag commented 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
Copy link
Contributor

zevlag commented Jul 3, 2017

Step By Step

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

1addfirstip
2addsecondip
3viewsecondip
4editsecondip
5natmissingsecondip

@jeremystretch
Copy link
Member

Thanks, will have a look.

@jeremystretch jeremystretch reopened this Jul 3, 2017
@jeremystretch jeremystretch added the type: bug A confirmed report of unexpected behavior in the application label Jul 3, 2017
@jeremystretch
Copy link
Member

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.

lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants