summaryrefslogtreecommitdiffstats
path: root/test/test_ip6.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-02-28 15:34:00 -0800
committerNeale Ranns <nranns@cisco.com>2019-03-01 09:25:08 +0000
commite8fece85e2b6190a1ebdc05c10cd79e43f385918 (patch)
tree0f79255b4d45811521f295c7b47b1e75bbe2255d /test/test_ip6.py
parent9e52ef6024a5f130ed542810a8b0ddb2b5fb08b7 (diff)
Tests: Refactor duplicated code.
Naveen suggested earlier today that we should refactor duplicate code. This commit kicks off the effort. Change-Id: I855b0f40d41d1f3a2e673f3b254b76b596409656 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test/test_ip6.py')
-rw-r--r--test/test_ip6.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/test/test_ip6.py b/test/test_ip6.py
index 6832498dc26..5a5ba51f0ed 100644
--- a/test/test_ip6.py
+++ b/test/test_ip6.py
@@ -18,7 +18,7 @@ from scapy.utils6 import in6_getnsma, in6_getnsmac, in6_ptop, in6_islladdr, \
from six import moves
from framework import VppTestCase, VppTestRunner
-from util import ppp, ip6_normalize
+from util import ppp, ip6_normalize, mk_ll_addr
from vpp_ip import DpoProto
from vpp_ip_route import VppIpRoute, VppRoutePath, find_route, VppIpMRoute, \
VppMRoutePath, MRouteItfFlags, MRouteEntryFlags, VppMplsIpBind, \
@@ -36,12 +36,6 @@ except NameError:
text_type = str
-def mk_ll_addr(mac):
- euid = in6_mactoifaceid(mac)
- addr = "fe80::" + euid
- return addr
-
-
class TestIPv6ND(VppTestCase):
def validate_ra(self, intf, rx, dst_ip=None):
if not dst_ip: