[pve-devel] Request for improvement of Network handling regarding LXC

Michael Rasmussen mir at datanom.net
Thu Jul 20 13:31:56 CEST 2017


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. 

-- 
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
/usr/games/fortune -es says:
Cats, no less liquid than their shadows, offer no angles to the wind.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20170720/90f74fd5/attachment.sig>


More information about the pve-devel mailing list