VCD feature 7193-provider_nerwork 57/8057/2
authorkbsub <subair.basheer@riftio.com>
Thu, 17 Oct 2019 16:26:56 +0000 (16:26 +0000)
committerUbuntu <subair.basheer@riftio.com>
Wed, 6 Nov 2019 12:01:41 +0000 (12:01 +0000)
Change-Id: Ia8ea131bd6c0ebe30069aa151ea3bc3f05e7ecfc
Signed-off-by: kbsub <subair.basheer@riftio.com>
osm_nbi/validation.py

index c3e37f7..c6821c5 100644 (file)
@@ -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,