Skip to content

Add multi-asic support for mirror capability check#4218

Closed
saksarav-nokia wants to merge 4 commits intosonic-net:masterfrom
saksarav-nokia:saksara-nokia-mirror
Closed

Add multi-asic support for mirror capability check#4218
saksarav-nokia wants to merge 4 commits intosonic-net:masterfrom
saksarav-nokia:saksara-nokia-mirror

Conversation

@saksarav-nokia
Copy link
Contributor

@saksarav-nokia saksarav-nokia commented Jan 23, 2026

What I did

Fixed the issue reported in sonic-net/sonic-buildimage#25162
In PR #4089, the code was added to check the mirror capability in STATE_DB for both ingress and egress mirror when the mirror session is configured. But this PR doesn't handle the multi-asic systems and hence it checks the capability in the global namespace and hence the mirror configuration fails for multi-asic systems.
Added code to pass the correct namespace and check the mirror capability in that corresponding asic namespace's STATE_DB

How I did it

n PR #4089, the code was added to check the mirror capability in STATE_DB for both ingress and egress mirror when the mirror session is configured. But this PR doesn't handle the multi-asic systems and hence it checks the capability in the global namespace and hence the mirror configuration fails for multi-asic systems.
Added code to pass the correct namespace and check the mirror capability in that corresponding asic namespace's STATE_DB

How to verify it

Verified the mirror configuration in multis-asic systems.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Signed-off-by: saksarav <sakthivadivu.saravanaraj@nokia.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saksarav-nokia
Copy link
Contributor Author

@stephenxs pls review

@saksarav-nokia
Copy link
Contributor Author

@arlakshm pls review

Signed-off-by: saksarav <sakthivadivu.saravanaraj@nokia.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: saksarav <sakthivadivu.saravanaraj@nokia.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: saksarav <sakthivadivu.saravanaraj@nokia.com>
@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@saksarav-nokia
Copy link
Contributor Author

closing this PR since #4159 already addressed this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants