mirror of
https://github.com/espressif/openthread.git
synced 2026-07-29 15:17:47 +00:00
[test] verify ephemeral key settings and _meshcop-e (#10537)
This commit is contained in:
@@ -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+')
|
||||
|
||||
Reference in New Issue
Block a user