diff --git a/app/Jobs/VirtualMachine/Provision/AssignIpToGuestJob.php b/app/Jobs/VirtualMachine/Provision/AssignIpToGuestJob.php index 51387aa..ca9bb50 100644 --- a/app/Jobs/VirtualMachine/Provision/AssignIpToGuestJob.php +++ b/app/Jobs/VirtualMachine/Provision/AssignIpToGuestJob.php @@ -304,9 +304,7 @@ class AssignIpToGuestJob implements ShouldQueue ->toArray(); $ipPool = IpPool::where('module_network_id', $networkId) - ->where('status', 'free') - ->whereNotNull('gateway') - ->where('gateway', '!=', '') + ->whereIn('status', ['free', 'reserved']) ->whereNotIn('ip_address', $usedIps) ->lockForUpdate() ->inRandomOrder()