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:
@@ -20,7 +20,7 @@ from quantum.api.v2 import attributes
|
|||||||
|
|
||||||
EXTENDED_ATTRIBUTES_2_0 = {
|
EXTENDED_ATTRIBUTES_2_0 = {
|
||||||
'subnets': {
|
'subnets': {
|
||||||
"allocation_pools": {'allow_post': False, 'allow_put': False,
|
"allocation_pools": {'allow_post': True, 'allow_put': True,
|
||||||
'default': attributes.ATTR_NOT_SPECIFIED,
|
'default': attributes.ATTR_NOT_SPECIFIED,
|
||||||
'is_visible': False},
|
'is_visible': False},
|
||||||
"enable_dhcp": {'allow_post': False, 'allow_put': False,
|
"enable_dhcp": {'allow_post': False, 'allow_put': False,
|
||||||
@@ -34,7 +34,6 @@ class Subnets_quark(extensions.ExtensionDescriptor):
|
|||||||
"""Extends subnets for quark API purposes.
|
"""Extends subnets for quark API purposes.
|
||||||
|
|
||||||
* Shunts enable_dhcp to false
|
* Shunts enable_dhcp to false
|
||||||
* Disables allocation_pools
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user