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
[portsorch] use ingress/egress disable for LAG member enable/disable (sonic-net#1166)
Originally portsorch was designed to remove LAG member from LAG when
member gets disabled by teamd. This could lead to potential issues
including flood to that port and loops, since after removal member
becomes a switch port.
Now, portsorch will make use of SAI_LAG_MEMBER_ATTR_INGRESS_DISABLE and SAI_LAG_MEMBER_ATTR_EGRESS_DISABLE
to control collection/distribution through that LAG member port.
With this new flow, teammgrd and teamsyncd are candidates to be refactored, especially teamsyncd
warm reboot logic, since now we don't need to compare old, new lags and lag members.
Teamsyncd's job is simply to signal "status" field update without waiting for reconciliation timer to expire.
e.g. one port channel went down on peer:
```
admin@arc-switch1025:~$ 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) Ethernet112(S)
0002 PortChannel0002 LACP(A)(Up) Ethernet116(S)
0003 PortChannel0003 LACP(A)(Up) Ethernet120(S)
0004 PortChannel0004 LACP(A)(Dw) Ethernet124(D)
admin@arc-switch1025:~$ docker exec -it syncd sx_api_lag_dump.py
LAG Members Table
===============================================================================================================
| SWID| LAG Logical Port| LAG Oper State| PVID| Member Port ID| Port Label| Collector| Distributor| Oper State|
===============================================================================================================
| 0 0x10000000 UP 1| 0x11900| 29| Enable| Enable| UP|
===============================================================================================================
| 0 0x10000100 UP 1| 0x11b00| 30| Enable| Enable| UP|
===============================================================================================================
| 0 0x10000200 UP 1| 0x11d00| 31| Enable| Enable| UP|
===============================================================================================================
| 0 0x10000300 DOWN 1| 0x11f00| 32| Disable| Disable| UP|
===============================================================================================================
```
Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
0 commit comments