[thread-cert] refactor case 9.2.7 using pktverify (#5459)

This commit is contained in:
Jing Ma
2020-10-11 16:26:13 -07:00
committed by GitHub
parent d2d4df6260
commit f01f4d96a3
6 changed files with 137 additions and 27 deletions
+6 -1
View File
@@ -1392,7 +1392,7 @@ class NodeImpl:
self.send_command('dataset commit active')
self._expect('Done')
def set_pending_dataset(self, pendingtimestamp, activetimestamp, panid=None, channel=None):
def set_pending_dataset(self, pendingtimestamp, activetimestamp, panid=None, channel=None, delay=None):
self.send_command('dataset clear')
self._expect('Done')
@@ -1414,6 +1414,11 @@ class NodeImpl:
self.send_command(cmd)
self._expect('Done')
if delay is not None:
cmd = 'dataset delay %d' % delay
self.send_command(cmd)
self._expect('Done')
# Set the meshlocal prefix in config.py
self.send_command('dataset meshlocalprefix %s' % config.MESH_LOCAL_PREFIX.split('/')[0])
self._expect('Done')