Cannot edit IP addresses which have a NAT IP that is assigned to a VM without a cluster #10997
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v3.3.8
Python version
3.8
Steps to Reproduce
Assign an IP to an interface of a VM that doesn't have a cluster
Set NAT IP (Inside) of an IP Address to the IP referenced in 1st point
Try to edit the IP address referenced in 2nd point
You get an error:
File "/opt/netbox/netbox/ipam/forms/models.py", line 432, in init
initial['nat_cluster'] = nat_inside_parent.virtual_machine.cluster.pk
AttributeError: 'NoneType' object has no attribute 'pk'
Expected Behavior
The Edit view should be rendered
Observed Behavior
An AttributeError: 'NoneType' object has no attribute 'pk' is raised
The text was updated successfully, but these errors were encountered: