p4runtime-shell icon indicating copy to clipboard operation
p4runtime-shell copied to clipboard

Can't do a wildcard read for all tables

Open pudelkoM opened this issue 4 years ago • 1 comments

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

pudelkoM avatar May 05 '21 19:05 pudelkoM

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.

EmanueleGallone avatar May 29 '21 09:05 EmanueleGallone