container: T6218: fix host IPv6 link-local address for VRF networks #3286
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Summary
Fix IPv6 EUI64 link-local address generation for host (
pod-
) interfaces assigned to a VRF.Currently, container networks that are assigned to a VRF result in not having a valid IPv6 link-local address on the host. This is due to the address being assigned and then the VRF being changed resulting in the loss of the link-local address.
Types of changes
Related Task(s)
Related PR(s)
Component(s) name
Proposed changes
Correct the ordering of the VRF assignment and link-local address generation logic. (Swap lines 476 and 477).
How to test
Create a container network that is assigned to any VRF other than default and ensure an IPv6 EUI64 link-local address is generated:
Configuration:
Verification:
Smoketest result
N/A
Checklist: