[ovs-dev] [PATCH] debian: Automatically up the slave interfaces of a bond.

Gurucharan Shetty gshetty at nicira.com
Fri Oct 26 21:29:30 UTC 2012


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 at nicira.com>
---
 debian/ifupdown.sh |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/debian/ifupdown.sh b/debian/ifupdown.sh
index bd6aec8..f6a7750 100755
--- a/debian/ifupdown.sh
+++ b/debian/ifupdown.sh
@@ -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
-- 
1.7.2.5




More information about the dev mailing list