From e2767c763ee478bfc9e222e8268e0b23a826ee52 Mon Sep 17 00:00:00 2001 From: Leonard Yu Date: Wed, 29 Nov 2023 22:12:11 +0100 Subject: [PATCH] Add P_CAPABILITIES_EXT to HLI and LLI --- .../internals/hli_v1/ports/port_l23/bases/port_l23.py | 7 +++++++ .../hli_v1/ports/port_l23/chimera/port_chimera.py | 7 +++++++ .../internals/hli_v2/ports/port_l23/bases/port_l23.py | 7 +++++++ .../hli_v2/ports/port_l23/chimera/port_chimera.py | 7 +++++++ 4 files changed, 28 insertions(+) diff --git a/xoa_driver/internals/hli_v1/ports/port_l23/bases/port_l23.py b/xoa_driver/internals/hli_v1/ports/port_l23/bases/port_l23.py index 8bc1fb71..bfd6f8cf 100644 --- a/xoa_driver/internals/hli_v1/ports/port_l23/bases/port_l23.py +++ b/xoa_driver/internals/hli_v1/ports/port_l23/bases/port_l23.py @@ -49,6 +49,7 @@ P_TXPACKETLIMIT, P_PFCENABLE, P_TXBURSTPERIOD, + P_CAPABILITIES_EXT, ) if typing.TYPE_CHECKING: from xoa_driver.internals.core import interfaces as itf @@ -334,6 +335,12 @@ def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int) -> Non :type: P_CAPABILITIES """ + self.capabilities_ext = P_CAPABILITIES_EXT(conn, module_id, port_id) + """L23 port capabilities ext. + + :type: P_CAPABILITIES_EXT + """ + self.pause = P_PAUSE(conn, module_id, port_id) """L23 port response to Ethernet PAUSE frames. diff --git a/xoa_driver/internals/hli_v1/ports/port_l23/chimera/port_chimera.py b/xoa_driver/internals/hli_v1/ports/port_l23/chimera/port_chimera.py index 7daa8d52..a3f63d29 100644 --- a/xoa_driver/internals/hli_v1/ports/port_l23/chimera/port_chimera.py +++ b/xoa_driver/internals/hli_v1/ports/port_l23/chimera/port_chimera.py @@ -9,6 +9,7 @@ P_TXENABLE, P_LOADMODE, P_EMULATE, + P_CAPABILITIES_EXT, ) if TYPE_CHECKING: from xoa_driver.internals.core import interfaces as itf @@ -32,6 +33,12 @@ def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int) -> Non :type: P_CAPABILITIES """ + self.capabilities_ext = P_CAPABILITIES_EXT(conn, module_id, port_id) + """Chimera port capabilities ext. + + :type: P_CAPABILITIES_EXT + """ + self.interface = P_INTERFACE(conn, module_id, port_id) """Physical interface type of the Chimera port. diff --git a/xoa_driver/internals/hli_v2/ports/port_l23/bases/port_l23.py b/xoa_driver/internals/hli_v2/ports/port_l23/bases/port_l23.py index 465c8bd1..3fc8b227 100644 --- a/xoa_driver/internals/hli_v2/ports/port_l23/bases/port_l23.py +++ b/xoa_driver/internals/hli_v2/ports/port_l23/bases/port_l23.py @@ -49,6 +49,7 @@ P_TXPACKETLIMIT, P_PFCENABLE, P_TXBURSTPERIOD, + P_CAPABILITIES_EXT, ) if typing.TYPE_CHECKING: from xoa_driver.internals.core import interfaces as itf @@ -300,6 +301,12 @@ def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int) -> Non """L23 port capabilities. Representation of P_CAPABILITIES """ + + self.capabilities_ext = P_CAPABILITIES_EXT(conn, module_id, port_id) + """L23 port capabilities ext. + + Representation of P_CAPABILITIES_EXT + """ self.pause = P_PAUSE(conn, module_id, port_id) """L23 port response to Ethernet PAUSE frames. diff --git a/xoa_driver/internals/hli_v2/ports/port_l23/chimera/port_chimera.py b/xoa_driver/internals/hli_v2/ports/port_l23/chimera/port_chimera.py index 3f4aa194..881212c8 100644 --- a/xoa_driver/internals/hli_v2/ports/port_l23/chimera/port_chimera.py +++ b/xoa_driver/internals/hli_v2/ports/port_l23/chimera/port_chimera.py @@ -9,6 +9,7 @@ P_TXENABLE, P_LOADMODE, P_EMULATE, + P_CAPABILITIES_EXT, ) if TYPE_CHECKING: from xoa_driver.internals.core import interfaces as itf @@ -31,6 +32,12 @@ def __init__(self, conn: "itf.IConnection", module_id: int, port_id: int) -> Non Representation of P_CAPABILITIES """ + self.capabilities_ext = P_CAPABILITIES_EXT(conn, module_id, port_id) + """Chimera port capabilities ext. + + Representation of P_CAPABILITIES_EXT + """ + self.interface = P_INTERFACE(conn, module_id, port_id) """Physical interface type of the Chimera port. Representation of P_INTERFACE