diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2024-04-03 12:31:42 -0400 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2024-04-03 14:10:47 -0400 |
commit | 940a70fff474014b782e884882a85e290ff98494 (patch) | |
tree | b5c66442fcdd8f522aedff7c62ae712858dec176 /test/vm_vpp_interfaces.py | |
parent | b48325100babf57118f3996b5584594050e0cf13 (diff) |
tests: upgrade python packages
Type: test
Change-Id: I01500466f3d15c79e38028677ce7e5c75d427fdc
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'test/vm_vpp_interfaces.py')
-rw-r--r-- | test/vm_vpp_interfaces.py | 64 |
1 files changed, 40 insertions, 24 deletions
diff --git a/test/vm_vpp_interfaces.py b/test/vm_vpp_interfaces.py index cb48fee6f6a..85417dcbca0 100644 --- a/test/vm_vpp_interfaces.py +++ b/test/vm_vpp_interfaces.py @@ -264,12 +264,16 @@ class TestVPPInterfacesQemu: self.iprf_client_host_interface_on_linux, self.iprf_client_host_interface_on_vpp, self.client_namespace, - layer2["client_ip4_prefix"] - if x_connect_mode == "L2" - else layer3["client_ip4_prefix"], - layer2["client_ip6_prefix"] - if x_connect_mode == "L2" - else layer3["client_ip6_prefix"], + ( + layer2["client_ip4_prefix"] + if x_connect_mode == "L2" + else layer3["client_ip4_prefix"] + ), + ( + layer2["client_ip6_prefix"] + if x_connect_mode == "L2" + else layer3["client_ip6_prefix"] + ), ) self.ingress_if_idx = self.create_af_packet( version=client_if_version, @@ -298,18 +302,26 @@ class TestVPPInterfacesQemu: id=101, host_namespace=self.client_namespace, ip_version=ip_version, - host_ip4_prefix=layer2["client_ip4_prefix"] - if x_connect_mode == "L2" - else layer3["client_ip4_prefix"], - host_ip6_prefix=layer2["client_ip6_prefix"] - if x_connect_mode == "L2" - else layer3["client_ip6_prefix"], - host_ip4_gw=vpp_client_nexthop - if x_connect_mode == "L3" and ip_version == 4 - else None, - host_ip6_gw=vpp_client_nexthop - if x_connect_mode == "L3" and ip_version == 6 - else None, + host_ip4_prefix=( + layer2["client_ip4_prefix"] + if x_connect_mode == "L2" + else layer3["client_ip4_prefix"] + ), + host_ip6_prefix=( + layer2["client_ip6_prefix"] + if x_connect_mode == "L2" + else layer3["client_ip6_prefix"] + ), + host_ip4_gw=( + vpp_client_nexthop + if x_connect_mode == "L3" and ip_version == 4 + else None + ), + host_ip6_gw=( + vpp_client_nexthop + if x_connect_mode == "L3" and ip_version == 6 + else None + ), int_type=client_if_type, host_if_name=f"{client_if_type}0", enable_gso=enable_client_if_gso, @@ -373,12 +385,16 @@ class TestVPPInterfacesQemu: id=102, host_namespace=self.server_namespace, ip_version=ip_version, - host_ip4_prefix=layer2["server_ip4_prefix"] - if x_connect_mode == "L2" - else layer3["server_ip4_prefix"], - host_ip6_prefix=layer2["server_ip6_prefix"] - if x_connect_mode == "L2" - else layer3["server_ip6_prefix"], + host_ip4_prefix=( + layer2["server_ip4_prefix"] + if x_connect_mode == "L2" + else layer3["server_ip4_prefix"] + ), + host_ip6_prefix=( + layer2["server_ip6_prefix"] + if x_connect_mode == "L2" + else layer3["server_ip6_prefix"] + ), int_type=server_if_type, host_if_name=f"{server_if_type}0", enable_gso=enable_server_if_gso, |