Currently, bond slaves are mostly working without autostart,
because bond slaves scripts from ifupdown1 && also ifupdown2
have some kind of hacks to start the slaves.
But if users want to do some tuning on the ifaces, they are not applied.
Also, with ifupdown2 + ovs, this kind of hack is not implemented (yet), so the
slaves of the bond are still down.
Debian/Ubuntu official docs always set "auto ethX" for bond slaves,
it's really more clean like this.
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
if ($d->{type} eq 'OVSBond' && $d->{ovs_bonds}) {
foreach my $p (split (/\s+/, $d->{ovs_bonds})) {
my $n = $ifaces->{$p};
if ($d->{type} eq 'OVSBond' && $d->{ovs_bonds}) {
foreach my $p (split (/\s+/, $d->{ovs_bonds})) {
my $n = $ifaces->{$p};
die "OVS bond '$iface' - unable to find slave '$p'\n"
if !$n;
die "OVS bond '$iface' - wrong interface type on slave '$p' " .
die "OVS bond '$iface' - unable to find slave '$p'\n"
if !$n;
die "OVS bond '$iface' - wrong interface type on slave '$p' " .
my $bond_primary_is_slave = undef;
foreach my $p (split (/\s+/, $d->{slaves})) {
my $n = $ifaces->{$p};
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' - unable to find slave '$p'\n"
if !$n;
iface eth3 inet manual
iface eth4 inet manual
iface eth3 inet manual
iface eth4 inet manual
iface eth3 inet manual
iface eth4 inet manual
iface eth3 inet manual
iface eth4 inet manual
iface eth3 inet manual
iface eth4 inet manual
iface eth3 inet manual
iface eth4 inet manual
iface eth5 inet manual
auto eth1.100
iface eth5 inet manual
auto eth1.100
sub wanted($) {
my ($ip) = @_;
return $base . <<"IFACES";
sub wanted($) {
my ($ip) = @_;
return $base . <<"IFACES";
iface eth5 inet manual
iface eth6 inet manual
iface eth5 inet manual
iface eth6 inet manual