Esempio n. 1
0
 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})
Esempio n. 2
0
 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
     })
Esempio n. 3
0
 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})