mirror of
https://github.com/espressif/openthread.git
synced 2026-08-19 17:09:51 +00:00
[continuous-integration] fix test_dua_routing.py (#7117)
Added new API/CLI for reference devices to set allowed ranges of router IDs. When the allowed ID range is set, the leader will only assign router IDs in the range. In this way, we can assign non-overlapping router ID ranges to different thread networks so that no RLOC16s will collide across multiple thread networks.
This commit is contained in:
@@ -2954,6 +2954,17 @@ class NodeImpl:
|
||||
|
||||
return rxtx_list
|
||||
|
||||
def set_router_id_range(self, min_router_id: int, max_router_id: int):
|
||||
cmd = f'routeridrange {min_router_id} {max_router_id}'
|
||||
self.send_command(cmd)
|
||||
self._expect_command_output()
|
||||
|
||||
def get_router_id_range(self):
|
||||
cmd = 'routeridrange'
|
||||
self.send_command(cmd)
|
||||
line = self._expect_command_output()[0]
|
||||
return [int(item) for item in line.split()]
|
||||
|
||||
|
||||
class Node(NodeImpl, OtCli):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user