openstack-ansible-os_neutron/tasks/providers/ovs_l3_config.yml

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