sonic-swss icon indicating copy to clipboard operation
sonic-swss copied to clipboard

Help understanding Tunnel Term Tables in VxLan, NvGRE and TunnelDecap

Open mholankar opened this issue 1 year ago • 1 comments

Why is the DST_IP not added for P2P tunnel? https://github.com/sonic-net/sonic-swss/blob/e6f134fbdda2a51608e948878faa62696a4e3565/orchagent/tunneldecaporch.cpp#L506

Why is the dst_ip set for the SAI_TUNNEL_TERM_TABLE_ENTRY_ATTR_SRC_IP attribute? https://github.com/sonic-net/sonic-swss/blob/e6f134fbdda2a51608e948878faa62696a4e3565/orchagent/vxlanorch.cpp#L417

and why is src_ip set for the SAI_TUNNEL_TERM_TABLE_ENTRY_ATTR_DST_IP attribute? https://github.com/sonic-net/sonic-swss/blob/e6f134fbdda2a51608e948878faa62696a4e3565/orchagent/vxlanorch.cpp#L426

again why is src_ip set here for the SAI_TUNNEL_TERM_TABLE_ENTRY_ATTR_DST_IP attribute? https://github.com/sonic-net/sonic-swss/blob/e6f134fbdda2a51608e948878faa62696a4e3565/orchagent/nvgreorch.cpp#L232

mholankar avatar Aug 29 '23 18:08 mholankar