p4lang / tdi

Table-Driven Interface (TDI) for a P4-programmable backend device.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dineshintel opened this issue · comments

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).