[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:
whd
2021-11-02 21:00:38 -07:00
committed by GitHub
parent 3dcf0ba544
commit 2117396a47
11 changed files with 152 additions and 2 deletions
+11
View File
@@ -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