sonic-net/sonic-swss

Help understanding Tunnel Term Tables in VxLan, NvGRE and TunnelDecap

mholankar opened this issue · 1 comments

Why is the DST_IP not added for P2P tunnel?

// Set src ip for P2P only

Why is the dst_ip set for the SAI_TUNNEL_TERM_TABLE_ENTRY_ATTR_SRC_IP attribute?

attr.id = SAI_TUNNEL_TERM_TABLE_ENTRY_ATTR_SRC_IP;

and why is src_ip set for the SAI_TUNNEL_TERM_TABLE_ENTRY_ATTR_DST_IP attribute?

attr.id = SAI_TUNNEL_TERM_TABLE_ENTRY_ATTR_DST_IP;

again why is src_ip set here for the SAI_TUNNEL_TERM_TABLE_ENTRY_ATTR_DST_IP attribute?

attr.id = SAI_TUNNEL_TERM_TABLE_ENTRY_ATTR_DST_IP;

@lguohan could you help?