Description
Description
Vxlan Tunnel Map Netdev creation fails when the length of vxlan_dev_name crosses IFNAMSIZ .
Steps to reproduce the issue:
1. config vlan add 10 && config vlan member add 10 Ethernet8
2. sudo config vxlan add neighbor_advertiser 1.1.1.1
3. config vxlan map add neighbor_advertiser 10 1
4. ip link show vxlan
Note: This is seen in 202012 & 202111 and master as well.
Describe the results you received:
No vxlan netdev is created.
In syslog:
root@sonic:/home/admin# show logging -f | grep vxlan
Apr 4 22:44:37.778893 r-lionfish-16 NOTICE swss#vxlanmgrd: :- doVxlanTunnelCreateTask: Create vxlan tunnel neighbor_advertiser
Apr 4 22:46:24.964017 r-lionfish-16 INFO swss#/supervisord: vxlanmgrd Error: argument "neighbor_advertiser-10" is wrong: "dev" not a valid ifname
Apr 4 22:46:24.965238 r-lionfish-16 WARNING swss#vxlanmgrd: :- doVxlanTunnelMapCreateTask: Vxlan Net Dev creation failure for neighbor_advertiser VNI(1) VLAN(10)
Describe the results you expected:
These commands must be executed succesfully Code
and no errors should be seen on syslog