You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
There is no validation, so it’s acceptable to delete a particular Vlan in case of several ports are members of this vlan.
But doing this an error appears in syslog: sonic ERR swss#orchagent: :- removeVlan: Failed to remove non-empty VLAN Vlan1002
Steps to reproduce the issue
Add a vlan config vlan add 1002
Assign members to created Vlan config vlan member add 1002 Ethernet32 config vlan member add 1002 Ethernet44
Remove created Vlan config vlan del 1002
Describe the results you received
Errors in syslog:
Jan 2 18:17:24.139406 sonic NOTICE swss#orchagent: :- removeVlanMember: Remove member Ethernet44 from VLAN Vlan1002 lid:3ea vmid:270000000002e6
Jan 2 18:17:24.139491 sonic NOTICE swss#orchagent: :- setHostIntfsStripTag: Set SAI_HOSTIF_VLAN_TAG_STRIP to host interface: Ethernet44
Jan 2 18:17:24.139535 sonic NOTICE swss#orchagent: :- removeBridgePort: Remove bridge port Ethernet44 from default 1Q bridge
Jan 2 18:17:24.142492 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_VLAN: mlnx_sai_vlan.c[1329]- mlnx_remove_vlan_member: Remove vlan member interface Vlan member port 12900 vlan 1002
Jan 2 18:17:24.146621 sonic INFO lldp#lldpd[28]: removal request for address of fe80::268a:7ff:fe7e:4f80%41, but no knowledge of it
Jan 2 18:17:24.147346 r-ethernet-sw230 INFO kernel: [ 1227.099847] device Bridge left promiscuous mode
Jan 2 18:17:24.148819 sonic INFO lldp#supervisord: lldpd 2020-01-02T18:17:24 [INFO/netlink] removal request for address of fe80::268a:7ff:fe7e:4f80%41, but no knowledge of it
Jan 2 18:17:24.166604 sonic ERR swss#orchagent: :- removeVlan: Failed to remove non-empty VLAN Vlan1002
Jan 2 18:17:24.172260 sonic ERR swss#orchagent: :- removeVlan: Failed to remove non-empty VLAN Vlan1002
Jan 2 18:17:24.172339 sonic NOTICE swss#orchagent: :- removeVlanMember: Remove member Ethernet32 from VLAN Vlan1002 lid:3ea vmid:270000000002e4
Jan 2 18:17:24.172392 sonic NOTICE swss#orchagent: :- setHostIntfsStripTag: Set SAI_HOSTIF_VLAN_TAG_STRIP to host interface: Ethernet32
Jan 2 18:17:24.172435 sonic NOTICE swss#orchagent: :- removeBridgePort: Remove bridge port Ethernet32 from default 1Q bridge
Jan 2 18:17:24.172476 sonic NOTICE swss#orchagent: :- removeVlan: Remove VLAN Vlan1002 vid:1002
Jan 2 18:17:24.172566 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_UTILS: mlnx_sai_utils.c[2336]- set_dispatch_attrib_handler: Set ADMIN_STATE, key:bridge port idx 1, val:false
Jan 2 18:17:24.174353 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_SWITCH: mlnx_sai_switch.c[3741]- event_thread_func: Port 12900 changed state to down
Jan 2 18:17:24.175330 r-ethernet-sw230 WARNING kernel: [ 1227.127513] sx_netdev_handle_pude_event: Called for logical port - 12900 status DOWN
Jan 2 18:17:24.175948 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_UTILS: mlnx_sai_utils.c[2336]- set_dispatch_attrib_handler: Set VLAN_TAG, key:host interface 11, val:STRIP
Jan 2 18:17:24.176039 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_BRIDGE: mlnx_sai_bridge.c[2984]- mlnx_remove_bridge_port: Remove bridge port idx 1
Jan 2 18:17:24.177587 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_VLAN: mlnx_sai_vlan.c[1329]- mlnx_remove_vlan_member: Remove vlan member interface Vlan member port 12500 vlan 1002
Jan 2 18:17:24.190275 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_UTILS: mlnx_sai_utils.c[2336]- set_dispatch_attrib_handler: Set ADMIN_STATE, key:bridge port idx 0, val:false
Jan 2 18:17:24.194779 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_SWITCH: mlnx_sai_switch.c[3741]- event_thread_func: Port 12500 changed state to down
Jan 2 18:17:24.195526 r-ethernet-sw230 WARNING kernel: [ 1227.148093] sx_netdev_handle_pude_event: Called for logical port - 12500 status DOWN
Jan 2 18:17:24.196301 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_UTILS: mlnx_sai_utils.c[2336]- set_dispatch_attrib_handler: Set VLAN_TAG, key:host interface 8, val:STRIP
Jan 2 18:17:24.196301 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_BRIDGE: mlnx_sai_bridge.c[2984]- mlnx_remove_bridge_port: Remove bridge port idx 0
Jan 2 18:17:24.196846 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_VLAN: mlnx_sai_vlan.c[923]- mlnx_remove_vlan: Remove vlan 1002
Jan 2 18:17:24.200513 sonic NOTICE swss#orchagent: :- doTask: Get port state change notification id:10000000001f4 status:2
Jan 2 18:17:24.200513 sonic NOTICE swss#orchagent: :- updatePortOperStatus: Port Ethernet44 oper state set from up to down
Jan 2 18:17:24.201674 sonic NOTICE swss#orchagent: :- setHostIntfsOperStatus: Set operation status DOWN to host interface Ethernet44
Jan 2 18:17:24.202342 sonic NOTICE swss#orchagent: :- doTask: Get port state change notification id:10000000001d3 status:2
Jan 2 18:17:24.202342 sonic NOTICE swss#orchagent: :- updatePortOperStatus: Port Ethernet32 oper state set from up to down
Jan 2 18:17:24.202917 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_UTILS: mlnx_sai_utils.c[2336]- set_dispatch_attrib_handler: Set OPER_STATUS, key:host interface 11, val:false
Jan 2 18:17:24.203257 sonic NOTICE swss#orchagent: :- setHostIntfsOperStatus: Set operation status DOWN to host interface Ethernet32
Jan 2 18:17:24.204649 sonic INFO syncd#supervisord: syncd Jan 02 18:17:24 NOTICE SAI_UTILS: mlnx_sai_utils.c[2336]- set_dispatch_attrib_handler: Set OPER_STATUS, key:host interface 8, val:false
Jan 2 18:17:25.163338 r-ethernet-sw230 INFO kernel: [ 1228.113221] Bridge: port 3(Ethernet44) entered disabled state
Jan 2 18:17:25.163370 r-ethernet-sw230 INFO kernel: [ 1228.113440] Bridge: port 2(Ethernet32) entered disabled state
Describe the results you expected
In case of deleting a particular Vlan is eligible there should not be any errors in syslog.
In case of deleting a particular Vlan is not eligible there should not be a validation in config vlan del command if deleted Vlan is assigned to ports.
Description
There is no validation, so it’s acceptable to delete a particular Vlan in case of several ports are members of this vlan.
But doing this an error appears in syslog:
sonic ERR swss#orchagent: :- removeVlan: Failed to remove non-empty VLAN Vlan1002
Steps to reproduce the issue
config vlan add 1002
config vlan member add 1002 Ethernet32
config vlan member add 1002 Ethernet44
config vlan del 1002
Describe the results you received
Errors in syslog:
Describe the results you expected
config vlan del
command if deleted Vlan is assigned to ports.Output of
show version
sonic_dump_r-ethernet-sw230_20200102_181730.tar.gz
The text was updated successfully, but these errors were encountered: