def __init__(self): super(MidonetL3ServicePlugin, self).__init__() # Instantiate MidoNet API client self.client = c_base.load_client(cfg.CONF.MIDONET) neutron_extensions.append_api_extensions_path(extensions.__path__)
def __init__(self): self.vif_type = const.VIF_TYPE_MIDONET self.supported_vnic_types = [portbindings.VNIC_NORMAL] self.vif_details = {portbindings.CAP_PORT_FILTER: True} self.client = c_base.load_client(cfg.CONF.MIDONET) self.client.initialize()
def __init__(self): super(MidonetGwDeviceServicePlugin, self).__init__() # Instantiate MidoNet API client self.client = c_base.load_client(cfg.CONF.MIDONET) neutron_extensions.append_api_extensions_path(extensions.__path__)
def __init__(self): neutron_extensions.append_api_extensions_path(extensions.__path__) neutron_extensions.append_api_extensions_path(bgp_extensions.__path__) # Instantiate MidoNet API client. self.client = c_base.load_client(cfg.CONF.MIDONET) super(MidonetBgpPlugin, self).__init__()
def __init__(self): super(MidonetL3ServicePlugin, self).__init__() # Instantiate MidoNet API client self.client = c_base.load_client(cfg.CONF.MIDONET) # Avoid any side effect from DVR getting set to true cfg.CONF.set_override("router_distributed", False) neutron_extensions.append_api_extensions_path(extensions.__path__)
def __init__(self): self.vif_type = const.VIF_TYPE_MIDONET self.supported_vnic_types = [portbindings.VNIC_NORMAL] self.vif_details = { portbindings.CAP_PORT_FILTER: True, portbindings.VIF_DETAILS_CONNECTIVITY: portbindings.CONNECTIVITY_L2 } self.client = c_base.load_client(cfg.CONF.MIDONET) self.client.initialize() qos_driver.register()
def __init__(self, plugin): super(MidonetLoadBalancerDriver, self).__init__(plugin) self.load_balancer = MidonetLoadBalancerManager(self) self.listener = MidonetListenerManager(self) self.pool = MidonetPoolManager(self) self.member = MidonetMemberManager(self) self.health_monitor = MidonetHealthMonitorManager(self) self._client = c_base.load_client(cfg.CONF.MIDONET) self.member_update_thread = loopingcall.FixedIntervalLoopingCall( self._update_member_status) self.member_update_thread.start(5, initial_delay=None, stop_on_exception=False) self.admin_ctx = ncontext.get_admin_context()
def __init__(self): """Override initialization to avoid any RPC setup as MidoNet does not rely on any agent to implement FWaaS. Instead, set the rpc handling to the _MidonetFirewallDriver class so that it handles the FWaaS update events. """ # Register the FWaaS extensions path neutron_extensions.append_api_extensions_path(extensions.__path__) # Although callbacks are unnecessary in midonet, use FirewallCallbacks # because it contains useful methods for DB updates. self.callbacks = fw_plugin.FirewallCallbacks(self) self.client = c_base.load_client(cfg.CONF.MIDONET) self.agent_rpc = _MidonetFirewallDriver(self.client, self.callbacks) self.endpoints = [self.callbacks] # So that tests don't complain firewall_db.subscribe()
def __init__(self): # Override initialization to avoid any RPC setup as MidoNet does not # rely on any agent to implement FWaaS. Instead, set the rpc handling # to the _MidonetFirewallDriver class so that it handles the FWaaS # update events. # Register the FWaaS extensions path neutron_extensions.append_api_extensions_path(extensions.__path__) # Although callbacks are unnecessary in midonet, use FirewallCallbacks # because it contains useful methods for DB updates. self.callbacks = fw_plugin.FirewallCallbacks(self) self.client = c_base.load_client(cfg.CONF.MIDONET) self.agent_rpc = _MidonetFirewallDriver(self.client, self.callbacks) self.endpoints = [self.callbacks] # So that tests don't complain # TODO(yamamoto): Remove this subscribe() call once neutron-fwaas # was converted to use registry decorators. firewall_db.subscribe()
def __init__(self): super(MidonetMixinBase, self).__init__() # Instantiate MidoNet API client self.client = c_base.load_client(cfg.CONF.MIDONET) neutron_extensions.append_api_extensions_path(extensions.__path__) self.setup_rpc() self.base_binding_dict = { portbindings.VIF_TYPE: const.VIF_TYPE_MIDONET, portbindings.VNIC_TYPE: portbindings.VNIC_NORMAL, portbindings.VIF_DETAILS: { # TODO(rkukura): Replace with new VIF security details portbindings.CAP_PORT_FILTER: 'security-group' in self.supported_extension_aliases}} self.network_scheduler = importutils.import_object( cfg.CONF.network_scheduler_driver )
def __init__(self, service_plugin): super(MidonetIPsecVPNDriver, self).__init__(service_plugin, ipsec_validator.IpsecVpnValidator(self)) self.plugin = plugin.VPNPlugin() self.client = c_base.load_client(cfg.CONF.MIDONET)
def __init__(self, service_plugin, validator=None): super(MidonetL2gwDriver, self).__init__(service_plugin, validator=validator) self.service_plugin = service_plugin self.client = c_base.load_client(cfg.CONF.MIDONET)
def __init__(self, service_plugin): LOG.debug("Loading MidonetTaasDriver.") self.client = c_base.load_client(cfg.CONF.MIDONET) super(MidonetTaasDriver, self).__init__(service_plugin)
def __init__(self, service_plugin): super(MidonetIPsecVPNDriver, self).__init__(service_plugin, ipsec_validator.IpsecVpnValidator(service_plugin)) self.plugin = plugin.VPNPlugin() self.client = c_base.load_client(cfg.CONF.MIDONET)
def __init__(self, plugin): self.plugin = plugin self.client = c_base.load_client(cfg.CONF.MIDONET)
def __init__(self): super(MidonetLoggingResourcePlugin, self).__init__() # Instantiate MidoNet API client self.client = c_base.load_client(cfg.CONF.MIDONET)