[tests] add traffic for Cert_5_3_06_RouterIdMask.py (#2295)

This commit is contained in:
hjian2017
2017-11-10 10:47:54 -06:00
committed by Jonathan Hui
parent f0d3512317
commit 4dc9f8edf0
5 changed files with 115 additions and 10 deletions
+4
View File
@@ -192,6 +192,10 @@ class otCli:
self.pexpect.expect('Done')
return addr16
def get_router_id(self):
rloc16 = self.get_addr16()
return (rloc16 >> 10)
def get_addr64(self):
self.send_command('extaddr')
i = self.pexpect.expect('([0-9a-fA-F]{16})')