Skip to content

[P4Orch] Add notification handler for p4rt. #3748

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

divyagayathri-hcl
Copy link

@divyagayathri-hcl divyagayathri-hcl commented Jul 7, 2025

What I did
Implemented handleP4rtNotification() to process runtime P4RT notifications received via AppDb.
Used enqueue() and drain() calls to apply updates to the P4 pipeline.

Why I did it
To enable dynamic, event-driven updates in SONiC’s P4RT pipeline.
P4RT-capable switches publish notification entries to AppDb; without this handler, P4Orch would ignore these updates.

How I verified it
Wrote unit tests that simulate SET and DEL notification entries.
Verified correct behavior through mocked SAI calls and test assertions.

Details if related
Test fixture P4OrchTest now initializes all required SAI mocks for independent verification.

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@divyagayathri-hcl divyagayathri-hcl marked this pull request as ready for review July 18, 2025 04:47
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@divyagayathri-hcl divyagayathri-hcl marked this pull request as draft July 30, 2025 05:12
@divyagayathri-hcl divyagayathri-hcl changed the title Add notification handler for p4rt. [P4Orch] Add notification handler for p4rt. Jul 30, 2025
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.

4 participants