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()
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)
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)
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()