Versions Compared

Key

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

Table of Contents


NEW POLICY TYPES:

Code Block
languagetext
titleSample Threshold Policy Type
linenumberstrue
collapsetrue
{
    "tosca_definitions_version": "tosca_simple_yaml_1_01_0",
    "topologypolicy_templatetypes": {
         "onap.policies.optimization.resource.ThresholdPolicy": [{
      "derived_from": "onap.policies.optimization.Resource",
      {
   "OSDF_FRANKFURT.Threshold_URLLC_Core_1":{"version": "1.0.0",
      "typeproperties":"onap.policies.optimization.resource.ThresholdPolicy", {
        "versionapplicableResources":"1.0.0",
 {
          "type_version": "1.0.0list",
      "metadata":{
         "policy-id":"OSDF_FRANKFURT.Threshold_URLLC_Core_1",
"required": true,
          "policy-versionentry_schema":1 {
      },
      "propertiestype":{ "string",
         "scope   "constraints": [
             "OSDF_FRANKFURT", {
                "URLLCvalid_1values",
: [
                  "URLLC_Core_1any",
         ],
         "resourcesall":[
            "URLLC_Core_1"
    ]
      ],        }
         "services":[
   ]
          "URLLC_1"}
         ]},
         "geographythresholdProperties": [],{
          "identitytype":"Threshold_URLLC_Core_1 "list",
          "thresholdPropertiesrequired":[ true,
              "entry_schema": {
                  "attribute"type":"latency", "policy.data.thresholdProperties_properties"
          }
        "operator":"lte",}
      }
    }
  },
      "threshold"data_types":5, {
      "policy.data.thresholdProperties_properties": {
      "derived_from": "tosca.nodes.Root",
      "unitproperties":"ms" {
        "attribute": {
      },
    "type": "string",
          "required": {true
          },
        "attributeoperator":"reliability", {
                  "operator"type": "gtestring",
          "required": true
        "threshold":99.999},
        "threshold": {
          "unittype": "float",
          "required": true
        }
,
        "unit": ]{
      }
   }
}
Code Block
languagetext
titleThreshold Policy Type
linenumberstrue
collapsetrue
{
  "tosca_definitions_versiontype": "tosca_simple_yaml_1_1_0",
  "policy_types": {
string",
          "onap.policies.optimization.resource.ThresholdPolicyrequired": {false
       "derived_from": "onap.policies.optimization.Resource",
 }
      }
  "version":  }
  }
}


Code Block
languagetext
titleAggregation Policy Type
linenumberstrue
collapsetrue
{
  "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
  "policy_types": {
    "onap.policies.optimization.resource.AggregationPolicy": "1.0.0",
      "properties": {
        "applicableResources": {
          "type": "list",
          "required": true,
          "entry_schema": {
            "type": "string",
            "constraints": [
              {
          "derived_from": "onap.policies.optimization.Resource",
      "valid_valuesversion": ["1.0.0",
          "properties": {
        "anyapplicableResources",: {
          "type": "list",
          "allrequired": true,
          "entry_schema": {
     ]
       "type": "string",
      }
        "constraints": [
    ]
          }{
        },
        "thresholdPropertiesvalid_values": {[
          "type":        "listany",
             "required": true,
    "all"
      "entry_schema": {
         ]
   "type": "policy.data.thresholdProperties_properties"
          }
            }]
          }
     }
   },
  "data_types": {
      "policy.data.thresholdProperties_propertiesaggregationProperties": {
          "derived_fromtype": "tosca.nodes.Rootlist",
          "propertiesrequired": {true,
          "attributeentry_schema": {
            "type": "string",policy.data.aggregationProperties_properties"
          "required": true}
        },
      }
   "operator": {}
  },
  "data_types": {
     "type"policy.data.aggregationProperties_properties": "string",
    {
      "requiredderived_from": true"tosca.nodes.Root",
        },"properties": {
        "thresholdattribute": {
          "type": "floatstring",
          "required": true
        },
        "unitoperator": {
          "type": "string",
          "required": false
        }
": "string",
       }
   "required": }true
  }
}
Code Block
languagetext
titleSample Aggregation Policy
linenumberstrue
collapsetrue
{
   "tosca_definitions_version":"tosca_simple_yaml_1_0_0",
   "name":"ToscaServiceTemplateSimple",
   "version":"1.0.0      },
        "threshold": {
          "type": "policy.data.thresh_properties",
   "topology_template":{
       "policiesrequired":[
 true
        },
     {
   "OSDF_FRANKFURT.Aggregation_URLLC_1unit": {
          "type":"onap.policies.optimization.resource.AggregationPolicy "string",
          "versionrequired":"1.0.0", false
      "type_version":"1.0.0",
   },
        "metadatafunction": {
          "policy-idtype":"OSDF_FRANKFURT.Aggregation_URLLC_1 "string",
          "policy-versionrequired":1 true
        },
      "properties":{}
     },
    "scopepolicy.data.thresh_properties":[{
            "OSDF_FRANKFURT",	"derived_from": "tosca.nodes.Root"
    }
  }
}


SAMPLE POLICIES:

Code Block
languagetext
titleSample Threshold Policy
linenumberstrue
collapsetrue
{
       "URLLC_1""tosca_definitions_version": "tosca_simple_yaml_1_0_0",
         ],"topology_template": {
         "geographypolicies": [],
         "resources":[
         {
   "OSDF_FRANKFURT.Threshold_URLLC_Core_1":{
         ],
   "type":"onap.policies.optimization.resource.ThresholdPolicy",
      "servicesversion":[
 "1.0.0",
           "URLLCtype_version":"1.0.0",
         ],"metadata":{
         "identitypolicy-id":"AggregationOSDF_FRANKFURT.Threshold_URLLC_Core_1",
         "applicableResourcespolicy-version":"any",1
      },
      "properties":{
         "aggregationPropertiesscope":[
            {
   "OSDF_FRANKFURT",
            "attribute":"latency"URLLC_1",
            "URLLC_Core_1"
   "function":"sum",
      ],
         "operatorresources":"lte",
   [
            "threshold":{"get_param":"latency"},
URLLC_Core_1"
         ],
         "unitservices":"ms"[
            }"URLLC_1"
         ],
      }
   }
}"geography": [],
      ]
   }
}
Code Block
languagetext
titleAggregation Policy Type
linenumberstrue
collapsetrue
{
  "tosca_definitions_version": "tosca_simple_yaml_1_1_0",
  "policy_types": {
    "onap.policies.optimization.resource.AggregationPolicy": {
  "identity":"Threshold_URLLC_Core_1",
         "thresholdProperties":[
               {
                  "derived_fromattribute": "onap.policies.optimization.Resource"latency",
                  "versionoperator": "1.0.0lte",
      "properties": {
            "applicableResourcesthreshold": {
   5,
       "type": "list",
          "requiredunit": true,"ms"
          "entry_schema": {
    },
        "type": "string",
      {
      "constraints": [
           "attribute":"reliability",
   {
                "valid_valuesoperator": ["gte",
                  "anythreshold":99.999,
                  "unit"all:""
               }

  ]
       ]
      }
   }
}


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":{
      "aggregationPropertiestype": {"onap.policies.optimization.resource.AggregationPolicy",
          "typeversion": "list1.0.0",
          "requiredtype_version": true"1.0.0",
          "entry_schema"metadata": {
            "typepolicy-id": "policy.data.aggregationProperties_properties"OSDF_FRANKFURT.Aggregation_URLLC_1",
          "policy-version":1
      },
      "properties":{
  }
       }"scope":[
    }
  },
  "data_types": {
    "policy.data.aggregationProperties_properties": {OSDF_FRANKFURT",
      "derived_from": "tosca.nodes.Root",
       "properties": {URLLC_1"
        "attribute": {
  ],
         "typegeography": "string"[],
          "requiredresources":[
    true
        },"URLLC_Core_1"
        "operator": {
  ],
         "typeservices": "string",
[
            "requiredURLLC_1":
 true
        }],
         "thresholdidentity": {"Aggregation_URLLC_1",
          "typeapplicableResources": "policy.data.thresh_properties"any",
          "requiredaggregationProperties": true
 [
            {
       },
        "unitattribute": {
"latency",
               "typefunction": "stringsum",
               "requiredoperator": false"lte",
        },
        "function": {
"threshold":{"get_param":"latency"},
               "typeunit": "stringms",
           "required": true}
         }]
      }
    }
},
    "policy.data.thresh_properties":{
    	"derived_from": "tosca.nodes.Root"
    }
 ]
   }
}