tdl-xoa-driver 1.2.0__py3-none-any.whl → 1.4.0__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 (240) hide show
  1. {tdl_xoa_driver-1.2.0.dist-info → tdl_xoa_driver-1.4.0.dist-info}/METADATA +5 -5
  2. tdl_xoa_driver-1.4.0.dist-info/RECORD +218 -0
  3. {tdl_xoa_driver-1.2.0.dist-info → tdl_xoa_driver-1.4.0.dist-info}/WHEEL +1 -1
  4. xoa_driver/__init__.py +2 -2
  5. xoa_driver/enums.py +2 -0
  6. xoa_driver/functions/anlt.py +2 -2
  7. xoa_driver/functions/exceptions.py +7 -0
  8. xoa_driver/functions/mgmt.py +62 -25
  9. xoa_driver/hlfuncs.py +1 -1
  10. xoa_driver/internals/commands/enums.py +10 -1
  11. xoa_driver/internals/commands/m_commands.py +35 -3
  12. xoa_driver/internals/commands/p_commands.py +12 -10
  13. xoa_driver/internals/commands/pt_commands.py +21 -1
  14. xoa_driver/internals/commands/px_commands.py +1686 -6
  15. xoa_driver/internals/core/transporter/_request_id_counter.py +1 -1
  16. xoa_driver/internals/core/transporter/protocol/payload/__init__.py +3 -1
  17. xoa_driver/internals/core/transporter/protocol/payload/field.py +41 -0
  18. xoa_driver/internals/core/transporter/protocol/payload/types.py +19 -0
  19. xoa_driver/internals/{hli_v1 → hli}/indices/filter/base_filter.py +1 -1
  20. xoa_driver/internals/{hli_v1 → hli}/indices/length_term.py +1 -1
  21. xoa_driver/internals/{hli_v1 → hli}/indices/macsecscs/base_macsecsc.py +2 -2
  22. xoa_driver/internals/{hli_v1 → hli}/indices/match_term.py +1 -1
  23. xoa_driver/internals/{hli_v1 → hli}/indices/port_dataset.py +1 -1
  24. xoa_driver/internals/{hli_v1 → hli}/indices/streams/base_stream.py +1 -1
  25. xoa_driver/internals/{hli_v1 → hli}/modules/module_chimera.py +20 -15
  26. xoa_driver/internals/{hli_v1 → hli}/modules/module_l47.py +1 -1
  27. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_combi.py +1 -1
  28. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_d.py +1 -1
  29. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_e.py +1 -1
  30. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_f.py +1 -1
  31. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_g.py +17 -2
  32. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_h.py +1 -1
  33. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_i.py +1 -1
  34. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_j.py +1 -1
  35. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_k.py +1 -1
  36. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_l.py +1 -1
  37. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_l1.py +1 -1
  38. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_m.py +1 -1
  39. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_n.py +1 -1
  40. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/module_l23_base.py +18 -12
  41. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/port_l23.py +3 -3
  42. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/port_l23_genuine.py +4 -4
  43. xoa_driver/internals/hli/ports/port_l23/bases/port_transceiver.py +247 -0
  44. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/port_transmission_statistics.py +1 -1
  45. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/port_chimera.py +1 -1
  46. xoa_driver/internals/{hli_v2 → hli}/ports/port_l23/family_g.py +5 -0
  47. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/port_l23ve.py +2 -2
  48. xoa_driver/internals/{hli_v1 → hli}/ports/port_l47/main.py +2 -2
  49. xoa_driver/internals/{hli_v1 → hli}/testers/l23_tester.py +1 -1
  50. xoa_driver/internals/{hli_v1 → hli}/testers/l47_tester.py +2 -2
  51. xoa_driver/internals/state_storage/modules_state.py +1 -1
  52. xoa_driver/misc.py +12 -17
  53. xoa_driver/modules.py +18 -22
  54. xoa_driver/ports.py +20 -20
  55. xoa_driver/testers.py +4 -8
  56. tdl_xoa_driver-1.2.0.dist-info/RECORD +0 -325
  57. xoa_driver/internals/hli_v1/ports/port_l23/bases/port_transceiver.py +0 -117
  58. xoa_driver/internals/hli_v1/ports/port_l23/family_g.py +0 -77
  59. xoa_driver/internals/hli_v2/__init__.py +0 -0
  60. xoa_driver/internals/hli_v2/indices/__init__.py +0 -0
  61. xoa_driver/internals/hli_v2/indices/base_index.py +0 -39
  62. xoa_driver/internals/hli_v2/indices/connection_group/__init__.py +0 -0
  63. xoa_driver/internals/hli_v2/indices/connection_group/cg.py +0 -115
  64. xoa_driver/internals/hli_v2/indices/connection_group/histogram.py +0 -59
  65. xoa_driver/internals/hli_v2/indices/connection_group/l2.py +0 -71
  66. xoa_driver/internals/hli_v2/indices/connection_group/l3.py +0 -96
  67. xoa_driver/internals/hli_v2/indices/connection_group/raw.py +0 -148
  68. xoa_driver/internals/hli_v2/indices/connection_group/replay.py +0 -89
  69. xoa_driver/internals/hli_v2/indices/connection_group/tcp.py +0 -261
  70. xoa_driver/internals/hli_v2/indices/connection_group/tls.py +0 -166
  71. xoa_driver/internals/hli_v2/indices/connection_group/udp.py +0 -112
  72. xoa_driver/internals/hli_v2/indices/connection_group/user_state.py +0 -25
  73. xoa_driver/internals/hli_v2/indices/filter/__init__.py +0 -0
  74. xoa_driver/internals/hli_v2/indices/filter/base_filter.py +0 -50
  75. xoa_driver/internals/hli_v2/indices/filter/genuine_filter.py +0 -17
  76. xoa_driver/internals/hli_v2/indices/length_term.py +0 -44
  77. xoa_driver/internals/hli_v2/indices/match_term.py +0 -49
  78. xoa_driver/internals/hli_v2/indices/port_dataset.py +0 -53
  79. xoa_driver/internals/hli_v2/indices/streams/__init__.py +0 -0
  80. xoa_driver/internals/hli_v2/indices/streams/base_stream.py +0 -234
  81. xoa_driver/internals/hli_v2/indices/streams/genuine_stream.py +0 -32
  82. xoa_driver/internals/hli_v2/modules/__init__.py +0 -0
  83. xoa_driver/internals/hli_v2/modules/__interfaces.py +0 -21
  84. xoa_driver/internals/hli_v2/modules/base_module.py +0 -125
  85. xoa_driver/internals/hli_v2/modules/module_chimera.py +0 -358
  86. xoa_driver/internals/hli_v2/modules/module_l23ve.py +0 -58
  87. xoa_driver/internals/hli_v2/modules/module_l47.py +0 -230
  88. xoa_driver/internals/hli_v2/modules/module_l47ve.py +0 -8
  89. xoa_driver/internals/hli_v2/modules/modules_l23/__init__.py +0 -0
  90. xoa_driver/internals/hli_v2/modules/modules_l23/family_combi.py +0 -73
  91. xoa_driver/internals/hli_v2/modules/modules_l23/family_d.py +0 -75
  92. xoa_driver/internals/hli_v2/modules/modules_l23/family_e.py +0 -85
  93. xoa_driver/internals/hli_v2/modules/modules_l23/family_f.py +0 -144
  94. xoa_driver/internals/hli_v2/modules/modules_l23/family_g.py +0 -84
  95. xoa_driver/internals/hli_v2/modules/modules_l23/family_h.py +0 -40
  96. xoa_driver/internals/hli_v2/modules/modules_l23/family_i.py +0 -25
  97. xoa_driver/internals/hli_v2/modules/modules_l23/family_j.py +0 -25
  98. xoa_driver/internals/hli_v2/modules/modules_l23/family_k.py +0 -39
  99. xoa_driver/internals/hli_v2/modules/modules_l23/family_l.py +0 -55
  100. xoa_driver/internals/hli_v2/modules/modules_l23/family_l1.py +0 -797
  101. xoa_driver/internals/hli_v2/modules/modules_l23/family_m.py +0 -25
  102. xoa_driver/internals/hli_v2/modules/modules_l23/family_n.py +0 -40
  103. xoa_driver/internals/hli_v2/modules/modules_l23/module_l23_base.py +0 -339
  104. xoa_driver/internals/hli_v2/ports/__init__.py +0 -0
  105. xoa_driver/internals/hli_v2/ports/base_port.py +0 -105
  106. xoa_driver/internals/hli_v2/ports/port_l23/__init__.py +0 -0
  107. xoa_driver/internals/hli_v2/ports/port_l23/bases/__init__.py +0 -0
  108. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_capture.py +0 -64
  109. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_l23.py +0 -441
  110. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_l23_genuine.py +0 -172
  111. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_reception_statistics.py +0 -156
  112. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_transceiver.py +0 -117
  113. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_transmission_statistics.py +0 -59
  114. xoa_driver/internals/hli_v2/ports/port_l23/chimera/__init__.py +0 -0
  115. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/__init__.py +0 -0
  116. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/_utils.py +0 -15
  117. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/general.py +0 -340
  118. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/shadow.py +0 -99
  119. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/working.py +0 -36
  120. xoa_driver/internals/hli_v2/ports/port_l23/chimera/pe_custom_distribution.py +0 -116
  121. xoa_driver/internals/hli_v2/ports/port_l23/chimera/pe_distribution.py +0 -102
  122. xoa_driver/internals/hli_v2/ports/port_l23/chimera/port_chimera.py +0 -113
  123. xoa_driver/internals/hli_v2/ports/port_l23/chimera/port_emulation.py +0 -420
  124. xoa_driver/internals/hli_v2/ports/port_l23/chimera/reception_statistics.py +0 -22
  125. xoa_driver/internals/hli_v2/ports/port_l23/chimera/transmission_statistics.py +0 -22
  126. xoa_driver/internals/hli_v2/ports/port_l23/family_combi.py +0 -36
  127. xoa_driver/internals/hli_v2/ports/port_l23/family_d.py +0 -49
  128. xoa_driver/internals/hli_v2/ports/port_l23/family_e.py +0 -96
  129. xoa_driver/internals/hli_v2/ports/port_l23/family_f.py +0 -144
  130. xoa_driver/internals/hli_v2/ports/port_l23/family_h.py +0 -60
  131. xoa_driver/internals/hli_v2/ports/port_l23/family_i.py +0 -66
  132. xoa_driver/internals/hli_v2/ports/port_l23/family_j.py +0 -53
  133. xoa_driver/internals/hli_v2/ports/port_l23/family_k.py +0 -58
  134. xoa_driver/internals/hli_v2/ports/port_l23/family_l.py +0 -67
  135. xoa_driver/internals/hli_v2/ports/port_l23/family_l1.py +0 -149
  136. xoa_driver/internals/hli_v2/ports/port_l23/family_m.py +0 -28
  137. xoa_driver/internals/hli_v2/ports/port_l23/fault_jkl.py +0 -22
  138. xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_ghijkl.py +0 -342
  139. xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_ijkl_chimera.py +0 -50
  140. xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_l.py +0 -65
  141. xoa_driver/internals/hli_v2/ports/port_l23/port_l23ve.py +0 -81
  142. xoa_driver/internals/hli_v2/ports/port_l47/__init__.py +0 -0
  143. xoa_driver/internals/hli_v2/ports/port_l47/counters.py +0 -146
  144. xoa_driver/internals/hli_v2/ports/port_l47/main.py +0 -137
  145. xoa_driver/internals/hli_v2/ports/port_l47/packet_engine.py +0 -20
  146. xoa_driver/internals/hli_v2/revisions.py +0 -11
  147. xoa_driver/internals/hli_v2/testers/__init__.py +0 -0
  148. xoa_driver/internals/hli_v2/testers/_base_tester.py +0 -207
  149. xoa_driver/internals/hli_v2/testers/genuine/__init__.py +0 -0
  150. xoa_driver/internals/hli_v2/testers/genuine/l_23/__init__.py +0 -0
  151. xoa_driver/internals/hli_v2/testers/genuine/l_23/health.py +0 -16
  152. xoa_driver/internals/hli_v2/testers/genuine/l_23/rest_api.py +0 -34
  153. xoa_driver/internals/hli_v2/testers/genuine/l_23/time_keeper.py +0 -50
  154. xoa_driver/internals/hli_v2/testers/genuine/l_23/upload_file.py +0 -26
  155. xoa_driver/internals/hli_v2/testers/genuine/management_interface.py +0 -38
  156. xoa_driver/internals/hli_v2/testers/l23_tester.py +0 -159
  157. xoa_driver/internals/hli_v2/testers/l23ve_tester.py +0 -98
  158. xoa_driver/internals/hli_v2/testers/l47_tester.py +0 -95
  159. xoa_driver/internals/hli_v2/testers/l47ve_tester.py +0 -50
  160. xoa_driver/v2/__init__.py +0 -11
  161. xoa_driver/v2/misc.py +0 -77
  162. xoa_driver/v2/modules.py +0 -308
  163. xoa_driver/v2/ports.py +0 -232
  164. xoa_driver/v2/testers.py +0 -24
  165. {tdl_xoa_driver-1.2.0.dist-info → tdl_xoa_driver-1.4.0.dist-info}/licenses/LICENSE +0 -0
  166. {tdl_xoa_driver-1.2.0.dist-info → tdl_xoa_driver-1.4.0.dist-info}/top_level.txt +0 -0
  167. /xoa_driver/internals/{hli_v1 → hli}/__init__.py +0 -0
  168. /xoa_driver/internals/{hli_v1 → hli}/indices/__init__.py +0 -0
  169. /xoa_driver/internals/{hli_v1 → hli}/indices/base_index.py +0 -0
  170. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/__init__.py +0 -0
  171. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/cg.py +0 -0
  172. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/histogram.py +0 -0
  173. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/l2.py +0 -0
  174. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/l3.py +0 -0
  175. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/raw.py +0 -0
  176. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/replay.py +0 -0
  177. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/tcp.py +0 -0
  178. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/tls.py +0 -0
  179. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/udp.py +0 -0
  180. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/user_state.py +0 -0
  181. /xoa_driver/internals/{hli_v1 → hli}/indices/filter/__init__.py +0 -0
  182. /xoa_driver/internals/{hli_v1 → hli}/indices/filter/genuine_filter.py +0 -0
  183. /xoa_driver/internals/{hli_v1 → hli}/indices/macsecscs/__init__.py +0 -0
  184. /xoa_driver/internals/{hli_v1 → hli}/indices/macsecscs/genuine_macsecsc.py +0 -0
  185. /xoa_driver/internals/{hli_v1 → hli}/indices/streams/__init__.py +0 -0
  186. /xoa_driver/internals/{hli_v1 → hli}/indices/streams/genuine_stream.py +0 -0
  187. /xoa_driver/internals/{hli_v1 → hli}/modules/__init__.py +0 -0
  188. /xoa_driver/internals/{hli_v1 → hli}/modules/__interfaces.py +0 -0
  189. /xoa_driver/internals/{hli_v1 → hli}/modules/base_module.py +0 -0
  190. /xoa_driver/internals/{hli_v1 → hli}/modules/module_l23ve.py +0 -0
  191. /xoa_driver/internals/{hli_v1 → hli}/modules/module_l47ve.py +0 -0
  192. /xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/__init__.py +0 -0
  193. /xoa_driver/internals/{hli_v1 → hli}/ports/__init__.py +0 -0
  194. /xoa_driver/internals/{hli_v1 → hli}/ports/base_port.py +0 -0
  195. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/__init__.py +0 -0
  196. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/__init__.py +0 -0
  197. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/port_capture.py +0 -0
  198. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/port_reception_statistics.py +0 -0
  199. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/__init__.py +0 -0
  200. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/filter_definition/__init__.py +0 -0
  201. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/filter_definition/_utils.py +0 -0
  202. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/filter_definition/general.py +0 -0
  203. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/filter_definition/shadow.py +0 -0
  204. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/filter_definition/working.py +0 -0
  205. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/pe_custom_distribution.py +0 -0
  206. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/pe_distribution.py +0 -0
  207. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/port_emulation.py +0 -0
  208. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/reception_statistics.py +0 -0
  209. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/transmission_statistics.py +0 -0
  210. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_combi.py +0 -0
  211. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_d.py +0 -0
  212. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_e.py +0 -0
  213. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_f.py +0 -0
  214. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_h.py +0 -0
  215. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_i.py +0 -0
  216. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_j.py +0 -0
  217. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_k.py +0 -0
  218. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_l.py +0 -0
  219. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_l1.py +0 -0
  220. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_m.py +0 -0
  221. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/fault_jkl.py +0 -0
  222. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/freya_l1.py +0 -0
  223. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/pcs_pma_ghijkl.py +0 -0
  224. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/pcs_pma_ijkl_chimera.py +0 -0
  225. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/pcs_pma_l.py +0 -0
  226. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l47/__init__.py +0 -0
  227. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l47/counters.py +0 -0
  228. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l47/packet_engine.py +0 -0
  229. /xoa_driver/internals/{hli_v1 → hli}/revisions.py +0 -0
  230. /xoa_driver/internals/{hli_v1 → hli}/testers/__init__.py +0 -0
  231. /xoa_driver/internals/{hli_v1 → hli}/testers/_base_tester.py +0 -0
  232. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/__init__.py +0 -0
  233. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/l_23/__init__.py +0 -0
  234. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/l_23/health.py +0 -0
  235. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/l_23/rest_api.py +0 -0
  236. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/l_23/time_keeper.py +0 -0
  237. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/l_23/upload_file.py +0 -0
  238. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/management_interface.py +0 -0
  239. /xoa_driver/internals/{hli_v1 → hli}/testers/l23ve_tester.py +0 -0
  240. /xoa_driver/internals/{hli_v1 → hli}/testers/l47ve_tester.py +0 -0
