diff --git a/dash-pipeline/SAI/specs/sai_spec.yaml b/dash-pipeline/SAI/specs/sai_spec.yaml index 92e16b7f3..41333d25a 100644 --- a/dash-pipeline/SAI/specs/sai_spec.yaml +++ b/dash-pipeline/SAI/specs/sai_spec.yaml @@ -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 diff --git a/dash-pipeline/SAI/utils/dash_p4/dash_sai_extensions.py b/dash-pipeline/SAI/utils/dash_p4/dash_sai_extensions.py index 19ae5bf26..897d99fbd 100644 --- a/dash-pipeline/SAI/utils/dash_p4/dash_sai_extensions.py +++ b/dash-pipeline/SAI/utils/dash_p4/dash_sai_extensions.py @@ -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):