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() { |
Isaku Yamahata | 9e136b4 | 2013-12-16 15:52:03 +0900 | [diff] [blame^] | 18 | _neutron_service_plugin_class_add $VPN_PLUGIN |
Nachi Ueno | 69b3ff6 | 2013-06-07 10:28:33 -0700 | [diff] [blame] | 19 | } |
| 20 | |
Nachi Ueno | 69b3ff6 | 2013-06-07 10:28:33 -0700 | [diff] [blame] | 21 | # Restore xtrace |
| 22 | $MY_XTRACE |