Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
session: fix mq ext config cleanup
[vpp.git]
/
test
/
test_udp.py
diff --git
a/test/test_udp.py
b/test/test_udp.py
index
b22ed44
..
03a0812
100644
(file)
--- a/
test/test_udp.py
+++ b/
test/test_udp.py
@@
-1,5
+1,6
@@
#!/usr/bin/env python3
import unittest
#!/usr/bin/env python3
import unittest
+from framework import tag_fixme_vpp_workers
from framework import VppTestCase, VppTestRunner
from vpp_udp_encap import find_udp_encap, VppUdpEncap
from framework import VppTestCase, VppTestRunner
from vpp_udp_encap import find_udp_encap, VppUdpEncap
@@
-15,6
+16,7
@@
from scapy.contrib.mpls import MPLS
NUM_PKTS = 67
NUM_PKTS = 67
+@tag_fixme_vpp_workers
class TestUdpEncap(VppTestCase):
""" UDP Encap Test Case """
class TestUdpEncap(VppTestCase):
""" UDP Encap Test Case """
@@
-60,7
+62,6
@@
class TestUdpEncap(VppTestCase):
for i in self.pg_interfaces:
i.unconfig_ip4()
i.unconfig_ip6()
for i in self.pg_interfaces:
i.unconfig_ip4()
i.unconfig_ip6()
- i.ip6_disable()
i.set_table_ip4(0)
i.set_table_ip6(0)
i.admin_down()
i.set_table_ip4(0)
i.set_table_ip6(0)
i.admin_down()
@@
-248,6
+249,7
@@
class TestUdpEncap(VppTestCase):
self.assertEqual(udp_encap_1.get_stats()['packets'], 2*NUM_PKTS)
self.assertEqual(udp_encap_1.get_stats()['packets'], 2*NUM_PKTS)
+@tag_fixme_vpp_workers
class TestUDP(VppTestCase):
""" UDP Test Case """
class TestUDP(VppTestCase):
""" UDP Test Case """
@@
-261,7
+263,7
@@
class TestUDP(VppTestCase):
def setUp(self):
super(TestUDP, self).setUp()
def setUp(self):
super(TestUDP, self).setUp()
- self.vapi.session_enable_disable(is_enable
d
=1)
+ self.vapi.session_enable_disable(is_enable=1)
self.create_loopback_interfaces(2)
table_id = 0
self.create_loopback_interfaces(2)
table_id = 0
@@
-278,9
+280,9
@@
class TestUDP(VppTestCase):
table_id += 1
# Configure namespaces
table_id += 1
# Configure namespaces
- self.vapi.app_namespace_add_del(namespace_id="0"
.encode('ascii')
,
+ self.vapi.app_namespace_add_del(namespace_id="0",
sw_if_index=self.loop0.sw_if_index)
sw_if_index=self.loop0.sw_if_index)
- self.vapi.app_namespace_add_del(namespace_id="1"
.encode('ascii')
,
+ self.vapi.app_namespace_add_del(namespace_id="1",
sw_if_index=self.loop1.sw_if_index)
def tearDown(self):
sw_if_index=self.loop1.sw_if_index)
def tearDown(self):
@@
-288,7
+290,7
@@
class TestUDP(VppTestCase):
i.unconfig_ip4()
i.set_table_ip4(0)
i.admin_down()
i.unconfig_ip4()
i.set_table_ip4(0)
i.admin_down()
- self.vapi.session_enable_disable(is_enable
d
=0)
+ self.vapi.session_enable_disable(is_enable=0)
super(TestUDP, self).tearDown()
def test_udp_transfer(self):
super(TestUDP, self).tearDown()
def test_udp_transfer(self):
@@
-321,6
+323,8
@@
class TestUDP(VppTestCase):
self.logger.critical(error)
self.assertNotIn("failed", error)
self.logger.critical(error)
self.assertNotIn("failed", error)
+ self.logger.debug(self.vapi.cli("show session verbose 2"))
+
# Delete inter-table routes
ip_t01.remove_vpp_config()
ip_t10.remove_vpp_config()
# Delete inter-table routes
ip_t01.remove_vpp_config()
ip_t10.remove_vpp_config()