Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vppinfra: AVX-512 transpose (u32x16 and u64x8)
[vpp.git]
/
test
/
test_lb.py
diff --git
a/test/test_lb.py
b/test/test_lb.py
index
1652cc5
..
93b389a
100644
(file)
--- a/
test/test_lb.py
+++ b/
test/test_lb.py
@@
-57,16
+57,21
@@
class TestLB(VppTestCase):
cls.vapi.ip_add_del_route(dst_address=dst6, dst_address_length=16,
next_hop_address=cls.pg1.remote_ip6n,
is_ipv6=1)
cls.vapi.ip_add_del_route(dst_address=dst6, dst_address_length=16,
next_hop_address=cls.pg1.remote_ip6n,
is_ipv6=1)
- cls.vapi.
cli("lb conf ip4-src-address 39.40.41.42")
-
cls.vapi.cli("lb conf ip6-src-address
2004::1")
+ cls.vapi.
lb_conf(ip4_src_address="39.40.41.42",
+
ip6_src_address="
2004::1")
except Exception:
super(TestLB, cls).tearDownClass()
raise
except Exception:
super(TestLB, cls).tearDownClass()
raise
+ @classmethod
+ def tearDownClass(cls):
+ super(TestLB, cls).tearDownClass()
+
def tearDown(self):
super(TestLB, self).tearDown()
def tearDown(self):
super(TestLB, self).tearDown()
- if not self.vpp_dead:
- self.logger.info(self.vapi.cli("show lb vip verbose"))
+
+ def show_commands_at_teardown(self):
+ self.logger.info(self.vapi.cli("show lb vip verbose"))
def getIPv4Flow(self, id):
return (IP(dst="90.0.%u.%u" % (id / 255, id % 255),
def getIPv4Flow(self, id):
return (IP(dst="90.0.%u.%u" % (id / 255, id % 255),
@@
-186,8
+191,8
@@
class TestLB(VppTestCase):
self.logger.error(ppp("Unexpected or invalid packet:", p))
raise
self.logger.error(ppp("Unexpected or invalid packet:", p))
raise
- # This is just to
1
roughly check that the balancing algorithm
- # is not completly biased.
+ # This is just to roughly check that the balancing algorithm
+ # is not complet
e
ly biased.
for asid in self.ass:
if load[asid] < len(self.packets) / (len(self.ass) * 2):
self.logger.error(
for asid in self.ass:
if load[asid] < len(self.packets) / (len(self.ass) * 2):
self.logger.error(