From a014bc832ce5e59b6dd52a6ac9dd5cea03a0ceec Mon Sep 17 00:00:00 2001 From: Dileep Ranganathan Date: Wed, 19 Sep 2018 09:08:21 -0700 Subject: Add Optimization policy for hpa_score Added policy for hpa_score optimization function for vCPE with weights. Change-Id: Ic6f3081510cbe94c519bcb7b2a7a99137bc29e12 Issue-ID: OPTFRA-313 Signed-off-by: Dileep Ranganathan --- .../pdp-has-vcpe-good/Placement_Optimization_1.json | 6 ++++++ test/policy-local-files/Placement_Optimization_1.json | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'test') diff --git a/test/functest/simulators/policy/response-payloads/pdp-has-vcpe-good/Placement_Optimization_1.json b/test/functest/simulators/policy/response-payloads/pdp-has-vcpe-good/Placement_Optimization_1.json index b81b15f..ab3c586 100644 --- a/test/functest/simulators/policy/response-payloads/pdp-has-vcpe-good/Placement_Optimization_1.json +++ b/test/functest/simulators/policy/response-payloads/pdp-has-vcpe-good/Placement_Optimization_1.json @@ -24,6 +24,12 @@ "parameter": "distance", "weight": "1", "operator": "product" + }, + { + "resources": ["vG"], + "parameter": "hpa_score", + "weight": "200", + "operator": "product" } ], "operator": "sum" diff --git a/test/policy-local-files/Placement_Optimization_1.json b/test/policy-local-files/Placement_Optimization_1.json index b81b15f..ab3c586 100644 --- a/test/policy-local-files/Placement_Optimization_1.json +++ b/test/policy-local-files/Placement_Optimization_1.json @@ -24,6 +24,12 @@ "parameter": "distance", "weight": "1", "operator": "product" + }, + { + "resources": ["vG"], + "parameter": "hpa_score", + "weight": "200", + "operator": "product" } ], "operator": "sum" -- cgit 1.2.3-korg