blob: b8f5c7d56b83ceb76512035267072751da4bb741 [file] [log] [blame]
Nachi Ueno69b3ff62013-06-07 10:28:33 -07001# Neutron VPN plugin
2# ---------------------------
3
4# Save trace setting
5MY_XTRACE=$(set +o | grep xtrace)
6set +o xtrace
7
8
Nachi Ueno584750f2013-07-15 18:22:21 -07009AGENT_VPN_BINARY="$NEUTRON_BIN_DIR/neutron-vpn-agent"
Nachi Ueno69b3ff62013-06-07 10:28:33 -070010VPN_PLUGIN="neutron.services.vpn.plugin.VPNDriverPlugin"
Nachi Ueno1e3d3182013-08-15 18:15:31 -070011IPSEC_PACKAGE=${IPSEC_PACKAGE:-"openswan"}
Nachi Ueno69b3ff62013-06-07 10:28:33 -070012
13function neutron_vpn_install_agent_packages() {
Nachi Ueno1e3d3182013-08-15 18:15:31 -070014 install_package $IPSEC_PACKAGE
Nachi Ueno69b3ff62013-06-07 10:28:33 -070015}
16
17function neutron_vpn_configure_common() {
18 if [[ $Q_SERVICE_PLUGIN_CLASSES == '' ]]; then
19 Q_SERVICE_PLUGIN_CLASSES=$VPN_PLUGIN
20 else
21 Q_SERVICE_PLUGIN_CLASSES="$Q_SERVICE_PLUGIN_CLASSES,$VPN_PLUGIN"
22 fi
23}
24
Nachi Ueno69b3ff62013-06-07 10:28:33 -070025# Restore xtrace
26$MY_XTRACE