Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleSample Threshold Policy
linenumberstrue
collapsetrue
{
    "tosca_definitions_version": "tosca_simple_yaml_1_0_0",
    "topology_template": {
         "policiesOSDF_FRANKFURT.Threshold_URLLC_Core_1": [{
             {
   "OSDF_FRANKFURT.Threshold_URLLC_Core_1":{
      "type":"onap.policies.optimization.resource.ThresholdPolicy",
                      "version":"1.0.0",
                      "type_version":"1.0.0",
                      "metadata":{
                         "policy-id":"OSDF_FRANKFURT.Threshold_URLLC_Core_1",
          "policy-version":1
         },
      "propertiespolicy-version":{1
          "scope":[
            "OSDF_FRANKFURT"},
            "URLLC_1",
            "URLLC_Core_1"
properties":{
                ],
         "resourcesscope":[
              "URLLC_Core_1"
         ],
         "services":[
  "OSDF_FRANKFURT",
          "URLLC_1"
         ],
         "geographyEmbbNst": [],
          "identity":"Threshold_URLLC_Core_1",
         "thresholdProperties":[
         "EmbbCn"
      {
                  "attribute":"latency" ],
                  "operator":"lte",
        "resources":[
          "threshold":5,
                  "unit":"msEmbbCn"
                 },
        ],
       {
                  "attributeservices":"reliability",[
                  "operator":"gte",
          "EmbbNst"
        "threshold":99.999,
                 ],
                         "unitgeography":""
 [],
                }

         ]
"identity":"Threshold_URLLC_Core_1",
       }
   }
}               "thresholdProperties":[
                               {
                                  "attribute":"latency",
                                  "operator":"lte",
                                  "threshold":50,
                                  "unit":"ms"
                               },
                               {
                                  "attribute":"reliability",
                                  "operator":"gte",
                                  "threshold":99.999,
                                  "unit":""
                               }

                         ]
                      }
                   }
}


Code Block
languagetext
titleSample Aggregation Policy
linenumberstrue
collapsetrue
{
   "OSDF_FRANKFURT.Aggregation_URLLC_1":{
      "type":"onap.policies.optimization.resource.AggregationPolicy",
      "version":"1.0.0",
      "type_version":"1.0.0",
      "metadata":{
         "policy-id":"OSDF_FRANKFURT.Aggregation_URLLC_1",
         "policy-version":1
      },
      "properties":{
         "scope":[
            "OSDF_FRANKFURT",
            "URLLC_1"
         ],
         "geography": [],
         "resources":[
            "URLLC_Core_1"
         ],
         "services":[
            "URLLC_1"
         ],
         "identity":"Aggregation_URLLC_1",
         "applicableResources":"any",
         "aggregationProperties":[
            {
               "attribute":"latency",
               "function":"sum",
               "operator":"lte",
               "threshold":{
                "get_param": "latency"
               },
               "unit":"ms"
            }
         ]
      }
   }
}


Code Block
languagetext
titleSample Subscriber Policy
linenumberstrue
collapsetrue
{
  "OSDF_FRANKFURT.SubscriberPolicy_URLLC_1": {
    "type": "onap.policies.optimization.service.SubscriberPolicy",
    "version": "1.0.0",
    "type_version": "1.0.0",
    "metadata": {
      "policy-id": "OSDF_FRANKFURT.SubscriberPolicy_URLLC_1",
      "policy-version": 1
    },
    "properties": {
      "scope": [
        "OSDF_FRANKFURT",
        "EmbbNst"
      ],
      "services": [
        "EmbbNst"
      ],
      "identity": "subscriber_URLLC_1",
      "properties": {
        "subscriberName": [
          "EmbbCn"
        ]
      }
    }
  }
}


Code Block
languagetext
titleSample Query Policy
linenumberstrue
collapsetrue
{
  "OSDF_FRANKFURT.queryPolicy_URLLC_1": {
    "type": "onap.policies.optimization.service.QueryPolicy",
    "version": "1.0.0",
    "type_version": "1.0.0",
    "metadata": {
      "policy-id": "OSDF_FRANKFURT.queryPolicy_URLLC_1",
      "policy-version": 1
    },
    "properties": {
      "scope": [
        "OSDF_FRANKFURT"
      ],
      "services": [
        "URLLC_1"
      ],
      "geography": [
        "US"
      ],
      "identity": "queryPolicy_URLLC_1",
      "queryProperties": [
        {
          "attribute": "latency",
          "attribute_location": "latency"
        }
      ]
    }
  }
}


Code Block
languagetext
titleSample Vnf Policy
linenumberstrue
collapsetrue
{
  "OSDF_FRANKFURT.vnfPolicy_URLLC_Core_1": {
Code Block
languagetext
titleSample Aggregation Policy
linenumberstrue
collapsetrue
{
   "tosca_definitions_version":"tosca_simple_yaml_1_0_0",
   "name":"ToscaServiceTemplateSimple",
   "version":"1.0.0",
   "topology_template":{
      "policies":[
         {
   "OSDF_FRANKFURT.Aggregation_URLLC_1":{
      "type": "onap.policies.optimization.resource.AggregationPolicyVnfPolicy",
      "version": "1.0.0",
      "type_version": "1.0.0",
      "metadata": {
         "policy-id": "OSDF_FRANKFURT.AggregationvnfPolicy_URLLC_Core_1",
         "policy-version": 1
      },
      "properties": {
         "scope": [
            "OSDF_FRANKFURT",
            "URLLC_1""EmbbNst",
         ],
    	"EmbbCn"
     "geography": [],
         "resources": [
            "URLLC_Core_1EmbbCn"
         ],
         "services": [
            "URLLC_1EmbbNst"
         ],
         "identity": "Aggregationvnf_URLLC_Core_1",
         "applicableResources": "any",
         "aggregationPropertiesvnfProperties": [
        {
      {
    "inventoryProvider": "aai",
          "attributeinventoryType": "latencynssi",
               "functionregion": "sumRegionOne",
          "attributes": {
            "operatororchestrationStatus": "lteactive",
               "thresholdservice-role":{"get_param":"latency"},
    "nssi",
            "unitmodelInvariantId":"ms"
 "6a83b73c-e5c2-4b6d-9e00-84f6f96b7ab0",
             }
"modelVersionId": "77a2c0d5-67d1-490e-bdc4-7e744bc3a53e"
          ]}
      }
   }
}
      ]
    }
  }
}