Skip to content

Commit

Permalink
[sai-gen] Use the first value of enum as default value. (#481)
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f authored Dec 13, 2023
1 parent 0841490 commit e720803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dash-pipeline/SAI/sai_api_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ def parse_p4rt(self, p4rt_enum):
SAITypeSolver.register_sai_type(
'sai_' + self.name + '_t',
"s32",
default = 'SAI_' + self.name.upper() + '_INVALID',
default = 'SAI_' + self.name.upper() + "_" + self.members[0].name.upper(),
is_enum = True)


Expand Down

0 comments on commit e720803

Please sign in to comment.