mirror of
https://github.com/espressif/openthread.git
synced 2026-09-11 11:40:06 +00:00
Add Thread Certification 9.2.11 to automated test. (#764)
This commit is contained in:
@@ -447,7 +447,7 @@ class Node:
|
||||
self.send_command(cmd)
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
def set_active_dataset(self, timestamp, panid=None, channel=None):
|
||||
def set_active_dataset(self, timestamp, panid=None, channel=None, master_key=None):
|
||||
self.send_command('dataset clear')
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
@@ -465,6 +465,11 @@ class Node:
|
||||
self.send_command(cmd)
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
if master_key != None:
|
||||
cmd = 'dataset masterkey ' + master_key
|
||||
self.send_command(cmd)
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
self.send_command('dataset commit active')
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
@@ -499,7 +504,7 @@ class Node:
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
def send_mgmt_pending_set(self, pending_timestamp=None, active_timestamp=None, delay_timer=None, channel=None,
|
||||
panid=None):
|
||||
panid=None, master_key=None):
|
||||
cmd = 'dataset mgmtsetcommand pending '
|
||||
|
||||
if pending_timestamp != None:
|
||||
@@ -517,6 +522,9 @@ class Node:
|
||||
if panid != None:
|
||||
cmd += 'panid %d ' % panid
|
||||
|
||||
if master_key != None:
|
||||
cmd += 'masterkey ' + master_key + ' '
|
||||
|
||||
self.send_command(cmd)
|
||||
self.pexpect.expect('Done')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user