Ejemplo n.º 1
0
 def test_create_new_initial_pool(self):
     pool_group_name = 'test_group_name'
     pool_group = IPPoolGroup()
     new_group = pool_group.create_new_pool_group(pool_group_name)
     ip = '192.168.1.1'
     mask = '255.255.0.0'
     initial_pool = IPInitialPool()
     pool = initial_pool.create_new_initial_pool(new_group.group_id, ip, mask)
     assert IPAddress(pool.cidr).value == IPAddress(ip).value
Ejemplo n.º 2
0
 def create_initial_pool(self, ip, mask):
     initial_pool = IPInitialPool()
     return initial_pool.create_new_initial_pool(self.pool_group.group_id, ip, mask)