From: Ben Pfaff Date: Fri, 14 Jan 2011 01:14:07 +0000 (-0800) Subject: xenserver: Use "ovs-dpctl dump-dps" instead of parsing "ovs-dpctl show". X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d650378e743b93ab070ffde978a7557aa522dcb1;p=openvswitch 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 --- 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 }