# Contributed by: Byron Williams . "$SUBR_DIR/ip" : ${IFENSLAVE:=ifenslave} declare -ag BindsToInterfaces bond_up() { if is_interface "$Interface"; then report_error "Interface '$Interface' already exists" return 1 else interface_add bond "$Interface" fi bring_interface_up "$Interface" for slave in "${BindsToInterfaces[@]}"; do bring_interface_up "$slave" $IFENSLAVE "$Interface" "$slave" done ip_set } bond_down() { for slave in "${BindsToInterfaces[@]}"; do $IFENSLAVE "$Interface" -d "$slave" done ip_unset interface_delete "$Interface" } # vim: ft=sh ts=4 et sw=4: