[ovs-dev] [netlink v5 58/61] xenserver: Use "ovs-dpctl dump-dps" instead of parsing "ovs-dpctl show".
Ben Pfaff
blp at nicira.com
Thu Jan 27 00:23:41 UTC 2011
Might as well use the dump-dps command as intended.
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>
---
xenserver/etc_init.d_openvswitch | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch
index 6adb004..a99cc9f 100755
--- a/xenserver/etc_init.d_openvswitch
+++ b/xenserver/etc_init.d_openvswitch
@@ -166,16 +166,12 @@ function hup_monitor_external_ids {
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
}
--
1.7.1
More information about the dev
mailing list