Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faux-duplicate IPs (anycast or across VLANs) #344

Open
Azmodeszer opened this issue Sep 1, 2023 · 6 comments
Open

Faux-duplicate IPs (anycast or across VLANs) #344

Azmodeszer opened this issue Sep 1, 2023 · 6 comments

Comments

@Azmodeszer
Copy link

I'm running into a primary IP assignment warning:

WARNING: Current interface 'vNIC 1 (Office) (<SERVER1>)' for IP '1.2.3.4/21' and this one 'vNIC 1 (Virtual LAB) (<SERVER2>)' are both enabled. IP assignment skipped because it is unclear which one is the correct one!

Okay, fair enough, but the thing here is that that's two different VLANs, one used to simulate the other and exactly map it. So the IPs being the same is as it should be. The sync already imports the VLANs for each device's interface correctly, so is there a way to tell it to ignore the warning and set the IPs if the VLANs differ?

@Azmodeszer
Copy link
Author

Related to this, I'm also getting a lot of similar warnings where the IP in question has the anycast role (so again, assignment to both NICs makes sense). Is there a way around this in the settings.ini file? Netbox itself drops the duplicate IP warning if it detects the anycast role, wondering if the plugin has something analogous.

@Azmodeszer Azmodeszer changed the title Faux-duplicate IPs across VLANs Faux-duplicate IPs Dec 12, 2023
@Azmodeszer Azmodeszer changed the title Faux-duplicate IPs Faux-duplicate IPs (anycast or across VLANs) Dec 12, 2023
@bb-Ricardo
Copy link
Owner

Hi,

does your use case apply to AnyCast IP addresses only or are there other types of IP addresses where this also causes issues?

@Azmodeszer
Copy link
Author

Well, anycast and a few select cases with the VLANs from the opening post. I can live with the latter, since it's no doubt a very uncommon setup, but anycast IPs by their very nature shouldn't trigger the warning, no?

As far as I can see, all other cases are legitimate duplicate IPs that the plugin is right to warn about (our Netbox db still needs some major cleanup).

@bb-Ricardo
Copy link
Owner

For anycast it should definitely be possible. Will need to add a check if IP is defined as an anycast address. Gonna have a look into it.

@Azmodeszer
Copy link
Author

I'd very much appreciate it. Thank you!

@Azmodeszer
Copy link
Author

Any progress on this? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants