diff options
Diffstat (limited to 'tutorials/5GE2ENetworkSlicing/common/policies/bak_nssi_policies')
4 files changed, 159 insertions, 0 deletions
diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/bak_nssi_policies/optimization_nssi.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nssi_policies/optimization_nssi.json new file mode 100644 index 00000000..9d744e92 --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_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/bak_nssi_policies/query_nssi.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nssi_policies/query_nssi.json new file mode 100644 index 00000000..5de6b58c --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_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/bak_nssi_policies/threshold_nssi.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nssi_policies/threshold_nssi.json new file mode 100644 index 00000000..63bd3adf --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nssi_policies/threshold_nssi.json @@ -0,0 +1,42 @@ +{ + "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" + }, + { + "attribute": "reliability", + "operator": "gte", + "threshold": { + "get_param": "reliability" + }, + "unit": "" + } + ] + }, + "type": "onap.policies.optimization.resource.ThresholdPolicy", + "type_version": "1.0.0", + "version": "1.0.0" + } +} diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/bak_nssi_policies/vnf_nssi.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nssi_policies/vnf_nssi.json new file mode 100644 index 00000000..73388a38 --- /dev/null +++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_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" + } +} |