예제 #1
0
 def setUp(self):
     super(TestAgentExtensionsManager, self).setUp()
     mock.patch('neutron.agent.l2.extensions.qos.QosAgentExtension',
                autospec=True).start()
     conf = cfg.CONF
     ext_manager.register_opts(conf)
     cfg.CONF.set_override('extensions', ['qos'], 'agent')
     self.manager = ext_manager.AgentExtensionsManager(conf)
예제 #2
0
 def setUp(self):
     super(TestAgentExtensionsManager, self).setUp()
     mock.patch('neutron.agent.l2.extensions.qos.QosAgentExtension',
                autospec=True).start()
     conf = cfg.CONF
     ext_manager.register_opts(conf)
     cfg.CONF.set_override('extensions', ['qos'], 'agent')
     self.manager = ext_manager.AgentExtensionsManager(conf)
예제 #3
0
파일: base.py 프로젝트: dhanunjaya/neutron
 def _get_config_opts(self):
     config = cfg.ConfigOpts()
     config.register_opts(common_config.core_opts)
     config.register_opts(interface.OPTS)
     config.register_opts(ovs_config.ovs_opts, "OVS")
     config.register_opts(ovs_config.agent_opts, "AGENT")
     agent_config.register_interface_driver_opts_helper(config)
     agent_config.register_agent_state_opts_helper(config)
     ext_manager.register_opts(config)
     return config
예제 #4
0
 def _get_config_opts(self):
     config = cfg.ConfigOpts()
     config.register_opts(common_config.core_opts)
     config.register_opts(interface.OPTS)
     config.register_opts(ovs_config.ovs_opts, "OVS")
     config.register_opts(ovs_config.agent_opts, "AGENT")
     agent_config.register_interface_driver_opts_helper(config)
     agent_config.register_agent_state_opts_helper(config)
     ext_manager.register_opts(config)
     return config
예제 #5
0
 def _create_agent_extension_manager(self, connection):
     ext_manager.register_opts(self.conf)
     mgr = ext_manager.AgentExtensionsManager(self.conf)
     mgr.initialize(connection, 'sriov')
     return mgr
예제 #6
0
 def _create_agent_extension_manager(self, connection):
     ext_manager.register_opts(self.conf)
     mgr = ext_manager.AgentExtensionsManager(self.conf)
     mgr.initialize(connection, 'sriov')
     return mgr
예제 #7
0
 def setUp(self):
     super(TestSRIOVAgentExtensionConfig, self).setUp()
     l2_ext_manager.register_opts(cfg.CONF)
     # disable setting up periodic state reporting
     cfg.CONF.set_override('report_interval', 0, group='AGENT')
     cfg.CONF.set_override('extensions', ['qos'], group='agent')
예제 #8
0
 def init_extension_manager(self, connection):
     ext_manager.register_opts(cfg.CONF)
     self.ext_manager = (ext_manager.AgentExtensionsManager(cfg.CONF))
     self.ext_manager.initialize(connection,
                                 self.mgr.get_extension_driver_type())
예제 #9
0
 def init_extension_manager(self, connection):
     ext_manager.register_opts(cfg.CONF)
     self.ext_manager = (
         ext_manager.AgentExtensionsManager(cfg.CONF))
     self.ext_manager.initialize(
         connection, self.mgr.get_extension_driver_type())
 def setUp(self):
     super(TestSRIOVAgentExtensionConfig, self).setUp()
     l2_ext_manager.register_opts(cfg.CONF)
     # disable setting up periodic state reporting
     cfg.CONF.set_override('report_interval', 0, group='AGENT')
     cfg.CONF.set_override('extensions', ['qos'], group='agent')
예제 #11
0
 def init_extension_manager(self, connection):
     ext_manager.register_opts(cfg.CONF)
     self.ext_manager = ext_manager.AgentExtensionsManager(cfg.CONF)
     self.ext_manager.initialize(connection, lconst.EXTENSION_DRIVER_TYPE)