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

Use ip mapped mac address for internal management port #4353

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jxiaobin
Copy link

What this PR does and why is it needed

Currently for management port of internal type, a randomly generated MAC address will be used, while for dpu case, the IP of management port will be mapped to mac address which in turn will be assigned to the port.
This commit changes the behavior of internal management port to make it align with that of dpu backed management port.

Which issue(s) this PR fixes

None

Special notes for reviewers

None

How to verify it

Check mac address of interface ovn-k8s-mp0, make sure it in the pattern of 0a:58:mm:xx:yy:zz, where mm:xx:yy:zz is the hexadecimal form of management port's IP address.

Details to documentation updates

None

Description for the changelog

For management port of internal type, generate MAC address by mapping its IP address to hexadecimal form.

Does this PR introduce a user-facing change?

No

@jxiaobin jxiaobin requested a review from a team as a code owner May 13, 2024 20:38
@jxiaobin jxiaobin force-pushed the ip-mapped-mgmt-mac branch 2 times, most recently from 8767cb5 to 0a6bf14 Compare May 20, 2024 20:42
@coveralls
Copy link

coveralls commented May 30, 2024

Coverage Status

Changes unknown
when pulling 070fbe8 on jxiaobin:ip-mapped-mgmt-mac
into ** on ovn-org:master**.

@jxiaobin jxiaobin force-pushed the ip-mapped-mgmt-mac branch 9 times, most recently from 36e5a4d to 860513b Compare June 2, 2024 20:55
@jxiaobin jxiaobin force-pushed the ip-mapped-mgmt-mac branch 3 times, most recently from 070fbe8 to 50dda6f Compare June 4, 2024 21:58
@flavio-fernandes
Copy link
Contributor

/lgtm

@flavio-fernandes
Copy link
Contributor

flake in external-gateway lane which is not related to this PR: #4139

Currently a randomly generated MAC address will be assigned to the
internal management interface, but in the case of dpu, the MAC will
be derived from the IP of management interface, for example, IP
10.244.2.2 will be mapped to MAC `0a:58:0a:f4:02:02`.
This commit makes both DPU and non-DPU cases to use IP derived
MAC address for the management interface.

Signed-off-by: Xiaobin Qu <[email protected]>
@github-actions github-actions bot added the area/unit-testing Issues related to adding/updating unit tests label Jun 5, 2024
@trozet trozet self-assigned this Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/unit-testing Issues related to adding/updating unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants