Implement of reporting port instance data from GVNFM to NFVO
[vfc/gvnfm/vnflcm.git] / lcm / lcm / nf / tests / const.py
index c950951..c0cdd56 100644 (file)
@@ -81,6 +81,13 @@ inst_req_data = {
                         "resourceProviderId": "resourceProvider_1",
                         "resourceId": "resource_1",
                         "vimLevelResourceType": "vimLevelResourceType_1",
+                        "tenant": "f7b17b0afd374d48a322e95cf4258eec",
+                        "ipAddress": "10.0.101.1",
+                        "macAddress": "fa:16:3e:a3:ac:5e",
+                        "instId": "fb86af68-be48-4804-a454-3892333b9d4a",
+                        "portid": "2dddd81b-a8d4-41f4-8a90-8f334bbbbe3b",
+                        "networkid": "7d907188-46f0-4aa7-b61b-f2d349554a1b",
+                        "subnetworkid": "08ef29e0-5e61-436a-a9ee-6a4ac502a622"
                     }
                 }
             ]
@@ -638,10 +645,10 @@ vnfdModel = {
                 "connectivity_type": {
                     "layer_protocol": "ipv4",
                 },
-                "dns_nameservers": "test",
-                "host_routes": "test",
+                "dns_nameservers": ["test"],
+                "host_routes": [],
             },
-            "route_external": "test",
+            "route_external": False
         }
     ],
     "cps": [
@@ -1166,7 +1173,22 @@ multiple_vnf_lcm_op = [{
 #     }
 # }
 vnfd_for_scale = {
-    "volume_storages": [],
+    "volume_storages": [
+        {
+            "volume_storage_id": "test",
+            "properties": {
+                "location_info": {
+                    "vimid": "vim_1",
+                    "tenant": "chinamobile",
+                    "availability_zone": "test",
+                },
+                "volume_name": "test",
+                "custom_volume_type": "test",
+                "size_of_storage": "\"10 GB\"",
+            },
+            "image_file": "test",
+        },
+    ],
     "vnf": {
         "type": "tosca.nodes.nfv.VNF",
         "requirements": {
@@ -1202,7 +1224,16 @@ vnfd_for_scale = {
         {
             "description": "",
             "virtual_storages": [
-
+                {
+                    "virtual_storage_id": "test",
+                    "type_of_storage": "ephemeral",
+                    "size_of_storage": "10 GB",
+                }
+            ],
+            "volume_storages": [
+                {
+                    "volume_storage_id": "test",
+                }
             ],
             "vdu_id": "sunshine",
             "artifacts": [
@@ -1222,11 +1253,6 @@ vnfd_for_scale = {
                 "virtual_memory": {
                     "virtual_mem_size": "4096 MB"
                 },
-                "virtual_local_storage": [
-                    {
-                        "size_of_storage": "40 GB"
-                    }
-                ]
             },
             "vls": [
 
@@ -1403,7 +1429,16 @@ vnfd_for_scale = {
             "description": "",
             "vdu_id": "sunshine",
             "properties": {
-                "trunk_mode": "false"
+                "trunk_mode": "false",
+                "protocol_data": [{
+                    "address_data": {
+                        "address_type": "ip_address",
+                        "l3_address_data": {
+                            "floating_ip_activated": False,
+                            "ip_address_assignment": False
+                        }
+                    }
+                }]
             },
             "cp_id": "ext_cp",
             "cpd_id": "ext_cp"