X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Fifupdown.sh;h=a621100b36a0a5c38d232abe9e0b876d3474ff67;hb=18f0d729e26787da30fe949e68742357847c157c;hp=f728f7c779be1c685959838260d7782e2d908509;hpb=fba6bd1d3f5891471daea8bf5da22303c2d889df;p=sliver-openvswitch.git diff --git a/debian/ifupdown.sh b/debian/ifupdown.sh index f728f7c77..a621100b3 100755 --- a/debian/ifupdown.sh +++ b/debian/ifupdown.sh @@ -22,7 +22,7 @@ if [ -z "${IF_OVS_TYPE}" ]; then fi ovs_vsctl() { - ovs-vsctl "$@" + ovs-vsctl --timeout=5 "$@" } if (ovs_vsctl --version) > /dev/null 2>&1; then :; else @@ -66,6 +66,12 @@ if [ "${MODE}" = "start" ]; then 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 ;; @@ -79,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}" ;; *)