[bgpvpn] Use Linux bridge for odl01 public network 87/65687/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 9 Dec 2018 14:34:52 +0000 (15:34 +0100)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Sun, 9 Dec 2018 14:38:06 +0000 (15:38 +0100)
Previously, we used a single interface definition for public network
on odl01 node, which does not work well for baremetal setups that
use a tagged VLAN public network, like ericsson-pod1.

Change-Id: I10ff7c105406691011e94e06b2f099dc2cdf8a06
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
mcp/reclass/classes/cluster/mcp-odl-noha/opendaylight/control_pdf.yml.j2

index 95f3ee3..b21131d 100644 (file)
 {#- Filter-out NIC duplicates by constructing a dict (used NICs only) #}
 {%- set nics = { nm.ctl01.nic_mgmt: True } %}
 {%- set vlans = { nm.vlan_mgmt: nm.ctl01.nic_mgmt } %}
+{%- if '-bgpvpn-' in conf.MCP_DEPLOY_SCENARIO %}
+  {%- do nics.update({nm.ctl01.nic_public: True}) %}
+  {%- do vlans.update({nm.vlan_public: nm.ctl01.nic_public}) %}
+{%- endif %}
 ---
 parameters:
   linux:
@@ -28,14 +32,15 @@ parameters:
           name_servers:
             - {{ nm.net_admin_gw }}
 {%- if '-bgpvpn-' in conf.MCP_DEPLOY_SCENARIO %}
-        external:
+        br-ext:
           enabled: true
-          name: {{ nm.ctl01.nic_public }}
+          type: bridge
           proto: static
-          type: eth
           address: ${_param:opnfv_opendaylight_server_external_address}
           netmask: ${_param:opnfv_net_public_mask}
           mtu: ${_param:interface_mtu}
+          use_interfaces:
+            - {{ ma.interface_str(nm.ctl01.nic_public, nm.vlan_public) }}
           noifupdown: true
 {%- endif %}