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:
Xiao Ma
2016-08-29 09:32:15 -07:00
committed by Jonathan Hui
parent 027e009005
commit 8beb042328
+6 -1
View File
@@ -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