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

IPaddr2: add support for same ip/netmask on different interfaces #59

Merged
merged 3 commits into from Apr 15, 2012
Merged

IPaddr2: add support for same ip/netmask on different interfaces #59

merged 3 commits into from Apr 15, 2012

Conversation

gockelhahn
Copy link

there are some (rare) use cases where you need to attach the same IP address on different interfaces ... later on that could be handled by policy routing

at the moment find_interface() finds all interfaces with the same IP/netmask,
the second IPaddr2 resource would not attach its IP since ip_served() is already "ok" ... afterwards when using ip_stop(), it cannot delete it (error)

there was an ugly but possible workaround by changing the netmask on each resource having the same IP (/32, /31, /30), but that leads into problems on the main routing table ...

with this patch ip_served() would say "ok" only if the specified or found nic serves the wanted IP

however the unique constraint on "ip" was NOT removed ... it is just a warning and might be still ok to check for false configuration since this use case is a rare exception?

Felix Bolte added 3 commits February 25, 2012 21:53
Signed-off-by: Felix Bolte <felix.bolte@zimory.com>
Signed-off-by: Felix Bolte <felix.bolte@zimory.com>
Signed-off-by: Felix Bolte <felix.bolte@zimory.com>
@dmuhamedagic
Copy link
Contributor

Many thanks for the effort!

dmuhamedagic added a commit that referenced this pull request Apr 15, 2012
IPaddr2: add support for same ip/netmask on different interfaces
@dmuhamedagic dmuhamedagic merged commit 52a3152 into ClusterLabs:master Apr 15, 2012
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

Successfully merging this pull request may close these issues.

None yet

2 participants