Allows allocation_pools in subnet create

Re-enables allocation pool POST and PUT on subnet REST verbs. Currently
unimplemented, but at least we're honoring part of the spec.
This commit is contained in:
Matt Dietz
2013-05-10 15:57:17 +00:00
parent 85821b89d3
commit 4908c99293

View File

@@ -20,7 +20,7 @@ from quantum.api.v2 import attributes
EXTENDED_ATTRIBUTES_2_0 = {
'subnets': {
"allocation_pools": {'allow_post': False, 'allow_put': False,
"allocation_pools": {'allow_post': True, 'allow_put': True,
'default': attributes.ATTR_NOT_SPECIFIED,
'is_visible': False},
"enable_dhcp": {'allow_post': False, 'allow_put': False,
@@ -34,7 +34,6 @@ class Subnets_quark(extensions.ExtensionDescriptor):
"""Extends subnets for quark API purposes.
* Shunts enable_dhcp to false
* Disables allocation_pools
"""
@classmethod