From d650378e743b93ab070ffde978a7557aa522dcb1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 13 Jan 2011 17:14:07 -0800 Subject: [PATCH] xenserver: Use "ovs-dpctl dump-dps" instead of parsing "ovs-dpctl show". Might as well use the dump-dps command as intended. Signed-off-by: Ben Pfaff Acked-by: Jesse Gross --- xenserver/etc_init.d_openvswitch | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xenserver/etc_init.d_openvswitch b/xenserver/etc_init.d_openvswitch index 6adb0046..a99cc9f8 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 } -- 2.30.2