followup code cleanup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 11 Jan 2020 15:15:02 +0000 (16:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 11 Jan 2020 15:15:02 +0000 (16:15 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/INotify.pm

index a0712f7..2aa7070 100644 (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;