-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
sonic-net/sonic-swss
#3998Labels
Description
Description
I successfully configured PortChannel0001 between the two devices using two physical links. The related configuration is as follows:
"PORT": {
"Ethernet1": {
"alias": "Ethernet2/1",
"lanes": "9",
"index": "1",
"speed": "10000"
},
"Ethernet2": {
"alias": "Ethernet3/1",
"lanes": "10",
"index": "2",
"speed": "10000"
},
"Ethernet3": {
"alias": "Ethernet4/1",
"lanes": "11",
"index": "3",
"speed": "10000"
}
},
"PORTCHANNEL": {
"PortChannel0001": {
"members": [
"Ethernet2",
"Ethernet3"
]
}
},
"VLAN_MEMBER": {
"Vlan17|PortChannel0001": {
"tagging_mode": "untagged"
},
"Vlan17|Ethernet1": {
"tagging_mode": "untagged"
}
},
"VLAN": {
"Vlan17": {
"vlanid": "17"
}
},
Portchannel0001 is configured as down and it is admin down, but the member ports are still in the selected state, and can still forward traffic. The following is the operation process(Use # as a comment prompt).
#(PortChannel0001 still up)
admin@switch99:~$ teamshow
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected
No. Team Dev Protocol Ports
----- --------------- ----------- -------------------------
0001 PortChannel0001 LACP(A)(Up) Ethernet2(S) Ethernet3(S)
admin@switch99:~$
#(Traffic is forwarded through two ports)
admin@switch99:~$ portstat
Last cached time was 2018-09-21 08:37:32.411788
IFACE STATE RX_OK RX_BPS RX_UTIL RX_ERR RX_DRP RX_OVR TX_OK TX_BPS TX_UTIL TX_ERR TX_DRP TX_OVR
---------- ------- ------- ---------- --------- -------- -------- -------- ------- ---------- --------- -------- -------- --------
Ethernet0 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet1 U 3,144 62.48 KB/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet2 U 0 0.00 B/s 0.00% 0 0 0 1,572 31.24 KB/s 0.00% 0 0 N/A
Ethernet3 U 0 0.00 B/s 0.00% 0 0 0 1,572 31.24 KB/s 0.00% 0 0 N/A
Ethernet4 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet5 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet6 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet7 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet8 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet9 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet10 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet11 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet12 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet13 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet14 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet15 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet16 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet17 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet18 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet19 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet20 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet21 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet22 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet23 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet24 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet25 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet26 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet27 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet28 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet29 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet30 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet31 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet32 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet33 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet34 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet35 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet36 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet37 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet38 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet39 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet40 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet41 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet42 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet43 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet44 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet45 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet46 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet47 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet48 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet49 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet50 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet51 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet52 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet53 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
admin@switch99:~$
#(PortChannel0001 is configured as down)
admin@switch99:~$ sudo config interface shutdown PortChannel0001
#(PortChannel0001 down)
admin@switch99:~$ teamshow
Flags: A - active, I - inactive, Up - up, Dw - Down, N/A - not available, S - selected, D - deselected
No. Team Dev Protocol Ports
----- --------------- ----------- -------------------------
0001 PortChannel0001 LACP(A)(Dw) Ethernet2(S) Ethernet3(S)
admin@switch99:~$
#(Traffic is still being forwarded through all member ports)
admin@switch99:~$ portstat
Last cached time was 2018-09-21 08:37:32.411788
IFACE STATE RX_OK RX_BPS RX_UTIL RX_ERR RX_DRP RX_OVR TX_OK TX_BPS TX_UTIL TX_ERR TX_DRP TX_OVR
---------- ------- ------- ---------- --------- -------- -------- -------- ------- ---------- --------- -------- -------- --------
Ethernet0 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet1 U 140,406 62.87 KB/s 0.00% 0 0 0 4 6.79 B/s 0.00% 0 0 N/A
Ethernet2 U 5 4.58 B/s 0.00% 0 0 0 63,260 28.33 KB/s 0.00% 0 0 N/A
Ethernet3 U 5 4.58 B/s 0.00% 0 0 0 63,236 28.32 KB/s 0.00% 0 0 N/A
Ethernet4 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet5 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet6 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet7 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet8 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet9 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet10 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet11 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet12 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet13 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet14 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet15 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet16 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet17 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet18 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet19 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet20 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet21 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet22 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet23 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet24 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet25 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet26 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet27 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet28 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet29 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet30 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet31 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet32 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet33 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet34 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet35 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet36 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet37 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet38 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet39 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet40 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet41 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet42 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet43 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet44 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet45 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet46 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet47 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet48 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet49 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet50 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet51 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet52 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
Ethernet53 X 0 0.00 B/s 0.00% 0 0 0 0 0.00 B/s 0.00% 0 0 N/A
admin@switch99:~$
Steps to reproduce the issue:
- As described in "Description".
Describe the results you received:
As described in "Description".
Describe the results you expected:
When the PortChannel goes down, its member ports should not forward traffic.
Additional information you deem important (e.g. issue happens only occasionally):
**Output of `show version`:**
admin@switch99:~$ show version
SONiC Software Version: SONiC.201803.0-dirty-20180906.103505
Distribution: Debian 8.11
Kernel: 3.16.0-5-amd64
Build commit: 5d299c4
Build date: Thu Sep 6 10:57:05 UTC 2018
Built by: simon@debian8-83
Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-syncd-nephos 201803.0-dirty-20180906.103505 198d27194e05 335.5 MB
docker-syncd-nephos latest 198d27194e05 335.5 MB
docker-orchagent-nephos 201803.0-dirty-20180906.103505 eeb5d307e7f6 295.4 MB
docker-orchagent-nephos latest eeb5d307e7f6 295.4 MB
docker-teamd 201803.0-dirty-20180906.103505 d317ca0e3249 295.2 MB
docker-teamd latest d317ca0e3249 295.2 MB
docker-fpm-quagga 201803.0-dirty-20180906.103505 77299b8c58f8 301.7 MB
docker-fpm-quagga latest 77299b8c58f8 301.7 MB
docker-dhcp-relay 201803.0-dirty-20180906.103505 4323d8fc8117 288.6 MB
docker-dhcp-relay latest 4323d8fc8117 288.6 MB
docker-database 201803.0-dirty-20180906.103505 0a4992ffff41 288.6 MB
docker-database latest 0a4992ffff41 288.6 MB
docker-snmp-sv2 201803.0-dirty-20180906.103505 9126417d0650 326.4 MB
docker-snmp-sv2 latest 9126417d0650 326.4 MB
docker-router-advertiser 201803.0-dirty-20180906.103505 1134cb5b9932 286.2 MB
docker-router-advertiser latest 1134cb5b9932 286.2 MB
docker-platform-monitor 201803.0-dirty-20180906.103505 6e3d69a78e45 308.1 MB
docker-platform-monitor latest 6e3d69a78e45 308.1 MB
docker-lldp-sv2 201803.0-dirty-20180906.103505 4739428b93cc 306.6 MB
docker-lldp-sv2 latest 4739428b93cc 306.6 MB
admin@switch99:~$
**Attach debug file `sudo generate_dump`:**