tdl-xoa-driver 1.3.0__py3-none-any.whl → 1.5.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 (268) hide show
  1. tdl_xoa_driver-1.5.0.dist-info/METADATA +56 -0
  2. tdl_xoa_driver-1.5.0.dist-info/RECORD +231 -0
  3. xoa_driver/__init__.py +2 -2
  4. xoa_driver/enums.py +2 -0
  5. xoa_driver/exceptions.py +2 -0
  6. xoa_driver/functions/anlt.py +4 -2
  7. xoa_driver/functions/anlt_ll_debug.py +2 -0
  8. xoa_driver/functions/cli/__init__.py +21 -0
  9. xoa_driver/functions/cli/_cli_manager.py +541 -0
  10. xoa_driver/functions/cli/_config_block.py +334 -0
  11. xoa_driver/functions/cli/_socket_driver.py +111 -0
  12. xoa_driver/functions/cli/port_config.py +116 -0
  13. xoa_driver/functions/cli/testbed_config.py +179 -0
  14. xoa_driver/functions/cmis/__init__.py +8 -0
  15. xoa_driver/functions/cmis/_constants.py +25 -0
  16. xoa_driver/functions/cmis/_replies.py +600 -0
  17. xoa_driver/functions/cmis/_utils.py +49 -0
  18. xoa_driver/functions/cmis/cdb.py +1266 -0
  19. xoa_driver/functions/exceptions.py +2 -0
  20. xoa_driver/functions/headers.py +2 -0
  21. xoa_driver/functions/mgmt.py +48 -34
  22. xoa_driver/functions/tools.py +9 -3
  23. xoa_driver/hlfuncs.py +7 -3
  24. xoa_driver/internals/commands/c_commands.py +6 -10
  25. xoa_driver/internals/commands/enums.py +25 -1
  26. xoa_driver/internals/commands/p_commands.py +50 -12
  27. xoa_driver/internals/commands/pl1_commands.py +130 -73
  28. xoa_driver/internals/commands/pp_commands.py +44 -55
  29. xoa_driver/internals/commands/pr_commands.py +17 -16
  30. xoa_driver/internals/commands/pt_commands.py +21 -1
  31. xoa_driver/internals/commands/px_commands.py +1686 -6
  32. xoa_driver/internals/core/transporter/_request_id_counter.py +1 -1
  33. xoa_driver/internals/core/transporter/logger/__state_on_user.py +1 -1
  34. xoa_driver/internals/core/transporter/protocol/payload/__init__.py +3 -1
  35. xoa_driver/internals/core/transporter/protocol/payload/field.py +41 -0
  36. xoa_driver/internals/core/transporter/protocol/payload/types.py +19 -0
  37. xoa_driver/internals/exceptions/modules.py +4 -3
  38. xoa_driver/internals/{hli_v1 → hli}/indices/filter/base_filter.py +1 -1
  39. xoa_driver/internals/{hli_v1 → hli}/indices/length_term.py +1 -1
  40. xoa_driver/internals/{hli_v1 → hli}/indices/macsecscs/base_macsecsc.py +2 -2
  41. xoa_driver/internals/{hli_v1 → hli}/indices/match_term.py +1 -1
  42. xoa_driver/internals/{hli_v1 → hli}/indices/port_dataset.py +1 -1
  43. xoa_driver/internals/{hli_v1 → hli}/indices/streams/base_stream.py +1 -1
  44. xoa_driver/internals/{hli_v1 → hli}/modules/module_chimera.py +3 -3
  45. xoa_driver/internals/{hli_v1 → hli}/modules/module_l47.py +1 -1
  46. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_combi.py +1 -1
  47. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_d.py +1 -1
  48. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_e.py +1 -1
  49. xoa_driver/internals/hli/modules/modules_l23/family_edun.py +82 -0
  50. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_f.py +1 -1
  51. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_g.py +17 -2
  52. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_h.py +1 -1
  53. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_i.py +1 -1
  54. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_j.py +1 -1
  55. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_k.py +1 -1
  56. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_l.py +1 -1
  57. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_l1.py +20 -1
  58. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_m.py +1 -1
  59. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/family_n.py +1 -1
  60. xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/module_l23_base.py +1 -1
  61. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/port_l23.py +3 -3
  62. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/port_l23_genuine.py +4 -4
  63. xoa_driver/internals/hli/ports/port_l23/bases/port_transceiver.py +247 -0
  64. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/port_transmission_statistics.py +1 -1
  65. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/port_chimera.py +1 -1
  66. xoa_driver/internals/hli/ports/port_l23/edun_l1.py +181 -0
  67. xoa_driver/internals/hli/ports/port_l23/family_edun.py +82 -0
  68. xoa_driver/internals/{hli_v2 → hli}/ports/port_l23/family_g.py +5 -0
  69. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_l1.py +14 -8
  70. xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/port_l23ve.py +2 -2
  71. xoa_driver/internals/{hli_v1 → hli}/ports/port_l47/main.py +2 -2
  72. xoa_driver/internals/{hli_v1 → hli}/testers/l23_tester.py +1 -1
  73. xoa_driver/internals/{hli_v1 → hli}/testers/l47_tester.py +2 -2
  74. xoa_driver/internals/state_storage/modules_state.py +20 -0
  75. xoa_driver/internals/state_storage/testers_state.py +10 -0
  76. xoa_driver/lli.py +1 -0
  77. xoa_driver/misc.py +13 -17
  78. xoa_driver/modules.py +40 -22
  79. xoa_driver/ports.py +42 -20
  80. xoa_driver/testers.py +5 -7
  81. xoa_driver/utils.py +2 -0
  82. tdl_xoa_driver-1.3.0.dist-info/METADATA +0 -56
  83. tdl_xoa_driver-1.3.0.dist-info/RECORD +0 -325
  84. xoa_driver/functions/cli.py +0 -581
  85. xoa_driver/internals/hli_v1/ports/port_l23/bases/port_transceiver.py +0 -117
  86. xoa_driver/internals/hli_v1/ports/port_l23/family_g.py +0 -77
  87. xoa_driver/internals/hli_v2/__init__.py +0 -0
  88. xoa_driver/internals/hli_v2/indices/__init__.py +0 -0
  89. xoa_driver/internals/hli_v2/indices/base_index.py +0 -39
  90. xoa_driver/internals/hli_v2/indices/connection_group/__init__.py +0 -0
  91. xoa_driver/internals/hli_v2/indices/connection_group/cg.py +0 -115
  92. xoa_driver/internals/hli_v2/indices/connection_group/histogram.py +0 -59
  93. xoa_driver/internals/hli_v2/indices/connection_group/l2.py +0 -71
  94. xoa_driver/internals/hli_v2/indices/connection_group/l3.py +0 -96
  95. xoa_driver/internals/hli_v2/indices/connection_group/raw.py +0 -148
  96. xoa_driver/internals/hli_v2/indices/connection_group/replay.py +0 -89
  97. xoa_driver/internals/hli_v2/indices/connection_group/tcp.py +0 -261
  98. xoa_driver/internals/hli_v2/indices/connection_group/tls.py +0 -166
  99. xoa_driver/internals/hli_v2/indices/connection_group/udp.py +0 -112
  100. xoa_driver/internals/hli_v2/indices/connection_group/user_state.py +0 -25
  101. xoa_driver/internals/hli_v2/indices/filter/__init__.py +0 -0
  102. xoa_driver/internals/hli_v2/indices/filter/base_filter.py +0 -50
  103. xoa_driver/internals/hli_v2/indices/filter/genuine_filter.py +0 -17
  104. xoa_driver/internals/hli_v2/indices/length_term.py +0 -44
  105. xoa_driver/internals/hli_v2/indices/match_term.py +0 -49
  106. xoa_driver/internals/hli_v2/indices/port_dataset.py +0 -53
  107. xoa_driver/internals/hli_v2/indices/streams/__init__.py +0 -0
  108. xoa_driver/internals/hli_v2/indices/streams/base_stream.py +0 -234
  109. xoa_driver/internals/hli_v2/indices/streams/genuine_stream.py +0 -32
  110. xoa_driver/internals/hli_v2/modules/__init__.py +0 -0
  111. xoa_driver/internals/hli_v2/modules/__interfaces.py +0 -21
  112. xoa_driver/internals/hli_v2/modules/base_module.py +0 -125
  113. xoa_driver/internals/hli_v2/modules/module_chimera.py +0 -358
  114. xoa_driver/internals/hli_v2/modules/module_l23ve.py +0 -58
  115. xoa_driver/internals/hli_v2/modules/module_l47.py +0 -230
  116. xoa_driver/internals/hli_v2/modules/module_l47ve.py +0 -8
  117. xoa_driver/internals/hli_v2/modules/modules_l23/__init__.py +0 -0
  118. xoa_driver/internals/hli_v2/modules/modules_l23/family_combi.py +0 -73
  119. xoa_driver/internals/hli_v2/modules/modules_l23/family_d.py +0 -75
  120. xoa_driver/internals/hli_v2/modules/modules_l23/family_e.py +0 -85
  121. xoa_driver/internals/hli_v2/modules/modules_l23/family_f.py +0 -144
  122. xoa_driver/internals/hli_v2/modules/modules_l23/family_g.py +0 -84
  123. xoa_driver/internals/hli_v2/modules/modules_l23/family_h.py +0 -40
  124. xoa_driver/internals/hli_v2/modules/modules_l23/family_i.py +0 -25
  125. xoa_driver/internals/hli_v2/modules/modules_l23/family_j.py +0 -25
  126. xoa_driver/internals/hli_v2/modules/modules_l23/family_k.py +0 -39
  127. xoa_driver/internals/hli_v2/modules/modules_l23/family_l.py +0 -55
  128. xoa_driver/internals/hli_v2/modules/modules_l23/family_l1.py +0 -797
  129. xoa_driver/internals/hli_v2/modules/modules_l23/family_m.py +0 -25
  130. xoa_driver/internals/hli_v2/modules/modules_l23/family_n.py +0 -40
  131. xoa_driver/internals/hli_v2/modules/modules_l23/module_l23_base.py +0 -339
  132. xoa_driver/internals/hli_v2/ports/__init__.py +0 -0
  133. xoa_driver/internals/hli_v2/ports/base_port.py +0 -105
  134. xoa_driver/internals/hli_v2/ports/port_l23/__init__.py +0 -0
  135. xoa_driver/internals/hli_v2/ports/port_l23/bases/__init__.py +0 -0
  136. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_capture.py +0 -64
  137. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_l23.py +0 -441
  138. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_l23_genuine.py +0 -172
  139. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_reception_statistics.py +0 -156
  140. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_transceiver.py +0 -117
  141. xoa_driver/internals/hli_v2/ports/port_l23/bases/port_transmission_statistics.py +0 -59
  142. xoa_driver/internals/hli_v2/ports/port_l23/chimera/__init__.py +0 -0
  143. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/__init__.py +0 -0
  144. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/_utils.py +0 -15
  145. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/general.py +0 -340
  146. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/shadow.py +0 -99
  147. xoa_driver/internals/hli_v2/ports/port_l23/chimera/filter_definition/working.py +0 -36
  148. xoa_driver/internals/hli_v2/ports/port_l23/chimera/pe_custom_distribution.py +0 -116
  149. xoa_driver/internals/hli_v2/ports/port_l23/chimera/pe_distribution.py +0 -102
  150. xoa_driver/internals/hli_v2/ports/port_l23/chimera/port_chimera.py +0 -113
  151. xoa_driver/internals/hli_v2/ports/port_l23/chimera/port_emulation.py +0 -420
  152. xoa_driver/internals/hli_v2/ports/port_l23/chimera/reception_statistics.py +0 -22
  153. xoa_driver/internals/hli_v2/ports/port_l23/chimera/transmission_statistics.py +0 -22
  154. xoa_driver/internals/hli_v2/ports/port_l23/family_combi.py +0 -36
  155. xoa_driver/internals/hli_v2/ports/port_l23/family_d.py +0 -49
  156. xoa_driver/internals/hli_v2/ports/port_l23/family_e.py +0 -96
  157. xoa_driver/internals/hli_v2/ports/port_l23/family_f.py +0 -144
  158. xoa_driver/internals/hli_v2/ports/port_l23/family_h.py +0 -60
  159. xoa_driver/internals/hli_v2/ports/port_l23/family_i.py +0 -66
  160. xoa_driver/internals/hli_v2/ports/port_l23/family_j.py +0 -53
  161. xoa_driver/internals/hli_v2/ports/port_l23/family_k.py +0 -58
  162. xoa_driver/internals/hli_v2/ports/port_l23/family_l.py +0 -67
  163. xoa_driver/internals/hli_v2/ports/port_l23/family_l1.py +0 -149
  164. xoa_driver/internals/hli_v2/ports/port_l23/family_m.py +0 -28
  165. xoa_driver/internals/hli_v2/ports/port_l23/fault_jkl.py +0 -22
  166. xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_ghijkl.py +0 -342
  167. xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_ijkl_chimera.py +0 -50
  168. xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_l.py +0 -65
  169. xoa_driver/internals/hli_v2/ports/port_l23/port_l23ve.py +0 -81
  170. xoa_driver/internals/hli_v2/ports/port_l47/__init__.py +0 -0
  171. xoa_driver/internals/hli_v2/ports/port_l47/counters.py +0 -146
  172. xoa_driver/internals/hli_v2/ports/port_l47/main.py +0 -137
  173. xoa_driver/internals/hli_v2/ports/port_l47/packet_engine.py +0 -20
  174. xoa_driver/internals/hli_v2/revisions.py +0 -11
  175. xoa_driver/internals/hli_v2/testers/__init__.py +0 -0
  176. xoa_driver/internals/hli_v2/testers/_base_tester.py +0 -207
  177. xoa_driver/internals/hli_v2/testers/genuine/__init__.py +0 -0
  178. xoa_driver/internals/hli_v2/testers/genuine/l_23/__init__.py +0 -0
  179. xoa_driver/internals/hli_v2/testers/genuine/l_23/health.py +0 -16
  180. xoa_driver/internals/hli_v2/testers/genuine/l_23/rest_api.py +0 -34
  181. xoa_driver/internals/hli_v2/testers/genuine/l_23/time_keeper.py +0 -50
  182. xoa_driver/internals/hli_v2/testers/genuine/l_23/upload_file.py +0 -26
  183. xoa_driver/internals/hli_v2/testers/genuine/management_interface.py +0 -38
  184. xoa_driver/internals/hli_v2/testers/l23_tester.py +0 -159
  185. xoa_driver/internals/hli_v2/testers/l23ve_tester.py +0 -98
  186. xoa_driver/internals/hli_v2/testers/l47_tester.py +0 -95
  187. xoa_driver/internals/hli_v2/testers/l47ve_tester.py +0 -50
  188. xoa_driver/v2/__init__.py +0 -11
  189. xoa_driver/v2/misc.py +0 -77
  190. xoa_driver/v2/modules.py +0 -308
  191. xoa_driver/v2/ports.py +0 -232
  192. xoa_driver/v2/testers.py +0 -24
  193. {tdl_xoa_driver-1.3.0.dist-info → tdl_xoa_driver-1.5.0.dist-info}/WHEEL +0 -0
  194. {tdl_xoa_driver-1.3.0.dist-info → tdl_xoa_driver-1.5.0.dist-info}/licenses/LICENSE +0 -0
  195. {tdl_xoa_driver-1.3.0.dist-info → tdl_xoa_driver-1.5.0.dist-info}/top_level.txt +0 -0
  196. /xoa_driver/internals/{hli_v1 → hli}/__init__.py +0 -0
  197. /xoa_driver/internals/{hli_v1 → hli}/indices/__init__.py +0 -0
  198. /xoa_driver/internals/{hli_v1 → hli}/indices/base_index.py +0 -0
  199. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/__init__.py +0 -0
  200. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/cg.py +0 -0
  201. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/histogram.py +0 -0
  202. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/l2.py +0 -0
  203. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/l3.py +0 -0
  204. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/raw.py +0 -0
  205. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/replay.py +0 -0
  206. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/tcp.py +0 -0
  207. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/tls.py +0 -0
  208. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/udp.py +0 -0
  209. /xoa_driver/internals/{hli_v1 → hli}/indices/connection_group/user_state.py +0 -0
  210. /xoa_driver/internals/{hli_v1 → hli}/indices/filter/__init__.py +0 -0
  211. /xoa_driver/internals/{hli_v1 → hli}/indices/filter/genuine_filter.py +0 -0
  212. /xoa_driver/internals/{hli_v1 → hli}/indices/macsecscs/__init__.py +0 -0
  213. /xoa_driver/internals/{hli_v1 → hli}/indices/macsecscs/genuine_macsecsc.py +0 -0
  214. /xoa_driver/internals/{hli_v1 → hli}/indices/streams/__init__.py +0 -0
  215. /xoa_driver/internals/{hli_v1 → hli}/indices/streams/genuine_stream.py +0 -0
  216. /xoa_driver/internals/{hli_v1 → hli}/modules/__init__.py +0 -0
  217. /xoa_driver/internals/{hli_v1 → hli}/modules/__interfaces.py +0 -0
  218. /xoa_driver/internals/{hli_v1 → hli}/modules/base_module.py +0 -0
  219. /xoa_driver/internals/{hli_v1 → hli}/modules/module_l23ve.py +0 -0
  220. /xoa_driver/internals/{hli_v1 → hli}/modules/module_l47ve.py +0 -0
  221. /xoa_driver/internals/{hli_v1 → hli}/modules/modules_l23/__init__.py +0 -0
  222. /xoa_driver/internals/{hli_v1 → hli}/ports/__init__.py +0 -0
  223. /xoa_driver/internals/{hli_v1 → hli}/ports/base_port.py +0 -0
  224. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/__init__.py +0 -0
  225. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/__init__.py +0 -0
  226. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/port_capture.py +0 -0
  227. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/bases/port_reception_statistics.py +0 -0
  228. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/__init__.py +0 -0
  229. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/filter_definition/__init__.py +0 -0
  230. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/filter_definition/_utils.py +0 -0
  231. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/filter_definition/general.py +0 -0
  232. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/filter_definition/shadow.py +0 -0
  233. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/filter_definition/working.py +0 -0
  234. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/pe_custom_distribution.py +0 -0
  235. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/pe_distribution.py +0 -0
  236. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/port_emulation.py +0 -0
  237. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/reception_statistics.py +0 -0
  238. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/chimera/transmission_statistics.py +0 -0
  239. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_combi.py +0 -0
  240. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_d.py +0 -0
  241. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_e.py +0 -0
  242. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_f.py +0 -0
  243. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_h.py +0 -0
  244. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_i.py +0 -0
  245. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_j.py +0 -0
  246. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_k.py +0 -0
  247. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_l.py +0 -0
  248. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/family_m.py +0 -0
  249. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/fault_jkl.py +0 -0
  250. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/freya_l1.py +0 -0
  251. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/pcs_pma_ghijkl.py +0 -0
  252. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/pcs_pma_ijkl_chimera.py +0 -0
  253. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l23/pcs_pma_l.py +0 -0
  254. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l47/__init__.py +0 -0
  255. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l47/counters.py +0 -0
  256. /xoa_driver/internals/{hli_v1 → hli}/ports/port_l47/packet_engine.py +0 -0
  257. /xoa_driver/internals/{hli_v1 → hli}/revisions.py +0 -0
  258. /xoa_driver/internals/{hli_v1 → hli}/testers/__init__.py +0 -0
  259. /xoa_driver/internals/{hli_v1 → hli}/testers/_base_tester.py +0 -0
  260. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/__init__.py +0 -0
  261. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/l_23/__init__.py +0 -0
  262. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/l_23/health.py +0 -0
  263. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/l_23/rest_api.py +0 -0
  264. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/l_23/time_keeper.py +0 -0
  265. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/l_23/upload_file.py +0 -0
  266. /xoa_driver/internals/{hli_v1 → hli}/testers/genuine/management_interface.py +0 -0
  267. /xoa_driver/internals/{hli_v1 → hli}/testers/l23ve_tester.py +0 -0
  268. /xoa_driver/internals/{hli_v1 → hli}/testers/l47ve_tester.py +0 -0
