Skip to content

Commit

Permalink
Create-only appliance local region ID
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshmv committed Oct 28, 2024
1 parent 891f406 commit cd6303b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions dash-pipeline/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,14 @@ DOCKER_RUN_SAITHRIFT_BLDR =\

# TODO - create separate rules for headers, libsai.so
.PHONY:sai
sai: sai-headers sai-meta libsai
sai: sai-headers

sai-headers: p4 docker-saithrift-bldr-image-exists | SAI/SAI
sai-headers: p4 docker-saithrift-bldr-image-exists
@echo "Generate SAI library headers and implementation..."

# Revert any local changes before generating the new specs.
git clean -xf SAI/specs
git checkout SAI/specs/*
#git clean -xf SAI/specs
#git checkout SAI/specs/*

mkdir -p SAI/lib

Expand Down
2 changes: 1 addition & 1 deletion dash-pipeline/SAI/SAI
Submodule SAI updated from 000349 to a075d2
2 changes: 1 addition & 1 deletion dash-pipeline/SAI/specs/dash_appliance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ sai_apis:
attr_value_field: u8
default: '0'
isresourcetype: false
flags: CREATE_AND_SET
flags: CREATE_ONLY
object_name: null
allow_null: false
valid_only: null
Expand Down
3 changes: 2 additions & 1 deletion dash-pipeline/SAI/utils/sai_spec/sai_attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def __init__(
self.attr_value_field = attr_value_field
self.default = default
self.isresourcetype = isresourcetype
print(f"attr {name} flag {flags}")
self.flags = flags
self.object_name = object_name
self.allow_null = allow_null
Expand All @@ -40,4 +41,4 @@ def merge(self, other: "SaiCommon"):

def deprecate(self) -> bool:
self.deprecated = True
return False
return False

0 comments on commit cd6303b

Please sign in to comment.