Build from master with 2014.2.b2
[openstack-build/neutron-build.git] / debian / tests / openvswitch-plugin
1 #!/bin/bash
2 #---------------------------
3 # Testing openvswitch-plugin
4 #---------------------------
5 set -e
6 apt-get -y install neutron-plugin-openvswitch
7
8 # update plugin path
9 sed -i 's/core_plugin/core_plugin \= neutron\.plugins\.openvswitch\.ovs_neutron_plugin\.OVSNeutronPluginV2/g' /etc/neutron/neutron.conf
10 service neutron-server restart  > /dev/null 2>&1
11 if pidof -x neutron-server > /dev/null; then
12     apt-get -y remove --purge neutron-plugin-openvswitch
13     echo "OK"
14 else
15     echo "ERROR: OPENVSWITCH PLUGIN IS NOT RUNNING"
16     apt-get -y remove --purge neutron-plugin-openvswitch
17     exit 1
18 fi