summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-02-08 20:16:13 -0500
committerTim Rozet <trozet@redhat.com>2017-02-08 20:16:13 -0500
commitf1f78989e9c80da4cda93226c8d6198f9bccfb35 (patch)
treeb2c8eb0d37c678d103be13bd073611b44a16faee
parent2899fd8b719603fdbc402d3651fa2327ebc6a73f (diff)
Apex: fixes missing sudo on route cmd for csit
Change-Id: Iffb93175cc253a471530571662a5b8fb3a00ff88 Signed-off-by: Tim Rozet <trozet@redhat.com>
-rwxr-xr-xjjb/apex/apex-deploy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/jjb/apex/apex-deploy.sh b/jjb/apex/apex-deploy.sh
index a27c92d29..31c1bed5f 100755
--- a/jjb/apex/apex-deploy.sh
+++ b/jjb/apex/apex-deploy.sh
@@ -207,7 +207,7 @@ if [[ "$JOB_NAME" == *csit* ]]; then
echo "CSIT job: setting host route for floating ip routing"
# csit route to allow docker container to reach floating ips
UNDERCLOUD=$(sudo virsh domifaddr undercloud | grep -Eo "[0-9\.]+{3}[0-9]+")
- if route | grep 192.168.37.128; then
+ if sudo route | grep 192.168.37.128 > /dev/null; then
sudo route del -net 192.168.37.128 netmask 255.255.255.128
fi
sudo route add -net 192.168.37.128 netmask 255.255.255.128 gw ${UNDERCLOUD}