summaryrefslogtreecommitdiffstats
path: root/test/test_dvr.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2018-06-22 22:33:41 +0200
committerOle Troan <ot@cisco.com>2018-06-22 22:34:56 +0200
commitc8efa29b6f9a91381897b54f1147daf922ed7164 (patch)
tree405258dffbc11e9c29ca10fc8c734ec311a374b4 /test/test_dvr.py
parentd5c60b96a3fd93916fc4af5c8d6d25625c28242e (diff)
Revert "make test: fix broken interfaces"
This reverts commit d5c60b96a3fd93916fc4af5c8d6d25625c28242e. Change-Id: I3632b9c3f76c615aee897f28f76d094e7031e689 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/test_dvr.py')
-rw-r--r--test/test_dvr.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/test_dvr.py b/test/test_dvr.py
index 9d8675832ea..5bdc3b2312e 100644
--- a/test/test_dvr.py
+++ b/test/test_dvr.py
@@ -1,14 +1,18 @@
#!/usr/bin/env python
+import random
+import socket
import unittest
from framework import VppTestCase, VppTestRunner
-from vpp_sub_interface import VppDot1QSubint
-from vpp_ip_route import VppIpRoute, VppRoutePath
+from vpp_sub_interface import VppSubInterface, VppDot1QSubint
+from vpp_ip_route import VppIpRoute, VppRoutePath, DpoProto, VppIpMRoute, \
+ VppMRoutePath, MRouteEntryFlags, MRouteItfFlags
from vpp_papi_provider import L2_VTR_OP
from scapy.packet import Raw
-from scapy.layers.l2 import Ether, Dot1Q
+from scapy.layers.l2 import Ether, Dot1Q, ARP
from scapy.layers.inet import IP, UDP
+from util import ppp
from socket import AF_INET, inet_pton
@@ -19,7 +23,7 @@ class TestDVR(VppTestCase):
super(TestDVR, self).setUp()
self.create_pg_interfaces(range(4))
- self.create_loopback_interfaces(1)
+ self.create_loopback_interfaces(range(1))
for i in self.pg_interfaces:
i.admin_up()