aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2019-03-19 11:54:39 -0700
committerOle Trøan <otroan@employees.org>2019-03-22 08:30:11 +0000
commitf7f13347bc8bc941a2d9aa847ddd88a758d65f71 (patch)
tree4dae0b0ad0c9216eb5de75384f7fb0348b7d9dc1 /test
parentbdd6e6ac4ebde344adeb3f7c78c4b2031a0eb52a (diff)
tests: update test_lb.py to use api call lb_conf.
Change-Id: I96a1d4b2b3ae22cf164c0acd6db9b323cd70f51a Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'test')
-rw-r--r--test/test_lb.py8
-rw-r--r--test/vpp_papi_provider.py2
2 files changed, 6 insertions, 4 deletions
diff --git a/test/test_lb.py b/test/test_lb.py
index 1652cc5d4d4..01af0e56b5b 100644
--- a/test/test_lb.py
+++ b/test/test_lb.py
@@ -57,8 +57,8 @@ 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.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
@@ -186,8 +186,8 @@ class TestLB(VppTestCase):
self.logger.error(ppp("Unexpected or invalid packet:", p))
raise
- # This is just to 1roughly check that the balancing algorithm
- # is not completly biased.
+ # This is just to roughly check that the balancing algorithm
+ # is not completely biased.
for asid in self.ass:
if load[asid] < len(self.packets) / (len(self.ass) * 2):
self.logger.error(
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index d393ce14c25..5e7d6df42b7 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -111,6 +111,8 @@ defaultmapping = {
'ipsec_tunnel_if_add_del': {'is_add': 1, 'anti_replay': 1, },
'l2_emulation': {'enable': 1, },
'l2fib_add_del': {'is_add': 1, },
+ 'lb_conf': {'sticky_buckets_per_core': 4294967295,
+ 'flow_timeout': 4294967295},
'lisp_add_del_adjacency': {'is_add': 1, },
'lisp_add_del_local_eid': {'is_add': 1, },
'lisp_add_del_locator': {'priority': 1, 'weight': 1, 'is_add': 1, },