| ... | ... |
@@ -1086,8 +1086,10 @@ function _configure_neutron_fwaas {
|
| 1086 | 1086 |
} |
| 1087 | 1087 |
|
| 1088 | 1088 |
function _configure_neutron_vpn {
|
| 1089 |
- if [ -f $NEUTRON_VPNAAS_DIR/etc/neutron_vpnaas.conf ]; then |
|
| 1090 |
- cp $NEUTRON_VPNAAS_DIR/etc/neutron_vpnaas.conf $NEUTRON_CONF_DIR |
|
| 1089 |
+ # Uses oslo config generator to generate VPNaaS sample configuration files |
|
| 1090 |
+ (cd $NEUTRON_VPNAAS_DIR && exec ./tools/generate_config_file_samples.sh) |
|
| 1091 |
+ if [ -f $NEUTRON_VPNAAS_DIR/etc/neutron_vpnaas.conf.sample ]; then |
|
| 1092 |
+ cp $NEUTRON_VPNAAS_DIR/etc/neutron_vpnaas.conf.sample $NEUTRON_CONF_DIR/neutron_vpnaas.conf |
|
| 1091 | 1093 |
fi |
| 1092 | 1094 |
neutron_vpn_install_agent_packages |
| 1093 | 1095 |
neutron_vpn_configure_common |
| ... | ... |
@@ -29,7 +29,9 @@ function neutron_vpn_configure_common {
|
| 29 | 29 |
} |
| 30 | 30 |
|
| 31 | 31 |
function neutron_vpn_configure_agent {
|
| 32 |
- cp $NEUTRON_VPNAAS_DIR/etc/vpn_agent.ini $Q_VPN_CONF_FILE |
|
| 32 |
+ # Uses oslo config generator to generate LBaaS sample configuration files |
|
| 33 |
+ (cd $NEUTRON_VPNAAS_DIR && exec ./tools/generate_config_file_samples.sh) |
|
| 34 |
+ cp $NEUTRON_VPNAAS_DIR/etc/vpn_agent.ini.sample $Q_VPN_CONF_FILE |
|
| 33 | 35 |
if [[ "$IPSEC_PACKAGE" == "strongswan" ]]; then |
| 34 | 36 |
iniset_multiline $Q_VPN_CONF_FILE vpnagent vpn_device_driver neutron_vpnaas.services.vpn.device_drivers.strongswan_ipsec.StrongSwanDriver |
| 35 | 37 |
if is_fedora; then |