Skip to content

Remove policer for MIRROR_SESSION creation on TH5 platform#19463

Merged
StormLiangMS merged 1 commit intosonic-net:masterfrom
Gfrom2016:policer_not_support
Jul 22, 2025
Merged

Remove policer for MIRROR_SESSION creation on TH5 platform#19463
StormLiangMS merged 1 commit intosonic-net:masterfrom
Gfrom2016:policer_not_support

Conversation

@Gfrom2016
Copy link
Copy Markdown
Contributor

@Gfrom2016 Gfrom2016 commented Jul 8, 2025

Description of PR

Summary:
Fixes # (issue)
To fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform.

E               2025 Jul  4 23:42:18.666920 str4-7060x6-512-1 ERR syncd#syncd: [none] SAI_API_MIRROR:_brcm_sai_create_mirror_session:2437 Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER.
E               
E               2025 Jul  4 23:42:18.666929 str4-7060x6-512-1 ERR syncd#syncd: [none] SAI_API_MIRROR:_brcm_sai_create_mirror_session:2523 Error processing mirror attributes

MSADO: 33479806

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202412
  • 202505

Approach

What is the motivation for this PR?

Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?

Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?

Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]

Signed-off-by: zitingguo-ms [email protected]

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Jul 10, 2025

since this feature needs to be supported by broadcom, it will be better to not doing this change. sorry, Ziting.

@Gfrom2016
Copy link
Copy Markdown
Contributor Author

since this feature needs to be supported by broadcom, it will be better to not doing this change. sorry, Ziting.

Sure, I'll close the PR.

@Gfrom2016 Gfrom2016 closed this Jul 10, 2025
@Gfrom2016 Gfrom2016 reopened this Jul 22, 2025
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@r12f
Copy link
Copy Markdown
Collaborator

r12f commented Jul 22, 2025

Confirmed with broadcom. This feature is not supported by hardware, hence it is the only way for now. LGTM.

Copy link
Copy Markdown
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@StormLiangMS StormLiangMS merged commit 7256742 into sonic-net:master Jul 22, 2025
19 checks passed
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jul 23, 2025
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #19777

mssonicbld pushed a commit that referenced this pull request Jul 23, 2025
What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]
r12f pushed a commit to Azure/sonic-mgmt.msft that referenced this pull request Jul 23, 2025
)

## What is the motivation for this PR?
This is a manual cherry pick of
sonic-net/sonic-mgmt#19463
Fix
generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite
failure on 202412 due to policer not supported for MIRROR_SESSION
creation on TH5 platform as Broadcom clarified it in CS00012412189:
[TH5-512]Error log "Platform does not support
SAI_MIRROR_SESSION_ATTR_POLICER".

## How did you do it?
Check the platform before building and verifying monitor session config,
remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

## How did you verify/test it?
Run
generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite
locally on 7060x6 and it passed.
```
generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]
```

Signed-off-by: zitingguo-ms <[email protected]>
rolin-arista pushed a commit to rolin-arista/sonic-mgmt-202505-snappi that referenced this pull request Jul 24, 2025
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]
ashutosh-agrawal pushed a commit to ashutosh-agrawal/sonic-mgmt that referenced this pull request Aug 14, 2025
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]

Signed-off-by: opcoder0 <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]

Signed-off-by: Guy Shemesh <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]

Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]

Signed-off-by: Guy Shemesh <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]

Signed-off-by: Guy Shemesh <[email protected]>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]

Signed-off-by: Yael Tzur <[email protected]>
auspham pushed a commit to auspham/sonic-mgmt that referenced this pull request Feb 3, 2026
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]
auspham pushed a commit to auspham/sonic-mgmt that referenced this pull request Feb 3, 2026
…#19463) (sonic-net#761)

What is the motivation for this PR?
Fix
generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite
failure on 202412 due to policer not supported for MIRROR_SESSION
creation on TH5 platform as Broadcom clarified it in CS00012412189:
[TH5-512]Error log "Platform does not support
SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config,
remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run
generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite
locally on 7060x6 and it passed.


generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite
PASSED [100%]
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
…#19463)

What is the motivation for this PR?
Fix generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite failure on 202412 due to policer not supported for MIRROR_SESSION creation on TH5 platform as Broadcom clarified it in CS00012412189: [TH5-512]Error log "Platform does not support SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config, remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite locally on 7060x6 and it passed.

generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite PASSED   [100%]
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.

7 participants