summaryrefslogtreecommitdiffstats
path: root/lcm/lcm/pub/verifyvnfd/vnf_vnfd_schema.json
diff options
context:
space:
mode:
authorhongyuzhao <zhao.hongyu@zte.com.cn>2019-08-19 16:13:07 +0800
committerhongyuzhao <zhao.hongyu@zte.com.cn>2019-08-19 17:04:06 +0800
commit5f43f873d21ee49a3f1a8c2ae7d6252604ad9119 (patch)
treec3ebd7e9923d9940c67a42264bf6cdf4beadac28 /lcm/lcm/pub/verifyvnfd/vnf_vnfd_schema.json
parent8020d45b7bb4cd43c69425ea9c4bb1d88b250e4e (diff)
Add vnfd validity check
Change-Id: I46d607df7e0a61a81e91765396e4df88867e71fa Issue-ID: VFC-1490 Signed-off-by: hongyuzhao <zhao.hongyu@zte.com.cn>
Diffstat (limited to 'lcm/lcm/pub/verifyvnfd/vnf_vnfd_schema.json')
-rw-r--r--lcm/lcm/pub/verifyvnfd/vnf_vnfd_schema.json123
1 files changed, 123 insertions, 0 deletions
diff --git a/lcm/lcm/pub/verifyvnfd/vnf_vnfd_schema.json b/lcm/lcm/pub/verifyvnfd/vnf_vnfd_schema.json
new file mode 100644
index 00000000..784781c0
--- /dev/null
+++ b/lcm/lcm/pub/verifyvnfd/vnf_vnfd_schema.json
@@ -0,0 +1,123 @@
+{
+ "description":"This type represents a vnfd.",
+ "type":"object",
+ "required":[
+
+ ],
+ "properties":{
+ "vdus":{
+ "type":"array",
+ "items":{
+ "type":"object",
+ "required":[
+ "vdu_id",
+ "cps"
+ ],
+ "properties":{
+ "vdu_id":{
+ "type":"string"
+ },
+ "cps":{
+ "type":"array"
+ }
+ }
+ }
+ },
+ "volume_storages":{
+ "type":"array",
+ "items":{
+ "type":"object",
+ "required":[
+ "volume_storage_id"
+ ],
+ "properties":{
+ "volume_storage_id":{
+ "type":"string"
+ }
+ }
+ }
+ },
+ "vls":{
+ "type":"array",
+ "items":{
+ "type":"object",
+ "required":[
+ "vl_id",
+ "properties"
+ ],
+ "properties":{
+ "vl_id":{
+ "type":"string"
+ },
+ "properties":{
+ "type":"object",
+ "required":[
+ "vl_profile",
+ "connectivity_type"
+ ],
+ "properties":{
+ "vl_profile":{
+ "type":"object",
+ "required":[
+ "networkName"
+ ],
+ "properties":{
+ "networkName":{
+ "type":"string"
+ }
+ }
+ },
+ "connectivity_type":{
+ "type":"object"
+ }
+ }
+ }
+ }
+ }
+ },
+ "cps":{
+ "type":"array",
+ "items":{
+ "type":"object",
+ "required":[
+ "cp_id"
+ ],
+ "properties":{
+ "cp_id":{
+ "type":"string"
+ },
+ "properties":{
+ "type":"object",
+ "required":[
+ "protocol_data"
+ ],
+ "properties":{
+ "protocol_data":{
+ "type":"array",
+ "items":{
+ "type":"object",
+ "required":[
+ "address_data"
+ ],
+ "properties":{
+ "address_data":{
+ "type":"object",
+ "required":[
+ "l3_address_data"
+ ],
+ "properties":{
+ "l3_address_data":{
+ "type":"object"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file