summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2015-09-23 12:58:34 -0400
committerTim Rozet <trozet@redhat.com>2015-09-23 18:44:14 +0000
commit2a66665fe552e48c9347b0a63f8854c3db9c268a (patch)
tree9f87aaf8e7146a26b173c8fa64d5afda994f0754
parentc5a40063a0abd8fbaf0c63cb203fdc9755d58c57 (diff)
Fixes public gateway to be the correct value
Bug where default gateway was always being set to the first IP in the subnet. Now should detect correct public gateway. This only impacts the default gateway configured on the external neturon "provider_subnet". JIRA: APEX-37 Change-Id: I0296fa7149679a0f2eb47f7d65e0011f366c1147 Signed-off-by: Tim Rozet <trozet@redhat.com> (cherry picked from commit f5032bce67f6b7b8f8c5186b6f64e83bd113338e)
-rwxr-xr-xforeman/ci/deploy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/foreman/ci/deploy.sh b/foreman/ci/deploy.sh
index 8cd23ba..6bf8f12 100755
--- a/foreman/ci/deploy.sh
+++ b/foreman/ci/deploy.sh
@@ -769,7 +769,7 @@ match the baremetal nic you provided: ${single_baremetal_nic}. Exiting...${reset
sed -i 's/^.*nat_flag =.*$/ nat_flag = true/' Vagrantfile
echo "${blue}Setting node gateway to be VM Admin IP${reset}"
node_default_gw=${interface_ip_arr[0]}
- public_gateway=$default_gw
+ public_gateway=$host_default_gw
;;
3)
echo "${red}Default Gateway Detected on Storage Interface!${reset}"