Skip to content
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
1 change: 1 addition & 0 deletions app/schemas/test_environment_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class ThreadAutoConfig(BaseModel):
otbr_docker_image: Optional[str]
ba_host: Optional[str] = None
ba_port: Optional[int] = None
operational_dataset_hex: Optional[str] = None


class TestEnvironmentConfigError(Exception):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,18 @@ async def __thread_dataset_hex(
if isinstance(thread_config, ThreadExternalConfig):
hex_dataset = thread_config.operational_dataset_hex
elif isinstance(thread_config, ThreadAutoConfig):
border_router: ThreadBorderRouter = ThreadBorderRouter()
if thread_config.operational_dataset_hex:
hex_dataset = thread_config.operational_dataset_hex
else:
border_router: ThreadBorderRouter = ThreadBorderRouter()

# Expecting false as the OTBR is started in the suite's setup.
# Either way, if true, we try to start and configure the container in case
# there's no OTBR application running.
if await border_router.start_device(thread_config):
await border_router.form_thread_topology()
# Expecting false as the OTBR is started in the suite's setup.
# Either way, if true, we try to start and configure the container in case
# there's no OTBR application running.
if await border_router.start_device(thread_config):
await border_router.form_thread_topology()

hex_dataset = border_router.active_dataset
hex_dataset = border_router.active_dataset
Comment thread
rquidute marked this conversation as resolved.

return hex_dataset

Expand Down
Loading