Skip to content

Commit 8c46e76

Browse files
Set SAI PL attribute based on ROUTING_TYPE
Signed-off-by: Lawrence Lee <[email protected]>
1 parent 37e347f commit 8c46e76

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

orchagent/dash/dashvnetorch.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,7 @@ void DashVnetOrch::addOutboundCaToPa(const string& key, VnetMapBulkContext& ctxt
295295

296296
for (auto action: route_type_actions.items())
297297
{
298-
if (action.action_type() == dash::route_type::ACTION_TYPE_4_to_6)
299-
{
300-
outbound_ca_to_pa_attr.id = SAI_OUTBOUND_CA_TO_PA_ENTRY_ATTR_ACTION;
301-
outbound_ca_to_pa_attr.value.u32 = SAI_OUTBOUND_CA_TO_PA_ENTRY_ACTION_SET_PRIVATE_LINK_MAPPING;
302-
outbound_ca_to_pa_attrs.push_back(outbound_ca_to_pa_attr);
303-
}
298+
304299

305300
if (action.action_type() == dash::route_type::ACTION_TYPE_STATICENCAP)
306301
{
@@ -328,6 +323,10 @@ void DashVnetOrch::addOutboundCaToPa(const string& key, VnetMapBulkContext& ctxt
328323

329324
if (ctxt.metadata.action_type() == dash::route_type::ROUTING_TYPE_PRIVATELINK)
330325
{
326+
outbound_ca_to_pa_attr.id = SAI_OUTBOUND_CA_TO_PA_ENTRY_ATTR_ACTION;
327+
outbound_ca_to_pa_attr.value.u32 = SAI_OUTBOUND_CA_TO_PA_ENTRY_ACTION_SET_PRIVATE_LINK_MAPPING;
328+
outbound_ca_to_pa_attrs.push_back(outbound_ca_to_pa_attr);
329+
331330
outbound_ca_to_pa_attr.id = SAI_OUTBOUND_CA_TO_PA_ENTRY_ATTR_UNDERLAY_DIP;
332331
to_sai(ctxt.metadata.underlay_ip(), outbound_ca_to_pa_attr.value.ipaddr);
333332
outbound_ca_to_pa_attrs.push_back(outbound_ca_to_pa_attr);

0 commit comments

Comments
 (0)