summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2018-05-15 16:38:44 -0400
committerTim Rozet <trozet@redhat.com>2018-05-15 20:40:15 +0000
commitc5bafa166da6681c96a3c0d0e4b869621d52efd4 (patch)
tree5e96e0f4fa3e295fee2fc7d3a87a2529f1732e1e
parent0b5789905915f0468d18aa3c42eb469a331e8315 (diff)
Fixes ctlplane default route
Default route was using the undercloud IP, and instead should be using the gateway set for the network in network settings. JIRA: APEX-597 Change-Id: Iff6b18a6553af98cf9da72c278f358922d489958 Signed-off-by: Tim Rozet <trozet@redhat.com>
-rw-r--r--apex/network/network_environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apex/network/network_environment.py b/apex/network/network_environment.py
index ea71e0f3..0a4d1036 100644
--- a/apex/network/network_environment.py
+++ b/apex/network/network_environment.py
@@ -82,7 +82,7 @@ class NetworkEnvironment(dict):
admin_prefix = str(admin_cidr.prefixlen)
self[param_def]['ControlPlaneSubnetCidr'] = admin_prefix
self[param_def]['ControlPlaneDefaultRoute'] = \
- nets[ADMIN_NETWORK]['installer_vm']['ip']
+ nets[ADMIN_NETWORK]['gateway']
self[param_def]['EC2MetadataIp'] = \
nets[ADMIN_NETWORK]['installer_vm']['ip']
self[param_def]['DnsServers'] = net_settings['dns_servers']