summaryrefslogtreecommitdiffstats
path: root/test/test_span.py
diff options
context:
space:
mode:
authorJakub Grajciar <jgrajcia@cisco.com>2020-03-02 13:55:31 +0100
committerJakub Grajciar <jgrajcia@cisco.com>2020-03-16 09:18:46 +0000
commit7c0eb56f40b3ccf8acd8f04e208aa50231aebeba (patch)
tree3df2939bf739d46eb6cb42767e5c402c3e0eac86 /test/test_span.py
parentcd5a4a035c0c7a7ca9f915bee83abde085c05ad7 (diff)
vxlan: vxlan/vxlan.api API cleanup
Use consistent API types. Type: fix Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com> Change-Id: I7f6f37ec6eed780322e2488d6eb0f5681945ba09 Signed-off-by: Jakub Grajciar <jgrajcia@cisco.com>
Diffstat (limited to 'test/test_span.py')
-rw-r--r--test/test_span.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_span.py b/test/test_span.py
index 7d58bdfebd2..ecefe153706 100644
--- a/test/test_span.py
+++ b/test/test_span.py
@@ -11,6 +11,7 @@ from framework import VppTestCase, VppTestRunner
from util import Host, ppp
from vpp_sub_interface import L2_VTR_OP, VppDot1QSubint, VppDot1ADSubint
from vpp_gre_interface import VppGreInterface
+from vpp_vxlan_tunnel import VppVxlanTunnel
from collections import namedtuple
from vpp_papi import VppEnum
@@ -53,12 +54,11 @@ class TestSpan(VppTestCase):
i.config_ip4()
i.resolve_arp()
- cls.vxlan = cls.vapi.vxlan_add_del_tunnel(
- src_address=cls.pg2.local_ip4n, dst_address=cls.pg2.remote_ip4n,
- is_add=1, vni=1111)
-
def setUp(self):
super(TestSpan, self).setUp()
+ self.vxlan = VppVxlanTunnel(self, src=self.pg2.local_ip4,
+ dst=self.pg2.remote_ip4, vni=1111)
+ self.vxlan.add_vpp_config()
self.reset_packet_infos()
def tearDown(self):