2
#----------------------
3
# Testing nicira-plugin
4
#----------------------
6
apt-get -y install neutron-plugin-nicira
9
sed -i 's/NEUTRON_PLUGIN_CONFIG\=.*/NEUTRON_PLUGIN_CONFIG\=\"\/etc\/neutron\/plugins\/nicira\/nvp\.ini\"/g' /etc/default/neutron-server
10
sed -i 's/core_plugin/core_plugin \= neutron\.plugins\.nicira\.NeutronPlugin\.NvpPluginV2/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-nicira
16
echo "ERROR: NICIRA PLUGIN IS NOT RUNNING"
17
apt-get -y remove --purge neutron-plugin-nicira