Open Cyrilpop opened 5 months ago
Im having similar issue after I upgraded to netbox 3.7. The module is unable to detect if the ip already exsist to update it instead of trying to create a new ip.
I believe there was a new feature added to netbox where it checks if the ip exsist on a given VRF and it doesnt let you have duplicate ip on the same vrf.
My issue happens because I have a job that scans arp table on the devices and adds those IP to Netbox IPAM. Then when i try to add a device with an IP that already exsist in Netbox instead of trying to update that IP and attach it to the device it tries to create it and therefore gives this error.
"msg": "{\"address\":[\"Duplicate IP address found in global table: 10.0.2.62/32\"]}"}
Ansible NetBox Collection version
v2.14.2
Ansible version
NetBox version
v3.6.5
Python version
3.11
Steps to Reproduce
Expected Behavior
Possible bug in Ansible inventory regarding subnet mask. When changing the mask of an existing IP, the update should be reflected in Netbox without generating any errors.
Observed Behavior
When changing the subnet mask in the inventory, the following message is displayed, although the update should be performed without having to manually delete in Netbox.