Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark appliance local region ID as create-only attribute #634

Merged
merged 1 commit into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 3 additions & 1 deletion dash-pipeline/bmv2/stages/pre_pipeline.p4
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ control pre_pipeline_stage(inout headers_t hdr,
{
action accept() {}

action set_appliance(bit<8> local_region_id) {
action set_appliance(
@SaiVal[create_only="true"]
bit<8> local_region_id) {
meta.local_region_id = local_region_id;
}

Expand Down
Loading