[test] verify ephemeral key settings and _meshcop-e (#10537)

This commit is contained in:
Mia Yang
2024-08-13 21:40:40 -07:00
committed by GitHub
parent 3bcea2467b
commit fa26102fe5
2 changed files with 43 additions and 3 deletions
+12
View File
@@ -422,6 +422,12 @@ class OtbrDocker:
def nat64_set_enabled(self, enable):
return self.call_dbus_method('io.openthread.BorderRouter', 'SetNat64Enabled', enable)
def activate_ephemeral_key_mode(self, lifetime):
return self.call_dbus_method('io.openthread.BorderRouter', 'ActivateEphemeralKeyMode', lifetime)
def deactivate_ephemeral_key_mode(self):
return self.call_dbus_method('io.openthread.BorderRouter', 'DeactivateEphemeralKeyMode')
@property
def nat64_cidr(self):
self.send_command('nat64 cidr')
@@ -1896,6 +1902,12 @@ class NodeImpl:
self.send_command(cmd)
self._expect_done()
def get_ephemeral_key_state(self):
cmd = 'ba ephemeralkey'
states = [r'inactive', r'active']
self.send_command(cmd)
return self._expect_result(states)
def get_timeout(self):
self.send_command('childtimeout')
return self._expect_result(r'\d+')