Skip to content

Commit

Permalink
Mark appliance local region ID as create-only attribute (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshmv authored Oct 28, 2024
1 parent 891f406 commit be2aa16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit be2aa16

Please sign in to comment.