Skip to content

Commit

Permalink
kamel: Always use PIPE mode TTL and set default TTL to 128
Browse files Browse the repository at this point in the history
  • Loading branch information
bluecmd authored and andrewsapronov committed Nov 6, 2024
1 parent 23df60a commit 704e582
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions orchagent/vxlanorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,16 +348,13 @@ create_tunnel(
tunnel_attrs.push_back(attr);
}

if (encap_ttl != 0)
{
attr.id = SAI_TUNNEL_ATTR_ENCAP_TTL_MODE;
attr.value.s32 = SAI_TUNNEL_TTL_MODE_PIPE_MODEL;
tunnel_attrs.push_back(attr);
attr.id = SAI_TUNNEL_ATTR_ENCAP_TTL_MODE;
attr.value.s32 = SAI_TUNNEL_TTL_MODE_PIPE_MODEL;
tunnel_attrs.push_back(attr);

attr.id = SAI_TUNNEL_ATTR_ENCAP_TTL_VAL;
attr.value.u8 = encap_ttl;
tunnel_attrs.push_back(attr);
}
attr.id = SAI_TUNNEL_ATTR_ENCAP_TTL_VAL;
attr.value.u8 = encap_ttl != 0 ? encap_ttl : 128;
tunnel_attrs.push_back(attr);

sai_object_id_t tunnel_id;
sai_status_t status = sai_tunnel_api->create_tunnel(
Expand Down

0 comments on commit 704e582

Please sign in to comment.