Closes #7769: Enable assignment of IP addresses to an existing FHRP group

This commit is contained in:
jeremystretch
2021-11-11 14:05:35 -05:00
parent 1f1ef4ffbf
commit c0c8f5a156
6 changed files with 63 additions and 49 deletions

View File

@@ -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