You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PTF test omits the optional keys as they are, well, optional. However, the P4Runtime server still seems to expect some entry. Since any entry on tables with optional keys needs a priority but no priority is provided the response is an error. Is this behavior intended? Is it always required to supply a priority even though no optional key is present?
The P4Runtime API should require a priority value for any entries added to a table that has at least one field with match_kind ternary, range, or optional.
If the optional match_kind field should be a "match any value" in the entry, then the P4Runtime API spec says that the field should not be included in the TableEntry message, but the priority value must, as should any other key fields that are not completely wild-card in their match criteria.
Rationale for why the priority value must be included, in case it is not already obvious: If there are multiple table entries added, more than one of them could match the same lookup key. The data plane needs a way to determine which rule should win and have its action executed.
Trying to run a PTF test on the attached program fails with the message
This is the table:
The PTF test omits the optional keys as they are, well, optional. However, the P4Runtime server still seems to expect some entry. Since any entry on tables with optional keys needs a priority but no priority is provided the response is an error. Is this behavior intended? Is it always required to supply a priority even though no optional key is present?
bmv2_table_opt.p4.txt
bmv2_table_opt.json.txt
bmv2_table_opt.p4info.txt
bmv2_table_opt.py.txt
ptf.log
switchlog.txt
The text was updated successfully, but these errors were encountered: