Commit 9d38663
authored
[chassis] Fixed bug in Fabric monitor capacity (#4057)
What I did
sonic-net/sonic-buildimage#24828
Fixed a bug in updateFabricCapacity for fabric monitor feature . Without this fix, the show fabric monitor shows wrong operating links and also raises the false alarm in the syslog which could trigger the monitoring tool to isolate the chassis in the production. In the below output, only 1 port was isolated out of 24 ports, however the operating links shows only 5.
image
Why I did it
When the fabric port sees CRC/FEC-Uncorrectable error, the Fabric monitor feature Isolates the port and sets the ISOALTED=1 and also AUTO_ISOLATED=1 in the STATE_DB for that port in the FABRIC_PORT_TABLE. The field ISOLATED and CONFIG_ISOLATED are always present for all the fabric ports in FABRIC_PORT_TABLE. However the field AUTO_ISOLATED is not present always and added only when the port is auto ISOLATED.
So due to the bug in the updateFabricCapacity function, the operating_links is calculated wrong, and the syslog is printed even if 1 link is isolated and didn't reach the threshold.1 parent 8aca780 commit 9d38663
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1047 | 1047 | | |
1048 | 1048 | | |
1049 | 1049 | | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | 1050 | | |
1055 | 1051 | | |
1056 | 1052 | | |
| |||
1088 | 1084 | | |
1089 | 1085 | | |
1090 | 1086 | | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
| |||
0 commit comments