mirror of
https://github.com/espressif/openthread.git
synced 2026-07-30 07:37:46 +00:00
[tests] add traffic analysis for Cert_5_2_05_AddressQuery.py (#2173)
Add a fuction in node.py node_cli.py to node's address. Add a module command to verify commands. Spinel-cli.py doesn't request address for dhcp prefix now, so put Cert_5_2_05_AddressQuery.py in XFAIL on ncp.
This commit is contained in:
@@ -35,6 +35,7 @@ if sys.platform != 'win32':
|
||||
else:
|
||||
import node_api
|
||||
import unittest
|
||||
import config
|
||||
|
||||
class Node:
|
||||
def __init__(self, nodeid, is_mtd=False):
|
||||
@@ -142,7 +143,7 @@ class Node:
|
||||
def get_panid(self):
|
||||
return self.interface.get_panid()
|
||||
|
||||
def set_panid(self, panid):
|
||||
def set_panid(self, panid = config.PANID):
|
||||
self.interface.set_panid(panid)
|
||||
|
||||
def get_partition_id(self):
|
||||
@@ -187,6 +188,9 @@ class Node:
|
||||
def get_addrs(self):
|
||||
return self.interface.get_addrs()
|
||||
|
||||
def get_ip6_address(self, address_type):
|
||||
return self.interface.get_ip6_address(address_type)
|
||||
|
||||
def get_context_reuse_delay(self):
|
||||
return self.interface.get_context_reuse_delay()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user