fix configruaration-value to configruarationValue, etc
Change-Id: I3b3b5a65e1b93b03ec8a31f44333606fb46686de
Issue-ID: VFC-1158
Signed-off-by: maopengzhang <zhang.maopeng1@zte.com.cn>
"virtual_network_interface_requirements": [
{
"network_interface_requirements": {
"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",
},
"support_mandatory": False,
"name": "SRIOV_Port",
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"]
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":
vnic_type = ignore_case_get(port["properties"], "vnic_type")
if vnic_type == "":
if interfaceType == "SR-IOV":
"virtual_network_interface_requirements": [
{
"network_interface_requirements": {
"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",
},
"support_mandatory": False,
"name": "sriov-support",