Versions Compared

Key

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

Table of Contents


NEW POLICY TYPES

...

Code Block
languagetext
titleThreshold Policy Type
linenumberstrue
collapsetrue
{
  "tosca_definitions_version": "OSDFtosca_FRANKFURT.Thresholdsimple_URLLCyaml_Core1_1_0",
  "policy_types": {
      "type":"onap.policies.optimization.resource.ThresholdPolicy",: {
      "versionderived_from": "1onap.policies.0optimization.0Resource",
      "type_version": "1.0.0",
      "metadataproperties": {
         "policy-id":"OSDF_FRANKFURT.Threshold_URLLC_Core_1",applicableResources": {
          "policy-versiontype":1 "list",
      },
      "propertiesrequired":{
 true,
          "scopeentry_schema":[ {
            "OSDF_FRANKFURTtype": "string",
            "URLLC_1",constraints": [
            "URLLC_Core_1"
  {
       ],
         "resourcesvalid_values": [
            "URLLC_Core_1"
         ]"any",
         "services":[
            "URLLC_1all"
         ],
         "identity":"Threshold_URLLC_Core_1",]
         "thresholdProperties":[
     }
       {
     ]
          "attribute":"latency",}
               "operator":"lte"},
               "threshold"thresholdProperties":5,
      {
          "unittype": "mslist",
            }"required": true,
           "entry_schema": {
               "attributetype":"reliability", "policy.data.thresholdProperties_properties"
          }
     "operator":"gte",
   }
      }
    }
  "threshold":99.999},
  "data_types": {
    "policy.data.thresholdProperties_properties": {
       "unitderived_from": "tosca.nodes.Root",
      "properties": {
     }
   "attribute": {
          ]
 "type": "string",
       }
   "required": true
        }
}
Code Block
languagetext
titleThreshold Policy Model
collapsetrue
{
   "tosca_definitions_version":"tosca_simple_yaml_1_0_0",
,
        "policy_typesoperator": {
      "onap.policies.Optimization":{
         "derived_from":"tosca.policies.Root"type": "string",
          "versionrequired":"1.0.0", true
         "description":"a base policy type for all policies that govern optimization"},
        "threshold": {
      },
     "type": "onap.policies.optimization.ThresholdPolicy":{float",
          "derived_fromrequired":"onap.policies.Optimization", true
         "properties":{
  },
          "scopeunit": {
               "type": "liststring",
            "required": false
   "description":"scope where the policy is applicable",}
      }
    }
  }
}


Code Block
languagetext
titleAggregation Policy Type
linenumberstrue
collapsetrue
{
  "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
  "policy_types": {
    "onap.policies.optimization.resource.AggregationPolicy": {
     "required":true,
               "matchablederived_from":true "onap.policies.optimization.Resource",
        "version": "1.0.0",
       "entry_schemaproperties": {
        "applicableResources": {
          "type": "stringlist",
               }"required": true,
            },"entry_schema": {
            "policyTypetype":{ "string",
               "typeconstraints":"list", [
               "description":"type of a policy",
 {
                "requiredvalid_values":true,
 [
                  "matchableany":true,
                  "entry_schemaall":{
                ]
      "type":"string",
        }
           "consraints":[ ]
          }
        },
      {
  "aggregationProperties": {
          "type": "list",
          "valid_valuesrequired":[ true,
          "entry_schema": {
                "thresholdPolicy"type": "policy.data.aggregationProperties_properties"
          }
        }
      ]}
    }
  },
  "data_types": {
            }"policy.data.aggregationProperties_properties": {
      "derived_from": "tosca.nodes.Root",
      "properties": {
        "attribute": {
          "type": "string",
          "required": true
        },
        "operator": {
          "type": "string",
          "required": true
        },
        "threshold": {
          "type": "policy.data.thresh_properties",
          "required": true
        },
        "unit": {
          "type": "string",
          "required": false
        },
        "function": {
          "type": "string",
          "required": true
        }
      }
    },
    "policy.data.thresh_properties":{
    	"derived_from": "tosca.nodes.Root"
    }
  }
}


SAMPLE POLICIES

Code Block
languagetext
titleSample Threshold Policy
linenumberstrue
collapsetrue
{
   "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
      },
      "properties":{
         "scope":[
            "OSDF_FRANKFURT",
            "EmbbNst",
            "EmbbCn"
         ],
         "resources":[
            "EmbbCn"
         ],
         "services":[
            "EmbbNst"
         ],
         "geography":[

         ],
         "identity":"Threshold_URLLC_Core_1",
         "thresholdProperties":[
            {
               "attribute":"latency",
               "operator":"lte",
               "threshold":50,
               "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 Vnf Policy
linenumberstrue
collapsetrue
{
   "OSDF_FRANKFURT.vnfPolicy_URLLC_Core_1":{
      "type":"onap.policies.optimization.resource.VnfPolicy",
      "version":"1.0.0",
      "type_version":"1.0.0",
      "metadata":{
         "policy-id":"OSDF_FRANKFURT.vnfPolicy_URLLC_Core_1",
         "policy-version":1
      },
      "properties":{
         "scope":[
            "OSDF_FRANKFURT",
            "EmbbNst",
            "EmbbCn"
         ],
         "resources":[
            "EmbbCn"
         ],
         "services":[
            "EmbbNst"
         ],
         "identity":"vnf_URLLC_Core_1",
         "applicableResources":"any",
         "vnfProperties":[
            {
               "inventoryProvider":"aai",
               "inventoryType":"nssi",
               "region":"RegionOne",
               "attributes":{
                  "orchestrationStatus":"active",
                  "service-role":"nssi",
                  "modelInvariantId":"c0eeaa3b-625c-4518-bd1f-f01cc784813c",
                  "modelVersionId":"836eb219-346d-4b8b-8376-b0c4d17954a9"
               }
            }
         ]
      }
   }
}



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
    },
            "identity"properties": {
      "scope": [
        "type":"string",OSDF_FRANKFURT"
      ],
         "requiredservices":true
            },
 [
        "URLLC_1"
      "resources":{],
      "geography": [
        "type":"listUS",
      ],
        "identity": "required":truequeryPolicy_URLLC_1",
      "queryProperties": [
        "entry_schema":{
          "attribute": "latency",
          "typeattribute_location": "string"latency"
        }
      ]
    }
  }
}


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",
      "thresholdPropertiesmetadata":{
               "type"policy-id":"listOSDF_FRANKFURT.Aggregation_URLLC_1",
               "requiredpolicy-version":true,1
      },
         "entry_schema"properties":{
				         "typescope":"policy.data.thresholdProperties_properties"
				}
[
            }
"OSDF_FRANKFURT",
            }"URLLC_1"
      }
   }],
   "data_types":{
      "policy.data.thresholdProperties_propertiesgeography":{ [],
         "derived_fromresources":"tosca.nodes.Root",[
         "properties":{
   "URLLC_Core_1"
         ],
         "attributeservices":{[
            "URLLC_1"
    "type":"string",
      ],
         "requiredidentity":true"Aggregation_URLLC_1",
            }"applicableResources":"any",
            "operatoraggregationProperties":{[
               "type":"string",{
               "required":true
         attribute":"latency",
   },
            "thresholdfunction":{"sum",
               "typeoperator":"floatlte",
               "requiredthreshold":true{
            },
           "get_param": "unitlatency":{
               "type":"string"},
               "requiredunit":false"ms"
            }
         }]
      }
   }
}