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

Can't do a wildcard read for all tables #70

Open
pudelkoM opened this issue May 5, 2021 · 1 comment
Open

Can't do a wildcard read for all tables #70

pudelkoM opened this issue May 5, 2021 · 1 comment

Comments

@pudelkoM
Copy link
Contributor

pudelkoM commented May 5, 2021

Currently, the shell does not allow to construct and send wildcard reads for all tables (table_id = 0, spec).

Examples:

P4Runtime sh >>> te = TableEntry()
Please provide name for table

P4Runtime sh >>> te = table_entry[""]
table '' does not exist

P4Runtime sh >>> te = table_entry[]
  File "<ipython-input-11-f60488650eb6>", line 1
    te = table_entry[]
                     ^
SyntaxError: invalid syntax
@EmanueleGallone
Copy link
Contributor

EmanueleGallone commented May 29, 2021

Hi,
to list all the tables type tables within the shell.
image

Once you have all the tables listed, you can run a te.info() command for the table you're interested in.

Edit: I may have misinterpreted your issue.

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

No branches or pull requests

2 participants