blob: 3c030c5f429a067e3d66729732798ceb09462ad5 [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
9VPN_BINARY="$NEUTRON_DIR/bin/neutron-vpn-agent"
10VPN_PLUGIN="neutron.services.vpn.plugin.VPNDriverPlugin"
11
12function neutron_vpn_install_agent_packages() {
13 install_package strongswan
14}
15
16function neutron_vpn_configure_common() {
17 if [[ $Q_SERVICE_PLUGIN_CLASSES == '' ]]; then
18 Q_SERVICE_PLUGIN_CLASSES=$VPN_PLUGIN
19 else
20 Q_SERVICE_PLUGIN_CLASSES="$Q_SERVICE_PLUGIN_CLASSES,$VPN_PLUGIN"
21 fi
22}
23
24function neutron_vpn_configure_agent() {
25 AGENT_L3_BINARY="$NEUTRON_DIR/bin/neutron-vpn-agent"
26}
27
28# Restore xtrace
29$MY_XTRACE