Nachi Ueno | 69b3ff6 | 2013-06-07 10:28:33 -0700 | [diff] [blame^] | 1 | # Neutron VPN plugin |
| 2 | # --------------------------- |
| 3 | |
| 4 | # Save trace setting |
| 5 | MY_XTRACE=$(set +o | grep xtrace) |
| 6 | set +o xtrace |
| 7 | |
| 8 | |
| 9 | VPN_BINARY="$NEUTRON_DIR/bin/neutron-vpn-agent" |
| 10 | VPN_PLUGIN="neutron.services.vpn.plugin.VPNDriverPlugin" |
| 11 | |
| 12 | function neutron_vpn_install_agent_packages() { |
| 13 | install_package strongswan |
| 14 | } |
| 15 | |
| 16 | function 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 | |
| 24 | function neutron_vpn_configure_agent() { |
| 25 | AGENT_L3_BINARY="$NEUTRON_DIR/bin/neutron-vpn-agent" |
| 26 | } |
| 27 | |
| 28 | # Restore xtrace |
| 29 | $MY_XTRACE |