Skip to content
This repository has been archived by the owner on Mar 23, 2020. It is now read-only.

Ipv6 non virtual ip fix #6

Merged
merged 2 commits into from
Feb 4, 2020
Merged

Conversation

hardys
Copy link

@hardys hardys commented Feb 4, 2020

This is a port of openshift#1436 to the 4.3-ipv6 branch

I've tested this locally and it resolves the problem with prepending the non-virtual IP to the resolv.conf on the worker nodes.

In IPv6 DHCPv6 environments, the prefix for the IPv6 address that we
must use to bind services may be 128. In case that happens, the current
detection code will fail to consider the address as being in the right
subnet.

Thankfully, thanks to the Route Advertisements, we get the prefix
information we need from the routing table. This patch adds the extra
code to generate pseudo CIDRs that allow us to check if an address is in
the right subnet.

Signed-off-by: Antoni Segura Puimedon <[email protected]>
This patch simplifies filtering by:
* Calling iface_cidrs only once,
* Filtering out IPv6 addresses marked with the *deprecated* flag
* Allowing multiple filters

Signed-off-by: Antoni Segura Puimedon <[email protected]>
@russellb russellb merged commit fe51147 into openshift-kni:4.3-ipv6 Feb 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants