tdl-xoa-driver 1.0.0b1__py3-none-any.whl → 1.2.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 (56) hide show
  1. {tdl_xoa_driver-1.0.0b1.dist-info → tdl_xoa_driver-1.2.0.dist-info}/METADATA +5 -126
  2. {tdl_xoa_driver-1.0.0b1.dist-info → tdl_xoa_driver-1.2.0.dist-info}/RECORD +56 -56
  3. {tdl_xoa_driver-1.0.0b1.dist-info → tdl_xoa_driver-1.2.0.dist-info}/WHEEL +1 -1
  4. xoa_driver/__init__.py +2 -2
  5. xoa_driver/functions/anlt.py +0 -30
  6. xoa_driver/functions/headers.py +312 -11
  7. xoa_driver/functions/mgmt.py +32 -86
  8. xoa_driver/functions/tools.py +13 -1
  9. xoa_driver/internals/commands/c_commands.py +26 -0
  10. xoa_driver/internals/commands/enums.py +8 -29
  11. xoa_driver/internals/commands/m_commands.py +0 -4
  12. xoa_driver/internals/commands/p_commands.py +30 -3
  13. xoa_driver/internals/commands/pl1_commands.py +96 -71
  14. xoa_driver/internals/commands/pr_commands.py +0 -8
  15. xoa_driver/internals/commands/ps_commands.py +0 -2
  16. xoa_driver/internals/commands/pt_commands.py +0 -6
  17. xoa_driver/internals/core/transporter/_stream.py +1 -1
  18. xoa_driver/internals/core/transporter/protocol/payload/base_struct.py +1 -1
  19. xoa_driver/internals/core/transporter/protocol/payload/descriptor.py +1 -1
  20. xoa_driver/internals/hli_v1/modules/base_module.py +1 -1
  21. xoa_driver/internals/hli_v1/modules/module_chimera.py +1 -1
  22. xoa_driver/internals/hli_v1/modules/module_l23ve.py +1 -1
  23. xoa_driver/internals/hli_v1/modules/module_l47.py +1 -1
  24. xoa_driver/internals/hli_v1/modules/modules_l23/module_l23_base.py +1 -1
  25. xoa_driver/internals/hli_v1/ports/base_port.py +1 -1
  26. xoa_driver/internals/hli_v1/ports/port_l23/bases/port_l23.py +7 -0
  27. xoa_driver/internals/hli_v1/ports/port_l23/family_g.py +1 -1
  28. xoa_driver/internals/hli_v1/ports/port_l23/family_h.py +1 -1
  29. xoa_driver/internals/hli_v1/ports/port_l23/family_i.py +1 -1
  30. xoa_driver/internals/hli_v1/ports/port_l23/family_j.py +1 -1
  31. xoa_driver/internals/hli_v1/ports/port_l23/family_k.py +1 -1
  32. xoa_driver/internals/hli_v1/ports/port_l23/family_l.py +1 -1
  33. xoa_driver/internals/hli_v1/ports/port_l23/family_l1.py +1 -1
  34. xoa_driver/internals/hli_v1/ports/port_l23/freya_l1.py +14 -0
  35. xoa_driver/internals/hli_v1/ports/port_l23/pcs_pma_ghijkl.py +1 -1
  36. xoa_driver/internals/hli_v1/ports/port_l47/main.py +1 -1
  37. xoa_driver/internals/hli_v1/testers/_base_tester.py +7 -0
  38. xoa_driver/internals/hli_v1/testers/l47_tester.py +1 -1
  39. xoa_driver/internals/hli_v2/modules/base_module.py +1 -1
  40. xoa_driver/internals/hli_v2/modules/module_chimera.py +1 -1
  41. xoa_driver/internals/hli_v2/modules/module_l23ve.py +1 -1
  42. xoa_driver/internals/hli_v2/modules/module_l47.py +1 -1
  43. xoa_driver/internals/hli_v2/modules/modules_l23/module_l23_base.py +1 -1
  44. xoa_driver/internals/hli_v2/ports/base_port.py +1 -1
  45. xoa_driver/internals/hli_v2/ports/port_l23/family_g.py +1 -1
  46. xoa_driver/internals/hli_v2/ports/port_l23/family_h.py +1 -1
  47. xoa_driver/internals/hli_v2/ports/port_l23/family_i.py +1 -1
  48. xoa_driver/internals/hli_v2/ports/port_l23/family_j.py +1 -1
  49. xoa_driver/internals/hli_v2/ports/port_l23/family_k.py +1 -1
  50. xoa_driver/internals/hli_v2/ports/port_l23/family_l.py +1 -1
  51. xoa_driver/internals/hli_v2/ports/port_l23/family_l1.py +1 -1
  52. xoa_driver/internals/hli_v2/ports/port_l23/pcs_pma_ghijkl.py +1 -1
  53. xoa_driver/internals/hli_v2/ports/port_l47/main.py +1 -1
  54. xoa_driver/internals/hli_v2/testers/l47_tester.py +1 -1
  55. {tdl_xoa_driver-1.0.0b1.dist-info → tdl_xoa_driver-1.2.0.dist-info/licenses}/LICENSE +0 -0
  56. {tdl_xoa_driver-1.0.0b1.dist-info → tdl_xoa_driver-1.2.0.dist-info}/top_level.txt +0 -0
@@ -9,7 +9,7 @@ from abc import (
9
9
  ABC,
10
10
  abstractmethod,
11
11
  )
12
- from typing_extensions import Self
12
+ from typing import Self
13
13
  from xoa_driver.internals.commands import enums
14
14
  from xoa_driver.internals.commands import (
15
15
  M_MODEL,
@@ -1,7 +1,7 @@
1
1
  import typing
2
2
  import asyncio
3
3
  import functools
4
- from typing_extensions import Self
4
+ from typing import Self
5
5
  from xoa_driver.internals.commands import (
6
6
  M_STATUS,
7
7
  M_UPGRADE,
@@ -1,6 +1,6 @@
1
1
  import asyncio
2
2
  import typing
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  M_COMMENT,
6
6
  M_CAPABILITIES,
@@ -1,7 +1,7 @@
1
1
  import asyncio
2
2
  import functools
3
3
  import typing
4
- from typing_extensions import Self
4
+ from typing import Self
5
5
  from xoa_driver.internals.commands import (
6
6
  M_LICENSE_DEMO_INFO,
7
7
  M_LICENSE_MAINTENANCE_INFO,
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
  import asyncio
3
3
  import functools
4
4
  import typing
5
- from typing_extensions import Self
5
+ from typing import Self
6
6
  from xoa_driver.internals.commands import (
7
7
  M_MEDIA,
8
8
  M_STATUS,
@@ -1,5 +1,5 @@
1
1
  import functools
2
- from typing_extensions import Self
2
+ from typing import Self
3
3
  from abc import (
4
4
  ABC,
5
5
  abstractmethod,
@@ -51,6 +51,7 @@ from xoa_driver.internals.commands import (
51
51
  P_TXBURSTPERIOD,
52
52
  P_CAPABILITIES_EXT,
53
53
  P_IGMPV3_GROUP_RECORD_BUNDLE,
54
+ P_USED_TPLDID,
54
55
  )
55
56
  if typing.TYPE_CHECKING:
56
57
  from xoa_driver.internals.core import interfaces as itf
@@ -520,6 +521,12 @@ class BasePortL23(base_port.BasePort[ports_state.PortL23LocalState]):
520
521
  :type: MatchTermIndices
521
522
  """
522
523
 
524
+ self.used_tpld_ids = P_USED_TPLDID(conn, module_id, port_id)
525
+ """TG port's used TPLD IDs.
526
+
527
+ :type: P_USED_TPLDID
528
+ """
529
+
523
530
  on_speed_change = functools.partialmethod(utils.on_event, P_SPEED)
524
531
  """Register a callback to the event that the port's speed changes."""
525
532
 
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING, Tuple
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  P_DYNAMIC,
6
6
  )
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING, Tuple
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  P_DYNAMIC,
6
6
  )
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING, Tuple
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  P_FAULTSIGNALING,
6
6
  P_FAULTSTATUS,
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING, Tuple
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  # P_FAULTSIGNALING,
6
6
  P_DYNAMIC,
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING, Tuple
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  # P_FAULTSIGNALING,
6
6
  P_DYNAMIC,
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING, Tuple
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  # P_FAULTSIGNALING,
6
6
  P_DYNAMIC,
@@ -1,7 +1,7 @@
1
1
 
2
2
  import functools
3
3
  from typing import TYPE_CHECKING, Tuple
4
- from typing_extensions import Self
4
+ from typing import Self
5
5
  from xoa_driver.internals.commands import (
6
6
  P_DYNAMIC,
7
7
  )
@@ -41,6 +41,8 @@ from xoa_driver.internals.commands import (
41
41
  PL1_PRESET_CONFIG_LEVEL,
42
42
  PL1_PRESET_RESET,
43
43
  PP_PRBSTYPE,
44
+ PL1_PNSWAP_RX,
45
+ PL1_PNSWAP_TX,
44
46
  )
45
47
  from .pcs_pma_ghijkl import (
46
48
  Prbs,
@@ -63,6 +65,18 @@ class FreyaPMA:
63
65
  :type: PP_GRAYCODING
64
66
  """
65
67
 
68
+ self.pn_swap_rx = PL1_PNSWAP_RX(conn, module_id, port_id, serdes_xindex)
69
+ """GET/SET PN-Swap RX Configurations. (only for Freya)
70
+
71
+ :type: PL1_PNSWAP_RX
72
+ """
73
+
74
+ self.pn_swap_tx = PL1_PNSWAP_TX(conn, module_id, port_id, serdes_xindex)
75
+ """GET/SET PN-Swap TX Configurations. (only for Freya)
76
+
77
+ :type: PL1_PNSWAP_TX
78
+ """
79
+
66
80
  class FreyaSIV:
67
81
  """Freya Signal Integrity View"""
68
82
 
@@ -2,7 +2,7 @@ from typing import (
2
2
  TYPE_CHECKING,
3
3
  Tuple,
4
4
  )
5
- from typing_extensions import Self
5
+ from typing import Self
6
6
  if TYPE_CHECKING:
7
7
  from xoa_driver.internals.core import interfaces as itf
8
8
  from xoa_driver.internals.commands import (
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
 
5
5
  from xoa_driver.internals.commands import (
6
6
  P4_TRAFFIC,
@@ -29,6 +29,7 @@ from xoa_driver.internals.commands import (
29
29
  C_FLASH,
30
30
  C_MODEL_NAME,
31
31
  C_MODEL_NUMBER,
32
+ C_USED_TPLDID,
32
33
  )
33
34
  from xoa_driver.internals.core.funcs import establish_connection
34
35
  from xoa_driver.internals.core.transporter.handler import TransportationHandler
@@ -173,6 +174,12 @@ class BaseTester(ABC, Generic[TesterStateStorage]):
173
174
  :type: C_FLASH
174
175
  """
175
176
 
177
+ self.used_tpld_ids = C_USED_TPLDID(self._conn)
178
+ """Tester's used TPLD IDs.
179
+
180
+ :type: C_USED_TPLDID
181
+ """
182
+
176
183
  async def __aenter__(self: Awaitable[T]) -> T:
177
184
  return await self
178
185
 
@@ -3,7 +3,7 @@ from typing import (
3
3
  TYPE_CHECKING,
4
4
  Type
5
5
  )
6
- from typing_extensions import Self
6
+ from typing import Self
7
7
  from xoa_driver.internals.commands import (
8
8
  C_REMOTEPORTCOUNTS,
9
9
  C_BUILDSTRING,
@@ -9,7 +9,7 @@ from abc import (
9
9
  ABC,
10
10
  abstractmethod,
11
11
  )
12
- from typing_extensions import Self
12
+ from typing import Self
13
13
  from xoa_driver.internals.commands import enums
14
14
  from xoa_driver.internals.commands import (
15
15
  M_MODEL,
@@ -1,7 +1,7 @@
1
1
  import asyncio
2
2
  import functools
3
3
  import typing
4
- from typing_extensions import Self
4
+ from typing import Self
5
5
  from xoa_driver.internals.commands import (
6
6
  M_STATUS,
7
7
  M_UPGRADE,
@@ -1,6 +1,6 @@
1
1
  import asyncio
2
2
  import typing
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  M_COMMENT,
6
6
  M_CAPABILITIES,
@@ -1,7 +1,7 @@
1
1
  import asyncio
2
2
  import functools
3
3
  import typing
4
- from typing_extensions import Self
4
+ from typing import Self
5
5
  from xoa_driver.internals.commands import (
6
6
  M_LICENSE_DEMO_INFO,
7
7
  M_LICENSE_MAINTENANCE_INFO,
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
  import asyncio
3
3
  import functools
4
4
  import typing
5
- from typing_extensions import Self
5
+ from typing import Self
6
6
  from xoa_driver.internals.commands import (
7
7
  M_MEDIA,
8
8
  M_STATUS,
@@ -1,5 +1,5 @@
1
1
  import functools
2
- from typing_extensions import Self
2
+ from typing import Self
3
3
  from abc import (
4
4
  ABC,
5
5
  abstractmethod,
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING, Tuple
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  P_DYNAMIC,
6
6
  )
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  P_DYNAMIC,
6
6
  )
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  P_FAULTSIGNALING,
6
6
  P_FAULTSTATUS,
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  # P_FAULTSIGNALING,
6
6
  P_DYNAMIC,
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  # P_FAULTSIGNALING,
6
6
  P_DYNAMIC,
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
  from xoa_driver.internals.commands import (
5
5
  # P_FAULTSIGNALING,
6
6
  P_DYNAMIC,
@@ -1,7 +1,7 @@
1
1
 
2
2
  import functools
3
3
  from typing import TYPE_CHECKING, Tuple
4
- from typing_extensions import Self
4
+ from typing import Self
5
5
  from xoa_driver.internals.commands import (
6
6
  P_DYNAMIC,
7
7
  # PL1_AUTONEGINFO,
@@ -2,7 +2,7 @@ from typing import (
2
2
  TYPE_CHECKING,
3
3
  Tuple,
4
4
  )
5
- from typing_extensions import Self
5
+ from typing import Self
6
6
  if TYPE_CHECKING:
7
7
  from xoa_driver.internals.core import interfaces as itf
8
8
  from xoa_driver.internals.commands import (
@@ -1,6 +1,6 @@
1
1
  import functools
2
2
  from typing import TYPE_CHECKING
3
- from typing_extensions import Self
3
+ from typing import Self
4
4
 
5
5
  from xoa_driver.internals.commands import (
6
6
  P4_TRAFFIC,
@@ -3,7 +3,7 @@ from typing import (
3
3
  TYPE_CHECKING,
4
4
  Type
5
5
  )
6
- from typing_extensions import Self
6
+ from typing import Self
7
7
  from xoa_driver.internals.commands import (
8
8
  C_REMOTEPORTCOUNTS,
9
9
  C_BUILDSTRING,