mirror of
https://github.com/espressif/openthread.git
synced 2026-08-18 00:19:52 +00:00
THCI: Update thci to keep the consistency with Harness V1.1-R16 and bug fix. (#482)
* Add new commissionerUnregsiter() method to ensure compile pass temporarily. * Return None instead of first configured global IPv6 unicast address if parameter 'filterPrefix' does not match with any of GUAs on thread interface.
This commit is contained in:
@@ -1470,6 +1470,7 @@ class ARM(IThci):
|
||||
|
||||
Returns:
|
||||
a global IPv6 address that matches with filterByPrefix
|
||||
or None if no matched GUA
|
||||
"""
|
||||
print '%s call getGUA' % self.port
|
||||
print filterByPrefix
|
||||
@@ -1484,7 +1485,8 @@ class ARM(IThci):
|
||||
for line in globalAddrs:
|
||||
if line.startswith(filterByPrefix):
|
||||
return line
|
||||
return globalAddrs[0]
|
||||
print 'no global address matched'
|
||||
return None
|
||||
except Exception, e:
|
||||
ModuleHelper.WriteIntoDebugLogger("getGUA() Error: " + str(e))
|
||||
|
||||
@@ -1610,3 +1612,6 @@ class ARM(IThci):
|
||||
|
||||
def setUdpJoinerPort(self, portNumber):
|
||||
pass
|
||||
|
||||
def commissionerUnregister(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user