tdl-xoa-driver 1.4.0__py3-none-any.whl → 1.5.0b1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tdl_xoa_driver-1.4.0.dist-info → tdl_xoa_driver-1.5.0b1.dist-info}/METADATA +2 -2
- {tdl_xoa_driver-1.4.0.dist-info → tdl_xoa_driver-1.5.0b1.dist-info}/RECORD +45 -33
- xoa_driver/__init__.py +2 -2
- xoa_driver/enums.py +2 -0
- xoa_driver/exceptions.py +2 -0
- xoa_driver/functions/anlt.py +2 -0
- xoa_driver/functions/anlt_ll_debug.py +2 -0
- xoa_driver/functions/cli/__init__.py +21 -0
- xoa_driver/functions/cli/_cli_manager.py +541 -0
- xoa_driver/functions/cli/_config_block.py +334 -0
- xoa_driver/functions/cli/_socket_driver.py +111 -0
- xoa_driver/functions/cli/port_config.py +107 -0
- xoa_driver/functions/cli/test_case_config.py +172 -0
- xoa_driver/functions/cmis/__init__.py +8 -0
- xoa_driver/functions/cmis/_constants.py +25 -0
- xoa_driver/functions/cmis/_replies.py +600 -0
- xoa_driver/functions/cmis/_utils.py +49 -0
- xoa_driver/functions/cmis/cdb.py +1266 -0
- xoa_driver/functions/exceptions.py +2 -0
- xoa_driver/functions/headers.py +2 -0
- xoa_driver/functions/mgmt.py +42 -19
- xoa_driver/functions/tools.py +9 -3
- xoa_driver/hlfuncs.py +6 -2
- xoa_driver/internals/commands/c_commands.py +6 -10
- xoa_driver/internals/commands/enums.py +25 -1
- xoa_driver/internals/commands/pr_commands.py +17 -16
- xoa_driver/internals/commands/px_commands.py +54 -54
- xoa_driver/internals/core/transporter/logger/__state_on_user.py +1 -1
- xoa_driver/internals/exceptions/modules.py +4 -3
- xoa_driver/internals/hli/modules/modules_l23/family_edun.py +82 -0
- xoa_driver/internals/hli/modules/modules_l23/family_g.py +1 -1
- xoa_driver/internals/hli/modules/modules_l23/family_l1.py +19 -0
- xoa_driver/internals/hli/ports/port_l23/family_edun.py +82 -0
- xoa_driver/internals/hli/ports/port_l23/family_l1.py +6 -0
- xoa_driver/internals/state_storage/modules_state.py +20 -0
- xoa_driver/internals/state_storage/testers_state.py +10 -0
- xoa_driver/lli.py +1 -0
- xoa_driver/misc.py +1 -0
- xoa_driver/modules.py +22 -0
- xoa_driver/ports.py +22 -0
- xoa_driver/testers.py +2 -0
- xoa_driver/utils.py +2 -0
- xoa_driver/functions/cli.py +0 -581
- {tdl_xoa_driver-1.4.0.dist-info → tdl_xoa_driver-1.5.0b1.dist-info}/WHEEL +0 -0
- {tdl_xoa_driver-1.4.0.dist-info → tdl_xoa_driver-1.5.0b1.dist-info}/licenses/LICENSE +0 -0
- {tdl_xoa_driver-1.4.0.dist-info → tdl_xoa_driver-1.5.0b1.dist-info}/top_level.txt +0 -0
|
@@ -34,6 +34,8 @@ class TesterLocalState:
|
|
|
34
34
|
"driver_version",
|
|
35
35
|
"reservation",
|
|
36
36
|
"reserved_by",
|
|
37
|
+
"version_string",
|
|
38
|
+
"name",
|
|
37
39
|
)
|
|
38
40
|
|
|
39
41
|
def __init__(self, host: str, port: int) -> None:
|
|
@@ -46,6 +48,8 @@ class TesterLocalState:
|
|
|
46
48
|
self.driver_version: int = 0
|
|
47
49
|
self.reservation: enums.ReservedStatus = enums.ReservedStatus.RELEASED
|
|
48
50
|
self.reserved_by: str = ""
|
|
51
|
+
self.version_string: str = ""
|
|
52
|
+
self.name: str = ""
|
|
49
53
|
|
|
50
54
|
async def initiate(self, tester) -> None:
|
|
51
55
|
(
|
|
@@ -55,6 +59,8 @@ class TesterLocalState:
|
|
|
55
59
|
serial_res,
|
|
56
60
|
reserved_by_res,
|
|
57
61
|
reservation_resp,
|
|
62
|
+
version_string_res,
|
|
63
|
+
name_res,
|
|
58
64
|
) = await funcs.apply(
|
|
59
65
|
tester.capabilities.get(),
|
|
60
66
|
tester.model.get(),
|
|
@@ -62,6 +68,8 @@ class TesterLocalState:
|
|
|
62
68
|
tester.serial_no.get(),
|
|
63
69
|
tester.reserved_by.get(),
|
|
64
70
|
tester.reservation.get(),
|
|
71
|
+
tester.version_str.get(),
|
|
72
|
+
tester.name.get(),
|
|
65
73
|
)
|
|
66
74
|
self.reserved_by = reserved_by_res.username
|
|
67
75
|
self.model = model_res.model
|
|
@@ -70,6 +78,8 @@ class TesterLocalState:
|
|
|
70
78
|
self.serial_number = serial_res.serial_number
|
|
71
79
|
self.reservation = reservation_resp.operation
|
|
72
80
|
self.capabilities = capabilities_resp
|
|
81
|
+
self.version_string = version_string_res.version_str
|
|
82
|
+
self.name = name_res.chassis_name
|
|
73
83
|
|
|
74
84
|
def register_subscriptions(self, tester) -> None:
|
|
75
85
|
tester._conn.subscribe(C_RESERVEDBY, utils.Update(self, "reserved_by", "username"))
|
xoa_driver/lli.py
CHANGED
xoa_driver/misc.py
CHANGED
xoa_driver/modules.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#: All available test module types.
|
|
2
|
+
"""Xena test module types."""
|
|
2
3
|
|
|
3
4
|
from .internals.hli.modules.modules_l23.module_l23_base import ModuleL23
|
|
4
5
|
from .internals.hli.modules.modules_l23.family_d import (
|
|
@@ -31,6 +32,7 @@ from .internals.hli.modules.modules_l23.family_g import (
|
|
|
31
32
|
MLoki100G3S1PSE,
|
|
32
33
|
MLoki100G3S1PB,
|
|
33
34
|
MLoki100G3S1PB_b,
|
|
35
|
+
MLoki100G5S4P_a,
|
|
34
36
|
)
|
|
35
37
|
from .internals.hli.modules.modules_l23.family_h import (
|
|
36
38
|
MLoki100G5S1P,
|
|
@@ -116,6 +118,11 @@ from .internals.hli.modules.module_chimera import (
|
|
|
116
118
|
from .internals.hli.modules.module_l47 import ModuleL47
|
|
117
119
|
from .internals.hli.modules.module_l47ve import ModuleL47VE
|
|
118
120
|
|
|
121
|
+
from .internals.hli.modules.modules_l23.family_edun import (
|
|
122
|
+
MEdun800G3S1PSMPX_a,
|
|
123
|
+
MEdun1600G4S1POSFP_a
|
|
124
|
+
)
|
|
125
|
+
|
|
119
126
|
import typing
|
|
120
127
|
|
|
121
128
|
Z10OdinModule = typing.Union[
|
|
@@ -153,6 +160,7 @@ Z100LokiModule = typing.Union[
|
|
|
153
160
|
MLoki100G3S1PB_b,
|
|
154
161
|
MLoki100G5S1P,
|
|
155
162
|
MLoki100G5S2P,
|
|
163
|
+
MLoki100G5S4P_a,
|
|
156
164
|
]
|
|
157
165
|
|
|
158
166
|
Z400ThorModule = typing.Union[
|
|
@@ -215,6 +223,11 @@ Z800FreyaModule = typing.Union[
|
|
|
215
223
|
MFreya800G4S1POSFP_f_g2,
|
|
216
224
|
]
|
|
217
225
|
|
|
226
|
+
Z1600EdunModule = typing.Union[
|
|
227
|
+
MEdun800G3S1PSMPX_a,
|
|
228
|
+
MEdun1600G4S1POSFP_a
|
|
229
|
+
]
|
|
230
|
+
|
|
218
231
|
E100ChimeraModule = typing.Union[
|
|
219
232
|
ModuleChimera,
|
|
220
233
|
MChi100G5S2P,
|
|
@@ -261,6 +274,7 @@ GenericL23Module = typing.Union[
|
|
|
261
274
|
"MLoki100G3S1PB_b",
|
|
262
275
|
"MLoki100G5S1P",
|
|
263
276
|
"MLoki100G5S2P",
|
|
277
|
+
"MLoki100G5S4P_a",
|
|
264
278
|
|
|
265
279
|
"MThor100G5S4P",
|
|
266
280
|
"MThor400G7S1P",
|
|
@@ -317,6 +331,9 @@ GenericL23Module = typing.Union[
|
|
|
317
331
|
"MFreya800G4S1POSFP_d_g2",
|
|
318
332
|
"MFreya800G4S1POSFP_e_g2",
|
|
319
333
|
"MFreya800G4S1POSFP_f_g2",
|
|
334
|
+
|
|
335
|
+
"MEdun800G3S1PSMPX_a",
|
|
336
|
+
"MEdun1600G4S1POSFP_a",
|
|
320
337
|
]
|
|
321
338
|
|
|
322
339
|
GenericAnyModule = typing.Union[
|
|
@@ -374,6 +391,7 @@ __all__ = (
|
|
|
374
391
|
"MLoki100G3S1PB_b",
|
|
375
392
|
"MLoki100G5S1P",
|
|
376
393
|
"MLoki100G5S2P",
|
|
394
|
+
"MLoki100G5S4P_a",
|
|
377
395
|
|
|
378
396
|
"Z400ThorModule",
|
|
379
397
|
"MThor100G5S4P",
|
|
@@ -433,6 +451,10 @@ __all__ = (
|
|
|
433
451
|
"MFreya800G4S1POSFP_e_g2",
|
|
434
452
|
"MFreya800G4S1POSFP_f_g2",
|
|
435
453
|
|
|
454
|
+
"Z1600EdunModule",
|
|
455
|
+
"MEdun800G3S1PSMPX_a",
|
|
456
|
+
"MEdun1600G4S1POSFP_a",
|
|
457
|
+
|
|
436
458
|
"E100ChimeraModule",
|
|
437
459
|
"ModuleChimera",
|
|
438
460
|
"MChi100G5S2P",
|
xoa_driver/ports.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#: All available test port types.
|
|
2
|
+
"""Xena test port types."""
|
|
2
3
|
|
|
3
4
|
import typing
|
|
4
5
|
|
|
@@ -86,6 +87,7 @@ from xoa_driver.internals.hli.ports.port_l23.family_l1 import (
|
|
|
86
87
|
PFreya800G4S1P_d,
|
|
87
88
|
PFreya800G4S1P_e,
|
|
88
89
|
PFreya800G4S1P_f,
|
|
90
|
+
PFreya800G4S2P_a,
|
|
89
91
|
PFreya800G4S1POSFP_a,
|
|
90
92
|
PFreya800G4S1POSFP_b,
|
|
91
93
|
PFreya800G4S1POSFP_c,
|
|
@@ -96,6 +98,11 @@ from xoa_driver.internals.hli.ports.port_l23.family_l1 import (
|
|
|
96
98
|
|
|
97
99
|
from xoa_driver.internals.hli.ports.port_l23.family_m import POdin1G3S6PT1RJ45
|
|
98
100
|
|
|
101
|
+
from xoa_driver.internals.hli.ports.port_l23.family_edun import (
|
|
102
|
+
PEdun800G3S1PSMPX_a,
|
|
103
|
+
PEdun1600G4S1POSFP_a
|
|
104
|
+
)
|
|
105
|
+
|
|
99
106
|
Z10OdinPort = typing.Union[
|
|
100
107
|
POdin1G3S2PT,
|
|
101
108
|
POdin1G3S6P,
|
|
@@ -156,6 +163,7 @@ Z800FreyaPort = typing.Union[
|
|
|
156
163
|
PFreya800G4S1P_d,
|
|
157
164
|
PFreya800G4S1P_e,
|
|
158
165
|
PFreya800G4S1P_f,
|
|
166
|
+
PFreya800G4S2P_a,
|
|
159
167
|
PFreya800G4S1POSFP_a,
|
|
160
168
|
PFreya800G4S1POSFP_b,
|
|
161
169
|
PFreya800G4S1POSFP_c,
|
|
@@ -164,6 +172,11 @@ Z800FreyaPort = typing.Union[
|
|
|
164
172
|
PFreya800G4S1POSFP_f,
|
|
165
173
|
]
|
|
166
174
|
|
|
175
|
+
Z1600EdunPort = typing.Union[
|
|
176
|
+
PEdun800G3S1PSMPX_a,
|
|
177
|
+
PEdun1600G4S1POSFP_a
|
|
178
|
+
]
|
|
179
|
+
|
|
167
180
|
E100ChimeraPort = typing.Union[
|
|
168
181
|
PortChimera,
|
|
169
182
|
PChi100G5S2P,
|
|
@@ -230,12 +243,16 @@ GenericL23Port = typing.Union[
|
|
|
230
243
|
"PFreya800G4S1P_d",
|
|
231
244
|
"PFreya800G4S1P_e",
|
|
232
245
|
"PFreya800G4S1P_f",
|
|
246
|
+
"PFreya800G4S2P_a",
|
|
233
247
|
"PFreya800G4S1POSFP_a",
|
|
234
248
|
"PFreya800G4S1POSFP_b",
|
|
235
249
|
"PFreya800G4S1POSFP_c",
|
|
236
250
|
"PFreya800G4S1POSFP_d",
|
|
237
251
|
"PFreya800G4S1POSFP_e",
|
|
238
252
|
"PFreya800G4S1POSFP_f",
|
|
253
|
+
|
|
254
|
+
"PEdun800G3S1PSMPX_a",
|
|
255
|
+
"PEdun1600G4S1POSFP_a",
|
|
239
256
|
]
|
|
240
257
|
|
|
241
258
|
GenericAnyPort = typing.Union[
|
|
@@ -314,6 +331,7 @@ __all__ = (
|
|
|
314
331
|
"PFreya800G4S1P_d",
|
|
315
332
|
"PFreya800G4S1P_e",
|
|
316
333
|
"PFreya800G4S1P_f",
|
|
334
|
+
"PFreya800G4S2P_a",
|
|
317
335
|
"PFreya800G4S1POSFP_a",
|
|
318
336
|
"PFreya800G4S1POSFP_b",
|
|
319
337
|
"PFreya800G4S1POSFP_c",
|
|
@@ -321,6 +339,10 @@ __all__ = (
|
|
|
321
339
|
"PFreya800G4S1POSFP_e",
|
|
322
340
|
"PFreya800G4S1POSFP_f",
|
|
323
341
|
|
|
342
|
+
"Z1600EdunPort",
|
|
343
|
+
"PEdun800G3S1PSMPX_a",
|
|
344
|
+
"PEdun1600G4S1POSFP_a",
|
|
345
|
+
|
|
324
346
|
"E100ChimeraPort",
|
|
325
347
|
"PortChimera",
|
|
326
348
|
"PChi100G5S2P",
|
xoa_driver/testers.py
CHANGED