sonic-swss
sonic-swss copied to clipboard
Help understanding Tunnel Term Tables in VxLan, NvGRE and TunnelDecap
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