tdl-xoa-driver 1.5.0b1__py3-none-any.whl → 1.5.0b2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tdl-xoa-driver
3
- Version: 1.5.0b1
3
+ Version: 1.5.0b2
4
4
  Summary: XOA Driver is a Python library providing user-friendly communication interfaces to Teledyne LeCroy Xena Ethernet traffic generation test equipment. It provides a rich collection of APIs that can be used to either write test scripts or develop applications.
5
5
  Home-page: https://github.com/xenanetworks/tdl-xoa-driver
6
6
  Author: Leonard Yu, Zoltan Hanisch
@@ -1,5 +1,5 @@
1
- tdl_xoa_driver-1.5.0b1.dist-info/licenses/LICENSE,sha256=Oc3Sih78tKR5tfTaIGcU3qytyX6JAzzAUlwW-qQaRaQ,11351
2
- xoa_driver/__init__.py,sha256=toYGpyit6mdS5499zhu0n3s6XQfzEKLMaKylpr_SP0Q,50
1
+ tdl_xoa_driver-1.5.0b2.dist-info/licenses/LICENSE,sha256=Oc3Sih78tKR5tfTaIGcU3qytyX6JAzzAUlwW-qQaRaQ,11351
2
+ xoa_driver/__init__.py,sha256=PK8WfgofRxMWhHxzhZs1B-gk6WbVmZ9TGCqvCmTcXZE,50
3
3
  xoa_driver/enums.py,sha256=SgwfIdPYol1AOZ-vl0ZtV3pRc3qXjm6QMq8ryOzjmuY,8559
4
4
  xoa_driver/exceptions.py,sha256=baNpophPmeNujMTSfL9TsYHa3Gju2-ozNOg78n8tqN8,1957
5
5
  xoa_driver/hlfuncs.py,sha256=tfyhbYX86XWpc4yFoBrj1OYqVJJfDnoxC6tHLlWTHkQ,311
@@ -17,11 +17,11 @@ xoa_driver/functions/headers.py,sha256=Rf_em8LqCZOz0oxiqvtAFwx71_CtD9_I0p-vEZWtc
17
17
  xoa_driver/functions/mgmt.py,sha256=njuTrUDgtXwNk0OllFjCObVJXwQ4l4-a2RA7KAORpZU,16513
18
18
  xoa_driver/functions/tools.py,sha256=d4p-v49qwXCQW1NFKRhLmT7Lje2H8EGaRy2inDmLJ18,9786
19
19
  xoa_driver/functions/cli/__init__.py,sha256=OAl_kI2q7qf9aDsm2ib5_UIUSHpXLcLNFMMF9dlhwNc,468
20
- xoa_driver/functions/cli/_cli_manager.py,sha256=B_ILKXL3VhoTGWzB4UrB1UV7LQKc2C45pm9m4BJSaEA,22162
20
+ xoa_driver/functions/cli/_cli_manager.py,sha256=MKU2wS0Gxd514zvyWsm4qiYg-WLPA6vrHZy2QFcqpsU,22166
21
21
  xoa_driver/functions/cli/_config_block.py,sha256=KaNiAq4ht6Hfoo7iE2h03SAXhE3WX5efyHJcE74dYto,12245
22
22
  xoa_driver/functions/cli/_socket_driver.py,sha256=rVmkSQZr4Ygu8NNkOSuW9_5dqaSc0kpF1SUaV2jPwJs,3334
23
- xoa_driver/functions/cli/port_config.py,sha256=4YX7tIWXXtgKWM6-9Nt_bXhY-SfWv0hqA4U26SvvH4I,4170
24
- xoa_driver/functions/cli/test_case_config.py,sha256=_dLPENNihGO40PPpg99LJxPe8TSkXTRFavN07bMdfPY,8016
23
+ xoa_driver/functions/cli/port_config.py,sha256=l2PSFCXuXWY7a8KFLG9qYkWM2zIG7lUsFcruH8S4rtc,4146
24
+ xoa_driver/functions/cli/test_case_config.py,sha256=r2qViHcDFEZzxp49ov9Ti5OLqdXcvcyXujtm84SKsnQ,7996
25
25
  xoa_driver/functions/cmis/__init__.py,sha256=AWHrzTQYDJFmC_7vkZfin6AhehyQRojxbWLUNhCIlzc,113
26
26
  xoa_driver/functions/cmis/_constants.py,sha256=VqjqpeByPEHMnMNdEeQe8hwUe6-QwtOMDwusiay638g,645
27
27
  xoa_driver/functions/cmis/_replies.py,sha256=kw-7Ua_Ddu5_9fjVwQfEI-AlyPy6-c7uS7HyPKgNHHQ,22975
@@ -224,7 +224,7 @@ xoa_driver/internals/utils/managers/abc.py,sha256=M3XgI2FVQLUXixS5SKnZTm0MweHY6D
224
224
  xoa_driver/internals/utils/managers/exceptions.py,sha256=fqLSin-OQCIKuhpzvK6RZThF3FJ8FsHers4EmqM9gSs,628
225
225
  xoa_driver/internals/utils/managers/modules_manager.py,sha256=sCEhqUu7Waot16rucJ5nI9FyHuFEeU_sBx1JjZdhDJg,3236
226
226
  xoa_driver/internals/utils/managers/ports_manager.py,sha256=FRizJ4-V0iE66cSuswW01-6QvXhCuGxHGvmtaDVOeFg,3484
