aboutsummaryrefslogtreecommitdiffstats
path: root/test/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/util.py')
-rw-r--r--test/util.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/util.py b/test/util.py
index 512bf9e3b7e..1044aa83a89 100644
--- a/test/util.py
+++ b/test/util.py
@@ -65,6 +65,11 @@ def mk_ll_addr(mac):
return addr
+def ip6_normalize(ip6):
+ return socket.inet_ntop(socket.AF_INET6,
+ socket.inet_pton(socket.AF_INET6, ip6))
+
+
class NumericConstant(object):
__metaclass__ = ABCMeta