[pve-devel] [PATCH pve-container] no need to expect an auto method for ipv4

Wolfgang Bumiller w.bumiller at proxmox.com
Thu Jul 30 13:06:36 CEST 2015


---
 src/PVE/LXCSetup/Debian.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/LXCSetup/Debian.pm b/src/PVE/LXCSetup/Debian.pm
index 4fa2be9..9d26c4b 100644
--- a/src/PVE/LXCSetup/Debian.pm
+++ b/src/PVE/LXCSetup/Debian.pm
@@ -113,7 +113,7 @@ sub setup_network {
 	if ($d->{name}) {
 	    my $net = {};
 	    if (defined($d->{ip})) {
-		if ($d->{ip} =~ /^(?:auto|dhcp|manual)$/) {
+		if ($d->{ip} =~ /^(?:dhcp|manual)$/) {
 		    $net->{address} = $d->{ip};
 		} else {
 		    my $ipinfo = PVE::LXC::parse_ipv4_cidr($d->{ip});
@@ -163,7 +163,7 @@ sub setup_network {
 
 	    $interfaces .= "auto $section->{ifname}\n" if $new;
 
-	    if ($net->{address} =~ /^(auto|dhcp|manual)$/) {
+	    if ($net->{address} =~ /^(dhcp|manual)$/) {
 		$interfaces .= "iface $section->{ifname} inet $1\n";
 	    } elsif ($net->{address}) {
 		$interfaces .= "iface $section->{ifname} inet static\n";
-- 
2.1.4





More information about the pve-devel mailing list