Update RPM-specs to 2013.2 version
[openstack-build/neutron-build.git] / rpm / SOURCES / neutron-l3-setup
similarity index 77%
rename from rpm/SOURCES/quantum-l3-setup
rename to rpm/SOURCES/neutron-l3-setup
index 4596260e25634ed2f655619d63d3788f0175b3a0..44cdf0ed859a60553346d9ad9017fdfdac58a23f 100755 (executable)
@@ -26,15 +26,15 @@ usage() {
 cat << EOF
 The helper script will install the necessary support for the L3 agent.
 
-Usage: quantum-l3-setup [options]
+Usage: neutron-l3-setup [options]
 Options:
        --help        | -h
                Print usage information.
         --plugin      | -p
-                The quantum plugin. Supported plugins:-
+                The neutron plugin. Supported plugins:-
                     ${SUPPORTED_PLUGINS[*]}
         --qhost       | -q
-                The Quantum hostname (assumes that this is also the QPID host).
+                The Neutron hostname (assumes that this is also the QPID host).
 EOF
 
        exit 0
@@ -50,8 +50,8 @@ is_valid_plugin() {
        return 1
 }
 
-L3_CONF=/etc/quantum/l3_agent.ini
-L3_META_CONF=/etc/quantum/metadata_agent.ini
+L3_CONF=/etc/neutron/l3_agent.ini
+L3_META_CONF=/etc/neutron/metadata_agent.ini
 
 while [ $# -gt 0 ]
 do
@@ -61,7 +61,7 @@ do
                        ;;
                 -p|--plugin)
                         shift
-                        QUANTUM_PLUGIN=${1}
+                        NEUTRON_PLUGIN=${1}
                         ;;
                 -q|--qhost)
                         shift
@@ -76,36 +76,36 @@ do
 done
 
 # if the plugin is not defined
-if [ -z ${QUANTUM_PLUGIN} ] ; then
+if [ -z ${NEUTRON_PLUGIN} ] ; then
         echo "Please select a plugin from: ${SUPPORTED_PLUGINS[*]}"
         echo "Choice:"
-        read QUANTUM_PLUGIN
+        read NEUTRON_PLUGIN
 fi
 
 # check that the plugin is valid
-is_valid_plugin ${QUANTUM_PLUGIN}
+is_valid_plugin ${NEUTRON_PLUGIN}
 if [ $? -ne 0 ]; then
-        echo "Plugin '${QUANTUM_PLUGIN}' not supported. Supported plugins:-"
+        echo "Plugin '${NEUTRON_PLUGIN}' not supported. Supported plugins:-"
         echo "    ${SUPPORTED_PLUGINS[*]}"
         exit 0
 fi
 
-echo "Quantum plugin: ${QUANTUM_PLUGIN}"
+echo "Neutron plugin: ${NEUTRON_PLUGIN}"
 
 if [ -z ${Q_HOST} ] ; then
-    echo "Please enter the Quantum hostname:"
+    echo "Please enter the Neutron hostname:"
     read Q_HOST
 fi
 
 Q_PORT=9696
-Q_CONF=/etc/quantum/quantum.conf
+Q_CONF=/etc/neutron/neutron.conf
 # QPID
-openstack-config --set ${Q_CONF} DEFAULT rpc_backend quantum.openstack.common.rpc.impl_qpid
+openstack-config --set ${Q_CONF} DEFAULT rpc_backend neutron.openstack.common.rpc.impl_qpid
 openstack-config --set ${Q_CONF} DEFAULT qpid_hostname ${Q_HOST}
 
-case "${QUANTUM_PLUGIN}" in
+case "${NEUTRON_PLUGIN}" in
 "linuxbridge")
-        LINUX_INTERFACE_DRIVER=quantum.agent.linux.interface.BridgeInterfaceDriver
+        LINUX_INTERFACE_DRIVER=neutron.agent.linux.interface.BridgeInterfaceDriver
         openstack-config --set ${L3_CONF} DEFAULT external_network_bridge ''
 ;;
 
@@ -115,13 +115,13 @@ case "${QUANTUM_PLUGIN}" in
                 echo "Please install openvswitch"
                 exit 0
         fi
-        LINUX_INTERFACE_DRIVER=quantum.agent.linux.interface.OVSInterfaceDriver
+        LINUX_INTERFACE_DRIVER=neutron.agent.linux.interface.OVSInterfaceDriver
 ;;
 
 esac
 
 # Keystone specific
-OS_USERNAME=${OS_USERNAME:-quantum}
+OS_USERNAME=${OS_USERNAME:-neutron}
 OS_PASSWORD=${OS_PASSWORD:-servicepass}
 OS_AUTH_URL=${OS_AUTH_URL:-http://localhost:35357/v2.0/}
 OS_TENANT_NAME=${OS_TENANT_NAME:-service}