tdl-xoa-driver 1.0.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.
Files changed (325) hide show
  1. tdl_xoa_driver-1.0.0b1.dist-info/LICENSE +202 -0
  2. tdl_xoa_driver-1.0.0b1.dist-info/METADATA +177 -0
  3. tdl_xoa_driver-1.0.0b1.dist-info/RECORD +325 -0
  4. tdl_xoa_driver-1.0.0b1.dist-info/WHEEL +5 -0
  5. tdl_xoa_driver-1.0.0b1.dist-info/top_level.txt +1 -0
  6. xoa_driver/__init__.py +2 -0
  7. xoa_driver/enums.py +399 -0
  8. xoa_driver/exceptions.py +77 -0
  9. xoa_driver/functions/__init__.py +0 -0
  10. xoa_driver/functions/anlt.py +744 -0
  11. xoa_driver/functions/anlt_ll_debug.py +429 -0
  12. xoa_driver/functions/cli.py +581 -0
  13. xoa_driver/functions/exceptions.py +72 -0
  14. xoa_driver/functions/headers.py +608 -0
  15. xoa_driver/functions/mgmt.py +515 -0
  16. xoa_driver/functions/tools.py +256 -0
  17. xoa_driver/hlfuncs.py +18 -0
  18. xoa_driver/internals/__init__.py +0 -0
  19. xoa_driver/internals/commands/__init__.py +31 -0
  20. xoa_driver/internals/commands/c_commands.py +2041 -0
  21. xoa_driver/internals/commands/enums.py +3289 -0
  22. xoa_driver/internals/commands/m4_commands.py +700 -0
  23. xoa_driver/internals/commands/m4e_commands.py +107 -0
  24. xoa_driver/internals/commands/m_commands.py +1875 -0
  25. xoa_driver/internals/commands/p4_commands.py +2221 -0
  26. xoa_driver/internals/commands/p4e_commands.py +160 -0
  27. xoa_driver/internals/commands/p4g_commands.py +7253 -0
  28. xoa_driver/internals/commands/p_commands.py +6000 -0
  29. xoa_driver/internals/commands/pc_commands.py +335 -0
  30. xoa_driver/internals/commands/pd_commands.py +355 -0
  31. xoa_driver/internals/commands/pe_commands.py +1018 -0
  32. xoa_driver/internals/commands/pec_commands.py +265 -0
  33. xoa_driver/internals/commands/ped_commands.py +1034 -0
  34. xoa_driver/internals/commands/pef_commands.py +2216 -0
  35. xoa_driver/internals/commands/pf_commands.py +379 -0
  36. xoa_driver/internals/commands/pl1_commands.py +1588 -0
  37. xoa_driver/internals/commands/pl_commands.py +178 -0
  38. xoa_driver/internals/commands/pm_commands.py +256 -0
  39. xoa_driver/internals/commands/pp_commands.py +2341 -0
  40. xoa_driver/internals/commands/pr_commands.py +812 -0
  41. xoa_driver/internals/commands/ps_commands.py +2311 -0
  42. xoa_driver/internals/commands/pt_commands.py +370 -0
  43. xoa_driver/internals/commands/px_commands.py +303 -0
  44. xoa_driver/internals/commands/subtypes.py +86 -0
  45. xoa_driver/internals/core/__init__.py +0 -0
  46. xoa_driver/internals/core/builders.py +39 -0
  47. xoa_driver/internals/core/exceptions.py +69 -0
  48. xoa_driver/internals/core/funcs.py +81 -0
  49. xoa_driver/internals/core/funcs.pyi +1072 -0
  50. xoa_driver/internals/core/interfaces.py +47 -0
  51. xoa_driver/internals/core/token.py +44 -0
  52. xoa_driver/internals/core/transporter/__init__.py +0 -0
  53. xoa_driver/internals/core/transporter/_processor.py +83 -0
  54. xoa_driver/internals/core/transporter/_publisher.py +101 -0
  55. xoa_driver/internals/core/transporter/_request_id_counter.py +28 -0
  56. xoa_driver/internals/core/transporter/_stream.py +99 -0
  57. xoa_driver/internals/core/transporter/_typings.py +43 -0
  58. xoa_driver/internals/core/transporter/exceptions.py +44 -0
  59. xoa_driver/internals/core/transporter/handler.py +127 -0
  60. xoa_driver/internals/core/transporter/logger/__init__.py +10 -0
  61. xoa_driver/internals/core/transporter/logger/__logger.py +94 -0
  62. xoa_driver/internals/core/transporter/logger/__state_off.py +32 -0
  63. xoa_driver/internals/core/transporter/logger/__state_on_default.py +70 -0
  64. xoa_driver/internals/core/transporter/logger/__state_on_loguru.py +51 -0
  65. xoa_driver/internals/core/transporter/logger/__state_on_user.py +48 -0
  66. xoa_driver/internals/core/transporter/protocol/__init__.py +0 -0
  67. xoa_driver/internals/core/transporter/protocol/_constants.py +77 -0
  68. xoa_driver/internals/core/transporter/protocol/_utils.py +59 -0
  69. xoa_driver/internals/core/transporter/protocol/exceptions.py +271 -0
  70. xoa_driver/internals/core/transporter/protocol/payload/__init__.py +70 -0
  71. xoa_driver/internals/core/transporter/protocol/payload/base_struct.py +283 -0
  72. xoa_driver/internals/core/transporter/protocol/payload/descriptor.py +119 -0
  73. xoa_driver/internals/core/transporter/protocol/payload/exceptions.py +20 -0
  74. xoa_driver/internals/core/transporter/protocol/payload/field.py +296 -0
  75. xoa_driver/internals/core/transporter/protocol/payload/types.py +173 -0
  76. xoa_driver/internals/core/transporter/protocol/payload/utils.py +53 -0
  77. xoa_driver/internals/core/transporter/protocol/struct_header.py +123 -0
  78. xoa_driver/internals/core/transporter/protocol/struct_request.py +65 -0
  79. xoa_driver/internals/core/transporter/protocol/struct_response.py +89 -0
  80. xoa_driver/internals/core/transporter/registry.py +43 -0
  81. xoa_driver/internals/exceptions/__init__.py +9 -0
  82. xoa_driver/internals/exceptions/modules.py +13 -0
  83. xoa_driver/internals/exceptions/testers.py +21 -0
  84. xoa_driver/internals/hli_v1/__init__.py +0 -0
  85. xoa_driver/internals/hli_v1/indices/__init__.py +0 -0
  86. xoa_driver/internals/hli_v1/indices/base_index.py +39 -0
  87. xoa_driver/internals/hli_v1/indices/connection_group/__init__.py +0 -0
  88. xoa_driver/internals/hli_v1/indices/connection_group/cg.py +186 -0
  89. xoa_driver/internals/hli_v1/indices/connection_group/histogram.py +78 -0
  90. xoa_driver/internals/hli_v1/indices/connection_group/l2.py +94 -0
  91. xoa_driver/internals/hli_v1/indices/connection_group/l3.py +130 -0
  92. xoa_driver/internals/hli_v1/indices/connection_group/raw.py +200 -0
  93. xoa_driver/internals/hli_v1/indices/connection_group/replay.py +109 -0
  94. xoa_driver/internals/hli_v1/indices/connection_group/tcp.py +314 -0
  95. xoa_driver/internals/hli_v1/indices/connection_group/tls.py +198 -0
  96. xoa_driver/internals/hli_v1/indices/connection_group/udp.py +133 -0
  97. xoa_driver/internals/hli_v1/indices/connection_group/user_state.py +28 -0
  98. xoa_driver/internals/hli_v1/indices/filter/__init__.py +0 -0
  99. xoa_driver/internals/hli_v1/indices/filter/base_filter.py +65 -0
  100. xoa_driver/internals/hli_v1/indices/filter/genuine_filter.py +20 -0
  101. xoa_driver/internals/hli_v1/indices/length_term.py +49 -0
  102. xoa_driver/internals/hli_v1/indices/macsecscs/__init__.py +0 -0
  103. xoa_driver/internals/hli_v1/indices/macsecscs/base_macsecsc.py +224 -0
  104. xoa_driver/internals/hli_v1/indices/macsecscs/genuine_macsecsc.py +72 -0
  105. xoa_driver/internals/hli_v1/indices/match_term.py +64 -0
  106. xoa_driver/internals/hli_v1/indices/port_dataset.py +72 -0
  107. xoa_driver/internals/hli_v1/indices/streams/__init__.py +0 -0
  108. xoa_driver/internals/hli_v1/indices/streams/base_stream.py +405 -0
  109. xoa_driver/internals/hli_v1/indices/streams/genuine_stream.py +64 -0
  110. xoa_driver/internals/hli_v1/modules/__init__.py +0 -0
  111. xoa_driver/internals/hli_v1/modules/__interfaces.py +21 -0
  112. xoa_driver/internals/hli_v1/modules/base_module.py +138 -0
  113. xoa_driver/internals/hli_v1/modules/module_chimera.py +366 -0
  114. xoa_driver/internals/hli_v1/modules/module_l23ve.py +73 -0
  115. xoa_driver/internals/hli_v1/modules/module_l47.py +397 -0
  116. xoa_driver/internals/hli_v1/modules/module_l47ve.py +9 -0
  117. xoa_driver/internals/hli_v1/modules/modules_l23/__init__.py +0 -0
  118. xoa_driver/internals/hli_v1/modules/modules_l23/family_combi.py +83 -0
  119. xoa_driver/internals/hli_v1/modules/modules_l23/family_d.py +75 -0
  120. xoa_driver/internals/hli_v1/modules/modules_l23/family_e.py +85 -0
  121. xoa_driver/internals/hli_v1/modules/modules_l23/family_f.py +145 -0
  122. xoa_driver/internals/hli_v1/modules/modules_l23/family_g.py +84 -0
  123. xoa_driver/internals/hli_v1/modules/modules_l23/family_h.py +40 -0
  124. xoa_driver/internals/hli_v1/modules/modules_l23/family_i.py +25 -0
  125. xoa_driver/internals/hli_v1/modules/modules_l23/family_j.py +25 -0
  126. xoa_driver/internals/hli_v1/modules/modules_l23/family_k.py +39 -0
  127. xoa_driver/internals/hli_v1/modules/modules_l23/family_l.py +55 -0
  128. xoa_driver/internals/hli_v1/modules/modules_l23/family_l1.py +800 -0
  129. xoa_driver/internals/hli_v1/modules/modules_l23/family_m.py +25 -0
  130. xoa_driver/internals/hli_v1/modules/modules_l23/family_n.py +40 -0
  131. xoa_driver/internals/hli_v1/modules/modules_l23/module_l23_base.py +383 -0
  132. xoa_driver/internals/hli_v1/ports/__init__.py +0 -0
  133. xoa_driver/internals/hli_v1/ports/base_port.py +125 -0
  134. xoa_driver/internals/hli_v1/ports/port_l23/__init__.py +0 -0
  135. xoa_driver/internals/hli_v1/ports/port_l23/bases/__init__.py +0 -0
  136. xoa_driver/internals/hli_v1/ports/port_l23/bases/port_capture.py +70 -0
  137. xoa_driver/internals/hli_v1/ports/port_l23/bases/port_l23.py +527 -0
  138. xoa_driver/internals/hli_v1/ports/port_l23/bases/port_l23_genuine.py +229 -0
  139. xoa_driver/internals/hli_v1/ports/port_l23/bases/port_reception_statistics.py +231 -0
  140. xoa_driver/internals/hli_v1/ports/port_l23/bases/port_transceiver.py +117 -0
  141. xoa_driver/internals/hli_v1/ports/port_l23/bases/port_transmission_statistics.py +131 -0
  142. xoa_driver/internals/hli_v1/ports/port_l23/chimera/__init__.py +0 -0
  143. xoa_driver/internals/hli_v1/ports/port_l23/chimera/filter_definition/__init__.py +0 -0
  144. xoa_driver/internals/hli_v1/ports/port_l23/chimera/filter_definition/_utils.py +15 -0
  145. xoa_driver/internals/hli_v1/ports/port_l23/chimera/filter_definition/general.py +396 -0
  146. xoa_driver/internals/hli_v1/ports/port_l23/chimera/filter_definition/shadow.py +104 -0
  147. xoa_driver/internals/hli_v1/ports/port_l23/chimera/filter_definition/working.py +36 -0
  148. xoa_driver/internals/hli_v1/ports/port_l23/chimera/pe_custom_distribution.py +125 -0
  149. xoa_driver/internals/hli_v1/ports/port_l23/chimera/pe_distribution.py +174 -0
  150. xoa_driver/internals/hli_v1/ports/port_l23/chimera/port_chimera.py +119 -0
  151. xoa_driver/internals/hli_v1/ports/port_l23/chimera/port_emulation.py +244 -0
  152. xoa_driver/internals/hli_v1/ports/port_l23/chimera/reception_statistics.py +24 -0
  153. xoa_driver/internals/hli_v1/ports/port_l23/chimera/transmission_statistics.py +24 -0
  154. xoa_driver/internals/hli_v1/ports/port_l23/family_combi.py +37 -0
  155. xoa_driver/internals/hli_v1/ports/port_l23/family_d.py +51 -0
  156. xoa_driver/internals/hli_v1/ports/port_l23/family_e.py +107 -0
  157. xoa_driver/internals/hli_v1/ports/port_l23/family_f.py +151 -0
  158. xoa_driver/internals/hli_v1/ports/port_l23/family_g.py +77 -0
  159. xoa_driver/internals/hli_v1/ports/port_l23/family_h.py +67 -0
  160. xoa_driver/internals/hli_v1/ports/port_l23/family_i.py +84 -0
  161. xoa_driver/internals/hli_v1/ports/port_l23/family_j.py +68 -0
  162. xoa_driver/internals/hli_v1/ports/port_l23/family_k.py +73 -0
  163. xoa_driver/internals/hli_v1/ports/port_l23/family_l.py +82 -0
  164. xoa_driver/internals/hli_v1/ports/port_l23/family_l1.py +166 -0
  165. xoa_driver/internals/hli_v1/ports/port_l23/family_m.py +29 -0
  166. xoa_driver/internals/hli_v1/ports/port_l23/fault_jkl.py +24 -0
  167. xoa_driver/internals/hli_v1/ports/port_l23/freya_l1.py +722 -0
  168. xoa_driver/internals/hli_v1/ports/port_l23/pcs_pma_ghijkl.py +369 -0
  169. xoa_driver/internals/hli_v1/ports/port_l23/pcs_pma_ijkl_chimera.py +60 -0
  170. xoa_driver/internals/hli_v1/ports/port_l23/pcs_pma_l.py +78 -0
  171. xoa_driver/internals/hli_v1/ports/port_l23/port_l23ve.py +101 -0
  172. xoa_driver/internals/hli_v1/ports/port_l47/__init__.py +0 -0
  173. xoa_driver/internals/hli_v1/ports/port_l47/counters.py +174 -0
  174. xoa_driver/internals/hli_v1/ports/port_l47/main.py +228 -0
  175. xoa_driver/internals/hli_v1/ports/port_l47/packet_engine.py +31 -0
  176. xoa_driver/internals/hli_v1/revisions.py +11 -0
  177. xoa_driver/internals/hli_v1/testers/__init__.py +0 -0
  178. xoa_driver/internals/hli_v1/testers/_base_tester.py +259 -0
  179. xoa_driver/internals/hli_v1/testers/genuine/__init__.py +0 -0
  180. xoa_driver/internals/hli_v1/testers/genuine/l_23/__init__.py +0 -0
  181. xoa_driver/internals/hli_v1/testers/genuine/l_23/health.py +16 -0
  182. xoa_driver/internals/hli_v1/testers/genuine/l_23/rest_api.py +38 -0
  183. xoa_driver/internals/hli_v1/testers/genuine/l_23/time_keeper.py +57 -0
  184. xoa_driver/internals/hli_v1/testers/genuine/l_23/upload_file.py +29 -0
  185. xoa_driver/internals/hli_v1/testers/genuine/management_interface.py +42 -0
  186. xoa_driver/internals/hli_v1/testers/l23_tester.py +196 -0
  187. xoa_driver/internals/hli_v1/testers/l23ve_tester.py +114 -0
  188. xoa_driver/internals/hli_v1/testers/l47_tester.py +106 -0
  189. xoa_driver/internals/hli_v1/testers/l47ve_tester.py +54 -0
  190. xoa_driver/internals/hli_v2/__init__.py +0 -0
  191. xoa_driver/internals/hli_v2/indices/__init__.py +0 -0
  192. xoa_driver/internals/hli_v2/indices/base_index.py +39 -0
  193. xoa_driver/internals/hli_v2/indices/connection_group/__init__.py +0 -0
  194. xoa_driver/internals/hli_v2/indices/connection_group/cg.py +115 -0
  195. xoa_driver/internals/hli_v2/indices/connection_group/histogram.py +59 -0
  196. xoa_driver/internals/hli_v2/indices/connection_group/l2.py +71 -0
  197. xoa_driver/internals/hli_v2/indices/connection_group/l3.py +96 -0
  198. xoa_driver/internals/hli_v2/indices/connection_group/raw.py +148 -0
  199. xoa_driver/internals/hli_v2/indices/connection_group/replay.py +89 -0
  200. xoa_driver/internals/hli_v2/indices/connection_group/tcp.py +261 -0
  201. xoa_driver/internals/hli_v2/indices/connection_group/tls.py +166 -0
  202. xoa_driver/internals/hli_v2/indices/connection_group/udp.py +112 -0
  203. xoa_driver/internals/hli_v2/indices/connection_group/user_state.py +25 -0
  204. xoa_driver/internals/hli_v2/indices/filter/__init__.py +0 -0
  205. xoa_driver/internals/hli_v2/indices/filter/base_filter.py +50 -0
  206. xoa_driver/internals/hli_v2/indices/filter/genuine_filter.py +17 -0
  207. xoa_driver/internals/hli_v2/indices/length_term.py +44 -0
  208. xoa_driver/internals/hli_v2/indices/match_term.py +49 -0
  209. xoa_driver/internals/hli_v2/indices/port_dataset.py +53 -0
  210. xoa_driver/internals/hli_v2/indices/streams/__init__.py +0 -0
  211. xoa_driver/internals/hli_v2/indices/streams/base_stream.py +234 -0
  212. xoa_driver/internals/hli_v2/indices/streams/genuine_stream.py +32 -0
  213. xoa_driver/internals/hli_v2/modules/__init__.py +0 -0
  214. xoa_driver/internals/hli_v2/modules/__interfaces.py +21 -0
  215. xoa_driver/internals/hli_v2/modules/base_module.py +125 -0
  216. xoa_driver/internals/hli_v2/modules/module_chimera.py +358 -0
  217. xoa_driver/internals/hli_v2/modules/module_l23ve.py +58 -0
  218. xoa_driver/internals/hli_v2/modules/module_l47.py +230 -0
  219. xoa_driver/internals/hli_v2/modules/module_l47ve.py +8 -0
  220. xoa_driver/internals/hli_v2/modules/modules_l23/__init__.py +0 -0
  221. xoa_driver/internals/hli_v2/modules/modules_l23/family_combi.py +73 -0
  222. xoa_driver/internals/hli_v2/modules/modules_l23/family_d.py +75 -0
  223. xoa_driver/internals/hli_v2/modules/modules_l23/family_e.py +85 -0
  224. xoa_driver/internals/hli_v2/modules/modules_l23/family_f.py +144 -0
  225. xoa_driver/internals/hli_v2/modules/modules_l23/family_g.py +84 -0
  226. xoa_driver/internals/hli_v2/modules/modules_l23/family_h.py +40 -0
  227. xoa_driver/internals/hli_v2/modules/modules_l23/family_i.py +25 -0
  228. xoa_driver/internals/hli_v2/modules/modules_l23/family_j.py +25 -0
  229. xoa_driver/internals/hli_v2/modules/modules_l23/family_k.py +39 -0
  230. xoa_driver/internals/hli_v2/modules/modules_l23/family_l.py +55 -0
  231. xoa_driver/internals/hli_v2/modules/modules_l23/family_l1.py +797 -0
  232. xoa_driver/internals/hli_v2/modules/modules_l23/family_m.py +25 -0
  233. xoa_driver/internals/hli_v2/modules/modules_l23/family_n.py +40 -0
  234. xoa_driver/internals/hli_v2/modules/modules_l23/module_l23_base.py +339 -0
  235. xoa_driver/internals/hli_v2/ports/__init__.py +0 -0
  236. xoa_driver/internals/hli_v2/ports/base_port.py +105 -0
  237. xoa_driver/internals/hli_v2/ports/port_l23/__init__.py +0 -0
  238. xoa_driver/internals/hli_v2/ports/port_l23/bases/__init__.py +0 -0
  239. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_capture.py +64 -0
  240. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_l23.py +441 -0
  241. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_l23_genuine.py +172 -0
  242. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_reception_statistics.py +156 -0
  243. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_transceiver.py +117 -0
  244. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_transmission_statistics.py +59 -0
  245. xoa_driver/internals/hli_v2/ports/port_l23/chimera/__init__.py +0 -0
  246. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/__init__.py +0 -0
  247. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/_utils.py +15 -0
  248. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/general.py +340 -0
  249. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/shadow.py +99 -0
  250. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/working.py +36 -0
  251. xoa_driver/internals/hli_v2/ports/port_l23/chimera/pe_custom_distribution.py +116 -0
  252. xoa_driver/internals/hli_v2/ports/port_l23/chimera/pe_distribution.py +102 -0
  253. xoa_driver/internals/hli_v2/ports/port_l23/chimera/port_chimera.py +113 -0
  254. xoa_driver/internals/hli_v2/ports/port_l23/chimera/port_emulation.py +420 -0
  255. xoa_driver/internals/hli_v2/ports/port_l23/chimera/reception_statistics.py +22 -0
  256. xoa_driver/internals/hli_v2/ports/port_l23/chimera/transmission_statistics.py +22 -0
  257. xoa_driver/internals/hli_v2/ports/port_l23/family_combi.py +36 -0
  258. xoa_driver/internals/hli_v2/ports/port_l23/family_d.py +49 -0
  259. xoa_driver/internals/hli_v2/ports/port_l23/family_e.py +96 -0
  260. xoa_driver/internals/hli_v2/ports/port_l23/family_f.py +144 -0
  261. xoa_driver/internals/hli_v2/ports/port_l23/family_g.py +77 -0
  262. xoa_driver/internals/hli_v2/ports/port_l23/family_h.py +60 -0
  263. xoa_driver/internals/hli_v2/ports/port_l23/family_i.py +66 -0
  264. xoa_driver/internals/hli_v2/ports/port_l23/family_j.py +53 -0
  265. xoa_driver/internals/hli_v2/ports/port_l23/family_k.py +58 -0
  266. xoa_driver/internals/hli_v2/ports/port_l23/family_l.py +67 -0
  267. xoa_driver/internals/hli_v2/ports/port_l23/family_l1.py +149 -0
  268. xoa_driver/internals/hli_v2/ports/port_l23/family_m.py +28 -0
  269. xoa_driver/internals/hli_v2/ports/port_l23/fault_jkl.py +22 -0
  270. xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_ghijkl.py +342 -0
  271. xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_ijkl_chimera.py +50 -0
  272. xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_l.py +65 -0
  273. xoa_driver/internals/hli_v2/ports/port_l23/port_l23ve.py +81 -0
  274. xoa_driver/internals/hli_v2/ports/port_l47/__init__.py +0 -0
  275. xoa_driver/internals/hli_v2/ports/port_l47/counters.py +146 -0
  276. xoa_driver/internals/hli_v2/ports/port_l47/main.py +137 -0
  277. xoa_driver/internals/hli_v2/ports/port_l47/packet_engine.py +20 -0
  278. xoa_driver/internals/hli_v2/revisions.py +11 -0
  279. xoa_driver/internals/hli_v2/testers/__init__.py +0 -0
  280. xoa_driver/internals/hli_v2/testers/_base_tester.py +207 -0
  281. xoa_driver/internals/hli_v2/testers/genuine/__init__.py +0 -0
  282. xoa_driver/internals/hli_v2/testers/genuine/l_23/__init__.py +0 -0
  283. xoa_driver/internals/hli_v2/testers/genuine/l_23/health.py +16 -0
  284. xoa_driver/internals/hli_v2/testers/genuine/l_23/rest_api.py +34 -0
  285. xoa_driver/internals/hli_v2/testers/genuine/l_23/time_keeper.py +50 -0
  286. xoa_driver/internals/hli_v2/testers/genuine/l_23/upload_file.py +26 -0
  287. xoa_driver/internals/hli_v2/testers/genuine/management_interface.py +38 -0
  288. xoa_driver/internals/hli_v2/testers/l23_tester.py +159 -0
  289. xoa_driver/internals/hli_v2/testers/l23ve_tester.py +98 -0
  290. xoa_driver/internals/hli_v2/testers/l47_tester.py +95 -0
  291. xoa_driver/internals/hli_v2/testers/l47ve_tester.py +50 -0
  292. xoa_driver/internals/state_storage/__init__.py +0 -0
  293. xoa_driver/internals/state_storage/_speed_detector.py +121 -0
  294. xoa_driver/internals/state_storage/modules_state.py +128 -0
  295. xoa_driver/internals/state_storage/ports_state.py +154 -0
  296. xoa_driver/internals/state_storage/testers_state.py +104 -0
  297. xoa_driver/internals/utils/__init__.py +0 -0
  298. xoa_driver/internals/utils/attributes.py +33 -0
  299. xoa_driver/internals/utils/cap_id.py +63 -0
  300. xoa_driver/internals/utils/con_traffic_light.py +88 -0
  301. xoa_driver/internals/utils/indices/__init__.py +0 -0
  302. xoa_driver/internals/utils/indices/_interfaces.py +26 -0
  303. xoa_driver/internals/utils/indices/header_modifier_manager.py +56 -0
  304. xoa_driver/internals/utils/indices/index_manager.py +95 -0
  305. xoa_driver/internals/utils/indices/observer.py +17 -0
  306. xoa_driver/internals/utils/kind.py +19 -0
  307. xoa_driver/internals/utils/managers/__init__.py +0 -0
  308. xoa_driver/internals/utils/managers/abc.py +44 -0
  309. xoa_driver/internals/utils/managers/exceptions.py +22 -0
  310. xoa_driver/internals/utils/managers/modules_manager.py +118 -0
  311. xoa_driver/internals/utils/managers/ports_manager.py +116 -0
  312. xoa_driver/internals/utils/rev_tool.py +21 -0
  313. xoa_driver/internals/utils/session.py +117 -0
  314. xoa_driver/internals/warn.py +32 -0
  315. xoa_driver/lli.py +15 -0
  316. xoa_driver/misc.py +57 -0
  317. xoa_driver/modules.py +448 -0
  318. xoa_driver/ports.py +332 -0
  319. xoa_driver/testers.py +37 -0
  320. xoa_driver/utils.py +12 -0
  321. xoa_driver/v2/__init__.py +11 -0
  322. xoa_driver/v2/misc.py +77 -0
  323. xoa_driver/v2/modules.py +308 -0
  324. xoa_driver/v2/ports.py +232 -0
  325. xoa_driver/v2/testers.py +24 -0
