Skip to content

Commit

Permalink
[pylibs] CCM tests fixed; single Registrar start event per test-suite…
Browse files Browse the repository at this point in the history
… for CCM; enabled local MASA used by Registrar.
  • Loading branch information
EskoDijk committed Oct 7, 2024
1 parent 7ba5aa1 commit 947a006
Show file tree
Hide file tree
Showing 4 changed files with 176 additions and 158 deletions.
Binary file added etc/ot-registrar/credentials_masa.p12
Binary file not shown.
21 changes: 20 additions & 1 deletion pylibs/otns/cli/OTNS.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,10 +894,29 @@ def get_network_name(self, nodeid: int) -> str:
Get network name.
:param nodeid: node ID
:return: network name
:return: network name of node
"""
return self._expect_str(self.node_cmd(nodeid, 'networkname'))

def set_domain_name(self, nodeid: int, name: str = None) -> None:
"""
Set Thread Domain name.
:param nodeid: node ID
:param name: Thread Domain name to set
"""
name = self._escape_whitespace(name)
self.node_cmd(nodeid, f'domainname {name}')

def get_domain_name(self, nodeid: int) -> str:
"""
Get Thread Domain name.
:param nodeid: node ID
:return: Thread Domain name of node
"""
return self._expect_str(self.node_cmd(nodeid, 'domainname'))

def set_panid(self, nodeid: int, panid: int) -> None:
"""
Set node pan ID.
Expand Down
Loading

0 comments on commit 947a006

Please sign in to comment.