Commit 850d0c6
authored
[xcvrd] support for integrating Credo Y cable Ports initialization and status updates with xcvrd. (sonic-net#105)
* [xcvrd] support for integrating y cable within xcvrd
This PR provides the necessary infrastructure to initialize the Y cable Ports inside SONIC with xcvrd as the platform daemon.
Particularly there are two parts of integration:
While xcvrd initializes , there is within config_db for Y cable presence. This is done by checking the key-value pairs for
presence of mux_cable identifier as a key. Once a Y cable is found to be attached to a port, State DB is updated with
the corresponding data for the Y cable Port.
Once the init process is done, and a Y cable presence is established, A thread is run to periodically monitor changes
to APPL DB MUX_CABLE_COMMAND table for updates, and also one that periodically checks for a change events, If an update is found, the corresponding changes are done on MUX using
sonic_y_cable package and corresponding changes are updated in STATE_DB
What is the motivation for this PR?
To add the necessary infrastructure for Credo Y cable integration within SONIC
How did you do it?
Added the necessary changes and a new xcvrd_utilities sub directory for utilities of y_cable code.
Reorganized the setup.py and sonix-xcvrd code to this form
sonic-xcvrd/setup.py
sonic-xcvrd/src/init.py
sonic-xcvrd/scripts/xcvrd → sonic-xcvrd/src/xcvrd.py
sonic-xcvrd/src/xcvrd_utilities/init.py
sonic-xcvrd/src/xcvrd_utilities/y_cable_helper.py
Signed-off-by: vaibhav-dahiya <[email protected]>1 parent 600d043 commit 850d0c6
5 files changed
Lines changed: 535 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
Whitespace-only changes.
Lines changed: 28 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
854 | 856 | | |
855 | 857 | | |
856 | 858 | | |
857 | | - | |
| 859 | + | |
858 | 860 | | |
859 | 861 | | |
860 | 862 | | |
| |||
1042 | 1044 | | |
1043 | 1045 | | |
1044 | 1046 | | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1045 | 1050 | | |
1046 | 1051 | | |
1047 | 1052 | | |
| |||
1079 | 1084 | | |
1080 | 1085 | | |
1081 | 1086 | | |
1082 | | - | |
| 1087 | + | |
1083 | 1088 | | |
1084 | 1089 | | |
1085 | 1090 | | |
1086 | | - | |
| 1091 | + | |
1087 | 1092 | | |
1088 | 1093 | | |
1089 | 1094 | | |
| |||
1102 | 1107 | | |
1103 | 1108 | | |
1104 | 1109 | | |
| 1110 | + | |
1105 | 1111 | | |
1106 | 1112 | | |
1107 | 1113 | | |
| |||
1231 | 1237 | | |
1232 | 1238 | | |
1233 | 1239 | | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
1234 | 1243 | | |
1235 | 1244 | | |
1236 | 1245 | | |
| |||
1247 | 1256 | | |
1248 | 1257 | | |
1249 | 1258 | | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
1250 | 1263 | | |
1251 | 1264 | | |
1252 | 1265 | | |
| |||
1260 | 1273 | | |
1261 | 1274 | | |
1262 | 1275 | | |
1263 | | - | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
1264 | 1283 | | |
1265 | 1284 | | |
1266 | 1285 | | |
| |||
1277 | 1296 | | |
1278 | 1297 | | |
1279 | 1298 | | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
1280 | 1303 | | |
1281 | 1304 | | |
1282 | 1305 | | |
| |||
1289 | 1312 | | |
1290 | 1313 | | |
1291 | 1314 | | |
| 1315 | + | |
1292 | 1316 | | |
1293 | 1317 | | |
1294 | 1318 | | |
| |||
Whitespace-only changes.
0 commit comments