Table of Contents |
---|
NEW POLICY TYPES
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "tosca_definitions_version": "OSDFtosca_FRANKFURT.Thresholdsimple_URLLCyaml_Core1_1_0", "policy_types": { "type":"onap.policies.optimization.resource.ThresholdPolicy",: { "versionderived_from": "1onap.0policies.0optimization.Resource", "type_version": "1.0.0", "metadataproperties": { "policy-id":"OSDF_FRANKFURT.Threshold_URLLC_Core_1", applicableResources": { "policy-versiontype":1 "list", }, "propertiesrequired":{ true, "scopeentry_schema":[ { "OSDF_FRANKFURT"type": "string", "URLLC_1",constraints": [ "URLLC_Core_1" { ], "resourcesvalid_values": [ "URLLC_Core_1" "any", ], "servicesall":[ "URLLC_1"] ], } "identity":"Threshold_URLLC_Core_1", "thresholdProperties":[] } { }, "attributethresholdProperties":"latency", { "operatortype": "ltelist", "thresholdrequired":5 true, "unitentry_schema":"ms" { }, "type": "policy.data.thresholdProperties_properties" } { } } "attribute":"reliability"} }, "data_types": { "policy.data.thresholdProperties_properties": { "operatorderived_from": "gtetosca.nodes.Root", "properties": { "thresholdattribute":99.999, { "unittype": "string", "required": true }, "operator": ]{ } } } | ||||||||
Code Block | ||||||||
| ||||||||
{ "tosca_definitions_version":"tosca_simple_yaml_1_0_0", "policy_types":{ "type": "string", "onap.policies.Optimizationrequired":{ true }, "derived_from":"tosca.policies.Root", "threshold": { "versiontype": "1.0.0float", "descriptionrequired":"a basetrue policy type for all policies that govern optimization" }, }, "onap.policies.optimization.ThresholdPolicyunit": { "derived_fromtype": "onap.policies.Optimizationstring", "propertiesrequired":{ false "scope":{} } } } } |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "tosca_definitions_version": "tosca_simple_yaml_1_1_0 "type":"list", "policy_types": { "onap.policies.optimization.resource.AggregationPolicy": { "descriptionderived_from":"scope where the policy is applicable "onap.policies.optimization.Resource", "version": "1.0.0", "requiredproperties":true, { "applicableResources": { "matchabletype":true "list", "required": true, "entry_schema": { "type": "string", "constraints": [ } },{ "identity "valid_values":{ [ "typeany":"string", "requiredall":true }, ] "resources":{ } "type":"list", ] "required":true, } }, "entry_schemaaggregationProperties": { "type": "stringlist", } "required": true, }, "services"entry_schema": { "type":"list", "policy.data.aggregationProperties_properties" } "required":true, } } } }, "entrydata_schematypes": { "policy.data.aggregationProperties_properties": { "derived_from": "tosca.nodes.Root", "typeproperties":"string" { "attribute": { } "type": "string", }, "required": true }, "thresholdPropertiesoperator": { "type": "liststring", "required": true, }, "entry_schemathreshold": { "type": "policy.data.thresholdPropertiesthresh_properties" }, } "required": true }, } }, "data_typesunit": { "policy.data.thresholdProperties_properties":{ "derived_fromtype": "tosca.nodes.Rootstring", "propertiesrequired":{ false }, "attributefunction": { "type": "string", "required": true } }, }, "operatorpolicy.data.thresh_properties":{ "type "derived_from": "stringtosca.nodes.Root", } } } |
SAMPLE POLICIES
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "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" ], "required "services":true[ }"EmbbNst" ], "geography":[ ], "thresholdidentity":{"Threshold_URLLC_Core_1", "type"thresholdProperties":"float",[ { "required":true }"attribute":"latency", "unitoperator":{"lte", "typethreshold":"string"50, "requiredunit":false"ms" } }] } } } |
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "OSDF_FRANKFURT.AggregationSubscriberPolicy_URLLC_1":{ "type":"onap.policies.optimization.AggregationPolicyservice.SubscriberPolicy", "version":"1.0.0", "type_version":"1.0.0", "metadata":{ "policy-id":"OSDF_FRANKFURT.AggregationSubscriberPolicy_URLLC_1", "policy-version":1 }, "properties":{ "scope":[ "OSDF_FRANKFURT", }, "URLLC_1properties":{ ],"scope":[ "resources":[ "OSDF_FRANKFURT", "URLLC_1EmbbNst" ], "services":[ "URLLC_1EmbbNst" ], "identity":"Aggregationsubscriber_URLLC_1", "applicableResourcesproperties":"any", { "aggregationPropertysubscriberName":[ { "attribute":"latencyEmbbCn", ] "function":"sum", } } "operator":"lte",} } |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "OSDF_FRANKFURT.vnfPolicy_URLLC_Core_1":{ "type":"onap.policies.optimization.resource.VnfPolicy", "thresholdversion":40"1.0.0", "unit"type_version":"ms1.0.0", } "metadata":{ ] "policy-id":"OSDF_FRANKFURT.vnfPolicy_URLLC_Core_1", } } } | ||||||||
Code Block | ||||||||
| ||||||||
{ "tosca_definitions_policy-version":"tosca_simple_yaml_1_0_0"1 }, "policy_types "properties":{ "onap.policies.Optimization "scope":{[ "derivedOSDF_from":"tosca.policies.RootFRANKFURT", "EmbbNst", "version":"1.0.0","EmbbCn" "description":"a base policy type for all policies that govern optimization"], "resources":[ }, "onap.policies.optimization.AggregationPolicy":{EmbbCn" "derived_from":"onap.policies.Optimization"], "propertiesservices":{[ "scope":{ EmbbNst" ], "typeidentity":"listvnf_URLLC_Core_1", "descriptionapplicableResources":"any"scope, where the policy is applicable", "vnfProperties":[ "required":true,{ "matchableinventoryProvider":true"aai", "entry_schemainventoryType":{"nssi", "typeregion":"stringRegionOne", }"attributes":{ }, "identity"orchestrationStatus":{ "active", "typeservice-role":"stringnssi", "requiredmodelInvariantId":true "c0eeaa3b-625c-4518-bd1f-f01cc784813c", }, "resourcesmodelVersionId":{"836eb219-346d-4b8b-8376-b0c4d17954a9" "type":"list", } } "required":true, ] } } } |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "entry_schema"OSDF_FRANKFURT.queryPolicy_URLLC_1": { "type":"string" "onap.policies.optimization.service.QueryPolicy", } "version": "1.0.0", "type_version": "1.0.0", }, "services"metadata": { "typepolicy-id":"list "OSDF_FRANKFURT.queryPolicy_URLLC_1", "policy-version": 1 }, "requiredproperties":true, { "scope": [ "entryOSDF_schemaFRANKFURT":{ ], "services": [ "type":"stringURLLC_1" ], "geography": [ } "US" }], "aggregationProperties":{"identity": "queryPolicy_URLLC_1", "queryProperties": [ "type":"list",{ "attribute": "requiredlatency":true, "attribute_location": "latency" "entry_schema":{ "type":"policy.data.aggregationProperties_properties" } ] } } } |
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "OSDF_FRANKFURT.Aggregation_URLLC_1":{ "type":"onap.policies.optimization.resource.AggregationPolicy", } }"version":"1.0.0", }, "datatype_typesversion":{"1.0.0", "policy.data.aggregationProperties_propertiesmetadata":{ "derived_frompolicy-id":"tosca.nodes.RootOSDF_FRANKFURT.Aggregation_URLLC_1", "propertiespolicy-version":{1 }, "attributeproperties":{ "scope":[ "type":"stringOSDF_FRANKFURT", "URLLC_1" "required":true ], }, "geography": [], "operatorresources":{[ "type":"string", URLLC_Core_1" ], "requiredservices":true[ },"URLLC_1" ], "threshold":{ "identity":"Aggregation_URLLC_1", "typeapplicableResources":"floatany", "requiredaggregationProperties":true[ },{ "unitattribute":{"latency", "typefunction":"stringsum", "requiredoperator":false "lte", }, "threshold":{ "functionget_param":{ "latency" "type":"string"}, "requiredunit":true"ms" } }] } } } |