コード例 #1
0
 def __init__(self):
     super(VPNDriverPlugin, self).__init__()
     # Load the service driver from neutron.conf.
     drivers, default_provider = service_base.load_drivers(
         constants.VPN, self)
     LOG.info(_LI("VPN plugin using service driver: %s"), default_provider)
     self.ipsec_driver = drivers[default_provider]
     vpn_db.subscribe()
コード例 #2
0
ファイル: plugin.py プロジェクト: wywangsh/neutron-vpnaas
 def __init__(self):
     super(VPNDriverPlugin, self).__init__()
     self.service_type_manager = st_db.ServiceTypeManager.get_instance()
     add_provider_configuration(self.service_type_manager, constants.VPN)
     # Load the service driver from neutron.conf.
     drivers, default_provider = service_base.load_drivers(constants.VPN, self)
     LOG.info(_LI("VPN plugin using service driver: %s"), default_provider)
     self.ipsec_driver = drivers[default_provider]
     vpn_db.subscribe()
コード例 #3
0
ファイル: plugin.py プロジェクト: ibuystuff/neutron-vpnaas
 def __init__(self):
     super(VPNDriverPlugin, self).__init__()
     self.service_type_manager = st_db.ServiceTypeManager.get_instance()
     add_provider_configuration(self.service_type_manager, constants.VPN)
     # Load the service driver from neutron.conf.
     drivers, default_provider = service_base.load_drivers(
         constants.VPN, self)
     LOG.info("VPN plugin using service driver: %s", default_provider)
     self.ipsec_driver = drivers[default_provider]
     vpn_db.subscribe()
コード例 #4
0
ファイル: plugin.py プロジェクト: openstack/neutron-vpnaas
 def __init__(self):
     super(VPNDriverPlugin, self).__init__()
     self.service_type_manager = st_db.ServiceTypeManager.get_instance()
     add_provider_configuration(self.service_type_manager, constants.VPN)
     # Load the service driver from neutron.conf.
     self.drivers, self.default_provider = service_base.load_drivers(
         constants.VPN, self)
     self._check_orphan_vpnservice_associations()
     # Associate driver names to driver objects
     for driver_name, driver in self.drivers.items():
         driver.name = driver_name
     LOG.info(("VPN plugin using service drivers: %(service_drivers)s, "
               "default: %(default_driver)s"),
              {'service_drivers': self.drivers.keys(),
               'default_driver': self.default_provider})
     vpn_db.subscribe()
コード例 #5
0
 def __init__(self):
     super(VPNDriverPlugin, self).__init__()
     self.service_type_manager = st_db.ServiceTypeManager.get_instance()
     add_provider_configuration(self.service_type_manager, constants.VPN)
     # Load the service driver from neutron.conf.
     self.drivers, self.default_provider = service_base.load_drivers(
         constants.VPN, self)
     self._check_orphan_vpnservice_associations()
     # Associate driver names to driver objects
     for driver_name, driver in self.drivers.items():
         driver.name = driver_name
     LOG.info(
         ("VPN plugin using service drivers: %(service_drivers)s, "
          "default: %(default_driver)s"), {
              'service_drivers': self.drivers.keys(),
              'default_driver': self.default_provider
          })
     vpn_db.subscribe()