From aa81e2ea73cf46ab4e220a66959d19529f7bfeac Mon Sep 17 00:00:00 2001 From: Stanislaw Szydlo Date: Mon, 27 Jul 2015 10:54:44 +0200 Subject: [PATCH] Fix errors in tools/ping_neutron.sh Due to errors in tools/ping_neutron.sh, exercise neutron-adv-test.sh fails. Faults were: 'neutron net-list' took too much arguments and variable REMAINING_ARGS was mistyped. Change-Id: I681328bfb1e4445543ef9d94e3b3824dbc9c8346 Closes-Bug: #1478021 --- tools/ping_neutron.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/ping_neutron.sh b/tools/ping_neutron.sh index d36b7f60c8..dba7502652 100755 --- a/tools/ping_neutron.sh +++ b/tools/ping_neutron.sh @@ -51,15 +51,15 @@ if [[ -z "$NET_NAME" ]]; then usage fi -REMANING_ARGS="${@:2}" +REMAINING_ARGS="${@:2}" # BUG: with duplicate network names, this fails pretty hard. -NET_ID=$(neutron net-list $NET_NAME | grep "$NET_NAME" | awk '{print $2}') +NET_ID=$(neutron net-list | grep "$NET_NAME" | awk '{print $2}') PROBE_ID=$(neutron-debug probe-list -c id -c network_id | grep "$NET_ID" | awk '{print $2}' | head -n 1) # This runs a command inside the specific netns NET_NS_CMD="ip netns exec qprobe-$PROBE_ID" -PING_CMD="sudo $NET_NS_CMD ping $REMAING_ARGS" +PING_CMD="sudo $NET_NS_CMD ping $REMAINING_ARGS" echo "Running $PING_CMD" $PING_CMD