mirror of
https://github.com/bb-Ricardo/netbox-sync.git
synced 2026-05-08 11:00:12 -05:00
stops ip addresses assigned to FHRP groups from being reassigned
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user