pyIPAM - Docker Plugin for IPAM written in Python
Jacek Kowalski
2020-05-18 f0d935291715742b2e9f71c1b5e1ecbf23d02eff
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']