Skip to content

CoPP Neighbor Miss Trap and Other Enhancements HLD#1943

Merged
prsunny merged 2 commits intosonic-net:masterfrom
rminnikanti:neighbor_miss
Jun 9, 2025
Merged

CoPP Neighbor Miss Trap and Other Enhancements HLD#1943
prsunny merged 2 commits intosonic-net:masterfrom
rminnikanti:neighbor_miss

Conversation

@rminnikanti
Copy link
Contributor

@rminnikanti rminnikanti commented Mar 7, 2025

HLD for CoPP Neighbor Miss Trap type support and Other CoPP Enhancements

What we did:

  • Added support for new Neighbor Miss trap type and its default CoPP configuration.
  • Introduced SAI enum capability query in orchagent to identify SAI neighbor miss trap support and publish the supported trap types to STATE_DB for application visibility
  • Introduced CoPP CLI support to display trap CoPP configuration and their status.

PRs:

Repository PR Title State
sonic-swss-common sonic-net/sonic-swss-common#1010 PR Status
sonic-sairedis sonic-net/sonic-sairedis#1586 PR Status
sonic-swss sonic-net/sonic-swss#3624 PR Status
sonic-buildimage sonic-net/sonic-buildimage#22406 PR Status
sonic-utilities sonic-net/sonic-utilities#3863 PR Status
sonic-mgmt sonic-net/sonic-mgmt#18326 PR Status

@mssonicbld
Copy link
Collaborator

/azp run

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 7, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@azure-pipelines
Copy link

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@prsunny
Copy link
Contributor

prsunny commented Mar 12, 2025

@prabhataravind , please review as this should cover subnet trap.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@dgsudharsan
Copy link
Contributor

Can you please test trap flow counters with this feature?

@zhangyanzhao zhangyanzhao moved this to 🏗 In Progress in SONiC 202505 Release Apr 1, 2025
rminnikanti added a commit to rminnikanti/sonic-swss that referenced this pull request Apr 22, 2025
What I did
* Added neighbor_miss trap type support
* enum capability query for hostif trap type
* Added trap hw_status field to state_db

HLD: sonic-net/SONiC#1943

Signed-off-by: Ravi Minnikanti <[email protected]>
@prsunny
Copy link
Contributor

prsunny commented Jun 9, 2025

@prabhataravind , Merging the HLD. Please review #3624

@prsunny prsunny merged commit 9007c5e into sonic-net:master Jun 9, 2025
1 check passed
rminnikanti added a commit to rminnikanti/sonic-utilities that referenced this pull request Jun 10, 2025
What I did:
CoPP show commands:
* show copp configuration
* show copp configuration detailed --trapid <trap_id>
* show copp configuration detailed --group <group>

Added UT for the CLI commands.

HLD: sonic-net/SONiC#1943

Signed-off-by: Ravi Minnikanti <[email protected]>
rminnikanti added a commit to rminnikanti/sonic-swss that referenced this pull request Jun 10, 2025
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: Ravi Minnikanti <[email protected]>
saiarcot895 added a commit to sonic-net/sonic-sairedis that referenced this pull request Jun 10, 2025
* [vslib]: hostif enum capability query API support

1. vslib support for SAI_OBJECT_TYPE_HOSTIF_TRAP,
   attribute - SAI_HOSTIF_TRAP_ATTR_TRAP_TYPE
2. Added UT for SAI_OBJECT_TYPE_HOSTIF_TRAP
3. Added UT for SAI_OBJECT_TYPE_DEBUG_COUNTER

HLD: sonic-net/SONiC#1943

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

* Added comments in unittest

Added unittest comments to satisfy PR checks.

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

---------

Signed-off-by: Ravi Minnikanti <[email protected]>
Co-authored-by: Saikrishna Arcot <[email protected]>
qiluo-msft pushed a commit to sonic-net/sonic-utilities that referenced this pull request Jun 13, 2025
What I did:

Added CoPP show commands:

show copp configuration
show copp configuration detailed --trapid <trap_id>
show copp configuration detailed --group <group>
Added UT for the CLI commands.

Why I did it

Details in HLD: sonic-net/SONiC#1943

How to verify it

