diff options
author | Bill Nottingham <notting@redhat.com> | 2007-06-22 21:18:44 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2007-06-22 21:18:44 +0000 |
commit | 8f063811fd3e9feb74435f3f97e5ae7c4b5a6fa8 (patch) | |
tree | 10abe29eb221829c581d167b4034979a47ebbc4b | |
parent | 7125292b7d8f598f3fa671c367c4685757f112f2 (diff) | |
download | initscripts-8f063811fd3e9feb74435f3f97e5ae7c4b5a6fa8.tar initscripts-8f063811fd3e9feb74435f3f97e5ae7c4b5a6fa8.tar.gz initscripts-8f063811fd3e9feb74435f3f97e5ae7c4b5a6fa8.tar.bz2 initscripts-8f063811fd3e9feb74435f3f97e5ae7c4b5a6fa8.tar.xz initscripts-8f063811fd3e9feb74435f3f97e5ae7c4b5a6fa8.zip |
- ifup-eth: set 'primary' later for bonding devices (#236897, <agospoda@redhat.com>)
-rw-r--r-- | initscripts.spec | 5 | ||||
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/initscripts.spec b/initscripts.spec index 2d651d92..ff729995 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -197,9 +197,10 @@ rm -rf $RPM_BUILD_ROOT %changelog * Fri Jun 22 2007 Bill Nottingham <notting@redhat.com> 8.45.16.EL-1 -- add support for VLAN_PLUS_VID_NO_PAD vlans (#229285) -- fix logic error in install_bonding_driver (#229643) +- init.d/network: add support for VLAN_PLUS_VID_NO_PAD vlans (#229285) +- network-functions: fix logic error in install_bonding_driver (#229643) - add init script for netconsole (#223742) +- ifup-eth: set 'primary' later for bonding devices (#236897, <agospoda@redhat.com>) * Mon Jan 15 2007 Bill Nottingham <notting@redhat.com> 8.45.14.EL-1 - set MACADDR, if specified, before bringing up bonding master/slaves (#218792) diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index dd1907de..ffbd2e3b 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -134,6 +134,15 @@ if [ "$ISALIAS" = no ] && is_bonding_device ${DEVICE} ; then is_ignored_file "$device" && continue /sbin/ifup ${device##*/} done + + # add the bits to setup the needed post enslavement parameters + for arg in $BONDING_OPTS ; do + key=${arg%%=*}; + value=${arg##*=}; + if [ "${key}" = "primary" ]; then + echo $value > /sys/class/net/${DEVICE}/bonding/$key + fi + done fi if [ -n "${MTU}" ]; then |