p4lang / tdi

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

TDI: supported attributes set is not initialized by TDI parser (the query the cfrontend will get the zero value). #42

Open weiqiand opened 2 years ago

weiqiand commented 2 years ago

TDI parser needs to parsing the attributes field and populate the attributes_set correctly instead of using the class initialized the value (ENTRY_SCOPE = 0). For the PortStat table, "supported_operations" : [], "attributes" : ["poll_intvl_ms"] For the PortCfg table: "supported_operations" : [], "attributes" : ["port_status_notif_cb"]