ipam/host-local: support multiple IP ranges
authorCasey Callendrello <casey.callendrello@coreos.com>
Thu, 11 May 2017 15:01:20 +0000 (17:01 +0200)
committerCasey Callendrello <casey.callendrello@coreos.com>
Mon, 12 Jun 2017 19:14:44 +0000 (21:14 +0200)
commit2e9e87732f8475d6c8a2261d4f28ec2057c8aaef
treebfe678643e858ac42af7ab94367029a455a91c45
parent7cda9af13f378c86ed697daef37f9981847b8a50
ipam/host-local: support multiple IP ranges

This change allows the host-local allocator to allocate multiple IPs.
This is intended to enable dual-stack, but is not limited to only two
subnets or separate address families.
13 files changed:
pkg/ip/cidr.go
plugins/ipam/host-local/README.md
plugins/ipam/host-local/backend/allocator/allocator.go
plugins/ipam/host-local/backend/allocator/allocator_test.go
plugins/ipam/host-local/backend/allocator/config.go
plugins/ipam/host-local/backend/allocator/config_test.go [new file with mode: 0644]
plugins/ipam/host-local/backend/allocator/range.go [new file with mode: 0644]
plugins/ipam/host-local/backend/allocator/range_test.go [new file with mode: 0644]
plugins/ipam/host-local/backend/disk/backend.go
plugins/ipam/host-local/backend/store.go
plugins/ipam/host-local/backend/testing/fake_store.go
plugins/ipam/host-local/host_local_test.go
plugins/ipam/host-local/main.go