From 232cc372c3180319c7fd62be68e3340c955fe563 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Wed, 10 Oct 2018 10:26:48 +0200 Subject: [PATCH] neutron-base: unify Debian/Ubuntu part Change-Id: I13d75c3fafd2f1e26da6e85cacb7b84601096d8d --- docker/neutron/neutron-base/Dockerfile.j2 | 38 ++++++++++------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/docker/neutron/neutron-base/Dockerfile.j2 b/docker/neutron/neutron-base/Dockerfile.j2 index 13735a364b..69a9810068 100644 --- a/docker/neutron/neutron-base/Dockerfile.j2 +++ b/docker/neutron/neutron-base/Dockerfile.j2 @@ -30,7 +30,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'python2-oslo-vmware' ] %} - {% elif base_distro in ['debian'] %} + {% elif base_distro in ['debian', 'ubuntu'] %} {% set neutron_base_packages = [ 'iproute2', @@ -42,31 +42,27 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build 'neutron-server', 'openvswitch-switch', 'python-networking-sfc', - 'python-networking-vmware-nsx', 'python-openvswitch', 'python-oslo.vmware' ] %} - {% elif base_distro in ['ubuntu'] %} + {% if base_distro == 'debian' %} - # FIXED(jeffrey4l): UCA rocky release is not include python-vmware-nsx - # 13.0.0 package now. add 'python-vmware-nsx' into - # neutron_base_packages list after UCA fixed the issue. - {% set neutron_base_packages = [ - 'iproute2', - 'iputils-ping', - 'keepalived', - 'net-tools', - 'radvd', - 'neutron-lbaas-common', - 'neutron-plugin-ml2', - 'neutron-server', - 'openvswitch-switch', - 'python-networking-sfc', - 'python-neutron-fwaas', - 'python-openvswitch', - 'python-oslo.vmware' - ] %} + {% set neutron_base_packages = neutron_base_packages + [ + 'python-networking-vmware-nsx' + ] %} + + {% else %} + + # FIXED(jeffrey4l): UCA rocky release is not include python-vmware-nsx + # 13.0.0 package now. add 'python-vmware-nsx' into + # neutron_base_packages list after UCA fixed the issue. + {% set neutron_base_packages = neutron_base_packages + [ + 'neutron-lbaas-common', + 'python-neutron-fwaas', + ] %} + + {% endif %} {% endif %}