summaryrefslogtreecommitdiffstats
path: root/test/util.py
diff options
context:
space:
mode:
authorJuraj Sloboda <jsloboda@cisco.com>2018-01-15 10:39:21 +0100
committerOle Trøan <otroan@employees.org>2018-03-16 10:37:18 +0000
commit4b9669dc116f6c9be5ef124e4aff7b201404b6ea (patch)
tree46c6cfe298640f36126693ab4196999adf959c32 /test/util.py
parente1b819efac7f8434f17d0482b631c2450e3dd5bb (diff)
IPv6 ND Router discovery data plane (VPP-1095)
Add API call to send Router Solicitation messages. Save info from incoming Router Advertisement messages and notify listeners. Change-Id: Ie518b5492231e03291bd4c4280be4727bfecab46 Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
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