Allow IPv6 addresses for ERSPAN sessions - #4763
Open
Lip-sun wants to merge 1 commit into
Open
Conversation
|
|
Collaborator
|
/azp run |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Lip-sun
force-pushed
the
fix/3747-ipv6-erspan-cli
branch
from
August 9, 2026 16:45
8204f0f to
39dab7d
Compare
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Collaborator
|
Hi, there are workflow run(s) waiting for approval, you may be first-time contributor. I will notify maintainers to help approve once PR is approved. Thanks! ---Powered by SONiC BuildBot
|
Signed-off-by: Lip <127746398+Lip-sun@users.noreply.github.com>
Lip-sun
force-pushed
the
fix/3747-ipv6-erspan-cli
branch
from
August 10, 2026 07:15
39dab7d to
16f2d5d
Compare
Collaborator
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
Lip-sun
marked this pull request as ready for review
August 10, 2026 08:10
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
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.
Fixes #3747
Summary
config mirror_session erspan add.config mirror_session addcommand IPv4-only.Root cause
The nested ERSPAN command used
validate_ipv4_addressfor both endpoints, so valid IPv6 addresses were rejected beforeadd_erspan()could update CONFIG_DB.Validation
python3 -m py_compile config/main.py tests/config_mirror_session_test.pygit diff --checksonic_utilitieswheel with sonic-buildimage.MIRROR_SESSIONCONFIG_DB entry.Test note
The targeted pytest suite was not run locally because an unrelated
sonic_config_engineprerequisite test fails in this local VS build environment while locating platform metadata. The functional QEMU validation above completed successfully.