Verified with UT
rminnikanti added a commit to rminnikanti/sonic-swss that referenced this pull request Jun 17, 2025
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: Ravi Minnikanti <[email protected]>
rminnikanti added a commit to rminnikanti/sonic-swss that referenced this pull request Jun 22, 2025
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: Ravi Minnikanti <[email protected]>
nmoray pushed a commit to nmoray/sonic-utilities that referenced this pull request Jun 25, 2025
What I did:

Added CoPP show commands:

show copp configuration
show copp configuration detailed --trapid <trap_id>
show copp configuration detailed --group <group>
Added UT for the CLI commands.

Why I did it

Details in HLD: sonic-net/SONiC#1943

How to verify it

Verified with UT
rminnikanti added a commit to rminnikanti/sonic-swss that referenced this pull request Jun 26, 2025
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: Ravi Minnikanti <[email protected]>
mssonicbld added a commit to mssonicbld/sonic-swss-common that referenced this pull request Jul 3, 2025
**What I did**

Added the `COPP_TRAP_CAPABILITY_TABLE` table definition to schema.h

**Why I did it**

Details in HLD: sonic-net/SONiC#1943

**How I verified it**
NA

**Details if related**

Signed-off-by: Ravi Minnikanti <[email protected]>
mssonicbld added a commit to mssonicbld/sonic-sairedis that referenced this pull request Jul 3, 2025
**What I did**

vslib support for hostif trap object - SAI_OBJECT_TYPE_HOSTIF_TRAP,
attribute - SAI_HOSTIF_TRAP_ATTR_TRAP_TYPE
Implementation returns all trap types as supported.

**Why I did**

Details in HLD: sonic-net/SONiC#1943

**How I verified it**

Verified with UT and DVS

Signed-off-by: Ravi Minnikanti <[email protected]>
rminnikanti added a commit to rminnikanti/sonic-utilities that referenced this pull request Jul 7, 2025
What I did:
CoPP show commands:
* show copp configuration
* show copp configuration detailed --trapid <trap_id>
* show copp configuration detailed --group <group>

Added UT for the CLI commands.

HLD: sonic-net/SONiC#1943

Signed-off-by: Ravi Minnikanti <[email protected]>
rminnikanti added a commit to rminnikanti/sonic-swss that referenced this pull request Jul 7, 2025
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: Ravi Minnikanti <[email protected]>
yejianquan pushed a commit to sonic-net/sonic-utilities that referenced this pull request Jul 9, 2025
What I did:
CoPP show commands:
* show copp configuration
* show copp configuration detailed --trapid <trap_id>
* show copp configuration detailed --group <group>

Added UT for the CLI commands.

HLD: sonic-net/SONiC#1943

Signed-off-by: Ravi Minnikanti <[email protected]>
rminnikanti added a commit to rminnikanti/sonic-swss that referenced this pull request Jul 11, 2025
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: Ravi Minnikanti <[email protected]>
yejianquan added a commit to sonic-net/sonic-sairedis that referenced this pull request Jul 12, 2025
**What I did**

vslib support for hostif trap object - SAI_OBJECT_TYPE_HOSTIF_TRAP,
attribute - SAI_HOSTIF_TRAP_ATTR_TRAP_TYPE
Implementation returns all trap types as supported.

**Why I did**

Details in HLD: sonic-net/SONiC#1943

**How I verified it**

Verified with UT and DVS

Signed-off-by: Ravi Minnikanti <[email protected]>
Co-authored-by: Jianquan Ye <[email protected]>
mssonicbld added a commit to sonic-net/sonic-swss-common that referenced this pull request Jul 14, 2025
**What I did**

Added the `COPP_TRAP_CAPABILITY_TABLE` table definition to schema.h

**Why I did it**

Details in HLD: sonic-net/SONiC#1943

**How I verified it**
NA

**Details if related**

Signed-off-by: Ravi Minnikanti <[email protected]>
rminnikanti added a commit to rminnikanti/sonic-swss that referenced this pull request Jul 15, 2025
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: Ravi Minnikanti <[email protected]>
rminnikanti added a commit to rminnikanti/sonic-buildimage that referenced this pull request Jul 15, 2025
Added copp default configuration for neighbor_miss trap type
to copp_cfg.json

HLD: sonic-net/SONiC#1943

Signed-off-by: Ravi Minnikanti <[email protected]>
prsunny pushed a commit to sonic-net/sonic-swss that referenced this pull request Jul 15, 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: MovedToBacklog

Development

Successfully merging this pull request may close these issues.

7 participants