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 | |
Nachi Ueno | 584750f | 2013-07-15 18:22:21 -0700 | [diff] [blame] | 9 | AGENT_VPN_BINARY="$NEUTRON_BIN_DIR/neutron-vpn-agent" |
Nachi Ueno | 69b3ff6 | 2013-06-07 10:28:33 -0700 | [diff] [blame] | 10 | VPN_PLUGIN="neutron.services.vpn.plugin.VPNDriverPlugin" |
Nachi Ueno | 1e3d318 | 2013-08-15 18:15:31 -0700 | [diff] [blame^] | 11 | IPSEC_PACKAGE=${IPSEC_PACKAGE:-"openswan"} |
Nachi Ueno | 69b3ff6 | 2013-06-07 10:28:33 -0700 | [diff] [blame] | 12 | |
| 13 | function neutron_vpn_install_agent_packages() { |
Nachi Ueno | 1e3d318 | 2013-08-15 18:15:31 -0700 | [diff] [blame^] | 14 | install_package $IPSEC_PACKAGE |
Nachi Ueno | 69b3ff6 | 2013-06-07 10:28:33 -0700 | [diff] [blame] | 15 | } |
| 16 | |
| 17 | function 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 Ueno | 69b3ff6 | 2013-06-07 10:28:33 -0700 | [diff] [blame] | 25 | # Restore xtrace |
| 26 | $MY_XTRACE |