Add neutron-bgp-dragent service.

Added neutron-bgp-dragent Dockerfile.
Updated kolla/common/config.py with necessary sources.

Implements: blueprint neutron-bgp-dragent

Change-Id: If7f5c80eb10a1c418785d9c659ae18bfecfcfe33
This commit is contained in:
Thomas O'Neill 2017-03-08 11:27:02 +00:00
parent 0de503a81d
commit f0c87fc343
4 changed files with 53 additions and 4 deletions

View File

@ -0,0 +1,36 @@
FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% block neutron_bgp_dragent_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% elif base_distro in ['ubuntu', 'debian'] %}
{% set neutron_bgp_dragent_packages = [
'neutron-bgp-dragent'
] %}
{% endif %}
{{ macros.install_packages(neutron_bgp_dragent_packages | customizable("packages")) }}
{% elif install_type == 'source' %}
ADD neutron-bgp-dragent-archive /neutron-bgp-dragent-source
{% set neutron_bgp_dragent_pip_packages = [
'/neutron_dynamic_routing'
] %}
RUN ln -s neutron-bgp-dragent-source/* neutron_dynamic_routing \
&& {{ macros.install_pip(neutron_bgp_dragent_pip_packages | customizable("pip_packages")) }}
{% endif %}
{% block neutron_bgp_dragent_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER neutron

View File

@ -443,22 +443,30 @@ SOURCES = {
'type': 'url',
'location': ('$tarballs_base/networking-generic-switch/'
'networking-generic-switch-master.tar.gz')},
'neutron-bgp-dragent': {
'type': 'url',
'location': ('$tarballs_base/neutron-dynamic-routing/'
'neutron-dynamic-routing-master.tar.gz')},
'neutron-lbaas-agent': {
'type': 'url',
'location': ('$tarballs_base/neutron-lbaas/'
'neutron-lbaas-master.tar.gz')},
'neutron-server-plugin-neutron-dynamic-routing': {
'type': 'url',
'location': ('$tarballs_base/neutron-dynamic-routing/'
'neutron-dynamic-routing-master.tar.gz')},
'neutron-server-plugin-neutron-lbaas': {
'type': 'url',
'location': ('$tarballs_base/neutron-lbaas/'
'neutron-lbaas-master.tar.gz')},
'neutron-sfc-agent': {
'type': 'url',
'location': ('$tarballs_base/networking-sfc/'
'networking-sfc-master.tar.gz')},
'neutron-server-plugin-vpnaas-agent': {
'type': 'url',
'location': ('$tarballs_base/neutron-vpnaas/'
'neutron-vpnaas-master.tar.gz')},
'neutron-sfc-agent': {
'type': 'url',
'location': ('$tarballs_base/networking-sfc/'
'networking-sfc-master.tar.gz')},
'neutron-vpnaas-agent': {
'type': 'url',
'location': ('$tarballs_base/neutron-vpnaas/'

View File

@ -0,0 +1,3 @@
---
features:
- Add image for neutron-bgp-dragent container

View File

@ -74,6 +74,7 @@ class BuildTestCentosBinary(BuildTest, base.BaseTestCase):
"kuryr-base",
"manila-data",
"monasca-base",
"neutron-bgp-dragent",
"neutron-sfc-agent",
"searchlight-base",
"senlin-base",
@ -150,6 +151,7 @@ class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase):
"kuryr-base",
"manila-data",
"monasca-base",
"neutron-bgp-dragent",
"neutron-sfc-agent",
"searchlight-base",
"senlin-base",