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'] |