Пример #1
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()
Пример #2
0
 def setUp(self):
     super(GreTypeTest, self).setUp()
     db.configure_db()
     self.driver = type_gre.GreTypeDriver()
     self.driver.gre_id_ranges = TUNNEL_RANGES
     self.driver._sync_gre_allocations()
     self.session = db.get_session()
     self.addCleanup(db.clear_db)
Пример #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)
Пример #4
0
 def setUp(self):
     super(GreTypeMultiRangeTest, self).setUp()
     self.driver = type_gre.GreTypeDriver()
     self.driver.gre_id_ranges = self.TUNNEL_MULTI_RANGES
     self.driver._sync_gre_allocations()
     self.session = db.get_session()