Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion xoa_driver/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = "2.5.1"
__version__ = "2.5.3"
__short_version__ = "2.5"
35 changes: 35 additions & 0 deletions xoa_driver/internals/commands/m_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,41 @@ def set(self, comment: str) -> Token[None]:
return Token(self._connection, build_set_request(self, module=self._module, comment=comment))


@register_command
@dataclass
class M_UPGRADEPAR:
"""
Parallel module upgrade.

Transfers a hardware image file from the chassis to a module. This image will
take effect when the chassis is powered-on the next time. The transfer takes
approximately 3 minutes, but no further action is required by the client.
"""

code: typing.ClassVar[int] = 87
pushed: typing.ClassVar[bool] = False

_connection: 'interfaces.IConnection'
_module: int

class SetDataAttr(RequestBodyStruct):
magic: int = field(XmpInt())
"""integer, must be the special value -1480937026."""
image_name: str = field(XmpStr())
"""string, the fully qualified name of a file previously uploaded to the chassis."""

def set(self, image_name: str) -> Token[None]:
"""Transfers a hardware image file from the chassis to a module. This image will
take effect when the chassis is powered-on the next time. The transfer takes
approximately 3 minutes, but no further action is required by the client.

:param image_name: the fully qualified name of a file previously uploaded to the chassis
:type image_name: str
"""

return Token(self._connection, build_set_request(self, module=self._module, magic=-1480937026, image_name=image_name))


@register_command
@dataclass
class M_TIMEADJUSTMENT:
Expand Down
7 changes: 7 additions & 0 deletions xoa_driver/internals/hli_v1/modules/module_chimera.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
M_CLOCKSYNCSTATUS,
M_NAME,
M_CFPCONFIGEXT,
M_UPGRADEPAR,
)

from xoa_driver.internals.hli_v1 import revisions
Expand Down Expand Up @@ -95,6 +96,12 @@ def __init__(self, conn: "itf.IConnection", module_id: int) -> None:

:type: M_UPGRADEPROGRESS
"""
self.start_parallel = M_UPGRADEPAR(conn, module_id)
"""
Start the parallel upgrade progress of the test module.

:type: M_UPGRADEPAR
"""


class ChTiming:
Expand Down
Loading