aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_lb.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-03-11 19:23:25 +0100
committerPaul Vinciguerra <pvinci@vinciconsulting.com>2019-03-11 21:57:19 +0000
commita5b2eec0535f9025319a752891d77ff9948ae0df (patch)
tree08c801cb85ab9639e00e5f565e613b817b3924e4 /test/test_lb.py
parent2d9b427a5b20dcec3d2212a3a8a47c29b4acdd46 (diff)
vpp_papi_provider: Remove more wrapper functions.
Split this work up into pieces. Please don't add new wrappers to vpp_papi_provider.py. Change-Id: I0f8f2afc4cd2bba07ea70ddecea2d7319f7b2e10 Signed-off-by: Ole Troan <ot@cisco.com>
Diffstat (limited to 'test/test_lb.py')
-rw-r--r--test/test_lb.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/test_lb.py b/test/test_lb.py
index fa179504855..1652cc5d4d4 100644
--- a/test/test_lb.py
+++ b/test/test_lb.py
@@ -52,8 +52,11 @@ class TestLB(VppTestCase):
i.resolve_ndp()
dst4 = socket.inet_pton(socket.AF_INET, "10.0.0.0")
dst6 = socket.inet_pton(socket.AF_INET6, "2002::")
- cls.vapi.ip_add_del_route(dst4, 24, cls.pg1.remote_ip4n)
- cls.vapi.ip_add_del_route(dst6, 16, cls.pg1.remote_ip6n, is_ipv6=1)
+ cls.vapi.ip_add_del_route(dst_address=dst4, dst_address_length=24,
+ next_hop_address=cls.pg1.remote_ip4n)
+ 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")
except Exception: