mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-20 12:22:23 -06:00
Closes #7769: Enable assignment of IP addresses to an existing FHRP group
This commit is contained in:
@@ -739,6 +739,12 @@ class IPAddressEditView(generic.ObjectEditView):
|
||||
except (ValueError, VMInterface.DoesNotExist):
|
||||
pass
|
||||
|
||||
elif 'fhrpgroup' in request.GET:
|
||||
try:
|
||||
obj.assigned_object = FHRPGroup.objects.get(pk=request.GET['fhrpgroup'])
|
||||
except (ValueError, FHRPGroup.DoesNotExist):
|
||||
pass
|
||||
|
||||
return obj
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user