Skip to content

[Mellanox]Get a valid mac adderss for Mellanox switch in test_host_vlan#5869

Merged
liat-grozovik merged 1 commit intosonic-net:masterfrom
congh-nvidia:fix_host_vlan_test
Jun 28, 2022
Merged

[Mellanox]Get a valid mac adderss for Mellanox switch in test_host_vlan#5869
liat-grozovik merged 1 commit intosonic-net:masterfrom
congh-nvidia:fix_host_vlan_test

Conversation

@congh-nvidia
Copy link
Copy Markdown
Contributor

Description of PR

Summary:
The host vlan test now configures a new mac address(00:11:22:33:44:55) other than the switch mac on a vlan interface.
But for Mellanox asics, there is a restriction that we don't support this kind of mac address, because this address is not under the same prefix(36-38 bits) of the switch mac.
So need to add a new logic to get a valid mac address for the vlan interface on Mellanox duts.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012

Approach

What is the motivation for this PR?

Run host vlan test successfully on Mellanox asics.

How did you do it?

Adding a new logic, if the asic is Mellanox, flap the bits in the last octet to generate a new mac address for the test instead of "00:11:22:33:44:55".

How did you verify/test it?

Run test on spc1/spc2/spc3 duts, all passed.

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

The test need to configure a new mac address other than the switch mac on a vlan interface. The community uses "00:11:22:33:44:55" as the new address. But for our asics, we don't support this kind of mac address. So add a new logic to get a valid mac address for Mellanox duts.
@congh-nvidia congh-nvidia requested a review from a team as a code owner June 24, 2022 07:31
@liat-grozovik liat-grozovik merged commit 326f9fb into sonic-net:master Jun 28, 2022
@congh-nvidia congh-nvidia deleted the fix_host_vlan_test branch October 17, 2024 02:11
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.

3 participants