From: kbsub Date: Thu, 17 Oct 2019 16:26:56 +0000 (+0000) Subject: VCD feature 7193-provider_nerwork X-Git-Tag: v7.0.0rc1~21 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F57%2F8057%2F2;p=osm%2FNBI.git VCD feature 7193-provider_nerwork Change-Id: Ia8ea131bd6c0ebe30069aa151ea3bc3f05e7ecfc Signed-off-by: kbsub --- diff --git a/osm_nbi/validation.py b/osm_nbi/validation.py index c3e37f7..c6821c5 100644 --- a/osm_nbi/validation.py +++ b/osm_nbi/validation.py @@ -172,6 +172,17 @@ ip_profile_update_schema = { "additionalProperties": False } +provider_network_schema = { + "title": "provider network validation schame", + "$schema": "http://json-schema.org/draft-04/schema#", + "type": "object", + "properties": { + "physical-network": name_schema, + "segmentation-id": name_schema, + }, + "additionalProperties": False +} + ns_instantiate_internal_vld = { "title": "ns action instantiate input schema for vdu", "$schema": "http://json-schema.org/draft-04/schema#", @@ -181,6 +192,7 @@ ns_instantiate_internal_vld = { "vim-network-name": name_schema, "vim-network-id": name_schema, "ip-profile": ip_profile_update_schema, + "provider-network": provider_network_schema, "internal-connection-point": { "type": "array", "minItems": 1, @@ -270,6 +282,7 @@ ns_instantiate = { "ns-net": object_schema, "wimAccountId": {"OneOf": [id_schema, bool_schema, null_schema]}, "ip-profile": object_schema, + "provider-network": provider_network_schema, "vnfd-connection-point-ref": { "type": "array", "minItems": 1,