[test] verify state bitmap when runtime enable/disable EphemeralKey mode (#10503)

Meshcop ePSKc mode supported bitmap check.
This commit is contained in:
Mia Yang
2024-08-06 14:54:02 +00:00
committed by GitHub
parent 1d35e30e0e
commit 634745dd72
2 changed files with 23 additions and 0 deletions
+10
View File
@@ -491,6 +491,16 @@ class OtbrDocker:
raise ValueError("dns_upstream_query_state must be a bool")
return self.set_dbus_property('DnsUpstreamQueryState', value)
@property
def ephemeral_key_enabled(self):
return bool(self.get_dbus_property('EphemeralKeyEnabled'))
@ephemeral_key_enabled.setter
def ephemeral_key_enabled(self, value):
if type(value) is not bool:
raise ValueError("ephemeral_key_enabled must be a bool")
return self.set_dbus_property('EphemeralKeyEnabled', value)
def read_border_routing_counters_delta(self):
old_counters = self._border_routing_counters
new_counters = self.get_border_routing_counters()