Make Network Slicing usecase more user friendly
[demo.git] / tutorials / 5GE2ENetworkSlicing / common / policies / nst_policies / optimization_policy_nst.json
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 (file)
index 0000000..534d139
--- /dev/null
@@ -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"
+                }
+            }
+        ]
+    }
+}