From 628f970048d37f02daf864d2592bb0c08fd4f823 Mon Sep 17 00:00:00 2001 From: Reedip Date: Mon, 9 Oct 2017 07:01:45 +0000 Subject: [PATCH] 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 --- neutron_lib/api/definitions/subnet_onboard.py | 1 + ...-onboard-allow-create-update-subnets-74a4be6e9e97bbb6.yaml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 releasenotes/notes/subnet-onboard-allow-create-update-subnets-74a4be6e9e97bbb6.yaml diff --git a/neutron_lib/api/definitions/subnet_onboard.py b/neutron_lib/api/definitions/subnet_onboard.py index f21c779ce..a57feef35 100644 --- a/neutron_lib/api/definitions/subnet_onboard.py +++ b/neutron_lib/api/definitions/subnet_onboard.py @@ -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 } diff --git a/releasenotes/notes/subnet-onboard-allow-create-update-subnets-74a4be6e9e97bbb6.yaml b/releasenotes/notes/subnet-onboard-allow-create-update-subnets-74a4be6e9e97bbb6.yaml new file mode 100644 index 000000000..8712ed5c8 --- /dev/null +++ b/releasenotes/notes/subnet-onboard-allow-create-update-subnets-74a4be6e9e97bbb6.yaml @@ -0,0 +1,4 @@ +--- +features: + - The ``subnet_onboard`` API definition now supports creating and updating + subnets