[odl-router] Bring up public network on computes 97/38597/1
authorMichael Polenchuk <mpolenchuk@mirantis.com>
Wed, 2 Aug 2017 09:10:26 +0000 (13:10 +0400)
committerMichael Polenchuk <mpolenchuk@mirantis.com>
Wed, 2 Aug 2017 09:10:26 +0000 (13:10 +0400)
* apply provider mappings on compute nodes as well
* set default route of computes to gateway node

Change-Id: I5715e34fd8ecbed87bd7f1b1ed488766af711bae
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
mcp/reclass/classes/cluster/virtual-mcp-ocata-odl-router/openstack/compute.yml

index e25f417..ba710a3 100644 (file)
@@ -46,9 +46,11 @@ parameters:
       ovsdb_server_iface: ptcp:6639:127.0.0.1
       ovsdb_odl_iface: tcp:${_param:opendaylight_service_host}:6640
       tunnel_ip: ${_param:tenant_address}
+      provider_mappings: physnet1:br-floating
   linux:
     network:
       bridge: openvswitch
+      gateway: ${_param:openstack_gateway_address}
       interface:
         dhcp_int:
           enabled: true
@@ -68,6 +70,12 @@ parameters:
           mtu: ${_param:interface_mtu}
           proto: manual
           type: eth
+        external_interface:
+          enabled: true
+          name: ${_param:external_interface}
+          mtu: ${_param:interface_mtu}
+          proto: manual
+          type: eth
         br-mgmt:
           enabled: true
           type: bridge
@@ -82,5 +90,25 @@ parameters:
           proto: static
           address: ${_param:tenant_address}
           netmask: 255.255.255.0
+          gateway: 10.1.0.110
           use_interfaces:
           - ${_param:tenant_interface}
+        br-floating:
+          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
+          mtu: ${_param:interface_mtu}
+          address: ${_param:external_address}
+          netmask: 255.255.255.0
+          use_interfaces:
+          - ${_param:external_interface}
+          use_ovs_ports:
+          - float-to-ex