Skip to content
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

Added ModifyTableEntry method for modifying table entries in P4Runtime #601

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Abhinavcode13
Copy link
Contributor

@Abhinavcode13 Abhinavcode13 commented Apr 19, 2024

@jafingerhut , PTAL.

  • Added a method to the P4Runtime that allows modification of table entries.
  • Includes an optional parameter for previewing changes without committing them to the device.

@Abhinavcode13 Abhinavcode13 changed the title Added ModifyTableEntry method to P4Runtime API wrapper for modifying table entries Added ModifyTableEntry method for modifying table entries in P4Runtime Apr 19, 2024
print("P4Runtime Modify: ", request)
else:
self.client_stub.Write(request)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested it?

It would be good to test not only for modifying a normal entry of a table, but also test it to see if it works when modifying a default action of a table.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please provide an approach on how to effectively test the ModifyTableEntry method to ensure it handles modifications of both normal entries and default actions?

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