@@ -1,89 +0,0 @@
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
- P4G_REPLAY_FILE_INDICES,
6
- P4G_REPLAY_FILE_NAME,
7
- P4G_REPLAY_FILE_CLEAR,
8
- P4G_REPLAY_UTILIZATION,
9
- P4G_REPLAY_USER_INCARNATION,
10
- P4G_REPLAY_USER_REPETITIONS,
11
- P4G_APP_REPLAY_COUNTERS,
12
- # P4G_REPLAY_SCHEDULING, # TODO: need to implement
13
- # P4G_REPLAY_SYNCHRONIZATION, # TODO: need to implement
14
- )
15
-
16
-
17
- class GFilesReplay:
18
- """PCAP replay file configuration"""
19
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
20
- self.__conn = conn
21
- self.__module_id = module_id
22
- self.__port_id = port_id
23
- self.__group_idx = group_idx
24
- self.indices = P4G_REPLAY_FILE_INDICES(conn, module_id, port_id, group_idx)
25
- """
26
- Representation of P4G_REPLAY_FILE_INDICES
27
- """
28
-
29
- def name(self, replay_file_idx: int) -> "P4G_REPLAY_FILE_NAME":
30
- """
31
- Representation of P4G_REPLAY_FILE_NAME
32
- """
33
- return P4G_REPLAY_FILE_NAME(
34
- self.__conn,
35
- self.__module_id,
36
- self.__port_id,
37
- self.__group_idx,
38
- replay_file_idx
39
- )
40
-
41
- async def clear_index(self, replay_file_idx: int) -> None:
42
- """
43
- Representation of P4G_REPLAY_FILE_CLEAR
44
- """
45
- await P4G_REPLAY_FILE_CLEAR(
46
- self.__conn,
47
- self.__module_id,
48
- self.__port_id,
49
- replay_file_idx
50
- ).set()
51
-
52
-
53
- class GUserReplay:
54
- """PCAP replay user configuration"""
55
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
56
- self.incarnation = P4G_REPLAY_USER_INCARNATION(conn, module_id, port_id, group_idx)
57
- """
58
- Representation of P4G_REPLAY_USER_INCARNATION
59
- """
60
- self.repetitions = P4G_REPLAY_USER_REPETITIONS(conn, module_id, port_id, group_idx)
61
- """
62
- Representation of P4G_REPLAY_USER_REPETITIONS
63
- """
64
-
65
-
66
- class GCounters:
67
- """PCAP replay counters"""
68
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
69
- self.replay = P4G_APP_REPLAY_COUNTERS(conn, module_id, port_id, group_idx)
70
- """
71
- Representation of P4G_APP_REPLAY_COUNTERS
72
- """
73
-
74
-
75
- class GReplay:
76
- """PCAP replay configuration"""
77
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
78
- self.utilization = P4G_REPLAY_UTILIZATION(conn, module_id, port_id, group_idx)
79
- """
80
- Representation of P4G_REPLAY_UTILIZATION
81
- """
82
- # self.scheduling = P4G_REPLAY_SCHEDULING(conn, module_id, port_id, group_idx)
83
- # self.synchronization = P4G_REPLAY_SYNCHRONIZATION(conn, module_id, port_id, group_idx)
84
- self.files = GFilesReplay(conn, module_id, port_id, group_idx)
85
- """PCAP replay file configuration"""
86
- self.user = GUserReplay(conn, module_id, port_id, group_idx)
87
- """PCAP replay user configuration"""
88
- self.counters = GCounters(conn, module_id, port_id, group_idx)
89
- """PCAP replay counters"""
@@ -1,261 +0,0 @@
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
- P4G_CLEAR_POST_STAT,
6
- P4G_TCP_RTT_VALUE,
7
- P4G_TCP_STATE_CURRENT,
8
- P4G_TCP_STATE_TOTAL,
9
- P4G_TCP_STATE_RATE,
10
- P4G_TCP_RX_PAYLOAD_COUNTERS,
11
- P4G_TCP_TX_PAYLOAD_COUNTERS,
12
- P4G_TCP_RETRANSMIT_COUNTERS,
13
- P4G_TCP_ERROR_COUNTERS,
14
- P4G_TCP_MSS_TYPE,
15
- P4G_TCP_MSS_MINMAX,
16
- P4G_TCP_MSS_VALUE,
17
- P4G_TCP_WINDOW_SIZE,
18
- P4G_TCP_DUP_THRES,
19
- P4G_TCP_SYN_RTO,
20
- P4G_TCP_RTO,
21
- P4G_TCP_CONGESTION_MODE,
22
- P4G_TCP_WINDOW_SCALING,
23
- P4G_TCP_RTO_MINMAX,
24
- P4G_TCP_RTO_PROLONGED_MODE,
25
- P4G_TCP_ICWND_CALC_METHOD,
26
- P4G_TCP_ISSTHRESH,
27
- P4G_TCP_ACK_FREQUENCY,
28
- P4G_TCP_ACK_TIMEOUT,
29
- P4G_TCP_ESTABLISH_HIST,
30
- P4G_TCP_CLOSE_HIST,
31
- P4G_TCP_RX_TOTAL_BYTES_HIST,
32
- P4G_TCP_RX_GOOD_BYTES_HIST,
33
- P4G_TCP_TX_TOTAL_BYTES_HIST,
34
- P4G_TCP_TX_GOOD_BYTES_HIST,
35
- P4G_TCP_RX_PACKET_COUNTERS,
36
- P4G_TCP_TX_PACKET_COUNTERS,
37
- )
38
-
39
-
40
- class GAckTcp:
41
- """TCP ACK configuration"""
42
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
43
- self.duplicate_tresholds = P4G_TCP_DUP_THRES(conn, module_id, port_id, group_idx)
44
- """
45
- Representation of P4G_TCP_DUP_THRES
46
- """
47
- self.frequency = P4G_TCP_ACK_FREQUENCY(conn, module_id, port_id, group_idx)
48
- """
49
- Representation of P4G_TCP_ACK_FREQUENCY
50
- """
51
- self.timeout = P4G_TCP_ACK_TIMEOUT(conn, module_id, port_id, group_idx)
52
- """
53
- Representation of P4G_TCP_ACK_TIMEOUT
54
- """
55
-
56
-
57
- class GRetransmitionTimeoutTcp:
58
- """TCP Retransmition Timeout configuration"""
59
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
60
- self.syn_value = P4G_TCP_SYN_RTO(conn, module_id, port_id, group_idx)
61
- """
62
- Representation of P4G_TCP_SYN_RTO
63
- """
64
- self.value = P4G_TCP_RTO(conn, module_id, port_id, group_idx)
65
- """
66
- Representation of P4G_TCP_RTO
67
- """
68
- self.range_limits = P4G_TCP_RTO_MINMAX(conn, module_id, port_id, group_idx)
69
- """
70
- Representation of P4G_TCP_RTO_MINMAX
71
- """
72
- self.prolonged_mode = P4G_TCP_RTO_PROLONGED_MODE(conn, module_id, port_id, group_idx)
73
- """
74
- Representation of P4G_TCP_RTO_PROLONGED_MODE
75
- """
76
-
77
-
78
- class GStateCountersTcp:
79
- """TCP State counters"""
80
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
81
- self.current = P4G_TCP_STATE_CURRENT(conn, module_id, port_id, group_idx)
82
- """
83
- Representation of P4G_TCP_STATE_CURRENT
84
- """
85
- self.total = P4G_TCP_STATE_TOTAL(conn, module_id, port_id, group_idx)
86
- """
87
- Representation of P4G_TCP_STATE_TOTAL
88
- """
89
- self.rate = P4G_TCP_STATE_RATE(conn, module_id, port_id, group_idx)
90
- """
91
- Representation of P4G_TCP_STATE_RATE
92
- """
93
-
94
-
95
- class GMaxSegmentSize:
96
- """TCP Max Segment Size Configuration"""
97
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
98
- self.type = P4G_TCP_MSS_TYPE(conn, module_id, port_id, group_idx)
99
- """
100
- Representation of P4G_TCP_MSS_TYPE
101
- """
102
- self.range_limits = P4G_TCP_MSS_MINMAX(conn, module_id, port_id, group_idx)
103
- """
104
- Representation of P4G_TCP_MSS_MINMAX
105
- """
106
- self.fixed_value = P4G_TCP_MSS_VALUE(conn, module_id, port_id, group_idx)
107
- """
108
- Representation of P4G_TCP_MSS_VALUE
109
- """
110
-
111
-
112
- class GPacketCountersTcp:
113
- """TCP Packet Counters"""
114
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
115
- self.rx = P4G_TCP_RX_PACKET_COUNTERS(conn, module_id, port_id, group_idx)
116
- """
117
- Representation of P4G_TCP_RX_PACKET_COUNTERS
118
- """
119
- self.tx = P4G_TCP_TX_PACKET_COUNTERS(conn, module_id, port_id, group_idx)
120
- """
121
- Representation of P4G_TCP_TX_PACKET_COUNTERS
122
- """
123
-
124
-
125
- class GPayloadCountersTcp:
126
- """TCP Payload Counters"""
127
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
128
- self.rx = P4G_TCP_RX_PAYLOAD_COUNTERS(conn, module_id, port_id, group_idx)
129
- """
130
- Representation of P4G_TCP_RX_PAYLOAD_COUNTERS
131
- """
132
- self.tx = P4G_TCP_TX_PAYLOAD_COUNTERS(conn, module_id, port_id, group_idx)
133
- """
134
- Representation of P4G_TCP_TX_PAYLOAD_COUNTERS
135
- """
136
-
137
-
138
- class GCountersTcp:
139
- """TCP counters"""
140
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
141
- self.retransmission = P4G_TCP_RETRANSMIT_COUNTERS(conn, module_id, port_id, group_idx)
142
- """
143
- Representation of P4G_TCP_RETRANSMIT_COUNTERS
144
- """
145
- self.error = P4G_TCP_ERROR_COUNTERS(conn, module_id, port_id, group_idx)
146
- """
147
- Representation of P4G_TCP_ERROR_COUNTERS
148
- """
149
- self.packet = GPacketCountersTcp(conn, module_id, port_id, group_idx)
150
- """Packet counters"""
151
- self.payload = GPayloadCountersTcp(conn, module_id, port_id, group_idx)
152
- """Payload counters"""
153
- self.state = GStateCountersTcp(conn, module_id, port_id, group_idx)
154
- """State counters"""
155
-
156
-
157
- class GRxHistogramTcp:
158
- """TCP RX Histogram"""
159
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
160
- self.total_bytes = P4G_TCP_RX_TOTAL_BYTES_HIST(conn, module_id, port_id, group_idx)
161
- """
162
- Representation of P4G_TCP_RX_TOTAL_BYTES_HIST
163
- """
164
- self.good_bytes = P4G_TCP_RX_GOOD_BYTES_HIST(conn, module_id, port_id, group_idx)
165
- """
166
- Representation of P4G_TCP_RX_GOOD_BYTES_HIST
167
- """
168
-
169
-
170
- class GTxHistogramTcp:
171
- """TCP TX Histogram"""
172
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
173
- self.total_bytes = P4G_TCP_TX_TOTAL_BYTES_HIST(conn, module_id, port_id, group_idx)
174
- """
175
- Representation of P4G_TCP_TX_TOTAL_BYTES_HIST
176
- """
177
- self.good_bytes = P4G_TCP_TX_GOOD_BYTES_HIST(conn, module_id, port_id, group_idx)
178
- """
179
- Representation of P4G_TCP_TX_GOOD_BYTES_HIST
180
- """
181
-
182
-
183
- class GConnHistogramTcp:
184
- """TCP Connection Histogram"""
185
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
186
- self.establish_times = P4G_TCP_ESTABLISH_HIST(conn, module_id, port_id, group_idx)
187
- """
188
- Representation of P4G_TCP_ESTABLISH_HIST
189
- """
190
- self.close_times = P4G_TCP_CLOSE_HIST(conn, module_id, port_id, group_idx)
191
- """
192
- Representation of P4G_TCP_CLOSE_HIST
193
- """
194
-
195
-
196
- class GHistogramTcp:
197
- """TCP histogram"""
198
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
199
- self.connection = GConnHistogramTcp(conn, module_id, port_id, group_idx)
200
- """TCP Connection Histogram"""
201
- self.rx = GRxHistogramTcp(conn, module_id, port_id, group_idx)
202
- """TCP RX Histogram"""
203
- self.tx = GTxHistogramTcp(conn, module_id, port_id, group_idx)
204
- """TCP TX Histogram"""
205
-
206
-
207
- class GReceiverWindowTcp:
208
- """TCP RWND Configuration"""
209
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
210
- self.size = P4G_TCP_WINDOW_SIZE(conn, module_id, port_id, group_idx)
211
- """
212
- Representation of P4G_TCP_WINDOW_SIZE
213
- """
214
- self.scaling = P4G_TCP_WINDOW_SCALING(conn, module_id, port_id, group_idx)
215
- """
216
- Representation of P4G_TCP_WINDOW_SCALING
217
- """
218
-
219
-
220
- class GCongestionWindowTcp:
221
- """TCP CWND Configuration"""
222
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
223
- self.congestion_mode = P4G_TCP_CONGESTION_MODE(conn, module_id, port_id, group_idx)
224
- """
225
- Representation of P4G_TCP_CONGESTION_MODE
226
- """
227
- self.icwnd_calc_method = P4G_TCP_ICWND_CALC_METHOD(conn, module_id, port_id, group_idx)
228
- """
229
- Representation of P4G_TCP_ICWND_CALC_METHOD
230
- """
231
-
232
-
233
- class GTcp:
234
- """TCP Stack Configuration"""
235
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
236
- self.clear_post_test_statistics = P4G_CLEAR_POST_STAT(conn, module_id, port_id, group_idx)
237
- """
238
- Representation of P4G_CLEAR_POST_STAT
239
- """
240
- self.rtt_value = P4G_TCP_RTT_VALUE(conn, module_id, port_id, group_idx)
241
- """
242
- Representation of P4G_TCP_RTT_VALUE
243
- """
244
- self.iss_treshold = P4G_TCP_ISSTHRESH(conn, module_id, port_id, group_idx)
245
- """
246
- Representation of P4G_TCP_ISSTHRESH
247
- """
248
- self.mss = GMaxSegmentSize(conn, module_id, port_id, group_idx)
249
- """Max segment size config"""
250
- self.rto = GRetransmitionTimeoutTcp(conn, module_id, port_id, group_idx)
251
- """Retransmission timeout config"""
252
- self.ack = GAckTcp(conn, module_id, port_id, group_idx)
253
- """ACK config"""
254
- self.rwnd = GReceiverWindowTcp(conn, module_id, port_id, group_idx)
255
- """RWND config"""
256
- self.cwnd = GCongestionWindowTcp(conn, module_id, port_id, group_idx)
257
- """CWND config"""
258
- self.counters = GCountersTcp(conn, module_id, port_id, group_idx)
259
- """Counters"""
260
- self.histogram = GHistogramTcp(conn, module_id, port_id, group_idx)
261
- """Histogram"""
@@ -1,166 +0,0 @@
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
- P4G_TLS_ENABLE,
6
- P4G_TLS_CIPHER_SUITES,
7
- P4G_TLS_MAX_RECORD_SIZE,
8
- P4G_TLS_CERTIFICATE_FILENAME,
9
- P4G_TLS_PRIVATE_KEY_FILENAME,
10
- P4G_TLS_DHPARAMS_FILENAME,
11
- P4G_TLS_CLOSE_NOTIFY,
12
- P4G_TLS_ALERT_WARNING_COUNTERS,
13
- P4G_TLS_ALERT_FATAL_COUNTERS,
14
- P4G_TLS_STATE_CURRENT,
15
- P4G_TLS_STATE_TOTAL,
16
- P4G_TLS_STATE_RATE,
17
- P4G_TLS_RX_PAYLOAD_COUNTERS,
18
- P4G_TLS_TX_PAYLOAD_COUNTERS,
19
- P4G_TLS_RX_PAYLOAD_BYTES_HIST,
20
- P4G_TLS_TX_PAYLOAD_BYTES_HIST,
21
- P4G_TLS_HANDSHAKE_HIST,
22
- P4G_TLS_SERVER_NAME,
23
- P4G_TLS_PROTOCOL_VER,
24
- P4G_TLS_MIN_REQ_PROTOCOL_VER,
25
- )
26
-
27
-
28
- class GCountersTlsState:
29
- """TLS state counters"""
30
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
31
- self.current = P4G_TLS_STATE_CURRENT(conn, module_id, port_id, group_idx)
32
- """
33
- Representation of P4G_TLS_STATE_CURRENT
34
- """
35
- self.total = P4G_TLS_STATE_TOTAL(conn, module_id, port_id, group_idx)
36
- """
37
- Representation of P4G_TLS_STATE_TOTAL
38
- """
39
- self.rate = P4G_TLS_STATE_RATE(conn, module_id, port_id, group_idx)
40
- """
41
- Representation of P4G_TLS_STATE_RATE
42
- """
43
-
44
-
45
- class GCountersTlsAlert:
46
- """TLS alert counters"""
47
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
48
- self.warning = P4G_TLS_ALERT_WARNING_COUNTERS(conn, module_id, port_id, group_idx)
49
- """
50
- Representation of P4G_TLS_ALERT_WARNING_COUNTERS
51
- """
52
- self.fatal = P4G_TLS_ALERT_FATAL_COUNTERS(conn, module_id, port_id, group_idx)
53
- """
54
- Representation of P4G_TLS_ALERT_FATAL_COUNTERS
55
- """
56
-
57
-
58
- class GCountersTlsPayload:
59
- """TLS payload counters"""
60
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
61
- self.rx = P4G_TLS_RX_PAYLOAD_COUNTERS(conn, module_id, port_id, group_idx)
62
- """
63
- Representation of P4G_TLS_RX_PAYLOAD_COUNTERS
64
- """
65
- self.tx = P4G_TLS_TX_PAYLOAD_COUNTERS(conn, module_id, port_id, group_idx)
66
- """
67
- Representation of P4G_TLS_TX_PAYLOAD_COUNTERS
68
- """
69
-
70
-
71
- class GCountersTls:
72
- """TLS counters"""
73
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
74
- self.alert = GCountersTlsAlert(conn, module_id, port_id, group_idx)
75
- """TLS alert counters"""
76
- self.payload = GCountersTlsPayload(conn, module_id, port_id, group_idx)
77
- """TLS payload counters"""
78
- self.state = GCountersTlsState(conn, module_id, port_id, group_idx)
79
- """TLS state counters"""
80
-
81
-
82
- class GHistogramTlsPayload:
83
- """TLS payload histogram"""
84
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
85
- self.rx_bytes = P4G_TLS_RX_PAYLOAD_BYTES_HIST(conn, module_id, port_id, group_idx)
86
- """
87
- Representation of P4G_TLS_RX_PAYLOAD_BYTES_HIST
88
- """
89
- self.tx_bytes = P4G_TLS_TX_PAYLOAD_BYTES_HIST(conn, module_id, port_id, group_idx)
90
- """
91
- Representation of P4G_TLS_TX_PAYLOAD_BYTES_HIST
92
- """
93
-
94
-
95
- class GHistogramTls:
96
- """TLS histogram"""
97
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
98
- self.handshake = P4G_TLS_HANDSHAKE_HIST(conn, module_id, port_id, group_idx)
99
- """
100
- Representation of P4G_TLS_HANDSHAKE_HIST
101
- """
102
- self.payload = GHistogramTlsPayload(conn, module_id, port_id, group_idx)
103
- """TLS payload histogram"""
104
-
105
-
106
- class GProtocolTls:
107
- """TLS protocol version"""
108
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
109
- self.version = P4G_TLS_PROTOCOL_VER(conn, module_id, port_id, group_idx)
110
- """
111
- Representation of P4G_TLS_PROTOCOL_VER
112
- """
113
- self.min_required_version = P4G_TLS_MIN_REQ_PROTOCOL_VER(conn, module_id, port_id, group_idx)
114
- """
115
- Representation of P4G_TLS_MIN_REQ_PROTOCOL_VER
116
- """
117
-
118
-
119
- class GFileTls:
120
- """TLS certificate and key files"""
121
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
122
- self.certificate_path = P4G_TLS_CERTIFICATE_FILENAME(conn, module_id, port_id, group_idx)
123
- """
124
- Representation of P4G_TLS_CERTIFICATE_FILENAME
125
- """
126
- self.private_key_path = P4G_TLS_PRIVATE_KEY_FILENAME(conn, module_id, port_id, group_idx)
127
- """
128
- Representation of P4G_TLS_PRIVATE_KEY_FILENAME
129
- """
130
- self.dhparams_path = P4G_TLS_DHPARAMS_FILENAME(conn, module_id, port_id, group_idx)
131
- """
132
- Representation of P4G_TLS_DHPARAMS_FILENAME
133
- """
134
-
135
-
136
- class GTls:
137
- """TLS configuration"""
138
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
139
- self.enable = P4G_TLS_ENABLE(conn, module_id, port_id, group_idx)
140
- """
141
- Representation of P4G_TLS_ENABLE
142
- """
143
- self.server_name = P4G_TLS_SERVER_NAME(conn, module_id, port_id, group_idx)
144
- """
145
- Representation of P4G_TLS_SERVER_NAME
146
- """
147
- self.close_notify = P4G_TLS_CLOSE_NOTIFY(conn, module_id, port_id, group_idx)
148
- """
149
- Representation of P4G_TLS_CLOSE_NOTIFY
150
- """
151
- self.cipher_suites = P4G_TLS_CIPHER_SUITES(conn, module_id, port_id, group_idx)
152
- """
153
- Representation of P4G_TLS_CIPHER_SUITES
154
- """
155
- self.max_record_size = P4G_TLS_MAX_RECORD_SIZE(conn, module_id, port_id, group_idx)
156
- """
157
- Representation of P4G_TLS_MAX_RECORD_SIZE
158
- """
159
- self.file = GFileTls(conn, module_id, port_id, group_idx)
160
- """Cert and key file"""
161
- self.protocol = GProtocolTls(conn, module_id, port_id, group_idx)
162
- """Protocol version"""
163
- self.counters = GCountersTls(conn, module_id, port_id, group_idx)
164
- """Counters"""
165
- self.histogram = GHistogramTls(conn, module_id, port_id, group_idx)
166
- """Histogram"""
@@ -1,112 +0,0 @@
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
- P4G_UDP_PACKET_SIZE_TYPE,
6
- P4G_UDP_PACKET_SIZE_MINMAX,
7
- P4G_UDP_PACKET_SIZE_VALUE,
8
- P4G_UDP_STATE_CURRENT,
9
- P4G_UDP_STATE_TOTAL,
10
- P4G_UDP_STATE_RATE,
11
- P4G_UDP_RX_PAYLOAD_COUNTERS,
12
- P4G_UDP_TX_PAYLOAD_COUNTERS,
13
- P4G_UDP_RX_BYTES_HIST,
14
- P4G_UDP_TX_BYTES_HIST,
15
- P4G_UDP_RX_PACKET_COUNTERS,
16
- P4G_UDP_TX_PACKET_COUNTERS,
17
- )
18
-
19
-
20
- class GHistogramUdp:
21
- """UDP histogram"""
22
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
23
- self.rx_bytes = P4G_UDP_RX_BYTES_HIST(conn, module_id, port_id, group_idx)
24
- """
25
- Representation of P4G_UDP_RX_BYTES_HIST
26
- """
27
- self.tx_bytes = P4G_UDP_TX_BYTES_HIST(conn, module_id, port_id, group_idx)
28
- """
29
- Representation of P4G_UDP_TX_BYTES_HIST
30
- """
31
-
32
-
33
- class GPayloadCountersUdp:
34
- """UDP payload counters"""
35
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
36
- self.rx = P4G_UDP_RX_PAYLOAD_COUNTERS(conn, module_id, port_id, group_idx)
37
- """
38
- Representation of P4G_UDP_RX_PAYLOAD_COUNTERS
39
- """
40
- self.tx = P4G_UDP_TX_PAYLOAD_COUNTERS(conn, module_id, port_id, group_idx)
41
- """
42
- Representation of P4G_UDP_TX_PAYLOAD_COUNTERS
43
- """
44
-
45
-
46
- class GPacketCountersUdp:
47
- """UDP packet counters"""
48
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
49
- self.rx = P4G_UDP_RX_PACKET_COUNTERS(conn, module_id, port_id, group_idx)
50
- """
51
- Representation of P4G_UDP_RX_PACKET_COUNTERS
52
- """
53
- self.tx = P4G_UDP_TX_PACKET_COUNTERS(conn, module_id, port_id, group_idx)
54
- """
55
- Representation of P4G_UDP_TX_PACKET_COUNTERS
56
- """
57
-
58
-
59
- class GCountersUdp:
60
- """UDP counters"""
61
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
62
- self.payload = GPayloadCountersUdp(conn, module_id, port_id, group_idx)
63
- """UDP payload counters"""
64
- self.packet = GPacketCountersUdp(conn, module_id, port_id, group_idx)
65
- """UDP packet counters"""
66
- self.state = GStateCountersUdp(conn, module_id, port_id, group_idx)
67
- """UDP state counters"""
68
-
69
-
70
- class GPacketSizeUdp:
71
- """UDP packet size"""
72
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
73
- self.type = P4G_UDP_PACKET_SIZE_TYPE(conn, module_id, port_id, group_idx)
74
- """
75
- Representation of P4G_UDP_PACKET_SIZE_TYPE
76
- """
77
- self.range_limits = P4G_UDP_PACKET_SIZE_MINMAX(conn, module_id, port_id, group_idx)
78
- """
79
- Representation of P4G_UDP_PACKET_SIZE_MINMAX
80
- """
81
- self.value = P4G_UDP_PACKET_SIZE_VALUE(conn, module_id, port_id, group_idx)
82
- """
83
- Representation of P4G_UDP_PACKET_SIZE_VALUE
84
- """
85
-
86
-
87
- class GStateCountersUdp:
88
- """UDP state counters"""
89
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
90
- self.current = P4G_UDP_STATE_CURRENT(conn, module_id, port_id, group_idx)
91
- """
92
- Representation of P4G_UDP_STATE_CURRENT
93
- """
94
- self.total = P4G_UDP_STATE_TOTAL(conn, module_id, port_id, group_idx)
95
- """
96
- Representation of P4G_UDP_STATE_TOTAL
97
- """
98
- self.rate = P4G_UDP_STATE_RATE(conn, module_id, port_id, group_idx)
99
- """
100
- Representation of P4G_UDP_STATE_RATE
101
- """
102
-
103
-
104
- class GUdp:
105
- """UDP configuration"""
106
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
107
- self.packet_size = GPacketSizeUdp(conn, module_id, port_id, group_idx)
108
- """UDP packet size"""
109
- self.counters = GCountersUdp(conn, module_id, port_id, group_idx)
110
- """UDP counters"""
111
- self.histogram = GHistogramUdp(conn, module_id, port_id, group_idx)
112
- """UDP histogram"""
@@ -1,25 +0,0 @@
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
- P4G_USER_STATE_CURRENT,
6
- P4G_USER_STATE_TOTAL,
7
- P4G_USER_STATE_RATE,
8
- )
9
-
10
-
11
- class GUserState:
12
- """User state counters"""
13
- def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int, group_idx: int) -> None:
14
- self.current = P4G_USER_STATE_CURRENT(conn, module_id, port_id, group_idx)
15
- """
16
- Representation of P4G_USER_STATE_CURRENT
17
- """
18
- self.total = P4G_USER_STATE_TOTAL(conn, module_id, port_id, group_idx)
19
- """
20
- Representation of P4G_USER_STATE_TOTAL
21
- """
22
- self.rate = P4G_USER_STATE_RATE(conn, module_id, port_id, group_idx)
23
- """
24
- Representation of P4G_USER_STATE_RATE
25
- """
File without changes