def test_driver_is_loaded(self): cfg.CONF.set_override('mechanism_drivers', 'df', group='ml2') rie = mock.patch.object(driver.DfTrunkDriver, '_register_init_events') rie.start() self.addCleanup(rie.stop) df_driver = driver.DfTrunkDriver() self.assertTrue(df_driver.is_loaded)
def initialize(self): LOG.info("Starting DFMechDriver") self.nb_api = None # When set to True, Nova plugs the VIF directly into the ovs bridge # instead of using the hybrid mode. self.vif_details = {portbindings.CAP_PORT_FILTER: True} self.vif_type = portbindings.VIF_TYPE_OVS self._set_base_port_binding() self.port_status = n_const.PORT_STATUS_ACTIVE self.trunk_driver = trunk_driver.DfTrunkDriver() self.subscribe_registries() df_qos.register()
def initialize(self): LOG.info("Starting DFMechDriver") self.nb_api = None # When set to True, Nova plugs the VIF directly into the ovs bridge # instead of using the hybrid mode. self.vif_details = {portbindings.CAP_PORT_FILTER: True} self.vif_type = portbindings.VIF_TYPE_OVS self._set_base_port_binding() self.port_status = n_const.PORT_STATUS_ACTIVE self.trunk_driver = trunk_driver.DfTrunkDriver() if cfg.CONF.df.auto_detect_port_behind_port: self._port_behind_port_detector = ( port_behind_port.DfPortBehindPortDetector()) if cfg.CONF.df_loadbalancer.auto_enable_vip_ports: self._vip_port_enabler = vip_port_enabler.DfLBaaSVIPPortEnabler() self.subscribe_registries() df_qos.register() self.dhcp_module = dhcp_module.DFDHCPModule()