-
Notifications
You must be signed in to change notification settings - Fork 260
fix: Adding a constant hardware address to the veth #1524
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
Conversation
Adding the hardware address while endpoint creation
go lint errors
updating the IPAddr variable
| MacAddress: client.hostVethMac, | ||
| } | ||
|
|
||
| if err := client.netlink.SetOrRemoveLinkAddress(linkInfo, netlink.ADD, netlink.NUD_PERMANENT); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i meant have to change only for transparent singletenancy and not in other places. Lets update to NUD_PROBE here but not in other places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay my bad, just updated it.
| MacAddress: client.hostVethMac, | ||
| } | ||
|
|
||
| if err := client.netlink.SetOrRemoveLinkAddress(linkInfo, netlink.ADD, netlink.NUD_PERMANENT); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same goes here
tamilmani1989
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Reason for Change:
The hardware address(MAC address) assigned to the veth on the container is not same as the ARP entry in the pod creating pod-to-pod connectivity issue on Ubuntu 22.04 cluster using azure-cni.