X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Fifupdown.sh;h=a621100b36a0a5c38d232abe9e0b876d3474ff67;hb=HEAD;hp=e456533602e44cc2200c93ad1d4bd4122bc533db;hpb=780325b5b8d4c0552b4b7719e0a38200d99f6b08;p=sliver-openvswitch.git diff --git a/debian/ifupdown.sh b/debian/ifupdown.sh index e45653360..a621100b3 100755 --- a/debian/ifupdown.sh +++ b/debian/ifupdown.sh @@ -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}" ;; *)