def _gen_config_content(self, template_file, vpnservice): template = linux_driver._get_template(template_file) openvpn_path = os.path.join(self.etc_dir, 'openvpn') return template.render( {'vpnservice': vpnservice, 'ssl_vpn_connection': vpnservice['ssl_vpn_connections'][0], 'openvpn_path': openvpn_path})
def _gen_config_content(self, template_file, vpnservice): template = linux_driver._get_template(template_file) return template.render({ 'vpnservice': vpnservice, 'state_path': cfg.CONF.state_path })
def _gen_config_content(self, template_file, vpnservice): template = linux_driver._get_template(template_file) return template.render( {'vpnservice': vpnservice, 'state_path': cfg.CONF.state_path})