[thread-cert] refactor case 5.6.6 and 5.6.9 using pktverify (#5371)

This commit is contained in:
Jing Ma
2020-09-11 08:49:48 -07:00
committed by GitHub
parent c9004a6f3f
commit 1e08cea585
9 changed files with 220 additions and 39 deletions
+5 -2
View File
@@ -1003,8 +1003,11 @@ class Node:
self.send_command(cmd)
self._expect('Done')
def add_route(self, prefix, prf='med'):
cmd = 'route add %s %s' % (prefix, prf)
def add_route(self, prefix, stable=False, prf='med'):
cmd = 'route add %s ' % prefix
if stable:
cmd += 's'
cmd += ' %s' % prf
self.send_command(cmd)
self._expect('Done')