From f173849ec0e08930f7c546543a8dd6b14954c308 Mon Sep 17 00:00:00 2001 From: krishnaa96 Date: Wed, 7 Oct 2020 17:01:58 +0530 Subject: Return empty solution if no candidate found Update policy filter for NSI selection Return empty solution instead of error if no candidate is found Issue-ID: OPTFRA-855 Signed-off-by: krishnaa96 Change-Id: I2f5ecbb9464fef3dbc844339968f6cdb1123b2b5 --- .../slice-selection-files/vnf_policy_nsi_shared_case.json | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'test/policy-local-files/slice-selection-files/vnf_policy_nsi_shared_case.json') diff --git a/test/policy-local-files/slice-selection-files/vnf_policy_nsi_shared_case.json b/test/policy-local-files/slice-selection-files/vnf_policy_nsi_shared_case.json index 9932cc1..0446748 100644 --- a/test/policy-local-files/slice-selection-files/vnf_policy_nsi_shared_case.json +++ b/test/policy-local-files/slice-selection-files/vnf_policy_nsi_shared_case.json @@ -9,8 +9,8 @@ "identity":"vnf_URLLC", "resources":["embb-nst"], "scope":[ - "OSDF_GUILIN", - "shared" + "shared,reuse", + "shared,create_new" ], "services":[ "embb-nst" @@ -19,8 +19,8 @@ "vnfProperties":[ { "attributes":{ - "modelInvariantId":"bfbg3636-e39c-iidd-0987-27c28f4oo3", - "modelVersionId":"bfbg3636-e39c-iidd-0987-27c28f4d33", + "modelInvariantId":{"get_param":"model_invariant_id"}, + "modelVersionId":{"get_param":"model_version_id"}, "environment-context":"shared", "service-role":"nsi" }, @@ -33,6 +33,11 @@ }, { "attributes":{ + "service_profile": { + "latency": {"value": {"get_param": "latency"}, "operator": "lte"}, + "reliability": {"value": {"get_param": "reliability"}, "operator": "gte"} + }, + "subnets": { "core":{ "latency":{ "max":{"get_param":"latency"}, @@ -72,6 +77,7 @@ ] } } + } }, "inventoryProvider":"generator", "inventoryType":"slice_profiles", -- cgit 1.2.3-korg