Add support to process NSI selection request
[optf/osdf.git] / test / policy-local-files / slice-selection-files / vnf_policy_nsi_shared_case.json
diff --git a/test/policy-local-files/slice-selection-files/vnf_policy_nsi_shared_case.json b/test/policy-local-files/slice-selection-files/vnf_policy_nsi_shared_case.json
new file mode 100644 (file)
index 0000000..9932cc1
--- /dev/null
@@ -0,0 +1,90 @@
+
+         {
+            "OSDF_GUILIN.vnfPolicy_URLLC":{
+               "metadata":{
+                  "policy-id":"OSDF_GUILIN.vnfPolicy_URLLC",
+                  "policy-version":1
+               },
+               "properties":{
+                  "identity":"vnf_URLLC",
+                  "resources":["embb-nst"],
+                  "scope":[
+                     "OSDF_GUILIN",
+                     "shared"
+                  ],
+                  "services":[
+                     "embb-nst"
+                  ],
+                  "geography":[],
+                  "vnfProperties":[
+                     {
+                        "attributes":{
+                           "modelInvariantId":"bfbg3636-e39c-iidd-0987-27c28f4oo3",
+                           "modelVersionId":"bfbg3636-e39c-iidd-0987-27c28f4d33",
+                           "environment-context":"shared",
+                           "service-role":"nsi"
+                        },
+                        "inventoryProvider":"aai",
+                        "inventoryType":"nsi",
+                        "unique":"true",
+                        "defaultAttributes":{
+                           "creation-cost" : 0.1
+                        }
+                     },
+                     {
+                        "attributes":{
+                           "core":{
+                              "latency":{
+                                 "max":{"get_param":"latency"},
+                                 "min":{"get_param":"cn_latency"},
+                                 "steps":1
+                              },
+                              "reliability":{
+                                 "values":[
+                                    99.9,
+                                    99.999
+                                 ]
+                              }
+                           },
+                           "ran":{
+                              "latency":{
+                                 "max":{"get_param":"latency"},
+                                 "min":{"get_param":"an_latency"},
+                                 "steps":1
+                              },
+                              "reliability":{
+                                 "values":[
+                                    99.9,
+                                    99.9
+                                 ]
+                              }
+                           },
+                           "transport":{
+                              "latency":{
+                                 "max":{"get_param":"latency"},
+                                 "min":{"get_param":"tn_bh_latency"},
+                                 "steps":1
+                              },
+                              "reliability":{
+                                 "values":[
+                                    99.9,
+                                    99.99
+                                 ]
+                              }
+                           }
+                        },
+                        "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"
+            }
+         }
+