Ejemplo n.º 1
0
 def setUp(self):
     super(OpendaylightBgpvpnDriverTestCase, self).setUp()
     self.db_session = neutron_db_api.get_reader_session()
     self.driver = driverv2.OpenDaylightBgpvpnDriver(service_plugin=None)
     self.context = self._get_mock_context()
     self.mock_sync_thread = mock.patch.object(
         journal.OpendaylightJournalThread,
         'start_odl_sync_thread').start()
     self.thread = journal.OpendaylightJournalThread()
Ejemplo n.º 2
0
    def _get_bgpvpn_driver_with_vni(self):
        feature_json = """{"features": {"feature":
                                        [{"service-provider-feature":
                                        "neutron-extensions:operational-port-status"},
                                        {"service-provider-feature":
                                        "neutron-extensions:bgpvpn-vni"}]}}"""

        self.cfg.config(odl_features_json=feature_json, group='ml2_odl')
        odl_features.init()
        bgpvpn_driver = driverv2.OpenDaylightBgpvpnDriver(service_plugin=None)
        return bgpvpn_driver
Ejemplo n.º 3
0
 def setUp(self):
     super(OpenDaylightBgpvpnDriverTestCase, self).setUp()
     self.driver = driverv2.OpenDaylightBgpvpnDriver(service_plugin=None)
Ejemplo n.º 4
0
 def setUp(self):
     super(OpendaylightBgpvpnDriverTestCase, self).setUp()
     self.db_session = neutron_db_api.get_reader_session()
     self.driver = driverv2.OpenDaylightBgpvpnDriver(service_plugin=None)
     self.context = self._get_mock_context()