5
0
mirror of git://git.proxmox.com/git/pve-common.git synced 2025-03-08 08:58:43 +03:00

followup code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-01-11 16:15:02 +01:00
parent 6f830d1d24
commit 055f076be5

View File

@ -1535,11 +1535,10 @@ sub __write_etc_network_interfaces {
foreach my $p (split (/\s+/, $d->{bridge_ports})) {
$p =~ s/\.\d+$//;
my $n = $ifaces->{$p};
die "bridge '$iface' - unable to find bridge port '$p'\n"
if !$n;
die "bridge '$iface' - unable to find bridge port '$p'\n" if !$n;
die "iface $p - ip address can't be set on interface if bridged in $iface\n"
if ($n->{method} eq 'static' && $n->{address} ne '0.0.0.0') ||
($n->{method6} eq 'static' && $n->{address} ne "\:\:");
($n->{method6} eq 'static' && $n->{address} ne '::');
&$check_mtu($ifaces, $iface, $p);
$bridgeports->{$p} = $iface;