@@ -0,0 +1,247 @@
1
+ from typing import TYPE_CHECKING
2
+ if TYPE_CHECKING:
3
+ from xoa_driver.internals.core import interfaces as itf
4
+ from xoa_driver.internals.commands import (
5
+ PX_RW,
6
+ PX_MII,
7
+ PX_TEMPERATURE,
8
+ PX_RW_SEQ,
9
+ PX_I2C_CONFIG,
10
+ PX_RW_SEQ_BANK,
11
+ PX_CDB_SUPPORT,
12
+ PX_CDB_ABORT_PROCESSING,
13
+ PX_CDB_CHANGE_PASSWORD,
14
+ PX_CDB_ENTER_PASSWORD,
15
+ PX_CDB_QUERY_STATUS,
16
+ PX_CDB_EXTERNAL_FEATURES,
17
+ PX_CDB_FW_MGMT_FEATURES,
18
+ PX_CDB_GET_APP_ATTRIBUTES,
19
+ PX_CDB_GET_IF_CODE_DESCR,
20
+ PX_CDB_MODULE_FEATURES,
21
+ PX_CDB_SEC_FEAT_CAPABILITIES,
22
+ PX_CDB_ABORT_FW_DOWNLOAD,
23
+ PX_CDB_COMMIT_FW_IMAGE,
24
+ PX_CDB_COMPLETE_FW_DOWNLOAD,
25
+ PX_CDB_COPY_FW_IMAGE,
26
+ PX_CDB_GET_FW_INFO,
27
+ PX_CDB_READ_FW_BLOCK_EPL,
28
+ PX_CDB_READ_FW_BLOCK_LPL,
29
+ PX_CDB_RUN_FW_IMAGE,
30
+ PX_CDB_START_FW_DOWNLOAD,
31
+ PX_CDB_WRITE_FW_BLOCK_EPL,
32
+ PX_CDB_WRITE_FW_BLOCK_LPL,
33
+ PX_CUST_CMD,
34
+ )
35
+
36
+
37
+ class PortTransceiver:
38
+ """Transceiver access class."""
39
+
40
+ def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int) -> None:
41
+ self.__conn = conn
42
+ self.__module_id = module_id
43
+ self.__port_id = port_id
44
+
45
+ self.i2c_config = PX_I2C_CONFIG(conn, module_id, port_id)
46
+ """
47
+ Access speed on a transceiver I2C access in the unit of KHz. Default to 100.
48
+
49
+ When the transceiver is plugged out and in again, the speed will be reset to the default value 100. The speed has a minimum and a maximum, which can be obtained from port.capabilities().
50
+
51
+ The I2C speed configuration will not be included in the port configuration file (.xpc). When you load a port configuration to a port, the transceiver I2C access speed will be reset to default.
52
+ """
53
+
54
+ self.temperature = PX_TEMPERATURE(conn, module_id, port_id)
55
+ """Transceiver temperature in Celsius.
56
+
57
+ Temperature value before the decimal digit, and 1/256th of a degree Celsius after the decimal digit.
58
+ """
59
+
60
+ self.cmis = CMIS(conn, module_id, port_id)
61
+ """
62
+ Access CMIS interface.
63
+ """
64
+
65
+ def access_rw(self, page_address: int, register_address: int) -> "PX_RW":
66
+ """Access to register interface by the transceiver.
67
+
68
+ :param page_address: page address
69
+ :type page_address: int
70
+ :param register_address: register address
71
+ :type register_address: int
72
+ :return: transceiver register values
73
+ :rtype: PX_RW
74
+ """
75
+
76
+ return PX_RW(
77
+ self.__conn,
78
+ self.__module_id,
79
+ self.__port_id,
80
+ page_address,
81
+ register_address
82
+ )
83
+
84
+ def access_mii(self, register_address: int) -> "PX_MII":
85
+ """Access to the register interface supported by the media-independent interface (MII) transceiver.
86
+
87
+ :param register_address: register address
88
+ :type register_address: int
89
+ :return: register values
90
+ :rtype: PX_MII
91
+ """
92
+ return PX_MII(
93
+ self.__conn,
94
+ self.__module_id,
95
+ self.__port_id,
96
+ register_address
97
+ )
98
+
99
+ def access_rw_seq(self, page_address: int, register_address: int, byte_count: int) -> "PX_RW_SEQ":
100
+ """Sequential read/write a number of bytes to the register interface supported by the media-independent interface (MII) transceiver.
101
+
102
+ :param page_address: page address (0-255)
103
+ :type page_address: int
104
+ :param register_address: register address (0-255)
105
+ :type register_address: int
106
+ :param byte_count: the number of bytes to read/write
107
+ :type byte_count: int
108
+ :return: transceiver register values
109
+ :rtype: PX_RW_SEQ
110
+ """
111
+ return PX_RW_SEQ(
112
+ self.__conn,
113
+ self.__module_id,
114
+ self.__port_id,
115
+ page_address,
116
+ register_address,
117
+ byte_count
118
+ )
119
+
120
+ def access_rw_seq_bank(self, bank_address: int, page_address: int, register_address: int, byte_count: int) -> "PX_RW_SEQ_BANK":
121
+ """Sequential read/write a number of bytes to the register interface supported by the media-independent interface (MII) transceiver.
122
+
123
+ :param bank_address: bank address (0-255)
124
+ :type bank_address: int
125
+ :param page_address: page address (0-255)
126
+ :type page_address: int
127
+ :param register_address: register address (0-255)
128
+ :type register_address: int
129
+ :param byte_count: the number of bytes to read/write
130
+ :type byte_count: int
131
+ :return: transceiver register values
132
+ :rtype: PX_RW_SEQ_BANK
133
+ """
134
+ return PX_RW_SEQ_BANK(
135
+ self.__conn,
136
+ self.__module_id,
137
+ self.__port_id,
138
+ bank_address,
139
+ page_address,
140
+ register_address,
141
+ byte_count
142
+ )
143
+
144
+ class CMIS():
145
+ """CMIS access class.
146
+ """
147
+ def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int) -> None:
148
+ self.__conn = conn
149
+ self.__module_id = module_id
150
+ self.__port_id = port_id
151
+
152
+ self.cdb_instances_supported = PX_CDB_SUPPORT(conn, module_id, port_id)
153
+ """Return the number of supported CDB instances.
154
+ """
155
+
156
+ def cdb(self, cdb_instance_id: int) -> "CDB":
157
+ """Access CMIS CDB command interface.
158
+
159
+ :param cdb_instance_id: 0 for CDB Instance 1, 1 for CDB Instance 2
160
+ :type cdb_instance_id: int
161
+ """
162
+ return CDB(self.__conn, self.__module_id, self.__port_id, cdb_instance_id)
163
+
164
+
165
+ class CDB():
166
+ """CMIS CDB command access class.
167
+ """
168
+ def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, cdb_instance_id: int) -> None:
169
+
170
+ self.__conn = conn
171
+ self.__module_id = module_id
172
+ self.__port_id = port_id
173
+ self.__cdb_instance_id = cdb_instance_id
174
+
175
+ # CDB Module Commands
176
+ self.cmd_0000h_query_status = PX_CDB_QUERY_STATUS(conn, module_id, port_id, cdb_instance_id)
177
+ """CMD 0000h: Query Status
178
+ """
179
+ self.cmd_0001h_enter_password = PX_CDB_ENTER_PASSWORD(conn, module_id, port_id, cdb_instance_id)
180
+ """CMD 0001h: Enter Password
181
+ """
182
+ self.cmd_0002h_change_password = PX_CDB_CHANGE_PASSWORD(conn, module_id, port_id, cdb_instance_id)
183
+ """CMD 0002h: Change Password
184
+ """
185
+ self.cmd_0004h_abort_processing = PX_CDB_ABORT_PROCESSING(conn, module_id, port_id, cdb_instance_id)
186
+ """CMD 0004h: Abort Processing
187
+ """
188
+
189
+ # CDB Features and Capabilities Inquiry Commands
190
+ self.cmd_0040h_module_features = PX_CDB_MODULE_FEATURES(conn, module_id, port_id, cdb_instance_id)
191
+ """CMD 0040h: Module Features
192
+ """
193
+ self.cmd_0041h_fw_mgmt_features = PX_CDB_FW_MGMT_FEATURES(conn, module_id, port_id, cdb_instance_id)
194
+ """CMD 0041h: Firmware Management Features
195
+ """
196
+ self.cmd_0044h_sec_feat_capabilities = PX_CDB_SEC_FEAT_CAPABILITIES(conn, module_id, port_id, cdb_instance_id)
197
+ """CMD 0044h: Security Features and Capabilities
198
+ """
199
+ self.cmd_0045h_external_features = PX_CDB_EXTERNAL_FEATURES(conn, module_id, port_id, cdb_instance_id)
200
+ """CMD 0045h: Externally Defined Features
201
+ """
202
+ self.cmd_0050h_get_app_attributes = PX_CDB_GET_APP_ATTRIBUTES(conn, module_id, port_id, cdb_instance_id)
203
+ """CMD 0050h: Get Application Attributes
204
+ """
205
+ self.cmd_0051h_get_if_code_descr = PX_CDB_GET_IF_CODE_DESCR(conn, module_id, port_id, cdb_instance_id)
206
+ """CMD 0051h: Get Interface Code Description
207
+ """
208
+
209
+ # CDB Firmware Management Commands
210
+ self.cmd_0100h_get_firmware_info = PX_CDB_GET_FW_INFO(conn, module_id, port_id, cdb_instance_id)
211
+ """CMD 0100h: Get Firmware Info
212
+ """
213
+ self.cmd_0101h_start_firmware_download = PX_CDB_START_FW_DOWNLOAD(conn, module_id, port_id, cdb_instance_id)
214
+ """CMD 0101h: Start Firmware Download
215
+ """
216
+ self.cmd_0102h_abort_firmware_download = PX_CDB_ABORT_FW_DOWNLOAD(conn, module_id, port_id, cdb_instance_id)
217
+ """CMD 0102h: Abort Firmware Download
218
+ """
219
+ self.cmd_0103h_write_firmware_block_lpl = PX_CDB_WRITE_FW_BLOCK_LPL(conn, module_id, port_id, cdb_instance_id)
220
+ """CMD 0103h: Write Firmware Block LPL
221
+ """
222
+ self.cmd_0104h_write_firmware_block_epl = PX_CDB_WRITE_FW_BLOCK_EPL(conn, module_id, port_id, cdb_instance_id)
223
+ """CMD 0104h: Write Firmware Block EPL
224
+ """
225
+ self.cmd_0105h_read_firmware_block_lpl = PX_CDB_READ_FW_BLOCK_LPL(conn, module_id, port_id, cdb_instance_id)
226
+ """CMD 0105h: Read Firmware Block LPL
227
+ """
228
+ self.cmd_0106h_read_firmware_block_epl = PX_CDB_READ_FW_BLOCK_EPL(conn, module_id, port_id, cdb_instance_id)
229
+ """CMD 0106h: Read Firmware Block EPL
230
+ """
231
+ self.cmd_0107h_complete_firmware_download = PX_CDB_COMPLETE_FW_DOWNLOAD(conn, module_id, port_id, cdb_instance_id)
232
+ """CMD 0107h: Complete Firmware Download
233
+ """
234
+ self.cmd_0108h_copy_firmware_image = PX_CDB_COPY_FW_IMAGE(conn, module_id, port_id, cdb_instance_id)
235
+ """CMD 0108h: Copy Firmware Image
236
+ """
237
+ self.cmd_0109h_run_firmware_image = PX_CDB_RUN_FW_IMAGE(conn, module_id, port_id, cdb_instance_id)
238
+ """CMD 0109h: Run Firmware Image
239
+ """
240
+ self.cmd_010ah_commit_firmware_image = PX_CDB_COMMIT_FW_IMAGE(conn, module_id, port_id, cdb_instance_id)
241
+ """CMD 010Ah: Commit Firmware Image
242
+ """
243
+
244
+ # Custom Commands
245
+ self.custom_cmd = PX_CUST_CMD(conn, module_id, port_id, cdb_instance_id)
246
+ """Defnes the custom CDB commdand (CMD and Reply) to be sent to the CDB instance.
247
+ """
@@ -4,7 +4,7 @@ from typing import (
4
4
  )
