Skip to content

[schema]: Add CoPP trap capability table to state_db#1010

Merged
qiluo-msft merged 2 commits intosonic-net:masterfrom
rminnikanti:neighbor_miss
May 30, 2025
Merged

[schema]: Add CoPP trap capability table to state_db#1010
qiluo-msft merged 2 commits intosonic-net:masterfrom
rminnikanti:neighbor_miss

Conversation

@rminnikanti
Copy link
Copy Markdown
Contributor

@rminnikanti rminnikanti commented Apr 22, 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 rminnikanti@marvell.com

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@rminnikanti
Copy link
Copy Markdown
Contributor Author

@prsunny Can we merge this PR?

HLD: sonic-net/SONiC#1943

Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@rminnikanti
Copy link
Copy Markdown
Contributor Author

/azpw run Azure.sonic-swss-common

@mssonicbld
Copy link
Copy Markdown
Collaborator

/AzurePipelines run Azure.sonic-swss-common

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@rminnikanti
Copy link
Copy Markdown
Contributor Author

Hi @qiluo-msft, Some of the PR checks are getting cancelled. This PR has only DB table name addition in schema.h and PR check cancel/failure reason are not related to this PR. Could you please help look into this?

PR check cancellation reason:

##[error]No config name or imagelabel provided in request
##[error]The remote provider was unable to process the request.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft
Copy link
Copy Markdown
Contributor

Hi @qiluo-msft, Some of the PR checks are getting cancelled. This PR has only DB table name addition in schema.h and PR check cancel/failure reason are not related to this PR. Could you please help look into this?

PR check cancellation reason:

##[error]No config name or imagelabel provided in request
##[error]The remote provider was unable to process the request.

Merged the latest master, and retrigger the PR build.

@qiluo-msft
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@qiluo-msft
Copy link
Copy Markdown
Contributor

all the PR checkers actually passed.
image

@qiluo-msft qiluo-msft merged commit cbb7176 into sonic-net:master May 30, 2025
15 checks passed
@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202505: #1035

mssonicbld added a commit to mssonicbld/sonic-swss that referenced this pull request Aug 5, 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](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:

- Depends on: sonic-net/sonic-swss-common#1010
- Depends on: sonic-net/sonic-sairedis#1586

Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
mssonicbld added a commit to sonic-net/sonic-swss that referenced this pull request Aug 7, 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](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:

- Depends on: sonic-net/sonic-swss-common#1010
- Depends on: sonic-net/sonic-sairedis#1586

Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
mssonicbld added a commit to mssonicbld/sonic-swss.msft that referenced this pull request Aug 20, 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](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:

- Depends on: sonic-net/sonic-swss-common#1010
- Depends on: sonic-net/sonic-sairedis#1586

Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
mssonicbld added a commit to Azure/sonic-swss.msft that referenced this pull request Aug 20, 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](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:

- Depends on: sonic-net/sonic-swss-common#1010
- Depends on: sonic-net/sonic-sairedis#1586

Signed-off-by: Ravi Minnikanti <rminnikanti@marvell.com>
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.

7 participants