452a2b668b
Currently neutron role doesn't configure l3 agent (controller) for external network connecitivity for the openstack tenant network. This needs some manual configuration to provide public network access for the tenant VMs. This review attempts to automate these steps. Change-Id: I653ee5136ac508c473cbdb761a00454a774a4336 Signed-off-by: Periyasamy Palanisamy <periyasamy.palanisamy@ericsson.com>
35 lines
1.4 KiB
YAML
35 lines
1.4 KiB
YAML
---
|
|
# Copyright 2018, Ericsson AB and Others
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
- name: Setup External Network Provider Bridge
|
|
openvswitch_bridge:
|
|
bridge: "{{ neutron_provider_networks.network_mappings.split(':')[1] }}"
|
|
state: present
|
|
when:
|
|
- neutron_services['neutron-l3-agent']['group'] in group_names
|
|
- neutron_plugin_type == 'ml2.ovs'
|
|
- neutron_provider_networks.network_mappings is defined
|
|
|
|
- name: Add port to External Network Provider Bridge
|
|
openvswitch_port:
|
|
bridge: "{{ neutron_provider_networks.network_mappings.split(':')[1] }}"
|
|
port: "{{ neutron_provider_networks.network_interface }}"
|
|
state: present
|
|
when:
|
|
- neutron_services['neutron-l3-agent']['group'] in group_names
|
|
- neutron_plugin_type == 'ml2.ovs'
|
|
- neutron_provider_networks.network_mappings is defined
|
|
- neutron_provider_networks.network_interface is defined
|