mirror of
https://github.com/espressif/openthread.git
synced 2026-08-17 16:09:51 +00:00
[dua] dua registration and re-registration (#5276)
- registration workflow framework - registration and reregistration - registration and reregistration on behalf of children - add pseudo response status for test/certification purpose - add unit test
This commit is contained in:
@@ -522,6 +522,13 @@ class Node:
|
||||
self.remove_prefix(prefix)
|
||||
self.register_netdata()
|
||||
|
||||
def set_next_dua_response(self, status, iid=None):
|
||||
cmd = 'bbr mgmt dua {}'.format(status)
|
||||
if iid is not None:
|
||||
cmd += ' ' + str(iid)
|
||||
self.send_command(cmd)
|
||||
self._expect('Done')
|
||||
|
||||
def set_dua_iid(self, iid):
|
||||
cmd = 'dua iid {}'.format(iid)
|
||||
self.send_command(cmd)
|
||||
@@ -1481,6 +1488,11 @@ class Node:
|
||||
def udp_check_rx(self, bytes_should_rx):
|
||||
self._expect('%d bytes' % bytes_should_rx)
|
||||
|
||||
def set_routereligible(self, enable: bool):
|
||||
cmd = f'routereligible {"enable" if enable else "disable"}'
|
||||
self.send_command(cmd)
|
||||
self._expect('Done')
|
||||
|
||||
def router_list(self):
|
||||
cmd = 'router list'
|
||||
self.send_command(cmd)
|
||||
|
||||
Reference in New Issue
Block a user