Skip to content

Commit

Permalink
Add support data for fabric monitoring in CONFIG_DB. (sonic-net#14170)
Browse files Browse the repository at this point in the history
Added support data for fabric monitoring in CONFIG_DB

The CONFIG_DB now has the FABRIC_MONITOR|FABRIC_MONITOR_DATA table for default value for fabric port monitoring. An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_MONITOR|FABRIC_MONITOR_DATA"
{'monErrThreshCrcCells': '1', 'monErrThreshRxCells': '61035156', 'monPollThreshIsolation': '1', 'monPollThreshRecovery': '8'}

The CONFIG_DB now also has a table for each fabric port for its isolate status.
An example output of getting this table is:

sonic-db-cli CONFIG_DB hgetall "FABRIC_PORT|Fabric20"
{'alias': 'Fabric20', 'isolateStatus': 'False', 'lanes': '20'}
  • Loading branch information
jfeng-arista authored and root committed Jul 13, 2023
1 parent ef0e881 commit 5c86eb3
Show file tree
Hide file tree
Showing 19 changed files with 1,482 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"FABRIC_MONITOR_DATA": {
"monErrThreshCrcCells": 1,
"monErrThreshRxCells": 61035156,
"monPollThreshRecovery": 8,
"monPollThreshIsolation": 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
# name lanes isolateStatus
Fabric0 0 False
Fabric1 1 False
Fabric2 2 False
Fabric3 3 False
Fabric4 4 False
Fabric5 5 False
Fabric6 6 False
Fabric7 7 False
Fabric8 8 False
Fabric9 9 False
Fabric10 10 False
Fabric11 11 False
Fabric12 12 False
Fabric13 13 False
Fabric14 14 False
Fabric15 15 False
Fabric16 16 False
Fabric17 17 False
Fabric18 18 False
Fabric19 19 False
Fabric20 20 False
Fabric21 21 False
Fabric22 22 False
Fabric23 23 False
Fabric24 24 False
Fabric25 25 False
Fabric26 26 False
Fabric27 27 False
Fabric28 28 False
Fabric29 29 False
Fabric30 30 False
Fabric31 31 False
Fabric32 32 False
Fabric33 33 False
Fabric34 34 False
Fabric35 35 False
Fabric36 36 False
Fabric37 37 False
Fabric38 38 False
Fabric39 39 False
Fabric40 40 False
Fabric41 41 False
Fabric42 42 False
Fabric43 43 False
Fabric44 44 False
Fabric45 45 False
Fabric46 46 False
Fabric47 47 False
Fabric48 48 False
Fabric49 49 False
Fabric50 50 False
Fabric51 51 False
Fabric52 52 False
Fabric53 53 False
Fabric54 54 False
Fabric55 55 False
Fabric56 56 False
Fabric57 57 False
Fabric58 58 False
Fabric59 59 False
Fabric60 60 False
Fabric61 61 False
Fabric62 62 False
Fabric63 63 False
Fabric64 64 False
Fabric65 65 False
Fabric66 66 False
Fabric67 67 False
Fabric68 68 False
Fabric69 69 False
Fabric70 70 False
Fabric71 71 False
Fabric72 72 False
Fabric73 73 False
Fabric74 74 False
Fabric75 75 False
Fabric76 76 False
Fabric77 77 False
Fabric78 78 False
Fabric79 79 False
Fabric80 80 False
Fabric81 81 False
Fabric82 82 False
Fabric83 83 False
Fabric84 84 False
Fabric85 85 False
Fabric86 86 False
Fabric87 87 False
Fabric88 88 False
Fabric89 89 False
Fabric90 90 False
Fabric91 91 False
Fabric92 92 False
Fabric93 93 False
Fabric94 94 False
Fabric95 95 False
Fabric96 96 False
Fabric97 97 False
Fabric98 98 False
Fabric99 99 False
Fabric100 100 False
Fabric101 101 False
Fabric102 102 False
Fabric103 103 False
Fabric104 104 False
Fabric105 105 False
Fabric106 106 False
Fabric107 107 False
Fabric108 108 False
Fabric109 109 False
Fabric110 110 False
Fabric111 111 False
Fabric112 112 False
Fabric113 113 False
Fabric114 114 False
Fabric115 115 False
Fabric116 116 False
Fabric117 117 False
Fabric118 118 False
Fabric119 119 False
Fabric120 120 False
Fabric121 121 False
Fabric122 122 False
Fabric123 123 False
Fabric124 124 False
Fabric125 125 False
Fabric126 126 False
Fabric127 127 False
Fabric128 128 False
Fabric129 129 False
Fabric130 130 False
Fabric131 131 False
Fabric132 132 False
Fabric133 133 False
Fabric134 134 False
Fabric135 135 False
Fabric136 136 False
Fabric137 137 False
Fabric138 138 False
Fabric139 139 False
Fabric140 140 False
Fabric141 141 False
Fabric142 142 False
Fabric143 143 False
Fabric144 144 False
Fabric145 145 False
Fabric146 146 False
Fabric147 147 False
Fabric148 148 False
Fabric149 149 False
Fabric150 150 False
Fabric151 151 False
Fabric152 152 False
Fabric153 153 False
Fabric154 154 False
Fabric155 155 False
Fabric156 156 False
Fabric157 157 False
Fabric158 158 False
Fabric159 159 False
Fabric160 160 False
Fabric161 161 False
Fabric162 162 False
Fabric163 163 False
Fabric164 164 False
Fabric165 165 False
Fabric166 166 False
Fabric167 167 False
Fabric168 168 False
Fabric169 169 False
Fabric170 170 False
Fabric171 171 False
Fabric172 172 False
Fabric173 173 False
Fabric174 174 False
Fabric175 175 False
Fabric176 176 False
Fabric177 177 False
Fabric178 178 False
Fabric179 179 False
Fabric180 180 False
Fabric181 181 False
Fabric182 182 False
Fabric183 183 False
Fabric184 184 False
Fabric185 185 False
Fabric186 186 False
Fabric187 187 False
Fabric188 188 False
Fabric189 189 False
Fabric190 190 False
Fabric191 191 False
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"FABRIC_MONITOR_DATA": {
"monErrThreshCrcCells": 1,
"monErrThreshRxCells": 61035156,
"monPollThreshRecovery": 8,
"monPollThreshIsolation": 1
}
}
Loading

0 comments on commit 5c86eb3

Please sign in to comment.