fix configruaration-value issue 61/72361/1
authormaopengzhang <zhang.maopeng1@zte.com.cn>
Sat, 10 Nov 2018 09:48:05 +0000 (17:48 +0800)
committermaopengzhang <zhang.maopeng1@zte.com.cn>
Sat, 10 Nov 2018 09:48:05 +0000 (17:48 +0800)
fix configruaration-value to configruarationValue, etc

Change-Id: I3b3b5a65e1b93b03ec8a31f44333606fb46686de
Issue-ID: VFC-1158
Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
lcm/lcm/nf/const.py
lcm/lcm/pub/vimapi/adaptor.py
lcm/lcm/samples/tests.py

index 9cedf4b..4a71a4d 100644 (file)
@@ -732,7 +732,7 @@ vnfdModel = {
                 "virtual_network_interface_requirements": [
                     {
                         "network_interface_requirements": {
-                            "interfaceType": '{"schema-version": "0", "schema-location":"", "platform-id": "generic", "mandatory": false, "configuration-value": "SR-IOV"}'
+                            "interfaceType": '{"schemaVersion": "0", "schemaLocation":"", "platformId": "generic", "mandatory": false, "configurationValue": "SR-IOV"}'
                         },
                         "support_mandatory": False,
                         "name": "SRIOV_Port",
index 8542e11..2680ff9 100644 (file)
@@ -261,7 +261,7 @@ def create_port(vim_cache, res_cache, data, port, do_notify, res_type):
         ip_address.extend(fixed_ip_address)
     for one_virtual_network_interface in port["properties"].get("virtual_network_interface_requirements", []):
         interfaceTypeString = one_virtual_network_interface["network_interface_requirements"]["interfaceType"]
-        interfaceType = json.loads(interfaceTypeString)["configuration-value"]
+        interfaceType = json.loads(interfaceTypeString)["configurationValue"]
         vnic_type = ignore_case_get(port["properties"], "vnic_type")
         if vnic_type == "":
             if interfaceType == "SR-IOV":
index d77845b..dba0878 100644 (file)
@@ -232,7 +232,7 @@ inst_res_data = {
                 "virtual_network_interface_requirements": [
                     {
                         "network_interface_requirements": {
-                            "interfaceType": '{"schema-version": "0", "schema-location":"", "platform-id": "generic", "mandatory": false, "configuration-value": "SR-IOV"}'
+                            "interfaceType": '{"schemaVersion": "0", "schemaLocation":"", "platformId": "generic", "mandatory": false, "configurationValue": "SR-IOV"}'
                         },
                         "support_mandatory": False,
                         "name": "sriov-support",