# limitations under the License.
### BEGIN INIT INFO
# Provides: openvswitch-switch
-# Required-Start: $network $named $remote_fs $syslog
-# Required-Stop: $remote_fs
+# Required-Start:
+# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Open vSwitch switch
fi
}
-function dp_list {
- "$dpctl" show | grep '^dp[0-9]\+:' | cut -d':' -f 1
-}
-
function turn_on_corefiles {
ulimit -Sc 67108864
}
function remove_all_dp {
- for dp in $(dp_list); do
+ for dp in $($dpctl dump-dps); do
action "Removing datapath: $dp" "$dpctl" del-dp "$dp"
done
}