pyIPAM - Docker Plugin for IPAM written in Python
Jacek Kowalski
2026-03-11 84f4c254b4cc0b0bb3307ec742edf9555c6fd475
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']