devstack/lib/neutron_plugins/services/vpn
Kyle Mestery 20b839fd51 Update devstack to work with new split neutron services repos
This commit udpates devstack to work with the latest neutron services, which
are now in their own repositories. This will also unblock third party CI for
services testing. This also allows devstack users to run neutron with
services again.

Change-Id: I9cdd51f09edaccf218988240b48ce733d5771a65
2014-12-08 11:06:43 +00:00

34 lines
775 B
Plaintext

# Neutron VPN plugin
# ---------------------------
# Save trace setting
VPN_XTRACE=$(set +o | grep xtrace)
set +o xtrace
AGENT_VPN_BINARY="$NEUTRON_BIN_DIR/neutron-vpn-agent"
VPN_PLUGIN=${VPN_PLUGIN:-"neutron_vpnaas.services.vpn.plugin.VPNDriverPlugin"}
IPSEC_PACKAGE=${IPSEC_PACKAGE:-"openswan"}
function neutron_vpn_install_agent_packages {
install_package $IPSEC_PACKAGE
}
function neutron_vpn_configure_common {
_neutron_service_plugin_class_add $VPN_PLUGIN
}
function neutron_vpn_stop {
local ipsec_data_dir=$DATA_DIR/neutron/ipsec
local pids
if [ -d $ipsec_data_dir ]; then
pids=$(find $ipsec_data_dir -name 'pluto.pid' -exec cat {} \;)
fi
if [ -n "$pids" ]; then
sudo kill $pids
fi
}
# Restore xtrace
$VPN_XTRACE