jkoelker / quark

This is my fork, Quark is now at https://github.com/rackerlabs/quark
Apache License 2.0
0 stars 2 forks source link

Re-implemented IP policies with offset and length #152

Closed asadoughi closed 11 years ago

asadoughi commented 11 years ago

An IP Policy is defined on a subnet or network definining what IPs to exclude from allocation. From a user perspective an IP Policy looks like the following:

{ "id": , "tenant_id": , "name": "foobar", "subnet_ids": [](list of uuids), "network_ids": [](list of uuids), "exclude": list of dictionaries (e.g. [{"offset": -1, "length": 3}]) }

"exclude" is always required. One of "subnet_ids" or "network_ids" is required. Only one policy is allowed per network.

A default policy is enabled on all subnets if no ip policies are specified on that subnet or its network. This default policy is established via JSON configuration as "default_ip_policy". The default for "default_ip_policy" is no policy.

asadoughi commented 11 years ago

Working on re-doing integration tests currently... do not merge yet, please. Thanks.

asadoughi commented 11 years ago

Integration tests complete with a few things fixed.

jmeridth commented 11 years ago

lgtm