Versions Compared

Key

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

...

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleTemplate for the HPA policies
linenumberstrue
collapsetrue
{
    "service": "{the model name of a policy}",
    "policyName": "{policy scope folder}.{policy name; must be unique}",
    "description": "{description of a policy}",
    "templateVersion": "{policy model version}",
    "version": "{policy version}",
    "priority": "{priority in 1-10; larger the number higher the priority is}",
    "riskType": "{the type of risk}",
    "riskLevel": "{the level of risk}",
    "guard": "{True/False flag to indicate whether guard is applicable or not}",
    "content": { 
      "resources": "{resource name}",
      "identity": "{policy identity}",
      "policyScope": ["{a tag representing policy scope}"],
      "type": "{policy type}",
      "flavorFeatures": [
        {
          "flavorLabel": "{VM/VFC id}",
          "flavorProperties":[
            {
              "hpa_feature" : "{HPA feature type}",
              "mandatory" : "{mandatoriness of the feature}",
              "architecture": "{supported architecuture}",
              "featureAttributes": [
                {
                  "attribute": "{attribute name}", 
                  "values": "{attribute value}",
                  "operator": "{comparison operator}", 
                  "unit": "{the unit of an attribute}"}
              ]
            }
          ] 
        }
      ]
    }
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Topology Policy Example

Template for the HPA policies.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA CPU Topology Policy Example
linenumberstrue
collapsetrue
{
  "service": "hpaCpuTopologyPolicy",
  "policyName": "oofBeijing.hpaCpuTopologyPolicy_vGMuxInfra",
  "description": "Cpu Topology policy for vGMuxInfra",
  "templateVersion": "0.0.1",
  "version": "oofBeijing",
  "priority": "3",
  "riskType": "test",
  "riskLevel": "2",
  "guard": "False",
  "content": {
    "cpuTopologyProperties": [
      {"attribute":"hpaFeature", "value": "cpuTopology","operator": "=", "unit":""},
      {"attribute":"architecture", "value": "generic","operator": "=", "unit": ""},
      {"attribute":"mandatory", "value": "false","operator": "=", "unit":""},
      {"attribute":"score", "value": "4", "operator":"=", "unit": ""},
      {"attribute":"numCpuSockets", "values": "2","operator": ">=", "unit": ""},
      {"attribute":"numCpuSockets", "values": "4","operator": "<=", "unit": ""},
      {"attribute":"numCpuCores", "value": "2", "operator":">=", "unit": ""},
      {"attribute":"numCpuCores", "value": "4", "operator":"<=", "unit": ""},
      {"attribute":"numCpuThreads", "value": "4", "operator":">=", "unit": ""},
      {"attribute":"numCpuThreads", "value": "8", "operator":"<=", "unit": ""},
    ],
    "identity": "cpuTopology_vGMuxInfra",
    "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
    "type": "hpaCpuTopologyPolicy",
    "resourceInstanceType": ["vGMuxInfra"]
  }
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Topology Policy Example

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. This policy cannot be changed during the life-cycle of a service.

...