Versions Compared

Key

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

...

  1. Attribute policy

    Code Block
    {
    	
      "OSDF_FRANKFURT.Attribute_vNS_1Threshold_nst": {
    	
        "typemetadata": "onap.policies.optimization.resource.AttributePolicy",
    	
    {
          "versionpolicy-id": "1.0.0Threshold_nst",
    	
          "type_policy-version": "1.0.0"1
        },
    	
        "metadataproperties": {
    	
          "policy-idgeography": [],
          "identity": "OSDF_FRANKFURT.Attribute_NSTThreshold_nst",
    	
          "policy-versionresources": 1
    	[
        },
    	
        "properties": {
    	nst"
          ],
          "scope": [
    	
            "OSDF_FRANKFURTGUILIN"
    	
          ],
    	
          "resourcesservices": [
    	
            "NSTnst"
    	
          ],
    	      "thresholdProperties": [
            {
              "identityattribute": "attribute-NSTlatency",
    	
              "attributePropertiesoperator": {
    	"lte",
                 "serviceProfileParametersthreshold": {
    	
                   "get_param": "serviceProfileParameterslatency"
    	
              },
    	
          }
    	
        }
    	
    "unit": "ms"
            }
    	
    }

2. Query Policy

  1. ,
            {
              "attribute": "reliability",
              "operator": "gte",
              "threshold": {
                "get_param": "reliability"
              },
              "unit": ""
            }
          ]
        },
        "type": "onap.policies.optimization.resource.ThresholdPolicy",
        "type_version": "1.0.0",
        "version": "1.0.0"
      }
    }


2. Query Policy

Code Block
languagejs
{
   "queryPolicy_nst": {
      "type": "onap.policies.optimization.service.QueryPolicy",
      "version": "1.0.0",
      "type_version": "1.0.0",
      "metadata": {
         "policy-id": "queryPolicy_nst",
         "policy-version": 1
      },
      "properties": {
      "scope": [
         "OSDF_GUILIN"
      ],
      "services": [
         "nst"
      ],
      "geography": [],
      "identity": "queryPolicy_nst",
      "queryProperties": [
         {
           "attribute": "latency",
           "attribute_location": "latency"
         },
         {
            "attribute": "reliability",
            "attribute_location": "reliability"
         }
      ]
    }
  }
}


3. vnf policy

Code Block
{	
  "vnfPolicy_nst": {	
    "type": "onap.policies.optimization.resource.VnfPolicy",
    "version": "1.0.0",
    "type_version": "1.0.0",
    "metadata": {
      "policy-id": "vnfPolicy_nst",
      "policy-version": 1
    },
    "properties": {
      "scope": [
        "OSDF_GUILIN",
      ],
      "resources": [
        "nst"
      ],
      "services": [
        "nst"
      ],
      "identity": "vnf_nst",
      "applicableResources": "any",
      "vnfProperties": [
        {
		  "inventory_provider":"aai",
          "inventory_type":"nst",
          "unique":"true",
          "region":"RegionOne",
          "filtering_attributes":{
              "service-role":"nst"
          }
        }
      ]
    }
  }
}


Code Block
languagejs
{
    "nst_minimize_latency": {
        "metadata": {
            "policy-id": "nst_minimize_latency",
            "policy-version": 1
        },
        "properties": {
            "geography": [],
            "identity": "optimization",
            "goal": "minimize",
            "operation_function": {
                "operator": "sum",
                "operands": [
                    {
                        "function": "attribute",
                        "params": {
                            "attribute": "latency",
Code Block
{
	
  "OSDF_FRANKFURT.queryPolicy_NST": {
	
    "type": "onap.policies.optimization.service.QueryPolicy",
	
    "version": "1.0.0",
	
    "type_version": "1.0.0",
	
    "metadata": {
	
      "policy-id": "OSDF_FRANKFURT.queryPolicy_NST",
	
      "policy-version": 1
	
    },
	
    "properties": {
	
      "scope": [
	
        "OSDF_FRANKFURT"
	
      ],
	
      "services": [
	
        "NST"
	
      ],
	
      "resources": [
	
        "NST"
	
      ],
	
      "identity": "NST_Query_Policy",
	
      "queryProperties": [
	
        {
	
          "attribute": "serviceProfileParameters",
	
          "attribute_locationdemand": "serviceProfileParametersnst"
	
              }
	
      ]
	
    }
	
  }
	
}

3. vnf policy

Code Block
{
	
  "OSDF_FRANKFURT.vnfPolicy_NST": {
	
    "type": "onap.policies.optimization.resource.VnfPolicy",
	
    "version": "1.0.0",
	
    "type_version": "1.0.0",
	
 }
    "metadata": {
	
      "policy-id": "OSDF_FRANKFURT.vnfPolicy_NST",
	
     ]
       "policy-version": 1
	
    },
	
     "properties": {
	
      "scoperesources": [
	
        "OSDF_FRANKFURT",
	
        "NSTnst"
	
            ],
	
            "resourcesscope": [
	
                "NSTOSDF_GUILIN"
	
            ],
	
            "services": [
	
        "NST"
	
      ],
	
      "identity": "vnf_NSTnst",
	
      "applicableResources": "any",
	
      "vnfProperties": [
	  ]
        {
	
  },
        "inventoryProvidertype": "aai_sdconap.policies.optimization.resource.OptimizationPolicy",
	
          "inventoryTypetype_version": "NST2.0.0",
	
        }
	
      ]
	"version": "1.0.0"
    }
	
  }
	
}