227
- tdl_xoa_driver-1.5.0b1.dist-info/METADATA,sha256=QJGr1OksZNy3I8SyINx0bWSjpPOFvN2UL2Mqwraga0c,4101
228
- tdl_xoa_driver-1.5.0b1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
229
- tdl_xoa_driver-1.5.0b1.dist-info/top_level.txt,sha256=sBbN3hwpa4s2VxsUBoWJ5jIqqDr50vgcEb-V8kL7pvE,11
230
- tdl_xoa_driver-1.5.0b1.dist-info/RECORD,,
227
+ tdl_xoa_driver-1.5.0b2.dist-info/METADATA,sha256=VaqoX_k-PTjgwSKoTtKXYE8j6zKLve0x_zHbAEkENkA,4101
228
+ tdl_xoa_driver-1.5.0b2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
229
+ tdl_xoa_driver-1.5.0b2.dist-info/top_level.txt,sha256=sBbN3hwpa4s2VxsUBoWJ5jIqqDr50vgcEb-V8kL7pvE,11
230
+ tdl_xoa_driver-1.5.0b2.dist-info/RECORD,,
xoa_driver/__init__.py CHANGED
@@ -1,2 +1,2 @@
1
- __version__ = "1.5.0b1"
1
+ __version__ = "1.5.0b2"
2
2
  __short_version__ = "1.5"
@@ -150,12 +150,12 @@ class XOACLIManager:
150
150
  # Check for C_LOGON or password in string, as a safeguard
151
151
  if re.search(r'C_LOGON\s*".*"', msg) or re.search(r'password\s*=\s*".*"', msg, flags=re.IGNORECASE) or re.search(r'--password=\S+', msg, flags=re.IGNORECASE):
152
152
  logging.info(f"{time.time()} [Sensitive command redacted]")
153
- print(f"{time.time()} [Sensitive command redacted]")
153
+ # print(f"{time.time()} [Sensitive command redacted]")
154
154
  return
155
155
  # Redact as an additional precaution
156
156
  safe_msg = _redact_sensitive(msg)
157
157
  logging.info(f"{time.time()} {safe_msg}")
158
- print(f"{time.time()} {safe_msg}")
158
+ # print(f"{time.time()} {safe_msg}")
159
159
  def log_command(self, cmd:str) -> None:
160
160
  """Place the command in the log cmd list for later logging
161
161
 
@@ -48,7 +48,7 @@ async def save_port_config(tester: testers.L23Tester, port: ports.GenericL23Port
48
48
 
49
49
  # Save configuration to file
50
50
  result = port_config_block.config_block_str
51
- with open(path, 'w+', newline='') as xpcfile:
51
+ with open(path, 'w+') as xpcfile:
52
52
  xpcfile.write(result)
53
53
  return result
54
54
 
@@ -78,7 +78,7 @@ async def load_port_config(tester: testers.L23Tester, port: ports.GenericL23Port
78
78
  xm.reserve_port(port_index)
79
79
 
80
80
  # Read configuration from file
81
- with open(path, 'r', newline='') as xpcfile:
81
+ with open(path, 'r') as xpcfile:
82
82
  config_data = xpcfile.read()
83
83
 
84
84
  # Deserialize config block and send CLI commands
@@ -90,7 +90,7 @@ async def save_test_case_config(tester: testers.L23Tester, ports: List[ports.Gen
90
90
  port_config_block.commands = raw_resp[0]
91
91
  result += "\n" + ";\n" + port_config_block.config_block_str
92
92
 
93
- with open(path, 'w+', newline='') as xtcfile:
93
+ with open(path, 'w+') as xtcfile:
94
94
  xtcfile.write(result)
95
95
 
96
96
  return result
@@ -119,7 +119,7 @@ async def load_test_case_config(tester: testers.L23Tester, path: str, mode: str
119
119
  xm.logon_set_owner(tester_password)
120
120
 
121
121
  # Read configuration from file
122
- with open(path, 'r', newline='') as xpcfile:
122
+ with open(path, 'r') as xpcfile:
123
123
  config_data = xpcfile.read()
124
124
 
125
125
  # Parse the config data to configure modules and ports block by block
@@ -139,7 +139,7 @@ async def load_test_case_config(tester: testers.L23Tester, path: str, mode: str
139
139
  # Send each command to the tester
140
140
  for cmd in module_block.commands:
141
141
  if cmd.strip(): # Ensure the command is not empty
142
- print(f"Applying command: {module_index} {cmd}")
142
+ # print(f"Applying command: {module_index} {cmd}")
143
143
  xm.send(cmd=f"{module_index} {cmd}", sync_on=False)
144
144
  # Free the module after applying configuration
145
145
  xm.free_module(module_index)
@@ -156,7 +156,7 @@ async def load_test_case_config(tester: testers.L23Tester, path: str, mode: str
156
156
  # Send each command to the tester
157
157
  for cmd in port_block.commands:
158
158
  if cmd.strip(): # Ensure the command is not empty
159
- print(f"Applying command: {port_index} {cmd}")
159
+ # print(f"Applying command: {port_index} {cmd}")
160
160
  xm.send(cmd=f"{port_index} {cmd}", sync_on=False)
161
161
  # Free the port after applying configuration
162
162
  xm.free_port(port_index)