Skip to content

Commit

Permalink
Update table sorting.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Dec 12, 2023
1 parent b8e1490 commit 5630bb1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dash-pipeline/SAI/sai_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,8 @@ def __parse_sai_apis_from_p4rt(self, program, ignore_tables):
actions = self.__parse_sai_table_action(program[ACTIONS_TAG], self.sai_enums)

# Parse all tables into SAI API sets.
for table in program[TABLES_TAG]:
tables = sorted(program[TABLES_TAG], key=lambda k: k[PREAMBLE_TAG][NAME_TAG])
for table in tables:
sai_api_table_data = SAIAPITableData.from_p4rt(table, program, actions, ignore_tables)
if sai_api_table_data.ignored:
continue
Expand Down

0 comments on commit 5630bb1

Please sign in to comment.