[pve-devel] [PATCH] fix hotplug ip configuration

Dietmar Maurer dietmar at proxmox.com
Mon Jun 29 12:43:12 CEST 2015


> diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
> index 76c512d..2b7069b 100644
> --- a/src/PVE/LXC.pm
> +++ b/src/PVE/LXC.pm
> @@ -775,11 +775,9 @@ sub vmstatus {
>  sub print_lxc_network {
>      my $net = shift;
>  
> -    die "no network bridge defined\n" if !$net->{bridge};
> -
> -    my $res = "bridge=$net->{bridge}";
> +    my $res = {};

why?

>  
> -    foreach my $k (qw(hwaddr mtu name ip gw ip6 gw6 firewall tag)) {
> +    foreach my $k (qw(bridge hwaddr mtu name ip gw ip6 gw6 firewall tag)) {
>  	next if !defined($net->{$k});
>  	$res .= ",$k=$net->{$k}";
>      }
> @@ -852,6 +850,19 @@ sub find_lxc_console_pids {
>      return $res;
>  }
>  




More information about the pve-devel mailing list