Add OVN specific neutron-server container

This patch creates a specific OVN neutron-server container
which uses neutron-server as its base and adds OVN specific
packages similar to this commit [1] which adds ODL specific
neutron-server

[1] - I610b07a3c2bcf1c3288f76112a08b81c50e06913

Change-Id: Iee1d04d08609e4492a7a799b5ac9c0991898887d
Partially-implements: blueprint ovn-controller-neutron
This commit is contained in:
Numan Siddique 2017-07-03 21:50:30 +05:30
parent 7da9d5c020
commit b5a322ea35
3 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,32 @@
FROM {{ namespace }}/{{ image_prefix }}neutron-server:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
USER root
{% block neutron_server_ovn %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% set neutron_server_ovn_packages = [
'python-networking-ovn',
] %}
{{ macros.install_packages(neutron_server_ovn_packages | customizable("packages")) }}
{% elif install_type == 'source' %}
ADD plugins-archive /
{% set neutron_server_ovn_plugins_pip_packages = [
'/plugins/*'
] %}
RUN {{ macros.install_pip(neutron_server_ovn_plugins_pip_packages | customizable("pip_packages")) }}
{% endif %}
{% block neutron_server_ovn_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER neutron

View File

@ -548,6 +548,10 @@ SOURCES = {
'type': 'url',
'location': ('$tarballs_base/neutron-vpnaas/'
'neutron-vpnaas-master.tar.gz')},
'neutron-server-ovn-plugin-networking-ovn': {
'type': 'url',
'location': ('$tarballs_base/networking-ovn/'
'networking-ovn-master.tar.gz')},
'nova-base': {
'type': 'url',
'location': ('$tarballs_base/nova/'

View File

@ -0,0 +1,3 @@
---
features:
- Adds OVN specific Neutron Server container.