debian: Automatically up the slave interfaces of a bond.
authorGurucharan Shetty <gshetty@nicira.com>
Tue, 4 Sep 2012 19:40:27 +0000 (12:40 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Sat, 27 Oct 2012 04:44:00 +0000 (21:44 -0700)
When physical interfaces are added to a bond through the
/etc/network/interfaces script, administratively 'up' the
slave interfaces.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
debian/ifupdown.sh

index bd6aec8..f6a7750 100755 (executable)
@@ -61,6 +61,10 @@ if [ "${MODE}" = "start" ]; then
                     ${OVS_EXTRA+-- $OVS_EXTRA}
 
                 ifconfig "${IFACE}" up
+                for slave in ${IF_OVS_BONDS}
+                do
+                    ifconfig "${slave}" up
+                done
                 ;;
         *)
                 exit 0