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

Set tunnel id to saiOidToAlias for support update tunnel status.

Open iris00522 opened this issue 3 years ago • 0 comments

What I did 1.Set tunnel id to saiOidToAlias for support update tunnel status. 2. if create tunnel port successfully notify change tunnel port status from down to up Why I did it update tunnel status admin@as7726-32x-2:~$ show vxlan remotevtep +-----------+-----------+-------------------+--------------+ | SIP | DIP | Creation Source | OperStatus | +===========+===========+===================+==============+ | 10.1.0.32 | 10.0.0.65 | EVPN | oper_up | +-----------+-----------+-------------------+--------------+ Total count : 1

How I verified it 1.create l2 vni environment 2.check tunnel status "show vxlan remotevtep" 3.check syslog

/var/log/syslog.1:Dec 14 10:25:43.929560 as7726-32x-2 NOTICE swss#orchagent: :- createDynamicDIPTunnel: Created P2P Tunnel remote IP 10.0.0.65
/var/log/syslog.1:Dec 14 10:25:43.929560 as7726-32x-2 NOTICE swss#orchagent: :- addTunnelUser: diprefcnt for remote 10.0.0.65 = 1
/var/log/syslog.1:Dec 14 10:25:43.930397 as7726-32x-2 INFO syncd#syncd: [none] brcm_sai_create_bridge_port:227 bridge_port_id: 0x  2a043a00000004 tunnel_id 4
/var/log/syslog.1:Dec 14 10:25:43.930895 as7726-32x-2 NOTICE swss#orchagent: :- addBridgePort: Add bridge port Port_EVPN_10.0.0.65 to default 1Q bridge
/var/log/syslog.1:Dec 14 10:25:43.931588 as7726-32x-2 INFO syncd#syncd: [none] _brcm_sai_bridge_port_valid:1297 idx 4
/var/log/syslog.1:Dec 14 10:25:43.932158 as7726-32x-2 NOTICE swss#orchagent: :- addVlanMember: Add member Port_EVPN_10.0.0.65 to VLAN Vlan1000 vid:1000 pid0
/var/log/syslog.1:Dec 14 10:25:43.932536 as7726-32x-2 NOTICE swss#orchagent: :- doTask: Get port state change notification id:2a00000000069f status:1
/var/log/syslog.1:Dec 14 10:25:43.932536 as7726-32x-2 NOTICE swss#orchagent: :- updatePortOperStatus: Port Port_EVPN_10.0.0.65 oper state set from down to up

Details if related

iris00522 avatar Dec 14 '21 07:12 iris00522