Skip to content

[DualTor][Mellanox]Fix dualtor mac move test for Mellanox platforms#7647

Merged
yxieca merged 1 commit intosonic-net:masterfrom
congh-nvidia:dualtor_mac_move
Mar 10, 2023
Merged

[DualTor][Mellanox]Fix dualtor mac move test for Mellanox platforms#7647
yxieca merged 1 commit intosonic-net:masterfrom
congh-nvidia:dualtor_mac_move

Conversation

@congh-nvidia
Copy link
Copy Markdown
Contributor

Change-Id: Ibb6edfe552d0623f297c65301bcbc61465786fb6

Description of PR

Summary:
In the test test_orchagent_mac_move.py, the last check is to verify after fdb is flushed, the traffic to the new neighbor should be dropped due to no fdb entry of the neighbor in the Vlan. However, on Mellanox platforms, the behavior is flooding the traffic instead of dropping it, which will cause the check to fail.
Since this is a valid behavior on Mellanox switches, need to skip this check in this case.

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

Make test test_orchagent_mac_move.py pass on Mellanox platforms.

How did you do it?

Skip the the check on active tor after fdb is flushed on Mellanox platforms.

How did you verify/test it?

By automation, test passed.

Any platform specific information?

The fix is only for Mellanox platforms.

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

Documentation

Skip the check on active tor after fdb is flushed on Mellanox platforms, because the check expects the traffic should be dropped when there is no fdb entry. But on Mellanox platforms the traffic will be flooded in the vlan, not dropped.

Change-Id: Ibb6edfe552d0623f297c65301bcbc61465786fb6
@liat-grozovik
Copy link
Copy Markdown
Collaborator

liat-grozovik commented Mar 6, 2023

@bingwang-ms could you please review or assign someone to do so?
@prsunny for awareness

@liat-grozovik
Copy link
Copy Markdown
Collaborator

@bingwang-ms @yxieca could you please help to review / merge?

@bingwang-ms
Copy link
Copy Markdown
Collaborator

@bingwang-ms @yxieca could you please help to review / merge?

Please confirm if we also need this workaround in 202012 and 202205. Thanks

@yxieca
Copy link
Copy Markdown
Collaborator

yxieca commented Mar 10, 2023

I think we need this change in 202205 but not 202012.

@yxieca yxieca merged commit f54c7e2 into sonic-net:master Mar 10, 2023
wangxin pushed a commit that referenced this pull request Mar 10, 2023
Skip the check on active tor after fdb is flushed on Mellanox platforms, because the check expects the traffic should be dropped when there is no fdb entry. But on Mellanox platforms the traffic will be flooded in the vlan, not dropped.
@congh-nvidia congh-nvidia deleted the dualtor_mac_move branch March 13, 2023 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants