File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -348,16 +348,13 @@ create_tunnel(
348348 tunnel_attrs.push_back (attr);
349349 }
350350
351- if (encap_ttl != 0 )
352- {
353- attr.id = SAI_TUNNEL_ATTR_ENCAP_TTL_MODE;
354- attr.value .s32 = SAI_TUNNEL_TTL_MODE_PIPE_MODEL;
355- tunnel_attrs.push_back (attr);
351+ attr.id = SAI_TUNNEL_ATTR_ENCAP_TTL_MODE;
352+ attr.value .s32 = SAI_TUNNEL_TTL_MODE_PIPE_MODEL;
353+ tunnel_attrs.push_back (attr);
356354
357- attr.id = SAI_TUNNEL_ATTR_ENCAP_TTL_VAL;
358- attr.value .u8 = encap_ttl;
359- tunnel_attrs.push_back (attr);
360- }
355+ attr.id = SAI_TUNNEL_ATTR_ENCAP_TTL_VAL;
356+ attr.value .u8 = encap_ttl != 0 ? encap_ttl : 128 ;
357+ tunnel_attrs.push_back (attr);
361358
362359 sai_object_id_t tunnel_id;
363360 sai_status_t status = sai_tunnel_api->create_tunnel (
You can’t perform that action at this time.
0 commit comments