Code Review
/
doctor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
(from parent 1:
5455860
)
Merge "Fix run.sh bug for dynamic interfaces"
author
Carlos Goncalves
<carlos.goncalves@neclab.eu>
Wed, 7 Jun 2017 09:23:49 +0000
(09:23 +0000)
committer
Gerrit Code Review
<gerrit@opnfv.org>
Wed, 7 Jun 2017 09:23:49 +0000
(09:23 +0000)
tests/run.sh
patch
|
blob
|
history
diff --git
a/tests/run.sh
b/tests/run.sh
index
daf2394
..
fda1e75
100755
(executable)
--- 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")