X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_lb.py;h=1652cc5d4d488e1cd89e6e79d394eb2c48a1d453;hb=a5b2eec0535f9025319a752891d77ff9948ae0df;hp=fa179504855bd50a968654a58663d226c4e43c31;hpb=2d9b427a5b20dcec3d2212a3a8a47c29b4acdd46;p=vpp.git 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: