Skip to content

Commit

Permalink
Handle editing IPAddresses on VMInterfaces without parent.oob_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
bctiemann authored and jeremystretch committed Dec 16, 2024
1 parent 382e246 commit c0fec28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/ipam/forms/model_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def __init__(self, *args, **kwargs):
):
self.initial['primary_for_parent'] = True

if parent and (parent.oob_ip_id == self.instance.pk):
if parent and getattr(parent, 'oob_ip_id', None) == self.instance.pk:
self.initial['oob_for_parent'] = True

if type(instance.assigned_object) is Interface:
Expand Down

0 comments on commit c0fec28

Please sign in to comment.