Skip to content

[orchagent] CoPP neighbor miss trap and enhancements#3624

Merged
prsunny merged 3 commits intosonic-net:masterfrom
rminnikanti:neighbor_miss
Jul 15, 2025
Merged

[orchagent] CoPP neighbor miss trap and enhancements#3624
prsunny merged 3 commits intosonic-net:masterfrom
rminnikanti:neighbor_miss

Conversation

@rminnikanti
Copy link
Contributor

@rminnikanti rminnikanti commented Apr 22, 2025

What I did

  • Added neighbor_miss trap type support
  • enum capability query for hostif trap type in copporch.cpp
  • Added hw_status field to COPP_TRAP_TABLE table in state_db

Why I did it

HLD: sonic-net/SONiC#1943

How I verified it

Verified with test_copp.py DVS test
Verified on Sonic switch with and without neighbor_miss trap support by vendorSAI.

Details if related

PR Dependencies:

Signed-off-by: Ravi Minnikanti [email protected]

@rminnikanti rminnikanti requested a review from prsunny as a code owner April 22, 2025 14:34
@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).

@rminnikanti
Copy link
Contributor Author

@prsunny @kcudnik PR check compilation failing because of dependency on sonic-swss-common PR - sonic-net/sonic-swss-common#1010
Can you please suggest if there is a way to run PR checks with dependencies?

@kcudnik
Copy link
Contributor

kcudnik commented Apr 25, 2025

there is no way to run code without dependency checked in, technically you could modify azure pipeline to pull swss common at specific commit, compile it and then build against that, but this is not standard approach and it would break everything else

@rminnikanti
Copy link
Contributor Author

Thank you for your response. Can the dependency PR be merged to allow the PR checks to run on this PR?
dependency - sonic-net/sonic-swss-common#1010

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@msherif1234
Copy link

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rminnikanti
Copy link
Contributor Author

do you need to also update mock test json file https://github.com/sonic-net/sonic-swss/pull/3646/files#diff-7a754ce5badfcc6c7f079baabf320c731eab42f9f98194df7ec53eccb0e6064bR106 ?

mock_tests/copp_cfg.json is being used in coppmgrd UT.
I still updated it as suggested for consistency.

@msherif1234
Copy link

I created PR under sonic-mgmt to add new CoPP configs for this new trap type PTAL
sonic-net/sonic-mgmt#18480

@rminnikanti
Copy link
Contributor Author

I created PR under sonic-mgmt to add new CoPP configs for this new trap type PTAL sonic-net/sonic-mgmt#18480

@msherif1234 I have sonic-mgmt implemented for this HLD which already covers validating neighbor_miss traffic with default 200PPS if the neighbor_miss trap is supported sonic-net/sonic-mgmt#18326

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@prsunny
Copy link
Collaborator

prsunny commented Jul 15, 2025

@rminnikanti , please don't force-push any commit. Reviewers prefer to understand the incremental changes

@rminnikanti
Copy link
Contributor Author

@prsunny Sure, noted. Any new changes I made different commits for viz.

@prsunny
Copy link
Collaborator

prsunny commented Jul 15, 2025

@dgsudharsan , can you please approve?

@prsunny prsunny merged commit 9d74a49 into sonic-net:master Jul 15, 2025
15 checks passed
@prsunny
Copy link
Collaborator

prsunny commented Jul 15, 2025

@prabhataravind for viz

@yejianquan
Copy link

@prsunny @prabhataravind please suggest whether it's safe to go to 202505,
If so I prefer so take it, since most changes for Neighbor miss trap(sonic-net/SONiC#1943) has been in 202505 branch

bobby-nexthop pushed a commit to bobby-nexthop/sonic-swss that referenced this pull request Jul 24, 2025
* [orchagent] CoPP neighbor miss trap and enhancements

What I did
* Added neighbor_miss trap type support
* enum capability query for hostif trap type
* Added trap hw_status field to state_db
* Added UT and mock tests

HLD: sonic-net/SONiC#1943
@Aravind-Subbaroyan
Copy link

@prsunny - can this be cherry-picked for 202411?

@prsunny
Copy link
Collaborator

prsunny commented Aug 4, 2025

@prsunny - can this be cherry-picked for 202411?

unfortunately no. 202411 is already a stable branch and this feature tests are still not yet merged

@mssonicbld
Copy link
Collaborator

Cherry-pick PR to 202505: #3811

vivekrnv pushed a commit to vivekrnv/sonic-swss that referenced this pull request Aug 8, 2025
* [orchagent] CoPP neighbor miss trap and enhancements

What I did
* Added neighbor_miss trap type support
* enum capability query for hostif trap type
* Added trap hw_status field to state_db
* Added UT and mock tests

HLD: sonic-net/SONiC#1943
@mssonicbld
Copy link
Collaborator

Cherry-pick PR to msft-202506: Azure/sonic-swss.msft#138

Janetxxx pushed a commit to Janetxxx/sonic-swss that referenced this pull request Nov 10, 2025
* [orchagent] CoPP neighbor miss trap and enhancements

What I did
* Added neighbor_miss trap type support
* enum capability query for hostif trap type
* Added trap hw_status field to state_db
* Added UT and mock tests

HLD: sonic-net/SONiC#1943
balanokia pushed a commit to balanokia/sonic-swss that referenced this pull request Nov 17, 2025
* [orchagent] CoPP neighbor miss trap and enhancements

What I did
* Added neighbor_miss trap type support
* enum capability query for hostif trap type
* Added trap hw_status field to state_db
* Added UT and mock tests

HLD: sonic-net/SONiC#1943
theasianpianist pushed a commit to theasianpianist/sonic-swss that referenced this pull request Feb 4, 2026
* [orchagent] CoPP neighbor miss trap and enhancements

What I did
* Added neighbor_miss trap type support
* enum capability query for hostif trap type
* Added trap hw_status field to state_db
* Added UT and mock tests

HLD: sonic-net/SONiC#1943
Signed-off-by: Lawrence Lee <[email protected]>
baorliu pushed a commit to baorliu/sonic-swss that referenced this pull request Feb 23, 2026
* [orchagent] CoPP neighbor miss trap and enhancements

What I did
* Added neighbor_miss trap type support
* enum capability query for hostif trap type
* Added trap hw_status field to state_db
* Added UT and mock tests

HLD: sonic-net/SONiC#1943
Signed-off-by: Baorong Liu <[email protected]>
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.

10 participants