Open keboliu opened 5 years ago
@keboliu Can you help with the fix?
When a port-channel is created by user (config portchannel add PortChannelXXX), the corresponding netdevice is created in the kernel(teamd_init() calls team_create() which creates the netdevice in the kernel).
These netdevices are deleted in the kernel when user deletes the configuration (config portchannel del PortChannelXXX).
During config-reload, port-channel netdevices are not exclusively deleted in the kernel.
Solution - when teamd docker starts, delete all the existing port-channel netdevices in kernel.
Looks like fixed as part of https://github.com/Azure/sonic-swss/pull/1159
Description After switch DUT topology from T0 to T1-LAG through "config reload", some portchannel in T0 topology still can be found in the kernel(from the result of "ifconfig"), only reboot the DUT can have these leftover portchannels cleared.
Switch from T1-LAG to T0 can see the similiar issue.
capture from the DUT:
configured portchannels of T1 topo:
All portchannels from "ifconfig" command, including leftovers:
Steps to reproduce the issue:
Describe the results you received: Not all the portchannels of T0 are cleared.
Describe the results you expected: All the T0 configuration should be cleared and only T1-LAG configuration applied on the DUT
Additional information you deem important (e.g. issue happens only occasionally):