Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 3
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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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
Exemplo n.º 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')
Exemplo n.º 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())
Exemplo n.º 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')
Exemplo n.º 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)