[baremetal] Migrate public bridge to ovs 95/48595/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 8 Dec 2017 14:06:57 +0000 (18:06 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Fri, 8 Dec 2017 14:17:44 +0000 (18:17 +0400)
Get rid of "ovs-to-linux" links, instead of this setup native ovs
bridge for public interface and link it with neutron external bridge.

Change-Id: I483881e78f22fc035107a622307d95761c4a5667
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/reclass/classes/cluster/baremetal-mcp-ocata-common-ha/openstack_compute_pdf.yml.j2
mcp/reclass/classes/system

index 687777b..cad407f 100644 (file)
@@ -27,6 +27,8 @@
     {%- 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' -%}
@@ -90,18 +92,31 @@ parameters:
           enabled: true
           type: ovs_bridge
           mtu: ${_param:interface_mtu}
-        float-to-ex:
-          enabled: true
-          type: ovs_port
-          mtu: ${_param:interface_mtu}
-          bridge: br-floating
         br-ex:
           enabled: true
-          type: bridge
+          type: ovs_bridge
           mtu: ${_param:interface_mtu}
           address: ${_param:external_address}
           netmask: 255.255.255.0
-          use_interfaces:
-            - {{ nic_public }}{% if vlan_public and vlan_public != 'native' %}.{{ vlan_public }}{% endif %}
-          use_ovs_ports:
-            - float-to-ex
+          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
+        public_ovs_interface:
+          enabled: true
+          name: {{ nic_public }}{% if vlan_public and vlan_public != 'native' %}.{{ vlan_public }}{% endif %}
+          proto: manual
+          ovs_port_type: OVSPort
+          type: ovs_port
+          ovs_bridge: br-ex
+          bridge: br-ex
index 79f99eb..2c7e4f3 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 79f99eb5c290b346bb663ec8142eb3eafeb0a7e8
+Subproject commit 2c7e4f3b9e1b7bb7e52139c34198f9629887caa4