Beispiel #1
0
 def setUp(self):
     self.fake_oflib_of = fake_oflib.patch_fake_oflib_of()
     self.fake_oflib_of.start()
     self.addCleanup(self.fake_oflib_of.stop)
     self.mod_agent = importutils.import_module(self._AGENT_NAME)
     super(OFAAgentTestBase, self).setUp()
     self.ryuapp = mock.Mock()
Beispiel #2
0
 def setUp(self):
     self.fake_oflib_of = fake_oflib.patch_fake_oflib_of()
     self.fake_oflib_of.start()
     self.addCleanup(self.fake_oflib_of.stop)
     self.mod_agent = importutils.import_module(self._AGENT_NAME)
     super(OFAAgentTestBase, self).setUp()
     self.ryuapp = mock.Mock()
 def setUp(self):
     super(OFAAgentTestCase, self).setUp()
     self.fake_oflib_of = fake_oflib.patch_fake_oflib_of().start()
     self.mod_agent = importutils.import_module(self._AGENT_NAME)
     self.ryuapp = mock.Mock()
     cfg.CONF.register_cli_opts([
         cfg.StrOpt('ofp-listen-host', default='',
                    help='openflow listen host'),
         cfg.IntOpt('ofp-tcp-listen-port', default=6633,
                    help='openflow tcp listen port')
     ])
     cfg.CONF.set_override('root_helper', 'fake_helper', group='AGENT')
 def setUp(self):
     super(OFAAgentTestCase, self).setUp()
     self.fake_oflib_of = fake_oflib.patch_fake_oflib_of().start()
     self.mod_agent = importutils.import_module(self._AGENT_NAME)
     cfg.CONF.set_default("firewall_driver", "neutron.agent.firewall.NoopFirewallDriver", group="SECURITYGROUP")
     self.ryuapp = mock.Mock()
     cfg.CONF.register_cli_opts(
         [
             cfg.StrOpt("ofp-listen-host", default="", help="openflow listen host"),
             cfg.IntOpt("ofp-tcp-listen-port", default=6633, help="openflow tcp listen port"),
         ]
     )
     cfg.CONF.set_override("root_helper", "fake_helper", group="AGENT")
 def setUp(self):
     super(OFAAgentTestCase, self).setUp()
     self.addCleanup(mock.patch.stopall)
     self.fake_oflib_of = fake_oflib.patch_fake_oflib_of().start()
     self.mod_agent = importutils.import_module(self._AGENT_NAME)
     self.ryuapp = mock.Mock()
     cfg.CONF.register_cli_opts([
         cfg.StrOpt('ofp-listen-host', default='',
                    help='openflow listen host'),
         cfg.IntOpt('ofp-tcp-listen-port', default=6633,
                    help='openflow tcp listen port')
     ])
     cfg.CONF.set_override('root_helper', 'fake_helper', group='AGENT')
 def setUp(self):
     super(OFAAgentTestCase, self).setUp()
     self.fake_oflib_of = fake_oflib.patch_fake_oflib_of().start()
     self.mod_agent = importutils.import_module(self._AGENT_NAME)
     cfg.CONF.set_default('firewall_driver',
                          'neutron.agent.firewall.NoopFirewallDriver',
                          group='SECURITYGROUP')
     self.ryuapp = mock.Mock()
     cfg.CONF.register_cli_opts([
         cfg.StrOpt('ofp-listen-host', default='',
                    help='openflow listen host'),
         cfg.IntOpt('ofp-tcp-listen-port', default=6633,
                    help='openflow tcp listen port')
     ])
     cfg.CONF.set_override('root_helper', 'fake_helper', group='AGENT')
Beispiel #7
0
 def setUp(self):
     self.fake_oflib_of = fake_oflib.patch_fake_oflib_of()
     self.fake_oflib_of.start()
     self.addCleanup(self.fake_oflib_of.stop)
     super(OFATestBase, self).setUp()
Beispiel #8
0
 def setUp(self):
     self.fake_oflib_of = fake_oflib.patch_fake_oflib_of()
     self.fake_oflib_of.start()
     self.addCleanup(self.fake_oflib_of.stop)
     super(OFATestBase, self).setUp()