예제 #1
0
 def setUp(self):
     super(VxlanTypeMultiRangeTest, self).setUp()
     db.configure_db()
     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(db.clear_db)
예제 #2
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)
예제 #3
0
 def setUp(self):
     super(VxlanTypeTest, self).setUp()
     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()