Beispiel #1
0
    def setUp(self):
        super(L3AgentFixture, self).setUp()

        self.plugin_cfg_fixture = config_fixtures.L3ConfigFixture(
            self.temp_dir, self.integration_bridge_name)
        self.useFixture(self.plugin_cfg_fixture)
        self.plugin_config = self.plugin_cfg_fixture.config

        self.useFixture(net_helpers.OVSBridgeFixture(self._get_br_ex_name()))

        config_filenames = [
            self.neutron_cfg_fixture.filename, self.plugin_cfg_fixture.filename
        ]

        self.process_fixture = self.useFixture(
            ProcessFixture(name=self.NEUTRON_L3_AGENT,
                           exec_name=self.NEUTRON_L3_AGENT,
                           config_filenames=config_filenames))
Beispiel #2
0
    def _setUp(self):
        self.plugin_cfg_fixture = config_fixtures.L3ConfigFixture(
            self.temp_dir, self.integration_bridge_name)
        self.useFixture(self.plugin_cfg_fixture)
        self.plugin_config = self.plugin_cfg_fixture.config

        self.useFixture(net_helpers.OVSBridgeFixture(self._get_br_ex_name()))

        config_filenames = [self.neutron_cfg_fixture.filename,
                            self.plugin_cfg_fixture.filename]

        self.process_fixture = self.useFixture(ProcessFixture(
            test_name=self.test_name,
            process_name=self.NEUTRON_L3_AGENT,
            exec_name=spawn.find_executable(
                'l3_agent.py',
                path=os.path.join(base.ROOTDIR, 'common', 'agents')),
            config_filenames=config_filenames))