0ea4cd42a6
The tasks/main.yml is looking for "{{ neutron_plugin_type.split('.')[-1] }}_config.yml" file. So if neutron_plugin_type is ml2.ovs, the filename should be ovs_config.yml. This fixes the problem. Change-Id: Ia239360dc88be48e06faf18ec7af852a91f427c7
36 lines
1.4 KiB
YAML
36 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.
|
|
|
|
# This file is responsible for the L3 configuration
|
|
- 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
|