diff options
author | 2022-02-16 15:37:35 +0100 | |
---|---|---|
committer | 2022-02-21 12:45:16 +0100 | |
commit | 142b5372b98ac9fbe0e8c847d90a52952e09f948 (patch) | |
tree | d0555aa547302d1fab1795747a1ba7524fad799c /tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies | |
parent | 554afbb5729fe19b6d978d4add1b4b7c6e34ef7a (diff) |
Make Network Slicing usecase more user friendly
It was required to create a directory containing all files related to Network Slicing in order to make the usecase more user friendly. This change contains policies with already made automated scripts.
Issue-ID: INT-2069
Signed-off-by: Maciej Lisowski <m.lisowski2@partner.samsung.com>
Change-Id: Ia6f003a2dbff53f32a2fc0614bb646302b6d080b
Diffstat (limited to 'tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies')
4 files changed, 151 insertions, 0 deletions
diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/optimization_nssi.json b/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/optimization_nssi.json new file mode 100644 index 00000000..9d744e92 --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/optimization_nssi.json @@ -0,0 +1,37 @@ +{ + "{{ goal }}_{{ attribute }}_{{ service_name }}": { + "metadata": { + "policy-id": "{{ goal }}_{{ attribute }}_{{ service_name }}", + "policy-version": 1 + }, + "properties": { + "geography": [], + "identity": "optimization", + "goal": "{{ goal }}", + "operation_function": { + "operator": "sum", + "operands": [ + { + "function": "attribute", + "params": { + "attribute": "{{ attribute }}", + "demand": "{{ service_name }}" + } + } + ] + }, + "resources": [ + "{{ service_name }}" + ], + "scope": [ + "OSDF_GUILIN" + ], + "services": [ + "{{ service_name }}" + ] + }, + "type": "onap.policies.optimization.resource.OptimizationPolicy", + "type_version": "2.0.0", + "version": "1.0.0" + } +} diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/query_nssi.json b/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/query_nssi.json new file mode 100644 index 00000000..5de6b58c --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/query_nssi.json @@ -0,0 +1,39 @@ +{ + "queryPolicy_{{ service_name }}": { + "type": "onap.policies.optimization.service.QueryPolicy", + "version": "1.0.0", + "type_version": "1.0.0", + "metadata": { + "policy-id": "queryPolicy_{{ service_name }}", + "policy-version": 1 + }, + "properties": { + "scope": [ + "OSDF_GUILIN" + ], + "services": [ + "{{ service_name }}" + ], + "geography": [], + "identity": "queryPolicy_{{ service_name }}", + "queryProperties": [ + { + "attribute": "latency", + "attribute_location": "latency" + }, + { + "attribute": "reliability", + "attribute_location": "reliability" + }, + { + "attribute": "model_invariant_id", + "attribute_location": "invariantUUID" + }, + { + "attribute": "model_version_id", + "attribute_location": "UUID" + } + ] + } + } +} diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/threshold_nssi.json b/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/threshold_nssi.json new file mode 100644 index 00000000..53a59773 --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/threshold_nssi.json @@ -0,0 +1,34 @@ +{ + "Threshold_{{ service_name }}": { + "metadata": { + "policy-id": "Threshold_{{ service_name }}", + "policy-version": 1 + }, + "properties": { + "geography": [], + "identity": "Threshold_{{ service_name }}", + "resources": [ + "{{ service_name }}" + ], + "scope": [ + "OSDF_GUILIN" + ], + "services": [ + "{{ service_name }}" + ], + "thresholdProperties": [ + { + "attribute": "latency", + "operator": "lte", + "threshold": { + "get_param": "latency" + }, + "unit": "ms" + } + ] + }, + "type": "onap.policies.optimization.resource.ThresholdPolicy", + "type_version": "1.0.0", + "version": "1.0.0" + } +} diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/vnf_nssi.json b/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/vnf_nssi.json new file mode 100644 index 00000000..73388a38 --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/nssi_policies/vnf_nssi.json @@ -0,0 +1,41 @@ +{ + "vnfPolicy_{{ service_name }}": { + "metadata": { + "policy-id": "vnfPolicy_{{ service_name }}", + "policy-version": 1 + }, + "properties": { + "identity": "vnf_{{ service_name }}", + "resources": [ + "{{ service_name }}" + ], + "scope": [ + "OSDF_GUILIN" + ], + "services": [ + "{{ service_name }}" + ], + "geography": [], + "vnfProperties": [ + { + "attributes": { + "modelInvariantId": { + "get_param": "model_invariant_id" + }, + "modelVersionId": { + "get_param": "model_version_id" + }, + "service-function": "shared", + "service-role": "nssi" + }, + "inventoryProvider": "aai", + "inventoryType": "nssi", + "unique": "true" + } + ] + }, + "type": "onap.policies.optimization.resource.VnfPolicy", + "type_version": "1.0.0", + "version": "1.0.0" + } +} |