#!/bin/bash

pickup_defaults
init_netprofile
pickup_options

: ${HOST:?HOST must be set for $NAME}
: ${BONDOPTIONS:?BONDOPTIONS must be set for $NAME}

[ -x "${IFENSLAVE:=$DEFAULT_IFENSLAVE}" ] || {
	print_error "$IFENSLAVE does not exist or is not executable. Try installing iputils RPM."
	exit 1
}

for host in $HOST; do
	$IFENSLAVE $NAME $host > /dev/null
done
