diff options
author | Maciej Lisowski <m.lisowski2@partner.samsung.com> | 2022-02-16 15:37:35 +0100 |
---|---|---|
committer | Maciej Lisowski <m.lisowski2@partner.samsung.com> | 2022-02-21 12:45:16 +0100 |
commit | 142b5372b98ac9fbe0e8c847d90a52952e09f948 (patch) | |
tree | d0555aa547302d1fab1795747a1ba7524fad799c /tutorials/5GE2ENetworkSlicing/common/policies/nst_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/nst_policies')
4 files changed, 160 insertions, 0 deletions
diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/attribute_policy_nst.json b/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/attribute_policy_nst.json new file mode 100644 index 00000000..f9b1099b --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/attribute_policy_nst.json @@ -0,0 +1,41 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", + "topology_template": { + "policies": [ + { + "Threshold_nst": { + "metadata": { + "policy-id": "Threshold_nst", + "policy-version": 1 + }, + "properties": { + "geography": [], + "identity": "nst_Threshold", + "resources": [ + "nst" + ], + "scope": [ + "OSDF_GUILIN" + ], + "services": [ + "nst" + ], + "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/nst_policies/optimization_policy_nst.json b/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/optimization_policy_nst.json new file mode 100644 index 00000000..534d1399 --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/optimization_policy_nst.json @@ -0,0 +1,44 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", + "topology_template": { + "policies": [ + { + "nst_minimize_latency": { + "metadata": { + "policy-id": "nst_minimize_latency", + "policy-version": 1 + }, + "properties": { + "geography": [], + "identity": "optimization", + "goal": "minimize", + "operation_function": { + "operator": "sum", + "operands": [ + { + "function": "attribute", + "params": { + "attribute": "latency", + "demand": "nst" + } + } + ] + }, + "resources": [ + "nst" + ], + "scope": [ + "OSDF_GUILIN" + ], + "services": [ + "nst" + ] + }, + "type": "onap.policies.optimization.resource.OptimizationPolicy", + "type_version": "2.0.0", + "version": "1.0.0" + } + } + ] + } +} diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/query_policy_nst.json b/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/query_policy_nst.json new file mode 100644 index 00000000..4e10d2d1 --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/query_policy_nst.json @@ -0,0 +1,34 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", + "topology_template": { + "policies": [ + { + "queryPolicy_nst": { + "type": "onap.policies.optimization.service.QueryPolicy", + "version": "1.0.0", + "type_version": "1.0.0", + "metadata": { + "policy-id": "queryPolicy_nst", + "policy-version": 1 + }, + "properties": { + "scope": [ + "OSDF_GUILIN" + ], + "services": [ + "nst" + ], + "geography": [], + "identity": "queryPolicy_nst", + "queryProperties": [ + { + "attribute": "latency", + "attribute_location": "latency" + } + ] + } + } + } + ] + } +} diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/vnf_policy_nst.json b/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/vnf_policy_nst.json new file mode 100644 index 00000000..67c0f801 --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/nst_policies/vnf_policy_nst.json @@ -0,0 +1,41 @@ +{ + "tosca_definitions_version": "tosca_simple_yaml_1_1_0", + "topology_template": { + "policies": [ + { + "vnfPolicy_nst": { + "type": "onap.policies.optimization.resource.VnfPolicy", + "version": "1.0.0", + "type_version": "1.0.0", + "metadata": { + "policy-id": "vnfPolicy_nst", + "policy-version": 1 + }, + "properties": { + "scope": [ + "OSDF_GUILIN" + ], + "resources": [ + "nst" + ], + "services": [ + "nst" + ], + "identity": "vnf_nst", + "applicableResources": "any", + "vnfProperties": [ + { + "inventoryProvider": "aai", + "inventoryType": "nst", + "unique": "true", + "attributes": { + "model-role": "NST" + } + } + ] + } + } + } + ] + } +} |