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

[action] [PR:15573] sonic-mgmt: fix port toggle timeout on many ports #15673

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

mssonicbld
Copy link
Collaborator

Description of PR

Summary: For topologies leveraging many ports, such as in the case of t0-isolated-d128u128s2, the timeout for non-Mellanox fixed-chassis devices is a static value and is too low for the number of ports being configured. This change moves fixed-chassis Broadcom devices to use a proportional timeout, same as what is currently done for Mellanox devices.

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?

Change to a proportoinal port toggle timeout for fixed-chassis Broadcom devices, so that such devices with a large number of interfaces (as used in certain topos) can pass tests that utilize the common port_toggle helper.

How did you do it?

Extended the proprtional timeout functionality used for Mellanox devices to Broadcom devices as well (fixed-chassis only).

How did you verify/test it?

Ran the acl/test_acl.py::TestAclWithPortToggle tests and confirmed that they no longer fail.

Any platform specific information?

Verification run on Arista-7060X6-64PE-C256S2.

For topologies leveraging many ports, such as in
the case of t0-isolated-d128u128s2, the timeout
for non-mellanox fixed-chassis devices is a
static value and is too low for the number of
ports being configured.

In contrast, Mellanox devices use a timeout
proportional to the number of ports being
toggled. This change moves fixed-chassis
broadcom devices to use a proportional timeout
as well.
@mssonicbld
Copy link
Collaborator Author

Original PR: #15573

@mssonicbld mssonicbld merged commit 29bf36f into sonic-net:202405 Nov 21, 2024
13 checks passed
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