Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.
Merged
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: 2 additions & 0 deletions xoa_driver/functions/mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ async def set_module_port_config(
"""

# reserve the module first
await free_module(module, True)
await reserve_module(module, force)

# get the supported media by the module
Expand All @@ -255,6 +256,7 @@ async def set_module_port_config(
):
portspeed_list = [port_count] + port_count * [port_speed]
await module.cfp.config.set(portspeed_list=portspeed_list)
await free_module(module, False)
return None
raise NotSupportPortSpeed(module)

Expand Down