stops ip addresses assigned to FHRP groups from being reassigned

This commit is contained in:
Noah
2025-08-25 12:17:22 +10:00
committed by Ricardo Bartels
parent 9e0b5cd2b2
commit fa494df9ae
+4
View File
@@ -2141,6 +2141,10 @@ class NBIPAddress(NetBoxObject):
object_type = data.get("assigned_object_type")
assigned_object = data.get("assigned_object_id")
if object_type == "ipam.fhrpgroup":
log.info("IP address assigned to FHRP group. Skipping.")
return
# used to track changes in object primary IP assignments
previous_ip_device_vm = None
is_primary_ipv4_of_previous_device = False