netbox-sync icon indicating copy to clipboard operation
netbox-sync copied to clipboard

Skip IP creating if no matching prefix was found

Open smasharov opened this issue 1 year ago • 3 comments

We have a lot of different VRFs, IPs within them are often overlapped.

In the current version IP will be created in the most specific prefix, but in our case it can be wrong if the prefix within the proper VRF was not created.

Even if I create the exact prefix later, IP will not be re-assigned during the next run.

Is it possible to create an option to skip creating the IP addresses, that do not have the exact prefix and create the list of them in the log to create the missing prefixes by hand?

Also it will be good to have an option to skip IP address creation if we have the same prefix in the two or more VRF

The only exclude from this rule should be addresses with /32 netmask

smasharov avatar Jun 06 '24 09:06 smasharov

Another option is to assign these addresses to separate "unknown" VRF

smasharov avatar Jun 06 '24 14:06 smasharov

Hi,

It would be possible to add a skip_ip_address_without_matching_prefix to the config options.

bb-Ricardo avatar Jun 06 '24 14:06 bb-Ricardo

It would be great, thanks!

smasharov avatar Jun 20 '24 18:06 smasharov

Hi,

sorry for the late reply. I got some time to work on the project. Does this issue still persist?

bb-Ricardo avatar Feb 19 '25 22:02 bb-Ricardo

Hi @smasharov,

I just pushed a commit to the development branch. I changed the behaviour and VRFs will be reassigned if a more specific VRF was found.

Would you be able to test this?

bb-Ricardo avatar Feb 26 '25 08:02 bb-Ricardo