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",       "properties":{
     "URLLC_Core_1"          ],          "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":"ms"EmbbCn"
                },         ],
      {                   "attributeservices":"reliability",[
                  "operator":"gte",          "EmbbNst"
        "threshold":99.999,                 ],
 "unit":""                }        "geography": [],
 ]       }            } }
Code Block
languagetext
titleSample Aggregation Policy
linenumberstrue
collapsetrue
{    "tosca_definitions_versionidentity":"toscaThreshold_simpleURLLC_yaml_1_0_0",
   "name":"ToscaServiceTemplateSimple",
   "version":"1.0.0",
   "topology_template":{
      "policies":[
         {
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.AggregationvnfPolicy_URLLC_Core_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_1EmbbNst",
      	"EmbbCn"
  ],    ],
      "geographyresources": [],

        "resourcesEmbbCn":[
      ],
      "URLLC_Core_1services": [
        ],"EmbbNst"
      ],
  "services":[    "identity": "vnf_URLLC_Core_1",
      "applicableResources": "URLLC_1any"
,
      "vnfProperties": [
],        {
 "identity":"Aggregation_URLLC_1",
         "applicableResourcesinventoryProvider": "anyaai",
          "aggregationPropertiesinventoryType":[ "nssi",
           {
    "region": "RegionOne",
          "attributeattributes":"latency",
   {
            "functionorchestrationStatus": "sumactive",
  
            "operatorservice-role": "ltenssi",
               "thresholdmodelInvariantId":{"get_param":"latency"} "6a83b73c-e5c2-4b6d-9e00-84f6f96b7ab0",
               "unitmodelVersionId":"ms"
  "77a2c0d5-67d1-490e-bdc4-7e744bc3a53e"
          }
        }
]       }]
   } }
      ]

  }
}