Add support to Create/Update subnets in subnet_onboard

Currently Subnet Onboard do not support creating or updating
subnets.
This patch adds this support.

Change-Id: Ib925028a84a86d0707ed24d5edb62bdf552db1e6
Co-Authored-By: Trevor McCasland <TM2086@att.com>
This commit is contained in:
Reedip 2017-10-09 07:01:45 +00:00 committed by Reedip
parent e0cc5efb74
commit 628f970048
2 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,7 @@ ONBOARD_SUBNETS_SPECS = {
RESOURCE_ATTRIBUTE_MAP = {
subnetpool_def.COLLECTION_NAME: {
subnet_def.COLLECTION_NAME: {
'allow_post': True, 'allow_put': True,
'validate': {
'type:list_of_any_key_specs_or_none': ONBOARD_SUBNETS_SPECS
}

View File

@ -0,0 +1,4 @@
---
features:
- The ``subnet_onboard`` API definition now supports creating and updating
subnets