Make Network Slicing usecase more user friendly
[demo.git] / tutorials / 5GE2ENetworkSlicing / common / policies / gen_nsi_policies / optimization_nsi_reuse.json
diff --git a/tutorials/5GE2ENetworkSlicing/common/policies/gen_nsi_policies/optimization_nsi_reuse.json b/tutorials/5GE2ENetworkSlicing/common/policies/gen_nsi_policies/optimization_nsi_reuse.json
new file mode 100644 (file)
index 0000000..a6e2b17
--- /dev/null
@@ -0,0 +1,44 @@
+{
+    "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
+    "topology_template": {
+        "policies": [
+            {
+                "minimizeCost_EmbbNst_O2": {
+                    "metadata": {
+                        "policy-id": "minimizeCost_EmbbNst_O2",
+                        "policy-version": 1
+                    },
+                    "properties": {
+                        "geography": [],
+                        "identity": "optimization",
+                        "goal": "minimize",
+                        "operation_function": {
+                            "operator": "sum",
+                            "operands": [
+                                {
+                                    "function": "attribute",
+                                    "params": {
+                                        "attribute": "creation_cost",
+                                        "demand": "EmbbNst_O2"
+                                    }
+                                }
+                            ]
+                        },
+                        "resources": [
+                            "EmbbNst_O2"
+                        ],
+                        "scope": [
+                            "shared,reuse"
+                        ],
+                        "services": [
+                            "EmbbNst_O2"
+                        ]
+                    },
+                    "type": "onap.policies.optimization.resource.OptimizationPolicy",
+                    "type_version": "2.0.0",
+                    "version": "1.0.0"
+                }
+            }
+        ]
+    }
+}