[T2] Everflow - "erspan_ip_ver" support for the new recycle port queue tests#19594
Merged
rlhui merged 2 commits intosonic-net:masterfrom Jan 20, 2026
Merged
[T2] Everflow - "erspan_ip_ver" support for the new recycle port queue tests#19594rlhui merged 2 commits intosonic-net:masterfrom
rlhui merged 2 commits intosonic-net:masterfrom
Conversation
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
fc66748 to
5ba1952
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
11 tasks
Comment on lines
+711
to
+731
| for asic_index in duthost.get_frontend_asic_ids(): | ||
| if asic_index is not None: | ||
| # Adding IPv6 ERSPAN sessions for each asic, from the CLI is currently not supported. | ||
| command = f"sonic-db-cli -n asic{asic_index} CONFIG_DB HSET " \ | ||
| f"'MIRROR_SESSION|{session_info['session_name']}' " \ | ||
| f"'dscp' '{session_info['session_dscp']}' " \ | ||
| f"'dst_ip' '{session_info['session_dst_ipv6']}' " \ | ||
| f"'gre_type' '{session_info['session_gre']}' " \ | ||
| f"'type' '{session_info['session_type']}' " \ | ||
| f"'src_ip' '{session_info['session_src_ipv6']}' 'ttl' '{session_info['session_ttl']}'" | ||
| if queue_num: | ||
| command += f" 'queue' {queue_num}" | ||
| if policer: | ||
| command += f" 'policer' {policer}" | ||
| else: | ||
| # Adding IPv6 ERSPAN sessions, from the CLI is currently not supported. | ||
| command = f"sonic-db-cli CONFIG_DB HSET 'MIRROR_SESSION|{session_info['session_name']}' " \ | ||
| f"'dscp' '{session_info['session_dscp']}' " \ | ||
| f"'dst_ip' '{session_info['session_dst_ipv6']}' " \ | ||
| f"'gre_type' '{session_info['session_gre']}' " \ | ||
| f"'src_ip' '{session_info['session_src_ipv6']}' 'ttl' '{session_info['session_ttl']}'" |
Contributor
There was a problem hiding this comment.
What's the reason for only setting the type attribute in multi-asic?
Won't we still need to set this for single-asic VOQ systems?
Contributor
Author
There was a problem hiding this comment.
Thanks for pointing it out. I missed adding it on the else part of the code. Updated the same.
5ba1952 to
9c70c88
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Closed
11 tasks
|
@arista-nwolfe , @abdosi reminder to re-review, thx |
arista-nwolfe
approved these changes
Oct 22, 2025
Comment on lines
+748
to
+774
| for asic_index in duthost.get_frontend_asic_ids(): | ||
| if asic_index is not None: | ||
| # Adding IPv6 ERSPAN sessions for each asic, from the CLI is currently not supported. | ||
| command = f"sonic-db-cli -n asic{asic_index} CONFIG_DB HSET " \ | ||
| f"'MIRROR_SESSION|{session_info['session_name']}' " \ | ||
| f"'dscp' '{session_info['session_dscp']}' " \ | ||
| f"'dst_ip' '{session_info['session_dst_ipv6']}' " \ | ||
| f"'gre_type' '{session_info['session_gre']}' " \ | ||
| f"'type' '{session_info['session_type']}' " \ | ||
| f"'src_ip' '{session_info['session_src_ipv6']}' 'ttl' '{session_info['session_ttl']}'" | ||
| if queue_num: | ||
| command += f" 'queue' {queue_num}" | ||
| if policer: | ||
| command += f" 'policer' {policer}" | ||
| else: | ||
| # Adding IPv6 ERSPAN sessions, from the CLI is currently not supported. | ||
| command = f"sonic-db-cli CONFIG_DB HSET 'MIRROR_SESSION|{session_info['session_name']}' " \ | ||
| f"'dscp' '{session_info['session_dscp']}' " \ | ||
| f"'dst_ip' '{session_info['session_dst_ipv6']}' " \ | ||
| f"'gre_type' '{session_info['session_gre']}' " \ | ||
| f"'type' '{session_info['session_type']}' " \ | ||
| f"'src_ip' '{session_info['session_src_ipv6']}' 'ttl' '{session_info['session_ttl']}'" | ||
| if queue_num: | ||
| command += f" 'queue' {queue_num}" | ||
| if policer: | ||
| command += f" 'policer' {policer}" | ||
| commands_list.append(command) |
Contributor
There was a problem hiding this comment.
Could maybe reduce the code duplication here with:
if asic_index is not None:
command = f"sonic-db-cli -n asic{asic_index} "
else:
command = f"sonic-db-cli "
command += f"CONFIG_DB hset 'MIRROR_SESSION|{session_info['session_name']}' "\
<etc, all remaining commands should be common between single-asic and multi-asic>
Contributor
Author
There was a problem hiding this comment.
@arista-nwolfe , taken care. Removed the code duplication.
venu-nexthop
approved these changes
Oct 22, 2025
9c70c88 to
b6e60ee
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
b6e60ee to
163a61c
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Add missing session_type
163a61c to
ec20955
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
rlhui
approved these changes
Jan 20, 2026
mssonicbld
pushed a commit
to mssonicbld/sonic-mgmt
that referenced
this pull request
Jan 20, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test.
Collaborator
|
Cherry-pick PR to 202511: #22002 |
11 tasks
PriyanshTratiya
pushed a commit
to PriyanshTratiya/sonic-mgmt
that referenced
this pull request
Jan 21, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test. Signed-off-by: Priyansh Tratiya <ptratiya@microsoft.com>
saravanan-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Jan 22, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test. Signed-off-by: Saravanan Sellappa <saravanan@nexthop.ai>
justin-oliver
pushed a commit
to justin-oliver/sonic-mgmt
that referenced
this pull request
Jan 26, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test.
ytzur1
pushed a commit
to ytzur1/sonic-mgmt
that referenced
this pull request
Feb 2, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test. Signed-off-by: Yael Tzur <ytzur@nvidia.com>
abhishek-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Feb 6, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test.
Anirudh-nokia
pushed a commit
to Anirudh-nokia/sonic-mgmt-fork
that referenced
this pull request
Feb 6, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test. Signed-off-by: ayya <anirudh.ayya@nokia.com>
nnelluri-cisco
pushed a commit
to nnelluri-cisco/sonic-mgmt
that referenced
this pull request
Feb 12, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test. Signed-off-by: nnelluri-cisco <nnelluri@cisco.com>
rraghav-cisco
pushed a commit
to rraghav-cisco/sonic-mgmt
that referenced
this pull request
Feb 13, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test. Signed-off-by: Raghavendran Ramanathan <rraghav@cisco.com>
anilal-amd
pushed a commit
to anilal-amd/anilal-forked-sonic-mgmt
that referenced
this pull request
Feb 19, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test. Signed-off-by: Zhuohui Tan <zhuohui.tan@amd.com>
abhishek-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Mar 17, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test. Signed-off-by: Abhishek <abhishek@nexthop.ai>
venu-nexthop
pushed a commit
to venu-nexthop/sonic-mgmt
that referenced
this pull request
Mar 27, 2026
…e tests (sonic-net#19594) This PR adds erspan-ip-ver support to the newly added 'test_everflow_fwd_recircle_port_queue_check' It adds 'erspan_ip_ver' to the mirror session configuration for the respective test.
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 # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
How did you do it?
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation