diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-20 14:35:39 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2020-03-23 07:47:18 +0000 |
commit | ebe2b4d5e616a69b374fa9214255c971e014d144 (patch) | |
tree | 081f591d03022d15a8356793615ddb8805cc1bdd /tutorials/vFWDT/policies | |
parent | ac4ab50bdf312a1824388acbb9908c31f2b39c1a (diff) |
Pretty print json files in tutorials/
Fixing json files to conform to linter rules.
Change-Id: Ib71831d153f32133eef7deb95804e9d96240f5c7
Issue-ID: INT-1482
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'tutorials/vFWDT/policies')
-rw-r--r-- | tutorials/vFWDT/policies/rules/QueryPolicy_vFW_TD.json | 70 | ||||
-rw-r--r-- | tutorials/vFWDT/policies/rules/vnfPolicy_vFW_TD.json | 40 | ||||
-rw-r--r-- | tutorials/vFWDT/policies/rules/vnfPolicy_vPGN_TD.json | 40 |
3 files changed, 88 insertions, 62 deletions
diff --git a/tutorials/vFWDT/policies/rules/QueryPolicy_vFW_TD.json b/tutorials/vFWDT/policies/rules/QueryPolicy_vFW_TD.json index 300ac99d..312ad651 100644 --- a/tutorials/vFWDT/policies/rules/QueryPolicy_vFW_TD.json +++ b/tutorials/vFWDT/policies/rules/QueryPolicy_vFW_TD.json @@ -1,32 +1,46 @@ { - "service": "queryPolicy", - "policyName": "OSDF_DUBLIN.QueryPolicy_vFW_TD", - "description": "Query policy for vFW TD", - "templateVersion": "OpenSource.version.1", - "version": "OpenSource.version.1", - "priority": "3", - "riskType": "test", - "riskLevel": "2", - "guard": "False", - "content": { - "queryProperties": [ - {"attribute":"customerLatitude", "attribute_location": "customerLatitude", "value": 1.1}, - {"attribute":"customerLongitude", "attribute_location": "customerLongitude", "value": 2.2}, - {"attribute":"chosen_region", "attribute_location": "chosenRegion"}, - {"attribute":"chosen_customer_id", "attribute_location": "chosenCustomerId"} - ], - "policyScope": [ - "td", - "us", - "vFW-SINK", - "vPGN" - ], - "policyType": "request_param_query", - "serviceName": "vFW_TD", - "identity": "vFW_TD_Query_Policy", - "resources": [ + "service": "queryPolicy", + "policyName": "OSDF_DUBLIN.QueryPolicy_vFW_TD", + "description": "Query policy for vFW TD", + "templateVersion": "OpenSource.version.1", + "version": "OpenSource.version.1", + "priority": "3", + "riskType": "test", + "riskLevel": "2", + "guard": "False", + "content": { + "queryProperties": [ + { + "attribute": "customerLatitude", + "attribute_location": "customerLatitude", + "value": 1.1 + }, + { + "attribute": "customerLongitude", + "attribute_location": "customerLongitude", + "value": 2.2 + }, + { + "attribute": "chosen_region", + "attribute_location": "chosenRegion" + }, + { + "attribute": "chosen_customer_id", + "attribute_location": "chosenCustomerId" + } + ], + "policyScope": [ + "td", + "us", "vFW-SINK", "vPGN" - ] - } + ], + "policyType": "request_param_query", + "serviceName": "vFW_TD", + "identity": "vFW_TD_Query_Policy", + "resources": [ + "vFW-SINK", + "vPGN" + ] + } } diff --git a/tutorials/vFWDT/policies/rules/vnfPolicy_vFW_TD.json b/tutorials/vFWDT/policies/rules/vnfPolicy_vFW_TD.json index 8df45e33..240c7325 100644 --- a/tutorials/vFWDT/policies/rules/vnfPolicy_vFW_TD.json +++ b/tutorials/vFWDT/policies/rules/vnfPolicy_vFW_TD.json @@ -16,26 +16,32 @@ "vFW-SINK" ], "policyType": "vnfPolicy", - "resources": ["vFW-SINK"], + "resources": [ + "vFW-SINK" + ], "applicableResources": "any", - "vnfProperties": [{ - "inventoryProvider": "aai", - "serviceType": "", - "inventoryType": "vfmodule", - "customerId": { - "get_param": "chosen_customer_id" - }, - "equipmentRole": "", - "attributes": { - "orchestrationStatus": ["active"], - "provStatus": "ACTIVE", - "cloudRegionId": { - "get_param": "chosen_region" + "vnfProperties": [ + { + "inventoryProvider": "aai", + "serviceType": "", + "inventoryType": "vfmodule", + "customerId": { + "get_param": "chosen_customer_id" }, - "service_instance_id": { - "get_param": "service_id" + "equipmentRole": "", + "attributes": { + "orchestrationStatus": [ + "active" + ], + "provStatus": "ACTIVE", + "cloudRegionId": { + "get_param": "chosen_region" + }, + "service_instance_id": { + "get_param": "service_id" + } } } - }] + ] } } diff --git a/tutorials/vFWDT/policies/rules/vnfPolicy_vPGN_TD.json b/tutorials/vFWDT/policies/rules/vnfPolicy_vPGN_TD.json index 452fdb63..277d7d0d 100644 --- a/tutorials/vFWDT/policies/rules/vnfPolicy_vPGN_TD.json +++ b/tutorials/vFWDT/policies/rules/vnfPolicy_vPGN_TD.json @@ -16,26 +16,32 @@ "vPGN" ], "policyType": "vnfPolicy", - "resources": ["vPGN"], + "resources": [ + "vPGN" + ], "applicableResources": "any", - "vnfProperties": [{ - "inventoryProvider": "aai", - "serviceType": "", - "inventoryType": "vfmodule", - "customerId": { - "get_param": "chosen_customer_id" - }, - "equipmentRole": "", - "attributes": { - "orchestrationStatus": ["active"], - "provStatus": "ACTIVE", - "cloudRegionId": { - "get_param": "chosen_region" + "vnfProperties": [ + { + "inventoryProvider": "aai", + "serviceType": "", + "inventoryType": "vfmodule", + "customerId": { + "get_param": "chosen_customer_id" }, - "service_instance_id": { - "get_param": "service_id" + "equipmentRole": "", + "attributes": { + "orchestrationStatus": [ + "active" + ], + "provStatus": "ACTIVE", + "cloudRegionId": { + "get_param": "chosen_region" + }, + "service_instance_id": { + "get_param": "service_id" + } } } - }] + ] } } |