Skip to content

Commit

Permalink
minor update.
Browse files Browse the repository at this point in the history
  • Loading branch information
r12f committed Jun 1, 2024
1 parent d7a5bc9 commit 7583b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions dash-pipeline/SAI/specs/sai_spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ api_types:
object_types:
- SAI_OBJECT_TYPE_DASH_ACL_GROUP
- SAI_OBJECT_TYPE_DASH_ACL_RULE
- SAI_OBJECT_TYPE_DASH_ACL_RULE
- SAI_OBJECT_TYPE_DASH_ACL_RULE
- SAI_OBJECT_TYPE_DASH_ACL_RULE
- SAI_OBJECT_TYPE_DASH_ACL_RULE
- SAI_OBJECT_TYPE_DASH_ACL_RULE
- SAI_OBJECT_TYPE_DIRECTION_LOOKUP_ENTRY
- SAI_OBJECT_TYPE_ENI_ETHER_ADDRESS_MAP_ENTRY
- SAI_OBJECT_TYPE_ENI
Expand Down
4 changes: 3 additions & 1 deletion dash-pipeline/SAI/utils/dash_p4/dash_sai_extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,14 @@ def post_parsing_process(self) -> None:
#
def to_sai(self) -> SaiSpec:
sai_spec = SaiSpec()
sai_spec.api_groups = [api_group.to_sai() for api_group in self.table_groups]

self.create_sai_api_types(sai_spec)
self.create_sai_object_types(sai_spec)
self.create_sai_object_entries(sai_spec)
self.create_sai_enums(sai_spec)
self.create_sai_port_counters(sai_spec.port_extenstion)
sai_spec.api_groups = [api_group.to_sai() for api_group in self.table_groups]

return sai_spec

def create_sai_api_types(self, sai_spec: SaiSpec):
Expand Down

0 comments on commit 7583b64

Please sign in to comment.