5818eafe60
This patch allows to deploy SFC capable deployments when deploying OSA with ODL. It does the following: - Installs the neutron networking-sfc project - Adds SFC to the features which ODL activates - Incorporates SFC options to neutron.conf In order to use it, you need to have ODL running and you should add the next items to the neutron_plugin_base when executing it: networking_sfc.services.flowclassifier.plugin.FlowClassifierPlugin networking_sfc.services.sfc.plugin.SfcPlugin Depends-On: I49c01fb63054e45bae5ae45a89cce986579959de Change-Id: I6bf2be1aef1bb612640f5d8cc101136f618fabd8
45 lines
1.8 KiB
YAML
45 lines
1.8 KiB
YAML
---
|
|
# Copyright 2017, Ericsson AB
|
|
#
|
|
# 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: Set the packages to install
|
|
set_fact:
|
|
neutron_optional_combined_pip_packages: |-
|
|
{% set packages = neutron_optional_opendaylight_pip_packages %}
|
|
{% if 'networking_sfc.services.sfc.plugin.SfcPlugin' in neutron_plugin_base %}
|
|
{% set _ = packages.extend(neutron_optional_opendaylight_sfc_pip_packages) %}
|
|
{% endif %}
|
|
{{ packages }}
|
|
|
|
- name: Install OpenDaylight pip packages
|
|
pip:
|
|
name: "{{ neutron_optional_combined_pip_packages }}"
|
|
state: "{{ neutron_pip_package_state }}"
|
|
virtualenv: "{{ neutron_bin | dirname }}"
|
|
virtualenv_site_packages: "no"
|
|
extra_args: >-
|
|
{{ neutron_developer_mode | ternary(pip_install_developer_constraints | default('--constraint /opt/developer-pip-constraints.txt'), '') }}
|
|
{{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
|
|
{{ pip_install_options | default('') }}
|
|
register: install_packages
|
|
until: install_packages|success
|
|
retries: 5
|
|
delay: 2
|
|
tags:
|
|
- opendaylight-install
|
|
- opendaylight-pip-packages
|
|
|
|
- include: setup_ovs_opendaylight.yml
|
|
when: neutron_services['neutron-server']['group'] not in group_names
|