Add port of SR-IOV NIC support
[vfc/gvnfm/vnflcm.git] / lcm / lcm / samples / tests.py
index 3a923ab..42d96b0 100644 (file)
@@ -39,10 +39,10 @@ inst_res_data = {
                     "num_virtual_cpu": "2",
                     "cpu_architecture": "generic"
                 },
-                "virtual_storage": {
-                    "type_of_storage": "root",
-                    "size_of_storage": "40 GB"
-                },
+            },
+            "virtual_storage": {
+                "type_of_storage": "root",
+                "size_of_storage": "40 GB"
             },
             "artifacts": [
                 {
@@ -154,7 +154,7 @@ inst_res_data = {
         "external_cps": [
             {
                 "key_name": "sriov_plane",
-                "cp_id": "SRIOV_Port"
+                "cp_id": "sriov-support"
             }
         ],
         "forward_cps": [
@@ -215,15 +215,15 @@ inst_res_data = {
                         },
                     }
                 ],
-                "vnic_type": "normal",
+                "vnic_type": "direct",
                 "role": "root",
                 "virtual_network_interface_requirements": [
                     {
-                        "requirement": {
-                            "SRIOV": "true"
+                        "network_interface_requirements": {
+                            "interfaceType": '{"schema-version": "0", "schema-location":"", "platform-id": "generic", "mandatory": false, "configuration-value": "SR-IOV"}'
                         },
                         "support_mandatory": False,
-                        "name": "sriov",
+                        "name": "sriov-support",
                         "description": "sriov"
                     }
                 ],
@@ -305,26 +305,30 @@ c4_data_create_port = {
     "id": "456"
 }
 
-c5_data_get_flavor = [{
-    "flavors": {
-        "flavor": [
+c5_data_get_flavor = {
+    "flavor": [
+        {
+            "flavor-id": "111111",
+            "flavor-name": "onap.large",
+            "hpa-capabilities":
             {
-                "flavor-id": "111111",
-                "hpa-capabilities": [
+                "hpa-capability":
+                [
                     {
                         "hpa-capability-id": "1243",
-                        "hpa-feature-attributes": [
+                        "hpa-feature-attributes":
+                        [
                             {
                                 "hpa-attribute-key": "memoryPageSize",
-                                "hpa-attribute-value": {"value": 2, "unit": "MB"}
+                                "hpa-attribute-value": '{"value": "2", "unit": "MB"}'
                             }
                         ]
                     }
                 ]
             }
-        ]
-    }
-}]
+        }
+    ]
+}
 
 c6_data_list_image = {
     "images": [