From 9e0dd35c818d0db9204e3d61b180b1a967f56c1d Mon Sep 17 00:00:00 2001 From: Sebastian Holmin Date: Wed, 8 Jan 2025 14:07:59 +0100 Subject: [PATCH] fixup! Fix bridge ip logic --- test/test-manager/src/vm/network/macos.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test/test-manager/src/vm/network/macos.rs b/test/test-manager/src/vm/network/macos.rs index 80c890063ca0..030df59e87c7 100644 --- a/test/test-manager/src/vm/network/macos.rs +++ b/test/test-manager/src/vm/network/macos.rs @@ -72,13 +72,6 @@ pub(crate) fn find_vm_bridge(guest_ip: &Ipv4Addr) -> Result<(String, Ipv4Addr)> } }; }; - let netmask = SocketAddrV4::from(*netmask).ip(); - let Ok(ip_v4_network) = ipnetwork::Ipv4Network::with_netmask(address, netmask) else { - continue; - }; - if ip_v4_network.contains(guest_ip) { - return Ok((addr.interface_name.to_owned(), address)); - } } // This is probably either due to IP mismatch or Tart not running