From 1b200be5456532e0e9b0afb15caa3b5bdc734f78 Mon Sep 17 00:00:00 2001 From: Jonathan Hui Date: Tue, 2 Oct 2018 23:12:38 -0700 Subject: [PATCH] [thci] fix IPv6 prefix format (#3116) --- tools/harness-thci/OpenThread_WpanCtl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/harness-thci/OpenThread_WpanCtl.py b/tools/harness-thci/OpenThread_WpanCtl.py index f3545160f..b93907fd8 100644 --- a/tools/harness-thci/OpenThread_WpanCtl.py +++ b/tools/harness-thci/OpenThread_WpanCtl.py @@ -603,7 +603,7 @@ class OpenThread_WpanCtl(IThci): def __convertIp6PrefixStringToIp6Address(self, strIp6Prefix): """convert IPv6 prefix string to IPv6 dotted-quad format for example: - 2001000000000000 -> 2001:: + 2001000000000000 -> 2001:0000:0000:0000:: Args: strIp6Prefix: IPv6 address string @@ -618,7 +618,7 @@ class OpenThread_WpanCtl(IThci): finalMac = ':'.join(a + b + c + d for a, b, c, d in zip(hexIter, hexIter, hexIter, hexIter)) prefix = str(finalMac) strIp6Prefix = prefix[:20] - return strIp6Prefix + ':' + return strIp6Prefix + '::' def __convertLongToString(self, iValue): """convert a long hex integer to string