[pve-devel] [PATCH 2/6] vmconfig_hotplug_pending : add update_net

Dietmar Maurer dietmar at proxmox.com
Mon Nov 17 16:57:57 CET 2014


> diff --git a/pve-bridge b/pve-bridge
> index d6c5eb8..caee33b 100755
> --- a/pve-bridge
> +++ b/pve-bridge
> @@ -20,6 +20,10 @@ my $migratedfrom = $ENV{PVE_MIGRATED_FROM};
> 
>  my $conf = PVE::QemuServer::load_config($vmid, $migratedfrom);
> 
> +if ($conf->{pending}->{$netid}){
> +    $conf = $conf->{pending};
> +}
> +
>  die "unable to get network config '$netid'\n"
>      if !$conf->{$netid};
> 

THis looks also problematic. What if someone sets hotplug=0? This also use wrong values
if the VM is migrated?




More information about the pve-devel mailing list