my $bond_primary_is_slave = undef;
foreach my $p (split (/\s+/, $d->{slaves})) {
my $n = $ifaces->{$p};
-
+
die "bond '$iface' - unable to find slave '$p'\n"
if !$n;
die "bond '$iface' - wrong interface type on slave '$p' " .
my $n = $ifaces->{$p};
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') ||
+ 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 "\:\:");
&$check_mtu($ifaces, $iface, $p);