Skip to content

add_next_ip: add allow_duplicates parameter

Compare
Choose a tag to compare
@dclaisse dclaisse released this 07 Dec 13:43
· 7 commits to master since this release
d999cfe

When asking to allocate an IP address, if allow_duplicates is False,
try first to lookup for an IP address matching description in target
subnet, and return it instead of allocating a duplicate IP. This allows
a client to atomically add an IP even if it asks multiple allocations.