Skip to content

Commit

Permalink
Add ability to provide @validonly tag
Browse files Browse the repository at this point in the history
  • Loading branch information
marian-pritsak authored Mar 11, 2024
1 parent 28e2ab5 commit d2027de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dash-pipeline/SAI/sai_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,8 @@ def _parse_sai_table_attribute_annotation(self, p4rt_anno_list: Dict[str, Any])
self.skipattr = str(kv['value']['stringValue'])
elif kv['key'] == 'match_type':
self.match_type = str(kv['value']['stringValue'])
elif kv['key'] == 'validonly':
self.validonly = str(kv['value']['stringValue'])
else:
raise ValueError("Unknown attr annotation " + kv['key'])

Expand Down

0 comments on commit d2027de

Please sign in to comment.