Skip to content

[action] [PR:13314] Fix test_neighbor_mac on t1-lag and t1-64-lag#13608

Merged
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/13314
Jul 12, 2024
Merged

[action] [PR:13314] Fix test_neighbor_mac on t1-lag and t1-64-lag#13608
mssonicbld merged 1 commit intosonic-net:202405from
mssonicbld:cherry/202405/13314

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

A recent change applies this test to the topo of t1 and t1-variants:
#12952

The test can pass on topo t1 without any change.

For t1-lag or t1-64-lag, the Ethernet0 to test is in portchannel, so IP address cannot be set to it.

How did you do it?

The fix here is to remove the intf from the portchanenl before testing it.
Skip the test if Ethernet0 is not available or down at the beginning of test
Assert Ethernet0 is in routed state after removing it from portchannel

How did you verify/test it?

Run the test on t1-lag and t1-64-lag topo.

  • The test can pass
  • Verified in the log that removing and adding the member to PortChannel succeeded

Any platform specific information?

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

Documentation

* Fix test_neighbor_mac on t1-lag and t1-64-lag

A recent change sets this test to t1-only:
sonic-net#12952

The test can pass on topo t1 without any change.

For t1-lag or t1-64-lag, the Ethernet0 to test is in portchannel, so
IP address cannot be set to it. The fix here is to delete the intf
from the portchanenl before testing it.
@mssonicbld
Copy link
Collaborator Author

Original PR: #13314

@mssonicbld
Copy link
Collaborator Author

/azp run Azure.sonic-mgmt

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld mssonicbld merged commit 8b65ddc into sonic-net:202405 Jul 12, 2024
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.

2 participants