def setUp(self):
     super(GreTypeTest, self).setUp()
     ml2_db.initialize()
     self.driver = type_gre.GreTypeDriver()
     self.driver.gre_id_ranges = TUNNEL_RANGES
     self.driver._sync_gre_allocations()
     self.session = db.get_session()
Beispiel #2
0
 def setUp(self):
     super(GreTypeTest, self).setUp()
     ml2_db.initialize()
     self.driver = type_gre.GreTypeDriver()
     self.driver.gre_id_ranges = TUNNEL_RANGES
     self.driver._sync_gre_allocations()
     self.session = db.get_session()
Beispiel #3
0
 def setUp(self):
     super(GreTypeMultiRangeTest, self).setUp()
     ml2_db.initialize()
     self.driver = type_gre.GreTypeDriver()
     self.driver.gre_id_ranges = self.TUNNEL_MULTI_RANGES
     self.driver._sync_gre_allocations()
     self.session = db.get_session()
     self.addCleanup(db.clear_db)
Beispiel #4
0
 def setUp(self):
     super(GreTypeMultiRangeTest, self).setUp()
     ml2_db.initialize()
     self.driver = type_gre.GreTypeDriver()
     self.driver.gre_id_ranges = self.TUNNEL_MULTI_RANGES
     self.driver._sync_gre_allocations()
     self.session = db.get_session()
     self.addCleanup(db.clear_db)
Beispiel #5
0
 def setUp(self):
     super(VxlanTypeMultiRangeTest, self).setUp()
     ml2_db.initialize()
     self.driver = type_vxlan.VxlanTypeDriver()
     self.driver.vxlan_vni_ranges = self.TUNNEL_MULTI_RANGES
     self.driver._sync_vxlan_allocations()
     self.session = db.get_session()
     self.addCleanup(cfg.CONF.reset)
     self.addCleanup(db.clear_db)
Beispiel #6
0
 def setUp(self):
     super(VxlanTypeMultiRangeTest, self).setUp()
     ml2_db.initialize()
     self.driver = type_vxlan.VxlanTypeDriver()
     self.driver.vxlan_vni_ranges = self.TUNNEL_MULTI_RANGES
     self.driver._sync_vxlan_allocations()
     self.session = db.get_session()
     self.addCleanup(cfg.CONF.reset)
     self.addCleanup(db.clear_db)
 def setUp(self):
     super(VxlanTypeTest, self).setUp()
     ml2_db.initialize()
     cfg.CONF.set_override("vni_ranges", [TUNNEL_RANGES], group="ml2_type_vxlan")
     cfg.CONF.set_override("vxlan_group", MULTICAST_GROUP, group="ml2_type_vxlan")
     self.driver = type_vxlan.VxlanTypeDriver()
     self.driver.vxlan_vni_ranges = TUNNEL_RANGES
     self.driver._sync_vxlan_allocations()
     self.session = db.get_session()
     self.addCleanup(cfg.CONF.reset)
     self.addCleanup(db.clear_db)
Beispiel #8
0
 def setUp(self):
     super(VxlanTypeTest, self).setUp()
     ml2_db.initialize()
     cfg.CONF.set_override('vni_ranges', [TUNNEL_RANGES],
                           group='ml2_type_vxlan')
     cfg.CONF.set_override('vxlan_group',
                           MULTICAST_GROUP,
                           group='ml2_type_vxlan')
     self.driver = type_vxlan.VxlanTypeDriver()
     self.driver.vxlan_vni_ranges = TUNNEL_RANGES
     self.driver._sync_vxlan_allocations()
     self.session = db.get_session()
     self.addCleanup(cfg.CONF.reset)
     self.addCleanup(db.clear_db)
Beispiel #9
0
    def __init__(self):
        # First load drivers, then initialize DB, then initialize drivers
        self.type_manager = managers.TypeManager()
        self.mechanism_manager = managers.MechanismManager()
        db.initialize()
        self.type_manager.initialize()
        self.mechanism_manager.initialize()

        self._setup_rpc()

        # REVISIT(rkukura): Use stevedore for these?
        self.network_scheduler = importutils.import_object(cfg.CONF.network_scheduler_driver)

        LOG.info(_("Modular L2 Plugin initialization complete"))
Beispiel #10
0
    def __init__(self):
        # First load drivers, then initialize DB, then initialize drivers
        self.type_manager = managers.TypeManager()
        self.mechanism_manager = managers.MechanismManager()
        db.initialize()
        self.type_manager.initialize()
        self.mechanism_manager.initialize()

        self._setup_rpc()

        # REVISIT(rkukura): Use stevedore for these?
        self.network_scheduler = importutils.import_object(
            cfg.CONF.network_scheduler_driver)

        LOG.info(_("Modular L2 Plugin initialization complete"))