summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2017-08-27 19:21:43 -0400
committerTim Rozet <trozet@redhat.com>2017-08-27 19:21:43 -0400
commit583ae93f658e84a349638aeb33209aaae6cad63f (patch)
tree7c4b678fd526e8b723fdc5a4f1b0e6533cb69499
parent002537a8dd9dde4f488e2be75f0f69ea43b500ba (diff)
Fixes external network with baremetal interface
Change-Id: Icd65ffbd14dee603e5b2a0a42e9d0cdfd98c694c Signed-off-by: Tim Rozet <trozet@redhat.com>
-rw-r--r--apex/deploy.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/apex/deploy.py b/apex/deploy.py
index ceef160a..6a08b36f 100644
--- a/apex/deploy.py
+++ b/apex/deploy.py
@@ -291,8 +291,13 @@ def main():
if uc_external:
jump_networks.append('external')
for network in jump_networks:
- iface = net_settings['networks'][network]['installer_vm'][
- 'members'][0]
+ if network == 'external':
+ # TODO(trozet): enable vlan secondary external networks
+ iface = net_settings['networks'][network][0][
+ 'installer_vm']['members'][0]
+ else:
+ iface = net_settings['networks'][network]['installer_vm'][
+ 'members'][0]
bridge = "br-{}".format(network)
jumphost.attach_interface_to_ovs(bridge, iface, network)
# Dump all settings out to temp bash files to be sourced