Browse code

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

Stanislaw Szydlo authored on 2015/07/27 17:54:44
Showing 1 changed files
... ...
@@ -51,15 +51,15 @@ if [[ -z "$NET_NAME" ]]; then
51 51
     usage
52 52
 fi
53 53
 
54
-REMANING_ARGS="${@:2}"
54
+REMAINING_ARGS="${@:2}"
55 55
 
56 56
 # BUG: with duplicate network names, this fails pretty hard.
57
-NET_ID=$(neutron net-list $NET_NAME | grep "$NET_NAME" | awk '{print $2}')
57
+NET_ID=$(neutron net-list | grep "$NET_NAME" | awk '{print $2}')
58 58
 PROBE_ID=$(neutron-debug probe-list -c id -c network_id | grep "$NET_ID" | awk '{print $2}' | head -n 1)
59 59
 
60 60
 # This runs a command inside the specific netns
61 61
 NET_NS_CMD="ip netns exec qprobe-$PROBE_ID"
62 62
 
63
-PING_CMD="sudo $NET_NS_CMD ping $REMAING_ARGS"
63
+PING_CMD="sudo $NET_NS_CMD ping $REMAINING_ARGS"
64 64
 echo "Running $PING_CMD"
65 65
 $PING_CMD