aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/reclass
diff options
context:
space:
mode:
authorMichael Polenchuk <mpolenchuk@mirantis.com>2017-12-13 16:00:29 +0400
committerMichael Polenchuk <mpolenchuk@mirantis.com>2017-12-13 20:53:03 +0400
commitb49bc80c8a491a88ddb93ce6f60ba73a208fdd4f (patch)
treef45ab203e3202c6e4abe6572989860cdc579117d /mcp/reclass
parentae4434bdf6a96e06286409aa51e8cd9975f7e8b8 (diff)
[baremetal] Link br-ex as ovs port
Add br-ex and physical public interface as ports directly to ovs bridge. Change-Id: I12c078d3e286af7c5fa3078cc055905c03cf600b Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Diffstat (limited to 'mcp/reclass')
-rw-r--r--mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_compute_pdf.yml.j233
1 files changed, 9 insertions, 24 deletions
diff --git a/mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_compute_pdf.yml.j2 b/mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_compute_pdf.yml.j2
index 3c51abf4a..cee41700e 100644
--- a/mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_compute_pdf.yml.j2
+++ b/mcp/reclass/classes/cluster/baremetal-mcp-pike-common-ha/openstack_compute_pdf.yml.j2
@@ -27,8 +27,6 @@
{%- set vlan_mgmt = conf['net_config']['mgmt']['vlan'] -%}
{%- set vlan_private = conf['net_config']['private']['vlan'] -%}
{%- set vlan_public = conf['net_config']['public']['vlan'] -%}
-
- {%- set gateway_public = conf['net_config']['public']['gateway'] -%}
{%- else -%}
{%- set nic_admin = 'enp6s0' -%}
{%- set nic_mgmt = 'enp6s0' -%}
@@ -40,9 +38,9 @@
{%- endif -%}
{#- Filter-out NIC duplicates by constructing a dict (used NICs only) -#}
-{%- set nics = { nic_admin: True, nic_mgmt: True, nic_public: True} -%}
+{%- set nics = { nic_admin: True, nic_mgmt: True } -%}
-{%- set vlans = { vlan_admin: nic_admin, vlan_mgmt: nic_mgmt, vlan_public: nic_public} -%}
+{%- set vlans = { vlan_admin: nic_admin, vlan_mgmt: nic_mgmt } -%}
---
parameters:
linux:
@@ -94,31 +92,18 @@ parameters:
mtu: ${_param:interface_mtu}
br-ex:
enabled: true
- type: ovs_bridge
- mtu: ${_param:interface_mtu}
- address: ${_param:external_address}
- netmask: 255.255.255.0
- proto: static
- gateway: {{ gateway_public }}
- floating-to-ex:
- enabled: true
type: ovs_port
- port_type: patch
bridge: br-floating
- peer: ex-to-floating
- ex-to-floating:
- enabled: true
- type: ovs_port
- port_type: patch
- bridge: br-ex
- peer: floating-to-ex
- {{ nic_public }}:
- enabled: true
+ proto: static
{%- if vlan_public and vlan_public != 'native' %}
ovs_options: tag={{ vlan_public }}
{%- endif %}
+ address: ${_param:external_address}
+ netmask: 255.255.255.0
+ {{ nic_public }}:
+ enabled: true
proto: manual
ovs_port_type: OVSPort
type: ovs_port
- ovs_bridge: br-ex
- bridge: br-ex
+ ovs_bridge: br-floating
+ bridge: br-floating