diff options
author | Carlos Goncalves <carlos.goncalves@neclab.eu> | 2017-06-07 09:23:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-06-07 09:23:49 +0000 |
commit | d182b8a69eeef01f37b123e7d331972b7c57911d (patch) | |
tree | d5b938bb9f13a3d414af9a5ec38e79c54af422f9 | |
parent | 545586015e5b768875672352afe77a5a850a9d86 (diff) | |
parent | 6442090131eb020d3caba0ac26fedcf13fee9c9a (diff) |
Merge "Fix run.sh bug for dynamic interfaces"
-rwxr-xr-x | tests/run.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/run.sh b/tests/run.sh index daf23946..fda1e753 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -294,8 +294,7 @@ inject_failure() { echo "disabling network of compute host [$COMPUTE_HOST] for 3 mins..." cat > disable_network.sh << 'END_TXT' #!/bin/bash -x -dev=$(sudo ip a | awk '/ @COMPUTE_IP@\//{print $7}') -[[ -n "$dev" ]] || dev=$(sudo ip a | awk '/ @COMPUTE_IP@\//{print $5}') +dev=$(sudo ip a | awk '/ @COMPUTE_IP@\//{print $NF}') sleep 1 sudo ip link set $dev down echo "doctor set link down at" $(date "+%s.%N") |