mirror of
https://github.com/espressif/openthread.git
synced 2026-08-17 07:59:51 +00:00
[mle] let the command partitionid return the current partition id (#5872)
If user doesn't set the Partition Id using the command 'leaderpartitionid xxx', the current cli command 'leaderpartitionid' always return 0. This commit renames the command 'leaderpartitionid' to partitionid and let the command partitionid returns the current leader Partition Id and add command partitionid preferred to set or get preferred Partition Id.
This commit is contained in:
@@ -161,7 +161,7 @@ class TestCase(NcpSupportMixin, unittest.TestCase):
|
||||
self.nodes[i].set_mode(params['mode'])
|
||||
|
||||
if 'partition_id' in params:
|
||||
self.nodes[i].set_partition_id(params['partition_id'])
|
||||
self.nodes[i].set_preferred_partition_id(params['partition_id'])
|
||||
if 'channel' in params:
|
||||
self.nodes[i].set_channel(params['channel'])
|
||||
if 'masterkey' in params:
|
||||
|
||||
Reference in New Issue
Block a user