ipam/host-local: Accept ip ranges as a runtime argument

This allows for the runtime to dynamically request IP ranges.

Fixes: #95
This commit is contained in:
Casey Callendrello
2017-12-08 13:15:16 +01:00
parent 03e316b07b
commit b03d23a4fa
3 changed files with 36 additions and 6 deletions

View File

@ -120,6 +120,10 @@ The following [args conventions](https://github.com/containernetworking/cni/blob
* `ips` (array of strings): A list of custom IPs to attempt to allocate
The following [Capability Args](https://github.com/containernetworking/cni/blob/master/CONVENTIONS.md) are supported:
* `ipRanges`: The exact same as the `ranges` array - a list of address pools
### Custom IP allocation
For every requested custom IP, the `host-local` allocator will request that IP
if it falls within one of the `range` objects. Thus it is possible to specify