pyIPAM - Docker Plugin for IPAM written in Python
Jacek Kowalski
2020-05-03 659253a65545309d3cdd9280d88d011d45f0014b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from .Ipam import *
 
spaces = {
    'local': Space('local'),
    'global': Space('global'),
}
 
 
def get_space_pool(full_id: str):
    space_id, pool_id = full_id.rsplit('-', 2)
    space = spaces[space_id]
    return space, space.get_pool(pool_id)
 
 
__all__ = ['spaces', 'get_space_pool']