[pve-devel] Request for improvement of Network handling regarding LXC
Tom Weber
pve at junkyard.4t2.com
Thu Jul 20 13:41:02 CEST 2017
Am Donnerstag, den 20.07.2017, 13:31 +0200 schrieb Michael Rasmussen:
> On Thu, 20 Jul 2017 13:22:58 +0200
> Tom Weber <pve at junkyard.4t2.com> wrote:
>
> >
> > + if (defined($d->{ip}) and ($d->{ip} ne "dhcp")) {
> > + $raw .= "lxc.network.ipv4 = $d->{ip}\n";
> > + $raw .= "lxc.network.ipv4.gateway = $d->{gw}\n" if
> > defined($d->{gw});
> > + $raw .= "lxc.network.flags = up\n" if defined($d-
> > >{ip});
> The if defined($d->{ip}) in this line is not needed since this is
> already true when entering this condition.
Indeed.
restover from the first version which didn't have the bigger if block
with dhcp checking.
thanks,
Tom
More information about the pve-devel
mailing list