X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_bond.py;h=60ee33c03565fae95276d96384aa90a7db210c4b;hb=053204ab039d34a990ff0e14c32ce3b294fcce0e;hp=03f0eea4c7e0d153de0dbd9a4ff2e63a0962096f;hpb=90cf21b5d8fd2d3e531e841dcd752311df5f8a50;p=vpp.git diff --git a/test/test_bond.py b/test/test_bond.py index 03f0eea4c7e..60ee33c0356 100644 --- a/test/test_bond.py +++ b/test/test_bond.py @@ -9,6 +9,7 @@ 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,14 +66,14 @@ class TestBondInterface(VppTestCase): bond0 = VppBondInterface(self, mode=3, lb=1, + numa_only=0, use_custom_mac=1, mac_address=mac) bond0.add_vpp_config() bond0.admin_up() - 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.vapi.sw_interface_add_del_address( + sw_if_index=bond0.sw_if_index, + prefix=VppIpPrefix("10.10.10.1", 24).encode()) self.pg2.config_ip4() self.pg2.resolve_arp()