Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
make test: Add QUIC external echo transfer test
[vpp.git]
/
test
/
test_dvr.py
diff --git
a/test/test_dvr.py
b/test/test_dvr.py
index
07ea787
..
f6ce8e8
100644
(file)
--- a/
test/test_dvr.py
+++ b/
test/test_dvr.py
@@
-2,9
+2,9
@@
import unittest
from framework import VppTestCase, VppTestRunner
import unittest
from framework import VppTestCase, VppTestRunner
-from vpp_sub_interface import VppDot1QSubint
from vpp_ip_route import VppIpRoute, VppRoutePath
from vpp_ip_route import VppIpRoute, VppRoutePath
-from vpp_papi_provider import L2_VTR_OP, L2_PORT_TYPE
+from vpp_l2 import L2_PORT_TYPE
+from vpp_sub_interface import L2_VTR_OP, VppDot1QSubint
from scapy.packet import Raw
from scapy.layers.l2 import Ether, Dot1Q
from scapy.packet import Raw
from scapy.layers.l2 import Ether, Dot1Q
@@
-15,6
+15,14
@@
from socket import AF_INET, inet_pton
class TestDVR(VppTestCase):
""" Distributed Virtual Router """
class TestDVR(VppTestCase):
""" Distributed Virtual Router """
+ @classmethod
+ def setUpClass(cls):
+ super(TestDVR, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(TestDVR, cls).tearDownClass()
+
def setUp(self):
super(TestDVR, self).setUp()
def setUp(self):
super(TestDVR, self).setUp()
@@
-308,7
+316,7
@@
class TestDVR(VppTestCase):
push_dot1q=93)
#
push_dot1q=93)
#
- # Disable UU flooding, learning and ARP termina
a
tion. makes this test
+ # Disable UU flooding, learning and ARP termination. makes this test
# easier as unicast packets are dropped if not extracted.
#
self.vapi.bridge_flags(bd_id=1, is_set=0,
# easier as unicast packets are dropped if not extracted.
#
self.vapi.bridge_flags(bd_id=1, is_set=0,