Enabling extra bridge for native external network 49/52649/3
authorRicardo Noriega <rnoriega@redhat.com>
Mon, 26 Feb 2018 11:34:39 +0000 (06:34 -0500)
committerRicardo Noriega <rnoriega@redhat.com>
Mon, 12 Mar 2018 15:25:31 +0000 (15:25 +0000)
  If you have a non-vlan external network in a
  separate interface, you will need to create an
  extra bridge to hook up the interface. This patch
  will allow the user to create:

    - br-isolated: for all the vlan networks
    - br-ex: for the native external network

JIRA: APEX-572

Change-Id: Ie76e2345ce75c77f2925c47451427ae41b6957d1
Signed-off-by: Ricardo Noriega <rnoriega@redhat.com>
build/nics-template.yaml.jinja2

index 93d3dc1..b1069d2 100644 (file)
@@ -87,7 +87,11 @@ resources:
             -
             {%- if not nets['external'][0]['enabled'] or nets['tenant']['nic_mapping'][role]['vlan'] is number or nets['storage']['nic_mapping'][role]['vlan'] is number or nets['api']['nic_mapping'][role]['vlan'] is number or  nets['external'][0]['nic_mapping'][role]['vlan'] is number %}
               type: ovs_bridge
+            {%- if nets['external'][0]['enabled'] and nets['external'][0]['nic_mapping'][role]['vlan'] == 'native' %}
+              name: br-isolated
+            {%- else %}
               name: {get_input: bridge_name}
+            {%- endif %}
               members:
                 -
                   type: interface