From: Alexandre Derumier Date: Fri, 3 May 2019 09:00:16 +0000 (+0200) Subject: vnet: rename read_local_vm_config to read_cluster_vm_config X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=b1791012ced91b34b23ca278e2f63c4db15ca643;p=mirror%2Fpve-network.git vnet: rename read_local_vm_config to read_cluster_vm_config and remove "next if !$d->{node}" Signed-off-by: Alexandre Derumier --- diff --git a/PVE/Network/Network/VnetPlugin.pm b/PVE/Network/Network/VnetPlugin.pm index a6515af..b2080e1 100644 --- a/PVE/Network/Network/VnetPlugin.pm +++ b/PVE/Network/Network/VnetPlugin.pm @@ -84,7 +84,7 @@ sub on_delete_hook { my ($class, $networkid, $scfg) = @_; # verify than no vm or ct have interfaces in this bridge - my $vmdata = read_local_vm_config(); + my $vmdata = read_cluster_vm_config(); foreach my $vmid (sort keys %{$vmdata->{qemu}}) { my $conf = $vmdata->{qemu}->{$vmid}; @@ -113,7 +113,7 @@ sub on_update_hook { } -sub read_local_vm_config { +sub read_cluster_vm_config { my $qemu = {}; my $lxc = {}; @@ -127,7 +127,6 @@ sub read_local_vm_config { foreach my $vmid (keys %$ids) { next if !$vmid; my $d = $ids->{$vmid}; - next if !$d->{node}; next if !$d->{type}; if ($d->{type} eq 'qemu' && $have_qemu_server) { my $cfspath = PVE::QemuConfig->cfs_config_path($vmid);