From ac5703b96f655a74f3b74c53f2e90b35d9d29823 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 10 Jan 2008 19:30:55 +0000 Subject: Handle 'arp_ip_target' bonding option correctly (#288151, modified from ) --- sysconfig/network-scripts/ifup-eth | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sysconfig') diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index ffbd2e3b..774f320c 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -125,7 +125,16 @@ if [ "$ISALIAS" = no ] && is_bonding_device ${DEVICE} ; then for arg in $BONDING_OPTS ; do key=${arg%%=*}; value=${arg##*=}; - echo $value > /sys/class/net/${DEVICE}/bonding/$key + if [ "${key}" = "arp_ip_target" ]; then + OLDIFS=$IFS; + IFS=','; + for arp_ip in $value; do + echo +$arp_ip > /sys/class/net/${DEVICE}/bonding/$key + done + IFS=$OLDIFS; + else + echo $value > /sys/class/net/${DEVICE}/bonding/$key + fi done /sbin/ip link set dev ${DEVICE} up -- cgit v1.2.1