From dcdf9d8f98b6f472b37a264d93ede2845e39853c Mon Sep 17 00:00:00 2001 From: Ankitkumar Patel Date: Mon, 26 Mar 2018 12:34:28 -0400 Subject: Inserted policy tosca models and examples Uploaded the policy tosca models and policy examples for HAS. Issue-ID: OPTFRA-27 Change-Id: I96ae70c5fe34ce7f40f461801e149d81afa52ea3 Signed-off-by: Ankitkumar Patel --- .../has_policies_r2/Placement_Optimization_1.json | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 test/policy-local-files/has_policies_r2/Placement_Optimization_1.json (limited to 'test/policy-local-files/has_policies_r2/Placement_Optimization_1.json') diff --git a/test/policy-local-files/has_policies_r2/Placement_Optimization_1.json b/test/policy-local-files/has_policies_r2/Placement_Optimization_1.json new file mode 100644 index 0000000..f8b0a6f --- /dev/null +++ b/test/policy-local-files/has_policies_r2/Placement_Optimization_1.json @@ -0,0 +1,36 @@ +{ + "service": "PlacementOptimizationPolicy", + "policyName": "oofBeijing.PlacementOptimizationPolicy_vGMuxInfra", + "description": "Placement Optimization Policy for vGMuxInfra", + "templateVersion": "1702.03", + "version": "oofBeijing", + "priority": "5", + "riskType": "test", + "riskLevel": "3", + "guard": "False", + "content": { + "objectiveParameter": { + "parameterAttributes": [ + { + "resource": ["vGMuxInfra"], + "customerLocationInfo": "customer_loc", + "parameter": "distance", + "weight": "1", + "operator": "product" + }, + { + "resource": ["vG"], + "customerLocationInfo": "customer_loc", + "parameter": "distance", + "weight": "1", + "operator": "product" + } + ], + "operator": "sum" + }, + "identity": "optimization", + "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra", "vG", "placementOptimization"], + "policyType": "placementOptimization", + "objective": "minimize" + } +} -- cgit 1.2.3-korg