xoa_driver/enums.py ADDED
@@ -0,0 +1,399 @@
1
+ #: Available enums used by commands and server response status.
2
+
3
+ from .internals.commands.enums import (
4
+ AlgorithmMethod,
5
+ AlignLockStatus,
6
+ ApplicationLayerBehavior,
7
+ AutoNegFECOption,
8
+ AutoNegFECStatus,
9
+ AutoNegFECType,
10
+ AutoNegMode,
11
+ AutoNegStatus,
12
+ AutoNegTecAbility,
13
+ AutoOrManual,
14
+ BRRMode,
15
+ CaptureSize,
16
+ ChassisSessionType,
17
+ ChassisShutdownAction,
18
+ CongestionType,
19
+ CorruptionType,
20
+ CustomDefaultCommand,
21
+ CustomDefaultScope,
22
+ EmbedIP,
23
+ ErrorOnOff,
24
+ FaultSignaling,
25
+ FECMode,
26
+ FilterMode,
27
+ FilterType,
28
+ FilterUse,
29
+ FilterVlanType,
30
+ HasDemo,
31
+ HeaderLockStatus,
32
+ IGMPVersion,
33
+ ImpairmentLatencyMode,
34
+ ImpairmentTypeIndex,
35
+ InfiniteOrFinite,
36
+ InfoAction,
37
+ InjectErrorType,
38
+ IsEnabled,
39
+ IsOnline,
40
+ IsPermanent,
41
+ IsPresent,
42
+ IsValid,
43
+ LinkTrainFrameLock,
44
+ L2PlusPresent,
45
+ L3Present,
46
+ L47IPVersion,
47
+ L47PortSpeed,
48
+ L47PortState,
49
+ L47ProtocolType,
50
+ L47TrafficState,
51
+ LatencyMode,
52
+ LatencyTypeCustomDist,
53
+ LengthCheckType,
54
+ LengthType,
55
+ LicenseSpeed,
56
+ LifecycleMode,
57
+ LinkState,
58
+ LinkTrainingFailureType,
59
+ LinkTrainingInitCondition,
60
+ LinkTrainingMode,
61
+ LinkTrainingStatus,
62
+ LinkTrainingStatusMode,
63
+ LocalFaultStatus,
64
+ LoopbackMode,
65
+ LoopBandwidth,
66
+ MDIXMode,
67
+ MediaCFPState,
68
+ MediaCFPType,
69
+ MediaConfigurationType,
70
+ ModifierAction,
71
+ MSSType,
72
+ MulticastExtOperation,
73
+ MulticastHeaderFormat,
74
+ MulticastOperation,
75
+ NRZPreset,
76
+ OnOff,
77
+ OnOffDefault,
78
+ OnOffWithSuppress,
79
+ PacketDetailSelection,
80
+ PacketType,
81
+ PAM4FrameSize,
82
+ PauseMode,
83
+ PayloadGenerationMethod,
84
+ PayloadMode,
85
+ PayloadType,
86
+ PFCMode,
87
+ PHYSignalStatus,
88
+ PolicerMode,
89
+ PortSpeedMode,
90
+ PPMSweepMode,
91
+ PPMSweepStatus,
92
+ PRBSInsertedType,
93
+ PRBSInvertState,
94
+ PRBSLockStatus,
95
+ PRBSOnOff,
96
+ PRBSPattern,
97
+ PRBSPolynomial,
98
+ PRBSStatisticsMode,
99
+ ProtocolOption,
100
+ ReconciliationSublayerSupport,
101
+ RemoteFaultStatus,
102
+ ReplayParserState,
103
+ ReplaySchedulingMode,
104
+ ReplaySyncBasedOn,
105
+ ReservedAction,
106
+ ReservedStatus,
107
+ ResourceAllocationMode,
108
+ RESTControlAction,
109
+ Role,
110
+ RTOType,
111
+ RXCState,
112
+ RXHState,
113
+ SerdesStatus,
114
+ ServiceStatus,
115
+ ShadowWorkingSelection,
116
+ SMAInputFunction,
117
+ SMAOutputFunction,
118
+ SMAStatus,
119
+ SourceType,
120
+ StartOrStop,
121
+ StartTrigger,
122
+ StopTrigger,
123
+ SyncStatus,
124
+ SystemUpdateStatus,
125
+ TimeKeeperLicenseError,
126
+ TimeKeeperLicenseFileState,
127
+ TimeKeeperLicenseType,
128
+ TimeKeeperServiceAction,
129
+ TimeKeeperServiceStatus,
130
+ TimeoutMode,
131
+ Timescale,
132
+ TimingSource,
133
+ TLSVersion,
134
+ TPLDMode,
135
+ TrafficEngine,
136
+ TrafficError,
137
+ TrafficOnOff,
138
+ TrafficScenario,
139
+ TSNConfigProfile,
140
+ TSNDeviationMode,
141
+ TSNHistogramSource,
142
+ TSNPortRole,
143
+ TSNStatisticsTypes,
144
+ TSNTimeSource,
145
+ TXClockSource,
146
+ TXClockStatus,
147
+ TXCState,
148
+ TXHState,
149
+ TXMode,
150
+ UpdateState,
151
+ WhoClose,
152
+ YesNo,
153
+ Layer1ConfigType,
154
+ LinkTrainAlgorithm,
155
+ LinkTrainCmd,
156
+ LinkTrainAnnounce,
157
+ Layer1LogType,
158
+ LinkTrainCmdFlags,
159
+ LinkTrainCmdResults,
160
+ LinkTrainCoeffs,
161
+ LinkTrainEncoding,
162
+ LinkTrainPresets,
163
+ AnLtLogControl,
164
+ RxEqExtCap,
165
+ RxEqExtCapMode,
166
+ PreCodingMode,
167
+ GrayCodingMode,
168
+ Endianness,
169
+ StreamOption,
170
+ DhcpState,
171
+ DhcpVlanState,
172
+ VlanType,
173
+ ChassisModelNumber,
174
+ ChassisModelName,
175
+ ModuleModelName,
176
+ FreyaAutonegMode,
177
+ FreyaLinkTrainingMode,
178
+ FreyaTecAbility,
179
+ FreyaFECAbility,
180
+ FreyaPauseAbility,
181
+ FreyaTechAbilityHCDStatus,
182
+ FreyaOutOfSyncPreset,
183
+ Layer1Control,
184
+ FreyaPCSVariant,
185
+ FreyaTecAbilityHCD,
186
+ Layer1Opcode,
187
+ FecCodewordBitErrorMaskMode,
188
+ FreyaPresetResponse,
189
+ FreyaPresetIndex,
190
+ FreyaTapIndex,
191
+ FreyaLinkTrainingRangeResponse,
192
+ FreyaAutorestartMode,
193
+ MACSecSCIMode,
194
+ MACSecCipherSuite,
195
+ MACSecEncryptionMode,
196
+ MACSecRekeyMode,
197
+ # MACSecVLANMode,
198
+ ModifierEndianness,
199
+ MACSecPNMode,
200
+ )
201
+
202
+ __all__ = (
203
+ "AlgorithmMethod",
204
+ "AlignLockStatus",
205
+ "ApplicationLayerBehavior",
206
+ "AutoNegFECOption",
207
+ "AutoNegFECStatus",
208
+ "AutoNegFECType",
209
+ "AutoNegMode",
210
+ "AutoNegStatus",
211
+ "AutoNegTecAbility",
212
+ "AutoOrManual",
213
+ "BRRMode",
214
+ "CaptureSize",
215
+ "ChassisSessionType",
216
+ "ChassisShutdownAction",
217
+ "CongestionType",
218
+ "CorruptionType",
219
+ "CustomDefaultCommand",
220
+ "CustomDefaultScope",
221
+ "EmbedIP",
222
+ "ErrorOnOff",
223
+ "FaultSignaling",
224
+ "FECMode",
225
+ "FilterMode",
226
+ "FilterType",
227
+ "FilterUse",
228
+ "FilterVlanType",
229
+ "HasDemo",
230
+ "HeaderLockStatus",
231
+ "IGMPVersion",
232
+ "ImpairmentLatencyMode",
233
+ "ImpairmentTypeIndex",
234
+ "InfiniteOrFinite",
235
+ "InfoAction",
236
+ "InjectErrorType",
237
+ "IsEnabled",
238
+ "IsOnline",
239
+ "IsPermanent",
240
+ "IsPresent",
241
+ "IsValid",
242
+ "LinkTrainFrameLock",
243
+ "L2PlusPresent",
244
+ "L3Present",
245
+ "L47IPVersion",
246
+ "L47PortSpeed",
247
+ "L47PortState",
248
+ "L47ProtocolType",
249
+ "L47TrafficState",
250
+ "LatencyMode",
251
+ "LatencyTypeCustomDist",
252
+ "LengthCheckType",
253
+ "LengthType",
254
+ "LicenseSpeed",
255
+ "LifecycleMode",
256
+ "LinkState",
257
+ "LinkTrainingFailureType",
258
+ "LinkTrainingInitCondition",
259
+ "LinkTrainingMode",
260
+ "LinkTrainingStatus",
261
+ "LinkTrainingStatusMode",
262
+ "LocalFaultStatus",
263
+ "LoopbackMode",
264
+ "LoopBandwidth",
265
+ "MDIXMode",
266
+ "MediaCFPState",
267
+ "MediaCFPType",
268
+ "MediaConfigurationType",
269
+ "ModifierAction",
270
+ "MSSType",
271
+ "MulticastExtOperation",
272
+ "MulticastHeaderFormat",
273
+ "MulticastOperation",
274
+ "NRZPreset",
275
+ "OnOff",
276
+ "OnOffDefault",
277
+ "OnOffWithSuppress",
278
+ "PacketDetailSelection",
279
+ "PacketType",
280
+ "PAM4FrameSize",
281
+ "PauseMode",
282
+ "PayloadGenerationMethod",
283
+ "PayloadMode",
284
+ "PayloadType",
285
+ "PFCMode",
286
+ "PHYSignalStatus",
287
+ "PolicerMode",
288
+ "PortSpeedMode",
289
+ "PPMSweepMode",
290
+ "PPMSweepStatus",
291
+ "PRBSInsertedType",
292
+ "PRBSInvertState",
293
+ "PRBSLockStatus",
294
+ "PRBSOnOff",
295
+ "PRBSPattern",
296
+ "PRBSPolynomial",
297
+ "PRBSStatisticsMode",
298
+ "ProtocolOption",
299
+ "ReconciliationSublayerSupport",
300
+ "RemoteFaultStatus",
301
+ "ReplayParserState",
302
+ "ReplaySchedulingMode",
303
+ "ReplaySyncBasedOn",
304
+ "ReservedAction",
305
+ "ReservedStatus",
306
+ "ResourceAllocationMode",
307
+ "RESTControlAction",
308
+ "Role",
309
+ "RTOType",
310
+ "RXCState",
311
+ "RXHState",
312
+ "SerdesStatus",
313
+ "ServiceStatus",
314
+ "ShadowWorkingSelection",
315
+ "SMAInputFunction",
316
+ "SMAOutputFunction",
317
+ "SMAStatus",
318
+ "SourceType",
319
+ "StartOrStop",
320
+ "StartTrigger",
321
+ "StopTrigger",
322
+ "SyncStatus",
323
+ "SystemUpdateStatus",
324
+ "TimeKeeperLicenseError",
325
+ "TimeKeeperLicenseFileState",
326
+ "TimeKeeperLicenseType",
327
+ "TimeKeeperServiceAction",
328
+ "TimeKeeperServiceStatus",
329
+ "TimeoutMode",
330
+ "Timescale",
331
+ "TimingSource",
332
+ "TLSVersion",
333
+ "TPLDMode",
334
+ "TrafficEngine",
335
+ "TrafficError",
336
+ "TrafficOnOff",
337
+ "TrafficScenario",
338
+ "TSNConfigProfile",
339
+ "TSNDeviationMode",
340
+ "TSNHistogramSource",
341
+ "TSNPortRole",
342
+ "TSNStatisticsTypes",
343
+ "TSNTimeSource",
344
+ "TXClockSource",
345
+ "TXClockStatus",
346
+ "TXCState",
347
+ "TXHState",
348
+ "TXMode",
349
+ "UpdateState",
350
+ "WhoClose",
351
+ "YesNo",
352
+ "Layer1ConfigType",
353
+ "LinkTrainAlgorithm",
354
+ "LinkTrainCmd",
355
+ "LinkTrainAnnounce",
356
+ "Layer1LogType",
357
+ "LinkTrainCmdFlags",
358
+ "LinkTrainCmdResults",
359
+ "LinkTrainCoeffs",
360
+ "LinkTrainEncoding",
361
+ "LinkTrainPresets",
362
+ "AnLtLogControl",
363
+ "RxEqExtCap",
364
+ "RxEqExtCapMode",
365
+ "PreCodingMode",
366
+ "GrayCodingMode",
367
+ "Endianness",
368
+ "StreamOption",
369
+ "DhcpState",
370
+ "DhcpVlanState",
371
+ "VlanType",
372
+ "ChassisModelNumber",
373
+ "ChassisModelName",
374
+ "ModuleModelName",
375
+ "FreyaAutonegMode",
376
+ "FreyaLinkTrainingMode",
377
+ "FreyaTecAbility",
378
+ "FreyaFECAbility",
379
+ "FreyaPauseAbility",
380
+ "FreyaTechAbilityHCDStatus",
381
+ "FreyaOutOfSyncPreset",
382
+ "Layer1Control",
383
+ "FreyaPCSVariant",
384
+ "FreyaTecAbilityHCD",
385
+ "Layer1Opcode",
386
+ "FecCodewordBitErrorMaskMode",
387
+ "FreyaPresetResponse",
388
+ "FreyaPresetIndex",
389
+ "FreyaTapIndex",
390
+ "FreyaLinkTrainingRangeResponse",
391
+ "FreyaAutorestartMode",
392
+ "MACSecSCIMode",
393
+ "MACSecCipherSuite",
394
+ "MACSecEncryptionMode",
395
+ "MACSecRekeyMode",
396
+ # "MACSecVLANMode",
397
+ "ModifierEndianness",
398
+ "MACSecPNMode",
399
+ )
@@ -0,0 +1,77 @@
1
+ #: All exception classes which can be propagated to the upper level.
2
+
3
+ from .internals.exceptions import (
4
+ WrongModuleError,
5
+ WrongTesterError,
6
+ WrongTesterPasswordError,
7
+ )
8
+ from .internals.core.exceptions import (
9
+ RepeatedRequestID,
10
+ TransporterException,
11
+ XmpBadCommandError,
12
+ XmpBadHeaderError,
13
+ XmpBadIndexError,
14
+ XmpBadModuleError,
15
+ XmpBadParameterError,
16
+ XmpBadPortError,
17
+ XmpBadSizeError,
18
+ XmpBadValueError,
19
+ XmpFailedError,
20
+ XmpMemoryFailureError,
21
+ XmpModuleOperationNotSupportedByChassisError,
22
+ XmpNoConnectionError,
23
+ XmpNoFreePortLicenseError,
24
+ XmpNoLoggedOnError,
25
+ XmpNoPeLicenseError,
26
+ XmpNotReadableError,
27
+ XmpNotReservedError,
28
+ XmpNotSupportedError,
29
+ XmpNotValidError,
30
+ XmpNotWritableError,
31
+ XmpPendingError,
32
+ XmpStatusException,
33
+ XmpXlsDeniedError,
34
+ XmpXlsFailedError,
35
+ XmpXlsInvalidError,
36
+ XoaConnectionError,
37
+ XoaConnectionTimeoutError,
38
+ XoaException,
39
+ XoaLostFuture,
40
+ )
41
+
42
+ __all__ = (
43
+ "RepeatedRequestID",
44
+ "TransporterException",
45
+ "WrongModuleError",
46
+ "WrongTesterError",
47
+ "WrongTesterPasswordError",
48
+ "XmpBadCommandError",
49
+ "XmpBadHeaderError",
50
+ "XmpBadIndexError",
51
+ "XmpBadModuleError",
52
+ "XmpBadParameterError",
53
+ "XmpBadPortError",
54
+ "XmpBadSizeError",
55
+ "XmpBadValueError",
56
+ "XmpFailedError",
57
+ "XmpMemoryFailureError",
58
+ "XmpModuleOperationNotSupportedByChassisError",
59
+ "XmpNoConnectionError",
60
+ "XmpNoFreePortLicenseError",
61
+ "XmpNoLoggedOnError",
62
+ "XmpNoPeLicenseError",
63
+ "XmpNotReadableError",
64
+ "XmpNotReservedError",
65
+ "XmpNotSupportedError",
66
+ "XmpNotValidError",
67
+ "XmpNotWritableError",
68
+ "XmpPendingError",
69
+ "XmpStatusException",
70
+ "XmpXlsDeniedError",
71
+ "XmpXlsFailedError",
72
+ "XmpXlsInvalidError",
73
+ "XoaConnectionError",
74
+ "XoaConnectionTimeoutError",
75
+ "XoaException",
76
+ "XoaLostFuture",
77
+ )
File without changes