From 82008adea7aba97697172f99d19227b19c013336 Mon Sep 17 00:00:00 2001 From: mukeshmv Date: Mon, 28 Oct 2024 20:10:30 +0000 Subject: [PATCH] Mark appliance local region ID as create-only attribute --- dash-pipeline/bmv2/stages/pre_pipeline.p4 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dash-pipeline/bmv2/stages/pre_pipeline.p4 b/dash-pipeline/bmv2/stages/pre_pipeline.p4 index fc94c672b..b65fb2f64 100644 --- a/dash-pipeline/bmv2/stages/pre_pipeline.p4 +++ b/dash-pipeline/bmv2/stages/pre_pipeline.p4 @@ -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; }