Comment 69 for bug 482419

Revision history for this message
Deric Sullivan (deric-sullivan) wrote :

The patch for this bug breaks the use of bond_primary in /etc/network/interfaces. See Bug #823366.

The following piece of code from the "setup_master()" function in /etc/network/if-pre-up.d/ifenslave will only setup a primary if the primary is listed as a slave (which will not be the case with the patch that reorders the enslave_slaves and setup_master functions.

---------------------------------------
        # The first slave in bond-primary found in current slaves becomes the primary.
        # If no slave in bond-primary is found, then primary does not change.
        for slave in $IF_BOND_PRIMARY ; do
                if grep -sq "\\<$slave\\>" "/sys/class/net/$BOND_MASTER/bonding/slaves" ; then
                        sysfs "$slave" primary
                        break
                fi
        done
---------------------------------------

Thanks,
Deric