5
5
  if TYPE_CHECKING:
6
6
  from xoa_driver.internals.core import interfaces as itf
7
- from xoa_driver.internals.hli_v1.indices.streams.genuine_stream import GenuineStreamIdx
7
+ from xoa_driver.internals.hli.indices.streams.genuine_stream import GenuineStreamIdx
8
8
  from xoa_driver.internals.commands import (
9
9
  PT_TOTAL,
10
10
  PT_NOTPLD,
@@ -14,7 +14,7 @@ from xoa_driver.internals.commands import (
14
14
  if TYPE_CHECKING:
15
15
  from xoa_driver.internals.core import interfaces as itf
16
16
 
17
- from xoa_driver.internals.hli_v1.ports import base_port
17
+ from xoa_driver.internals.hli.ports import base_port
18
18
  from xoa_driver.internals.utils import attributes as utils
19
19
  from xoa_driver.internals.state_storage import ports_state
20
20
  from ..pcs_pma_ijkl_chimera import PcsPma
@@ -75,3 +75,8 @@ class PLoki100G3S1PB_b(FamilyG):
75
75
  """L23 port on Loki-100G-3S-1P-B[b] module.
76
76
  """
77
77
  ...
78
+
79
+ class PLoki100G5S4P_a(FamilyG):
80
+ """L23 port on Loki-100G-5S-4P[a] module.
81
+ """
82
+ ...
@@ -11,8 +11,8 @@ from xoa_driver.internals.commands import (
11
11
  if TYPE_CHECKING:
12
12
  from xoa_driver.internals.core import interfaces as itf
13
13
  from xoa_driver.internals.utils.indices import index_manager as idx_mgr
14
- from xoa_driver.internals.hli_v1.indices.streams.base_stream import BaseStreamIdx
15
- from xoa_driver.internals.hli_v1.indices.filter.base_filter import BaseFilterIdx
14
+ from xoa_driver.internals.hli.indices.streams.base_stream import BaseStreamIdx
15
+ from xoa_driver.internals.hli.indices.filter.base_filter import BaseFilterIdx
16
16
  from xoa_driver.internals.state_storage import ports_state
17
17
 
18
18
  VEStreamIndices = idx_mgr.IndexManager[BaseStreamIdx]
@@ -30,11 +30,11 @@ from xoa_driver.internals.commands import (
30
30
  if TYPE_CHECKING:
31
31
  from xoa_driver.internals.core import interfaces as itf
32
32
 
33
- from xoa_driver.internals.hli_v1.ports import base_port
33
+ from xoa_driver.internals.hli.ports import base_port
34
34
  from xoa_driver.internals.state_storage import ports_state
35
35
  from xoa_driver.internals.utils import attributes as utils
36
36
  from xoa_driver.internals.utils.indices import index_manager as im
37
- from xoa_driver.internals.hli_v1.indices.connection_group.cg import ConnectionGroupIdx
37
+ from xoa_driver.internals.hli.indices.connection_group.cg import ConnectionGroupIdx
38
38
 
39
39
  from .counters import PCounters
40
40
  from .packet_engine import PacketEngine
@@ -27,7 +27,7 @@ if TYPE_CHECKING:
27
27
 
28
28
  from xoa_driver.internals.core.transporter.logger import CustomLogger
29
29
  from xoa_driver.internals.state_storage import testers_state
30
- from xoa_driver.internals.hli_v1 import revisions
30
+ from xoa_driver.internals.hli import revisions
31
31
  from xoa_driver.internals import exceptions
32
32
 
33
33
 
@@ -10,10 +10,10 @@ from xoa_driver.internals.commands import (
10
10
  )
11
11
  from xoa_driver.internals.core.transporter.logger import CustomLogger
12
12
  from xoa_driver.internals.utils.managers import modules_manager as mm
13
- from xoa_driver.internals.hli_v1 import revisions
13
+ from xoa_driver.internals.hli import revisions
14
14
  from xoa_driver.internals import exceptions
15
15
  if TYPE_CHECKING:
16
- from xoa_driver.internals.hli_v1.modules import module_l47 as ml47
16
+ from xoa_driver.internals.hli.modules import module_l47 as ml47
17
17
 
18
18
  from xoa_driver.internals.state_storage import testers_state
19
19
  from ._base_tester import BaseTester
@@ -80,7 +80,7 @@ class MediaInfo:
80
80
  :rtype: MediaConfigurationType
81
81
  """
82
82
 
83
- available_speeds: List["ModuleSpeed"] = field(default_factory=list)
83
+ supported_configs: List["ModuleSpeed"] = field(default_factory=list)
84
84
  """List of module's port-speed information
85
85
 
86
86
  :return: list of module's port-speed information
xoa_driver/misc.py CHANGED
@@ -12,24 +12,19 @@ from .internals.commands.subtypes import (
12
12
  QueueStatsElem,
13
13
  )
14
14
 
15
- import sys
16
-
17
- if "xoa_driver.v2" in sys.modules:
18
- raise ImportError("\33[31mOnly Single interface version is allowed to being use at the same time.\33[0m")
19
-
20
15
  # indices types
21
- from .internals.hli_v1.indices.connection_group.cg import ConnectionGroupIdx as ConnectionGroup
22
- from .internals.hli_v1.indices.filter.base_filter import BaseFilterIdx as BasePortFilter
23
- from .internals.hli_v1.indices.filter.genuine_filter import GenuineFilterIdx as GenuinePortFilter
24
- from .internals.hli_v1.indices.length_term import LengthTermIdx as LengthTerm
25
- from .internals.hli_v1.indices.match_term import MatchTermIdx as MatchTerm
26
- from .internals.hli_v1.indices.port_dataset import PortDatasetIdx as PortDataset
27
- from .internals.hli_v1.indices.streams.base_stream import BaseStreamIdx as BaseStream
28
- from .internals.hli_v1.indices.streams.genuine_stream import GenuineStreamIdx as GenuineStream
29
- from .internals.hli_v1.ports.port_l23.chimera.port_emulation import CFlow as ImpairmentFlow
30
- from .internals.hli_v1.ports.port_l23.chimera.filter_definition.general import ModeBasic as BasicImpairmentFlowFilter
31
- from .internals.hli_v1.ports.port_l23.chimera.filter_definition.general import ModeExtended as ExtendedImpairmentFlowFilter
32
- from xoa_driver.internals.hli_v1.indices.macsecscs.genuine_macsecsc import GenuineMacSecTxScIdx, GenuineMacSecRxScIdx
16
+ from .internals.hli.indices.connection_group.cg import ConnectionGroupIdx as ConnectionGroup
17
+ from .internals.hli.indices.filter.base_filter import BaseFilterIdx as BasePortFilter
18
+ from .internals.hli.indices.filter.genuine_filter import GenuineFilterIdx as GenuinePortFilter
19
+ from .internals.hli.indices.length_term import LengthTermIdx as LengthTerm
20
+ from .internals.hli.indices.match_term import MatchTermIdx as MatchTerm
21
+ from .internals.hli.indices.port_dataset import PortDatasetIdx as PortDataset
22
+ from .internals.hli.indices.streams.base_stream import BaseStreamIdx as BaseStream
23
+ from .internals.hli.indices.streams.genuine_stream import GenuineStreamIdx as GenuineStream
24
+ from .internals.hli.ports.port_l23.chimera.port_emulation import CFlow as ImpairmentFlow
25
+ from .internals.hli.ports.port_l23.chimera.filter_definition.general import ModeBasic as BasicImpairmentFlowFilter
26
+ from .internals.hli.ports.port_l23.chimera.filter_definition.general import ModeExtended as ExtendedImpairmentFlowFilter
27
+ from xoa_driver.internals.hli.indices.macsecscs.genuine_macsecsc import GenuineMacSecTxScIdx, GenuineMacSecRxScIdx
33
28
 
34
29
 
35
30
  __all__ = (
xoa_driver/modules.py CHANGED
@@ -1,24 +1,20 @@
1
1
  #: All available test module types.
2
- import sys
3
2
 
4
- if "xoa_driver.v2" in sys.modules:
5
- raise ImportError("\33[31mOnly Single interface version is allowed to being use at the same time.\33[0m")
6
-
7
- from .internals.hli_v1.modules.modules_l23.module_l23_base import ModuleL23
8
- from .internals.hli_v1.modules.modules_l23.family_d import (
3
+ from .internals.hli.modules.modules_l23.module_l23_base import ModuleL23
4
+ from .internals.hli.modules.modules_l23.family_d import (
9
5
  MOdin1G3S2PT,
10
6
  MOdin1G3S6P,
11
7
  MOdin1G3S6P_b,
12
8
  MOdin1G3S6PE,
13
9
  )
14
- from .internals.hli_v1.modules.modules_l23.family_e import (
10
+ from .internals.hli.modules.modules_l23.family_e import (
15
11
  MOdin5G4S6PCU,
16
12
  MOdin10G3S2PCU,
17
13
  MOdin10G3S6PCU,
18
14
  MOdin10G5S6PCU,
19
15
  MOdin10G5S6PCU_b,
20
16
  )
21
- from .internals.hli_v1.modules.modules_l23.family_f import (
17
+ from .internals.hli.modules.modules_l23.family_f import (
22
18
  MOdin10G1S2P,
23
19
  MOdin10G1S2P_b,
24
20
  MOdin10G1S2P_c,
@@ -29,29 +25,29 @@ from .internals.hli_v1.modules.modules_l23.family_f import (
29
25
  MOdin10G1S12P,
30
26
  MOdin10G6S6P_a,
31
27
  )
32
- from .internals.hli_v1.modules.modules_l23.family_g import (
28
+ from .internals.hli.modules.modules_l23.family_g import (
33
29
  MLoki100G3S1P,
34
30
  MLoki100G3S1P_b,
35
31
  MLoki100G3S1PSE,
36
32
  MLoki100G3S1PB,
37
33
  MLoki100G3S1PB_b,
38
34
  )
39
- from .internals.hli_v1.modules.modules_l23.family_h import (
35
+ from .internals.hli.modules.modules_l23.family_h import (
40
36
  MLoki100G5S1P,
41
37
  MOdin100G3S1P,
42
38
  )
43
- from .internals.hli_v1.modules.modules_l23.family_i import MLoki100G5S2P
44
- from .internals.hli_v1.modules.modules_l23.family_j import MThor100G5S4P
45
- from .internals.hli_v1.modules.modules_l23.family_k import (
39
+ from .internals.hli.modules.modules_l23.family_i import MLoki100G5S2P
40
+ from .internals.hli.modules.modules_l23.family_j import MThor100G5S4P
41
+ from .internals.hli.modules.modules_l23.family_k import (
46
42
  MThor400G7S1P,
47
43
  MThor400G7S1PLE,
48
44
  )
49
- from .internals.hli_v1.modules.modules_l23.family_l import (
45
+ from .internals.hli.modules.modules_l23.family_l import (
50
46
  MThor400G7S1P_b,
51
47
  MThor400G7S1P_c,
52
48
  MThor400G7S1P_d,
53
49
  )
54
- from .internals.hli_v1.modules.modules_l23.family_l1 import (
50
+ from .internals.hli.modules.modules_l23.family_l1 import (
55
51
  MFreya800G1S1P_a,
56
52
  MFreya800G1S1P_b,
57
53
  MFreya800G1S1POSFP_a,
@@ -101,24 +97,24 @@ from .internals.hli_v1.modules.modules_l23.family_l1 import (
101
97
  MFreya800G4S1POSFP_e_g2,
102
98
  MFreya800G4S1POSFP_f_g2,
103
99
  )
104
- from .internals.hli_v1.modules.modules_l23.family_m import MOdin1G3S6PT1RJ45
105
- from .internals.hli_v1.modules.modules_l23.family_n import (
100
+ from .internals.hli.modules.modules_l23.family_m import MOdin1G3S6PT1RJ45
101
+ from .internals.hli.modules.modules_l23.family_n import (
106
102
  MOdin40G2S2P,
107
103
  MOdin40G2S2PB,
108
104
  )
109
- from .internals.hli_v1.modules.modules_l23.family_combi import (
105
+ from .internals.hli.modules.modules_l23.family_combi import (
110
106
  MOdin10G4S2PCombi,
111
107
  MOdin10G4S2PCombi_b,
112
108
  )
113
- from .internals.hli_v1.modules.module_l23ve import ModuleL23VE
114
- from .internals.hli_v1.modules.module_chimera import (
109
+ from .internals.hli.modules.module_l23ve import ModuleL23VE
110
+ from .internals.hli.modules.module_chimera import (
115
111
  ModuleChimera,
116
112
  MChi100G5S2P,
117
113
  MChi100G5S2P_b,
118
114
  MChi40G2S2P,
119
115
  )
120
- from .internals.hli_v1.modules.module_l47 import ModuleL47
121
- from .internals.hli_v1.modules.module_l47ve import ModuleL47VE
116
+ from .internals.hli.modules.module_l47 import ModuleL47
117
+ from .internals.hli.modules.module_l47ve import ModuleL47VE
122
118
 
123
119
  import typing
124
120
 
xoa_driver/ports.py CHANGED
@@ -1,37 +1,33 @@
1
1
  #: All available test port types.
2
- import sys
3
-
4
- if "xoa_driver.v2" in sys.modules:
5
- raise ImportError("\33[31mOnly Single interface version is allowed to being use at the same time.\33[0m")
6
2
 
7
3
  import typing
8
4
 
9
- from .internals.hli_v1.ports.port_l47.main import PortL47
5
+ from .internals.hli.ports.port_l47.main import PortL47
10
6
 
11
- from .internals.hli_v1.ports.port_l23.port_l23ve import PortL23VE
12
- from .internals.hli_v1.ports.port_l23.chimera.port_chimera import (
7
+ from .internals.hli.ports.port_l23.port_l23ve import PortL23VE
8
+ from .internals.hli.ports.port_l23.chimera.port_chimera import (
13
9
  PortChimera,
14
10
  PChi100G5S2P,
15
11
  PChi100G5S2P_b,
16
12
  PChi40G2S2P,
17
13
  )
18
14
 
19
- from .internals.hli_v1.ports.port_l23.bases.port_l23 import BasePortL23
20
- from xoa_driver.internals.hli_v1.ports.port_l23.family_combi import (
15
+ from .internals.hli.ports.port_l23.bases.port_l23 import BasePortL23
16
+ from xoa_driver.internals.hli.ports.port_l23.family_combi import (
21
17
  POdin1G4S4PCombi,
22
18
  POdin1G4S4PCombi_b,
23
19
  POdin10G4S2PCombi,
24
20
  POdin10G4S2PCombi_b,
25
21
  )
26
22
 
27
- from xoa_driver.internals.hli_v1.ports.port_l23.family_d import (
23
+ from xoa_driver.internals.hli.ports.port_l23.family_d import (
28
24
  POdin1G3S2PT,
29
25
  POdin1G3S6P,
30
26
  POdin1G3S6P_b,
31
27
  POdin1G3S6PE,
32
28
  )
33
29
 
34
- from xoa_driver.internals.hli_v1.ports.port_l23.family_e import (
30
+ from xoa_driver.internals.hli.ports.port_l23.family_e import (
35
31
  POdin5G4S6PCU,
36
32
  POdin10G3S2PCU,
37
33
  POdin10G3S6PCU,
@@ -39,7 +35,7 @@ from xoa_driver.internals.hli_v1.ports.port_l23.family_e import (
39
35
  POdin10G5S6PCU_b,
40
36
  )
41
37
 
42
- from xoa_driver.internals.hli_v1.ports.port_l23.family_f import (
38
+ from xoa_driver.internals.hli.ports.port_l23.family_f import (
43
39
  POdin10G1S2P,
44
40
  POdin10G1S2P_b,
45
41
  POdin10G1S2P_c,
@@ -53,32 +49,33 @@ from xoa_driver.internals.hli_v1.ports.port_l23.family_f import (
53
49
  POdin10G6S6P_a,
54
50
  )
55
51
 
56
- from xoa_driver.internals.hli_v1.ports.port_l23.family_g import (
52
+ from xoa_driver.internals.hli.ports.port_l23.family_g import (
57
53
  PLoki100G3S1P,
58
54
  PLoki100G3S1P_b,
59
55
  PLoki100G3S1PSE,
60
56
  PLoki100G3S1PB,
61
57
  PLoki100G3S1PB_b,
58
+ PLoki100G5S4P_a,
62
59
  )
63
60
 
64
- from xoa_driver.internals.hli_v1.ports.port_l23.family_h import (
61
+ from xoa_driver.internals.hli.ports.port_l23.family_h import (
65
62
  PLoki100G5S1P,
66
63
  POdin100G3S1P,
67
64
  )
68
65
 
69
- from xoa_driver.internals.hli_v1.ports.port_l23.family_i import PLoki100G5S2P
70
- from xoa_driver.internals.hli_v1.ports.port_l23.family_j import PThor100G5S4P
71
- from xoa_driver.internals.hli_v1.ports.port_l23.family_k import (
66
+ from xoa_driver.internals.hli.ports.port_l23.family_i import PLoki100G5S2P
67
+ from xoa_driver.internals.hli.ports.port_l23.family_j import PThor100G5S4P
68
+ from xoa_driver.internals.hli.ports.port_l23.family_k import (
72
69
  PThor400G7S1P,
73
70
  PThor400G7S1PLE,
74
71
  )
75
- from xoa_driver.internals.hli_v1.ports.port_l23.family_l import (
72
+ from xoa_driver.internals.hli.ports.port_l23.family_l import (
76
73
  PThor400G7S1P_b,
77
74
  PThor400G7S1P_c,
78
75
  PThor400G7S1P_d,
79
76
  )
80
77
 
81
- from xoa_driver.internals.hli_v1.ports.port_l23.family_l1 import (
78
+ from xoa_driver.internals.hli.ports.port_l23.family_l1 import (
82
79
  PFreya800G1S1P_a,
83
80
  PFreya800G1S1P_b,
84
81
  PFreya800G1S1POSFP_a,
@@ -97,7 +94,7 @@ from xoa_driver.internals.hli_v1.ports.port_l23.family_l1 import (
97
94
  PFreya800G4S1POSFP_f,
98
95
  )
99
96
 
100
- from xoa_driver.internals.hli_v1.ports.port_l23.family_m import POdin1G3S6PT1RJ45
97
+ from xoa_driver.internals.hli.ports.port_l23.family_m import POdin1G3S6PT1RJ45
101
98
 
102
99
  Z10OdinPort = typing.Union[
103
100
  POdin1G3S2PT,
@@ -136,6 +133,7 @@ Z100LokiPort = typing.Union[
136
133
  PLoki100G3S1PB_b,
137
134
  PLoki100G5S1P,
138
135
  PLoki100G5S2P,
136
+ PLoki100G5S4P_a,
139
137
  ]
140
138
 
141
139
  Z400ThorPort = typing.Union[
@@ -213,6 +211,7 @@ GenericL23Port = typing.Union[
213
211
  "PLoki100G3S1PB_b",
214
212
  "PLoki100G5S1P",
215
213
  "PLoki100G5S2P",
214
+ "PLoki100G5S4P_a",
216
215
 
217
216
  "PThor100G5S4P",
218
217
  "PThor400G7S1P",
@@ -294,6 +293,7 @@ __all__ = (
294
293
  "PLoki100G3S1PB_b",
295
294
  "PLoki100G5S1P",
296
295
  "PLoki100G5S2P",
296
+ "PLoki100G5S4P_a",
297
297
 
298
298
  "Z400ThorPort",
299
299
  "PThor100G5S4P",
xoa_driver/testers.py CHANGED
@@ -1,13 +1,9 @@
1
1
  #: All available tester types.
2
- import sys
3
2
 
4
- if "xoa_driver.v2" in sys.modules:
5
- raise ImportError("\33[31mOnly Single interface version is allowed to being use at the same time.\33[0m")
6
-
7
- from .internals.hli_v1.testers.l23_tester import L23Tester
8
- from .internals.hli_v1.testers.l23ve_tester import L23VeTester
9
- from .internals.hli_v1.testers.l47_tester import L47Tester
10
- from .internals.hli_v1.testers.l47ve_tester import L47VeTester
3
+ from .internals.hli.testers.l23_tester import L23Tester
4
+ from .internals.hli.testers.l23ve_tester import L23VeTester
5
+ from .internals.hli.testers.l47_tester import L47Tester
6
+ from .internals.hli.testers.l47ve_tester import L47VeTester
11
7
 
12
8
  import typing
13
9