sonic-net / sonic-swss

SONiC Switch State Service (SwSS)
https://azure.github.io/SONiC
Other
170 stars 506 forks source link

Help understanding Tunnel Term Tables in VxLan, NvGRE and TunnelDecap #2891

Open mholankar opened 1 year ago

mholankar commented 1 year ago

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 commented 1 year ago

@lguohan could you help?