https://bugzilla.novell.com/show_bug.cgi?id=306638 Summary: [PATCH] setting of arp_ip_target option for the bonding driver not possible Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: martin.koegler@brz.gv.at QAContact: qa@suse.de Found By: --- It is not possible to set the arp_ip_target option of the bonding driver via BONDING_MODULE_OPTS, as the sysfs interface requires, that individual IP addresses are added/removed via echo +/-<IP-Address> > /sys/class/net/$IF/bonding/arp_ip_target. The problematic function is load_bond in /etc/sysconfig/network/scripts/functions (package sysconfig). The sysconfig package in OpenSuSE 10.3 Betas (sysconfig-0.70*) seem to contain no fix for this. The following patch adds support for setting arp_ip_target (for sysconfig 0.60.4). The syntax is compatible with corresponding module parameter (IPs separated by a comma) and older SuSE versions: --- scripts/functions.old 2006-11-25 13:07:20.000000000 +0100 +++ scripts/functions 2007-08-29 22:58:05.344584010 +0200 @@ -209,6 +209,19 @@ # words. A string describing the mode and the corresponding number. We # have to compare both. read OLD_OPT_VALUE OLD_OPT_VALUE_2 < /sys/class/net/$IF/bonding/$OPT_NAME + if [ "$OPT_NAME" == arp_ip_target ]; then + for a in `cat /sys/class/net/$IF/bonding/$OPT_NAME`; do + if ! echo "-$a" > /sys/class/net/$IF/bonding/$OPT_NAME ; then + err_mesg "Option '$OPT_NAME': can't remove $a" + fi + done + for a in `echo "$OPT_VALUE" | tr ',' ' '` ; do + if ! echo "+$a" > /sys/class/net/$IF/bonding/$OPT_NAME ; then + err_mesg "Option '$OPT_NAME': can't add $a" + fi + done + continue + fi if [ "$OLD_OPT_VALUE" == "$OPT_VALUE" \ -o ( "$OPT_NAME" == mode -a "$OLD_OPT_VALUE_2" == "$OPT_VALUE" ) \ ] ; then -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.