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