]> git.proxmox.com Git - pve-container.git/blobdiff - src/PVE/LXC.pm
use PVE::Cluster::complete_next_vmid
[pve-container.git] / src / PVE / LXC.pm
index e2960471782e72bd4d76cdf013718cde84ff1502..cf45fff967dfca6d5eea93e8ab663af3ddc91de0 100644 (file)
@@ -2136,18 +2136,6 @@ sub complete_migration_target {
     return $res;
 }
 
-sub complete_next_vmid {
-
-    my $vmlist = PVE::Cluster::get_vmlist() || {};
-    my $idlist = $vmlist->{ids} || {};
-
-    for (my $i = 100; $i < 10000; $i++) {
-       return [$i] if !defined($idlist->{$i});
-    }
-
-    return [];
-}
-
 my $complete_ctid_full = sub {
     my ($running) = @_;