]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Handles the rename of the openvswitch_agent.ini
authorThomas Goirand <thomas@goirand.fr>
Fri, 31 Jul 2015 22:35:17 +0000 (22:35 +0000)
committerThomas Goirand <thomas@goirand.fr>
Fri, 31 Jul 2015 22:35:17 +0000 (22:35 +0000)
debian/neutron-common.README.Debian
debian/neutron-common.config.in
debian/neutron-common.postinst.in
debian/neutron-common.postrm
debian/neutron-openvswitch-agent.init.in
debian/plugin_guess_func
debian/rules

index c5d8c2c67033c91be3503a9e1c08a151e3cf9d90..aa01f1455aecc35fa2e2d959ed6ae10f0ff5c7ce 100644 (file)
@@ -21,7 +21,7 @@ course your public IP address of the router which will deliver network to your
 virtual machines.
 
 With this setup, using tenant_network_type = gre and enable_tunneling = True
-in /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini, which is the
+in /etc/neutron/plugins/ml2/openvswitch_agent.ini, which is the
 default in this package, should work.
 
  -- Thomas Goirand <zigo@debian.org>  Sat, 03 Nov 2012 14:01:32 +0000
index 99ca227bc2e2f716f061b22100c38e8cfb5fbc94..c179765b799db90d1848ad24cc0dc1e948992bfa 100644 (file)
@@ -5,7 +5,7 @@ set -e
 . /usr/share/debconf/confmodule
 
 N_CONF=/etc/neutron/neutron.conf
-OVS_CONF=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
+OVS_CONF=/etc/neutron/plugins/ml2/openvswitch_agent.ini
 
 # Please remember this function is also in debian/plugin_guess_func
 neutron_core_plugin_to_plugin_name () {
index 1c44355bef37602a74aa9d2a2e9d7802267c4dfd..07bf75cbb40510b3a918d5ec13a59078f8e95607 100644 (file)
@@ -3,7 +3,7 @@
 set -e
 
 N_CONF=/etc/neutron/neutron.conf
-OVS_CONF=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
+OVS_CONF=/etc/neutron/plugins/ml2/openvswitch_agent.ini
 
 #PKGOS-INCLUDE#
 
@@ -105,7 +105,7 @@ if [ "$1" = "configure" ] || [ "$1" = "reconfigure" ] ; then
 
        # Maintain the OVS config
         if [ ! -e ${OVS_CONF} ] ; then
-                install -D -m 0640 -o neutron -g neutron /usr/share/neutron-common/ovs_neutron_plugin.ini ${OVS_CONF}
+                install -D -m 0640 -o neutron -g neutron /usr/share/neutron-common/openvswitch_agent.ini ${OVS_CONF}
         fi
 
        if [ "${NEUTRON_plugin_path}" = "OpenVSwitch" ] ; then
index c5673e4b66abd73e492e20980cc0b8522b8a9449..75520af18df881e978987226ea3f6861409fabc7 100644 (file)
@@ -23,8 +23,8 @@ if [ "${1}" = "purge" ] ; then
 
        # Clean /etc/neutron on purge
        rm -f /etc/default/neutron /etc/neutron/api-paste.ini /etc/neutron/neutron.conf \
-                       /etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
-       [ -d /etc/neutron/plugins/openvswitch ] && rmdir --ignore-fail-on-non-empty /etc/neutron/plugins/openvswitch
+                       /etc/neutron/plugins/openvswitch/ml2/openvswitch_agent.ini
+       [ -d /etc/neutron/plugins/ml2 ]         && rmdir --ignore-fail-on-non-empty /etc/neutron/plugins/ml2
        [ -d /etc/neutron/plugins ]             && rmdir --ignore-fail-on-non-empty /etc/neutron/plugins
        [ -d /etc/neutron ]                     && rmdir --ignore-fail-on-non-empty /etc/neutron
         rm -rf /var/lib/neutron
index 53c815414bc9fbf6c34d40408256b23310a966b1..bc6af291d3f3e40421c8c2481596af98e6c39f53 100644 (file)
@@ -16,7 +16,7 @@
 DESC="Openstack Neutron OpenVSwitch Plugin Agent"
 PROJECT_NAME=neutron
 NAME=${PROJECT_NAME}-openvswitch-agent
-CONFIG_FILE=/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
+CONFIG_FILE=/etc/neutron/plugins/ml2/openvswitch_agent.ini
 
 # Since Juno OVS plugin as been deprecated as core_plugin, it has been
 # replaced by ml2 as core_plugin and ovs as agent. Making ml2 mandatory
index 35bc6c5c2dfa6b9715be83f4687f35aaec48403d..1dfa5244deadd6584020b4561b2914910e6ead91 100644 (file)
@@ -59,7 +59,7 @@ neutron_plugin_ini_path () {
        PLUG_INI_BASE=/etc/neutron/plugins/
        case ${1} in
        "OpenVSwitch")
-               NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}openvswitch/ovs_neutron_plugin.ini
+               NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}ml2/openvswitch_agent.ini
        ;;
        "LinuxBridge")
                NEUTRON_PLUGIN_CONFIG=${PLUG_INI_BASE}linuxbridge/linuxbridge_conf.ini
index 7f27d99b93744daf7154932ba3bafbf3ac72aaa1..9dd08e3b177318d27e6242329dd31abe0ef5e329 100755 (executable)
@@ -29,14 +29,14 @@ override_dh_install:
        rm -rf $(CURDIR)/debian/neutron-common/usr/bin/quantum*
        rm -rf $(CURDIR)/debian/neutron-common/usr/etc
 
-       install -D -m 0640 etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini       $(CURDIR)/debian/neutron-common/usr/share/neutron-common/ovs_neutron_plugin.ini
+       install -D -m 0640 etc/neutron/plugins/ml2/openvswitch_agent.ini                $(CURDIR)/debian/neutron-common/usr/share/neutron-common/openvswitch_agent.ini
 
        install -D -m 0640 etc/metadata_agent.ini                                       $(CURDIR)/debian/neutron-metadata-agent/usr/share/neutron-metadata-agent/metadata_agent.ini
        sed -i -e 's|^# nova_metadata_ip = 127.0.0.1|nova_metadata_ip = 127.0.0.1|'     $(CURDIR)/debian/neutron-metadata-agent/usr/share/neutron-metadata-agent/metadata_agent.ini
 
        # Move the OVS config file, since we use debconf for it
-       rm $(CURDIR)/debian/neutron-common/etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini
-       install -D -m 0640 etc/neutron/plugins/openvswitch/ovs_neutron_plugin.ini $(CURDIR)/debian/neutron-common/usr/share/neutron-common/ovs_neutron_plugin.ini
+       rm $(CURDIR)/debian/neutron-common/etc/neutron/plugins/ml2/openvswitch_agent.ini
+       install -D -m 0640 etc/neutron/plugins/ml2/openvswitch_agent.ini $(CURDIR)/debian/neutron-common/usr/share/neutron-common/openvswitch_agent.ini
 
 override_dh_auto_clean:
        dh_auto_clean