copp: fix UDLD skip check to cover all Nokia H5/H6 fanout variants - #27906
Merged
bingwang-ms merged 2 commits intoSep 14, 2026
Merged
Conversation
The UDLD skip logic in test_policer only matched the exact platform strings 'x86_64-nokia_ixr7220_h5_64o-r0' and 'x86_64-nokia_ixr7220_h6_64-r0'. Other Nokia H5/H6 port-count variants (e.g. x86_64-nokia_ixr7220_h6_128-r0, h5_64d, h5_32d) share the same Broadcom SAI/ASIC limitation -- only 'trap' is a supported packet action for the UDLD hostif trap, not 'forward' -- but were not covered by the exact-match list, so the test ran and failed instead of being skipped. Confirmed on str4-Nokia-7220-Th6p-leaf-1 (platform x86_64-nokia_ixr7220_h6_128-r0): the Broadcom SAI driver (_brcm_sai_create_hostif_trap_validate) rejects SAI_PACKET_ACTION_FORWARD/COPY/TRANSIT for SAI_HOSTIF_TRAP_TYPE_UDLD with SAI_STATUS_NOT_SUPPORTED / SAI_STATUS_INVALID_PARAMETER, so UDLD can only be trapped or dropped on this ASIC family, never forwarded. Replace the exact-match list with a regex that matches any x86_64-nokia_ixr7220_h5_*/h6_* platform, so all current and future port-count variants of these platforms are correctly skipped. Signed-off-by: Bing Wang <bingwang@microsoft.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
github-actions
Bot
requested review from
abdosi,
prabhataravind and
xwjiang-ms
September 14, 2026 18:45
Nexthop 4210 fanouts (platform x86_64-nexthop_4210-r0021, used e.g. by str4-nh4210-leaf-01) are also Broadcom-based and have empty COPP config with the same UDLD trap-only limitation as the Nokia H5/H6 and Arista 7060x6 fanouts, so extend the skip condition to cover them too. Signed-off-by: Bing Wang <bingwang@microsoft.com>
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
deerao02
approved these changes
Sep 14, 2026
12 tasks
Collaborator
|
Cherry-pick PR to msft-202512: Azure/sonic-mgmt.msft#1413 |
Collaborator
|
This PR has backport request label(s) for branch(es): msft-202512,202605, but is missing required test information. Please make sure you tick the tested branch(es) in the Tested branch section and provide test evidence (e.g., 202512: <test result>) in the Test result section as well in your PR description. ---Powered by SONiC BuildBot
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Summary:
Fixes the UDLD COPP policer test (
test_copp.py::TestCOPP::test_policer[UDLD]) incorrectly running (and failing) on Nokia H6-128 fanout, and potentially other untested Nokia H5/H6 port-count variants.Type of change
Back port request
Approach
What is the motivation for this PR?
PR #1233 (commit 4d8c483) added a skip for the UDLD policer test on Nokia H5/H6 SONiC fanouts, since these platforms' Broadcom SAI only supports
trap/droppacket actions for the UDLD hostif trap type, notforward— so UDLD frames never reach the DUT and the policer-rate assertion (expects a nonzero forwarded PPS) always fails.However, the skip only matched two exact platform strings:
Other Nokia H5/H6 port-count variants — e.g.
x86_64-nokia_ixr7220_h6_128-r0(used bystr4-Nokia-7220-Th6p-leaf-1),x86_64-nokia_ixr7220_h5_64d-r0,x86_64-nokia_ixr7220_h5_32d-r0— were not covered, even though they use the same ASIC/SAI family and have the identical limitation. As a result the test ran (rather than skipped) on those platforms and failed:How did you do it?
Verified directly on
str4-Nokia-7220-Th6p-leaf-1(platformx86_64-nokia_ixr7220_h6_128-r0) that the Broadcom SAI driver (_brcm_sai_create_hostif_trap_validateinbrcm_sai_host_intf.c) rejectsSAI_PACKET_ACTION_FORWARD/COPY/TRANSITforSAI_HOSTIF_TRAP_TYPE_UDLDwithSAI_STATUS_NOT_SUPPORTED/SAI_STATUS_INVALID_PARAMETER— onlytrapanddropare valid actions for this trap type on this ASIC family, confirming the same root cause as the original Arista/H5/H6-64 skip.Replaced the exact-match list with a regex match (
x86_64-nokia_ixr7220_h[56]_.*) so any current or future Nokia H5/H6 port-count variant is covered, instead of enumerating every SKU string individually.How did you verify/test it?
str4-Nokia-7220-Th6p-leaf-1(h6_128 platform) prior to the fix.sonic-buildimage/device/nokia/:h5_32d,h5_64d,h5_64o,h6_64,h6_128, while leaving the Arista match untouched.flake8/pre-commit checks pass on the modified file.Any platform specific information?
Nokia IXR-7220 H5/H6 family fanouts running SONiC (Broadcom TH5/TH6 based).
Supported testbed topology if it's a new test case?
N/A (existing test, fixing a platform-detection gap)
Documentation
N/A