~cisco-openstack/neutron/cis-havana

« back to all changes in this revision

Viewing changes to debian/tests/plumgrid-plugin

  • Committer: Chris Ricker
  • Date: 2014-01-09 21:21:46 UTC
  • Revision ID: chris.ricker@gmail.com-20140109212146-gpjbnxoukp5gtf1u
Update for 2013.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#------------------------
 
3
# Testing plumgrid-plugin
 
4
#------------------------
 
5
set -e
 
6
apt-get -y install neutron-plugin-plumgrid
 
7
 
 
8
# update plugin path
 
9
sed -i 's/NEUTRON_PLUGIN_CONFIG\=.*/NEUTRON_PLUGIN_CONFIG\=\"\/etc\/neutron\/plugins\/plumgrid\/plumgrid\.ini\"/g' /etc/default/neutron-server
 
10
sed -i 's/core_plugin/core_plugin \= neutron\.plugins\.plumgrid\.plumgrid_plugin\.plumgrid_plugin\.NeutronPluginPLUMgridV2/g' /etc/neutron/neutron.conf
 
11
service neutron-server restart  > /dev/null 2>&1
 
12
if pidof -x neutron-server > /dev/null; then
 
13
    apt-get -y remove --purge neutron-plugin-plumgrid
 
14
    echo "OK"
 
15
else
 
16
    echo "ERROR: PLUMGRID PLUGIN IS NOT RUNNING"
 
17
    apt-get -y remove --purge neutron-plugin-plumgrid
 
18
    exit 1
 
19
fi