From 8ea30a38468373dfd9715d720c085c8a6ac4ee29 Mon Sep 17 00:00:00 2001 From: Ankitkumar Patel Date: Sat, 19 May 2018 12:47:27 -0400 Subject: Fix the bug in translating a policy Fix the bug in translating the VNF policy Issue-ID: OPTFRA-239 Change-Id: I0c9f678f22fec4eb3f5e190ea0080c899fb95445 Signed-off-by: Ankitkumar Patel --- test/policy-local-files/Capacity_vG_1.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/policy-local-files/Capacity_vG_1.json') diff --git a/test/policy-local-files/Capacity_vG_1.json b/test/policy-local-files/Capacity_vG_1.json index f311650..c1682fa 100644 --- a/test/policy-local-files/Capacity_vG_1.json +++ b/test/policy-local-files/Capacity_vG_1.json @@ -1,20 +1,20 @@ { - "service": "capacityPolicy", - "policyName": "oofBeijing.capacityPolicy_vG", + "service": "vim_fit", + "policyName": "OSDF_R2.Capacity_vG_1", "description": "Capacity policy for vG", - "templateVersion": "1702.03", - "version": "oofBeijing", + "templateVersion": "OpenSource.version.1", + "version": "test1", "priority": "5", "riskType": "test", "riskLevel": "2", "guard": "False", "content": { "identity": "capacity_vG", - "policyScope": ["VCPE", "US", "INTERNATIONAL", "ip", "vG", "vim_fit"], + "policyScope": ["VCPE", "US", "INTERNATIONAL", "ip", "vG"], "resources": ["vG"], "capacityProperty": { "controller": "multicloud", - "request": "{\"vCPU\": 10, \"Memory\": {\"quantity\": 16, \"unit\": \"GB\"}, \"Storage\": {\"quantity\": 40, \"unit\": \"GB\"}}" + "request": "{\"vCPU\": 10, \"Memory\": {\"quantity\": {\"get_param\": \"REQUIRED_MEM\"}, \"unit\": \"GB\"}, \"Storage\": {\"quantity\": {\"get_param\": \"REQUIRED_DISK\"}, \"unit\": \"GB\"}}" }, "policyType": "vim_fit", "applicableResources": "any" -- cgit 1.2.3-korg