sonic-swss
sonic-swss copied to clipboard
VxLAN fix tunnel oper_state issue
What I did
In portsorch layer ensure tunnel port_oper state is updated correctly after tunnel comes up.
Additionally made changes so that
- non L3 packets which gets encapsulated have outer IP hdr TTL as 64.
- For L3 packets the inner IpHdr TTL is preserved in outer header.
Why I did it
After tunnel was up and traffic was flowing, tunnel oper_state was displayed as down.
root@sonic:~# show vxlan remotevtep
+---------+---------+-------------------+--------------+
| SIP | DIP | Creation Source | OperStatus |
+=========+=========+===================+==============+
| 1.1.1.1 | 2.2.2.2 | EVPN | oper_down |
+---------+---------+-------------------+--------------+
Total count : 1
How I verified it
root@sonic:~# show vxlan tunnel
vxlan tunnel name source ip destination ip tunnel map name tunnel map mapping(vni -> vlan)
------------------- ----------- ---------------- ----------------- ---------------------------------
vtep 2.2.2.2 map_2000_Vlan20 2000 -> Vlan20
map_3000_Vlan30 3000 -> Vlan30
root@sonic:~#
root@sonic:~#
root@sonic:~# show vxlan remotevtep
+---------+---------+-------------------+--------------+
| SIP | DIP | Creation Source | OperStatus |
+=========+=========+===================+==============+
| 2.2.2.2 | 1.1.1.1 | EVPN | oper_up |
+---------+---------+-------------------+--------------+
Total count : 1
Details if related