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
Missing validation for "config portchannel member add " command in case of adding a port that has already been a member of another portchannel interface.
#805
Open
MaxYaremchuk opened this issue
Feb 7, 2020
· 2 comments
Description
There should be a verification for config portchannel member add command in case of adding a port that has already been a member of another portchannel interface.
Currently, system just ignore such attempts but puts these new settings to running config.
In case of saving such configurations and performing reboot portchannel interfaces will be inoperable state.
Steps to reproduce the issue
1.Create two portchannel interfaces
Assign a port to PortChannel0001 # config portchannel member add PortChannel0001 Ethernet48
# show interfaces portchannel
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available,
S - selected, D - deselected, * - not synced
No. Team Dev Protocol Ports
----- --------------- ----------- -------------
0001 PortChannel0001 LACP(A)(Up) Ethernet48(S)
0002 PortChannel0002 LACP(A)(Dw) N/A
Assign the same port to other interface portchannel # config portchannel member add PortChannel0002 Ethernet48<== HERE must be the verification.
# show interfaces portchannel
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available,
S - selected, D - deselected, * - not synced
No. Team Dev Protocol Ports
----- --------------- ----------- -------------
0001 PortChannel0001 LACP(A)(Up) Ethernet48(S)
0002 PortChannel0002 LACP(A)(Dw) N/A
# show in portchannel
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available,
S - selected, D - deselected, * - not synced
No. Team Dev Protocol Ports
----- --------------- ----------- -------
0001 PortChannel0001 LACP(A)(Dw) N/A
0002 PortChannel0002 LACP(A)(Dw) N/A
Describe the results you expected
The config portchannel member add command should reject an attempt to add a port to a portchannel if that added port has already been a member of another portchannel interface.
Additional information you deem important (e.g. issue happens only occasionally)
Description
There should be a verification for
config portchannel member add
command in case of adding a port that has already been a member of another portchannel interface.Currently, system just ignore such attempts but puts these new settings to running config.
In case of saving such configurations and performing reboot portchannel interfaces will be inoperable state.
Steps to reproduce the issue
1.Create two portchannel interfaces
# config portchannel member add PortChannel0001 Ethernet48
# config portchannel member add PortChannel0002 Ethernet48
<== HERE must be the verification.running config:
# config save -y
# config reload -y
Describe the results you received
Portchannel interfaces are inoperable state.
Describe the results you expected
The
config portchannel member add
command should reject an attempt to add a port to a portchannel if that added port has already been a member of another portchannel interface.Additional information you deem important (e.g. issue happens only occasionally)
Output of
show version
sonic_dump_r-qa-sw-eth-21138_20200131_160009.tar.gz
The text was updated successfully, but these errors were encountered: