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