p4lang / tdi

Table-Driven Interface (TDI) for a P4-programmable backend device.
Apache License 2.0
40 stars 24 forks source link

info() command available inside table returning incorrect PIPE info details #130

Open dineshintel opened 1 year ago

dineshintel commented 1 year ago

From the application though I passed the pipe=1 to the INFO command that is available inside the table run from the PIPE-0, it returning the PIPE-0 table information instead of PIPE-1 table information.

The expectation is: It should return the PIPE-1 table information as passed pipe=1 as the param.

Our application would call the TDI code to get the info. But In the definition of TDILeaf.info() function. it will not receive PIPE-ID as parameter. TDILeaf.info(self, return_info, print_info)

The workaround we found is: If user wants to get the info for pipe1, then he has to go into pipe1 node in cli and run info(pipe=1).