aboutsummaryrefslogtreecommitdiffstats
path: root/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies
diff options
context:
space:
mode:
Diffstat (limited to 'tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies')
-rw-r--r--tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/optimization_nsi_create_new.json37
-rw-r--r--tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/optimization_nsi_non_shared.json37
-rw-r--r--tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/optimization_nsi_reuse.json37
-rw-r--r--tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/query_nsi.json73
-rw-r--r--tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/threshold_nsi.json36
-rw-r--r--tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/vnf_nsi_nonshared.json243
-rw-r--r--tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/vnf_nsi_shared.json261
7 files changed, 724 insertions, 0 deletions
diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/optimization_nsi_create_new.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/optimization_nsi_create_new.json
new file mode 100644
index 00000000..af79be2c
--- /dev/null
+++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/optimization_nsi_create_new.json
@@ -0,0 +1,37 @@
+{
+ "maximizeCost_{{ service_name }}": {
+ "metadata": {
+ "policy-id": "maximizeCost_{{ service_name }}",
+ "policy-version": 1
+ },
+ "properties": {
+ "geography": [],
+ "identity": "optimization",
+ "goal": "maximize",
+ "operation_function": {
+ "operator": "sum",
+ "operands": [
+ {
+ "function": "attribute",
+ "params": {
+ "attribute": "creation_cost",
+ "demand": "{{ service_name }}"
+ }
+ }
+ ]
+ },
+ "resources": [
+ "{{ service_name }}"
+ ],
+ "scope": [
+ "shared,create_new"
+ ],
+ "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_nsi_policies/optimization_nsi_non_shared.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/optimization_nsi_non_shared.json
new file mode 100644
index 00000000..12d7d245
--- /dev/null
+++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/optimization_nsi_non_shared.json
@@ -0,0 +1,37 @@
+{
+ "minimizeLatency_{{ service_name }}": {
+ "metadata": {
+ "policy-id": "minimizeLatency_{{ service_name }}",
+ "policy-version": 1
+ },
+ "properties": {
+ "geography": [],
+ "identity": "optimization",
+ "goal": "minimize",
+ "operation_function": {
+ "operator": "sum",
+ "operands": [
+ {
+ "function": "attribute",
+ "params": {
+ "attribute": "latency",
+ "demand": "{{ service_name }}"
+ }
+ }
+ ]
+ },
+ "resources": [
+ "{{ service_name }}"
+ ],
+ "scope": [
+ "non-shared"
+ ],
+ "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_nsi_policies/optimization_nsi_reuse.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/optimization_nsi_reuse.json
new file mode 100644
index 00000000..459cf33c
--- /dev/null
+++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/optimization_nsi_reuse.json
@@ -0,0 +1,37 @@
+{
+ "minimizeCost_{{ service_name }}": {
+ "metadata": {
+ "policy-id": "minimizeCost_{{ service_name }}",
+ "policy-version": 1
+ },
+ "properties": {
+ "geography": [],
+ "identity": "optimization",
+ "goal": "minimize",
+ "operation_function": {
+ "operator": "sum",
+ "operands": [
+ {
+ "function": "attribute",
+ "params": {
+ "attribute": "creation_cost",
+ "demand": "{{ service_name }}"
+ }
+ }
+ ]
+ },
+ "resources": [
+ "{{ service_name }}"
+ ],
+ "scope": [
+ "shared,reuse"
+ ],
+ "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_nsi_policies/query_nsi.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/query_nsi.json
new file mode 100644
index 00000000..785bff78
--- /dev/null
+++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/query_nsi.json
@@ -0,0 +1,73 @@
+{
+ "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": [
+ "shared,reuse",
+ "shared,create_new",
+ "non-shared"
+ ],
+ "services": [
+ "{{ service_name }}"
+ ],
+ "geography": [],
+ "identity": "queryPolicy_{{ service_name }}",
+ "queryProperties": [
+ {
+ "attribute": "latency",
+ "attribute_location": "latency"
+ },
+ {
+ "attribute": "max_number_of_ues",
+ "attribute_location": "max_number_of_ues"
+ },
+ {
+ "attribute": "s_nssai",
+ "attribute_location": "s_nssai"
+ },
+ {
+ "attribute": "activity_factor",
+ "attribute_location": "activity_factor"
+ },
+ {
+ "attribute": "resource_sharing_level",
+ "attribute_location": "resource_sharing_level"
+ },
+ {
+ "attribute": "ue_mobility_level",
+ "attribute_location": "ue_mobility_level"
+ },
+ {
+ "attribute": "sst",
+ "attribute_location": "sst"
+ },
+ {
+ "attribute": "AN_latency",
+ "attribute_location": "AN_latency"
+ },
+ {
+ "attribute": "CN_latency",
+ "attribute_location": "CN_latency"
+ },
+ {
+ "attribute": "TN_BH_latency",
+ "attribute_location": "TN_BH_latency"
+ },
+ {
+ "attribute": "model_invariant_id",
+ "attribute_location": "invariantUUID"
+ },
+ {
+ "attribute": "model_version_id",
+ "attribute_location": "UUID"
+ }
+ ]
+ }
+ }
+}
diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/threshold_nsi.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/threshold_nsi.json
new file mode 100644
index 00000000..5b99b7fd
--- /dev/null
+++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/threshold_nsi.json
@@ -0,0 +1,36 @@
+{
+ "Threshold_{{ service_name }}": {
+ "metadata": {
+ "policy-id": "Threshold_{{ service_name }}",
+ "policy-version": 1
+ },
+ "properties": {
+ "geography": [],
+ "identity": "Threshold_{{ service_name }}",
+ "resources": [
+ "{{ service_name }}"
+ ],
+ "scope": [
+ "shared,reuse",
+ "shared,create_new",
+ "non-shared"
+ ],
+ "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/bak_nsi_policies/vnf_nsi_nonshared.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/vnf_nsi_nonshared.json
new file mode 100644
index 00000000..9eb091f3
--- /dev/null
+++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/vnf_nsi_nonshared.json
@@ -0,0 +1,243 @@
+{
+ "vnfPolicy_{{ service_name }}_non_shared": {
+ "metadata": {
+ "policy-id": "vnfPolicy_{{ service_name }}_non_shared",
+ "policy-version": 1
+ },
+ "properties": {
+ "identity": "vnf_{{ service_name }}",
+ "resources": [
+ "{{ service_name }}"
+ ],
+ "scope": [
+ "non-shared"
+ ],
+ "services": [
+ "{{ service_name }}"
+ ],
+ "geography": [],
+ "vnfProperties": [
+ {
+ "attributes": {
+ "service_profile": {
+ "latency": {
+ "value": {
+ "get_param": "latency"
+ },
+ "operator": "lte"
+ },
+ "s_nssai": {
+ "value": {
+ "get_param": "s_nssai"
+ },
+ "operator": "eq"
+ },
+ "resource_sharing_level": {
+ "value": {
+ "get_param": "resource_sharing_level"
+ },
+ "operator": "eq"
+ },
+ "ue_mobility_level": {
+ "value": {
+ "get_param": "ue_mobility_level"
+ },
+ "operator": "eq"
+ },
+ "sst": {
+ "value": {
+ "get_param": "sst"
+ },
+ "operator": "eq"
+ },
+ "activity_factor": {
+ "value": {
+ "get_param": "activity_factor"
+ },
+ "operator": "eq"
+ },
+ "max_number_of_ues": {
+ "value": {
+ "get_param": "max_number_of_ues"
+ },
+ "operator": "eq"
+ }
+ },
+ "subnets": {
+ "CN": {
+ "latency": {
+ "max": {
+ "get_param": "latency"
+ },
+ "min": {
+ "get_param": "CN_latency"
+ },
+ "steps": 1
+ },
+ "s_nssai": {
+ "values": [
+ {
+ "get_param": "s_nssai"
+ }
+ ]
+ },
+ "max_number_of_ues": {
+ "values": [
+ {
+ "get_param": "max_number_of_ues"
+ }
+ ]
+ },
+ "sst": {
+ "values": [
+ {
+ "get_param": "sst"
+ }
+ ]
+ },
+ "activity_factor": {
+ "values": [
+ {
+ "get_param": "activity_factor"
+ }
+ ]
+ },
+ "resource_sharing_level": {
+ "values": [
+ {
+ "get_param": "resource_sharing_level"
+ }
+ ]
+ },
+ "plmn_id_list": {
+ "values": [
+ "39-00"
+ ]
+ },
+ "survival_time": {
+ "values": [
+ "10"
+ ]
+ },
+ "ue_mobility_level": {
+ "values": [
+ {
+ "get_param": "ue_mobility_level"
+ }
+ ]
+ }
+ },
+ "AN": {
+ "latency": {
+ "max": {
+ "get_param": "latency"
+ },
+ "min": {
+ "get_param": "AN_latency"
+ },
+ "steps": 1
+ },
+ "s_nssai": {
+ "values": [
+ {
+ "get_param": "s_nssai"
+ }
+ ]
+ },
+ "max_number_of_ues": {
+ "values": [
+ {
+ "get_param": "max_number_of_ues"
+ }
+ ]
+ },
+ "sst": {
+ "values": [
+ {
+ "get_param": "sst"
+ }
+ ]
+ },
+ "activity_factor": {
+ "values": [
+ {
+ "get_param": "activity_factor"
+ }
+ ]
+ },
+ "plmn_id_list": {
+ "values": [
+ "39-00"
+ ]
+ },
+ "survival_time": {
+ "values": [
+ "10"
+ ]
+ },
+ "resource_sharing_level": {
+ "values": [
+ {
+ "get_param": "resource_sharing_level"
+ }
+ ]
+ },
+ "ue_mobility_level": {
+ "values": [
+ {
+ "get_param": "ue_mobility_level"
+ }
+ ]
+ }
+ },
+ "TN-BH": {
+ "latency": {
+ "max": {
+ "get_param": "latency"
+ },
+ "min": {
+ "get_param": "TN_BH_latency"
+ },
+ "steps": 1
+ },
+ "s_nssai": {
+ "values": [
+ {
+ "get_param": "s_nssai"
+ }
+ ]
+ },
+ "plmn_id_list": {
+ "values": [
+ "39-00"
+ ]
+ },
+ "max_bandwidth": {
+ "values": [
+ 1000
+ ]
+ },
+ "sst": {
+ "values": [
+ {
+ "get_param": "sst"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "inventoryProvider": "generator",
+ "inventoryType": "slice_profiles",
+ "unique": "true",
+ "defaultAttributes": {
+ "creation_cost": 0.9
+ }
+ }
+ ]
+ },
+ "type": "onap.policies.optimization.resource.VnfPolicy",
+ "type_version": "1.0.0",
+ "version": "1.0.0"
+ }
+}
diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/vnf_nsi_shared.json b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/vnf_nsi_shared.json
new file mode 100644
index 00000000..2e93ae7d
--- /dev/null
+++ b/tutorials/5GE2ENetworkSlicing/common/policies/bak_nsi_policies/vnf_nsi_shared.json
@@ -0,0 +1,261 @@
+{
+ "vnfPolicy_{{ service_name }}": {
+ "metadata": {
+ "policy-id": "vnfPolicy_{{ service_name }}",
+ "policy-version": 1
+ },
+ "properties": {
+ "identity": "vnf_{{ service_name }}",
+ "resources": [
+ "{{ service_name }}"
+ ],
+ "scope": [
+ "shared,reuse",
+ "shared,create_new"
+ ],
+ "services": [
+ "{{ service_name }}"
+ ],
+ "geography": [],
+ "vnfProperties": [
+ {
+ "attributes": {
+ "modelInvariantId": {
+ "get_param": "model_invariant_id"
+ },
+ "modelVersionId": {
+ "get_param": "model_version_id"
+ },
+ "service-role": "nsi"
+ },
+ "inventoryProvider": "aai",
+ "inventoryType": "nsi",
+ "unique": "true",
+ "defaultAttributes": {
+ "creation_cost": 0.1
+ }
+ },
+ {
+ "attributes": {
+ "service_profile": {
+ "latency": {
+ "value": {
+ "get_param": "latency"
+ },
+ "operator": "lte"
+ },
+ "s_nssai": {
+ "value": {
+ "get_param": "s_nssai"
+ },
+ "operator": "eq"
+ },
+ "resource_sharing_level": {
+ "value": {
+ "get_param": "resource_sharing_level"
+ },
+ "operator": "eq"
+ },
+ "ue_mobility_level": {
+ "value": {
+ "get_param": "ue_mobility_level"
+ },
+ "operator": "eq"
+ },
+ "sst": {
+ "value": {
+ "get_param": "sst"
+ },
+ "operator": "eq"
+ },
+ "activity_factor": {
+ "value": {
+ "get_param": "activity_factor"
+ },
+ "operator": "eq"
+ },
+ "max_number_of_ues": {
+ "value": {
+ "get_param": "max_number_of_ues"
+ },
+ "operator": "eq"
+ }
+ },
+ "subnets": {
+ "CN": {
+ "latency": {
+ "max": {
+ "get_param": "latency"
+ },
+ "min": {
+ "get_param": "CN_latency"
+ },
+ "steps": 1
+ },
+ "s_nssai": {
+ "values": [
+ {
+ "get_param": "s_nssai"
+ }
+ ]
+ },
+ "sst": {
+ "values": [
+ {
+ "get_param": "sst"
+ }
+ ]
+ },
+ "activity_factor": {
+ "values": [
+ {
+ "get_param": "activity_factor"
+ }
+ ]
+ },
+ "resource_sharing_level": {
+ "values": [
+ {
+ "get_param": "resource_sharing_level"
+ }
+ ]
+ },
+ "plmn_id_list": {
+ "values": [
+ "39-00"
+ ]
+ },
+ "survival_time": {
+ "values": [
+ "10"
+ ]
+ },
+ "max_number_of_ues": {
+ "values": [
+ {
+ "get_param": "max_number_of_ues"
+ }
+ ]
+ },
+ "ue_mobility_level": {
+ "values": [
+ {
+ "get_param": "ue_mobility_level"
+ }
+ ]
+ }
+ },
+ "AN": {
+ "latency": {
+ "max": {
+ "get_param": "latency"
+ },
+ "min": {
+ "get_param": "AN_latency"
+ },
+ "steps": 1
+ },
+ "s_nssai": {
+ "values": [
+ {
+ "get_param": "s_nssai"
+ }
+ ]
+ },
+ "sst": {
+ "values": [
+ {
+ "get_param": "sst"
+ }
+ ]
+ },
+ "activity_factor": {
+ "values": [
+ {
+ "get_param": "activity_factor"
+ }
+ ]
+ },
+ "plmn_id_list": {
+ "values": [
+ "39-00"
+ ]
+ },
+ "survival_time": {
+ "values": [
+ "10"
+ ]
+ },
+ "max_number_of_ues": {
+ "values": [
+ {
+ "get_param": "max_number_of_ues"
+ }
+ ]
+ },
+ "resource_sharing_level": {
+ "values": [
+ {
+ "get_param": "resource_sharing_level"
+ }
+ ]
+ },
+ "ue_mobility_level": {
+ "values": [
+ {
+ "get_param": "ue_mobility_level"
+ }
+ ]
+ }
+ },
+ "TN-BH": {
+ "latency": {
+ "max": {
+ "get_param": "latency"
+ },
+ "min": {
+ "get_param": "TN_BH_latency"
+ },
+ "steps": 1
+ },
+ "s_nssai": {
+ "values": [
+ {
+ "get_param": "s_nssai"
+ }
+ ]
+ },
+ "max_bandwidth": {
+ "values": [
+ 1000
+ ]
+ },
+ "plmn_id_list": {
+ "values": [
+ "39-00"
+ ]
+ },
+ "sst": {
+ "values": [
+ {
+ "get_param": "sst"
+ }
+ ]
+ }
+ }
+ }
+ },
+ "inventoryProvider": "generator",
+ "inventoryType": "slice_profiles",
+ "unique": "true",
+ "defaultAttributes": {
+ "creation_cost": 0.9
+ }
+ }
+ ]
+ },
+ "type": "onap.policies.optimization.resource.VnfPolicy",
+ "type_version": "1.0.0",
+ "version": "1.0.0"
+ }
+}