X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_bond.py;fp=test%2Ftest_bond.py;h=533038e658aa11897e342f9ff098b7a329618f5e;hb=3b0d7e42f65eaf8d84cfe26e2e9f5244c554b934;hp=eb43281719e2b5d6d84710cafa027bcb2e7591ae;hpb=3fef8f811a013d1392f702fda1347c5211471ed7;p=vpp.git diff --git a/test/test_bond.py b/test/test_bond.py index eb43281719e..533038e658a 100644 --- a/test/test_bond.py +++ b/test/test_bond.py @@ -9,7 +9,6 @@ from scapy.layers.l2 import Ether from scapy.layers.inet import IP, UDP from vpp_bond_interface import VppBondInterface from vpp_papi import MACAddress -from vpp_ip import VppIpPrefix class TestBondInterface(VppTestCase): @@ -65,9 +64,10 @@ class TestBondInterface(VppTestCase): mac_address=mac) bond0.add_vpp_config() bond0.admin_up() - self.vapi.sw_interface_add_del_address( - sw_if_index=bond0.sw_if_index, - prefix=VppIpPrefix("10.10.10.1", 24).encode()) + bond0_addr = socket.inet_pton(socket.AF_INET, "10.10.10.1") + self.vapi.sw_interface_add_del_address(sw_if_index=bond0.sw_if_index, + address=bond0_addr, + address_length=24) self.pg2.config_ip4() self.pg2.resolve_arp()