X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Fifupdown.sh;h=a621100b36a0a5c38d232abe9e0b876d3474ff67;hb=HEAD;hp=bd6aec846fd953caf85202faf1566aeedc859adb;hpb=a6a60925d7425685dd7876ec7da162fa5d73a3b8;p=sliver-openvswitch.git diff --git a/debian/ifupdown.sh b/debian/ifupdown.sh index bd6aec846..a621100b3 100755 --- a/debian/ifupdown.sh +++ b/debian/ifupdown.sh @@ -1,6 +1,6 @@ #! /bin/sh -# Copyright (c) 2012 Nicira, Inc. +# Copyright (c) 2012, 2013 Nicira, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -61,6 +61,16 @@ if [ "${MODE}" = "start" ]; then ${OVS_EXTRA+-- $OVS_EXTRA} ifconfig "${IFACE}" up + for slave in ${IF_OVS_BONDS} + do + ifconfig "${slave}" up + done + ;; + OVSTunnel) + ovs_vsctl -- --may-exist add-port "${IF_OVS_BRIDGE}"\ + "${IFACE}" ${IF_OVS_OPTIONS} -- set Interface "${IFACE}" \ + type=${IF_OVS_TUNNEL_TYPE} ${IF_OVS_TUNNEL_OPTIONS} \ + ${OVS_EXTRA+-- $OVS_EXTRA} ;; *) exit 0 @@ -75,7 +85,7 @@ elif [ "${MODE}" = "stop" ]; then ovs_vsctl -- --if-exists del-br "${IFACE}" ;; - OVSPort|OVSIntPort|OVSBond) + OVSPort|OVSIntPort|OVSBond|OVSTunnel) ovs_vsctl -- --if-exists del-port "${IF_OVS_BRIDGE}" "${IFACE}" ;; *)