Versions Compared

Key

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

...

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA CPU Topology Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaCpuTopologyPolicyhpaPolicy",
    "policyName": "oofBeijing.hpaCpuTopologyPolicyhpaPolicy_vGMuxInfra",
    "description": "CpuHPA Topology policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "oofBeijing1.0",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": { 
   "cpuTopologyProperties": [       {"attribute"resources": "hpaFeaturevGMuxInfra", "value": "cpuTopology","operator": "=", "unit":""}
      "identity": "hpaPolicy_vGMuxInfra",
      {"attributepolicyScope": ["architecturevCPE", "valueUS":, "genericINTERNATIONAL", "operatorip":, "=vGMuxInfra"],
"unit      "type": "hpaPolicy"},
      {"attributeflavorFeatures":"mandatory", "value": "false","operator": "=", "unit":""}, [
        {
      {"attribute":"score", "value": "4", "operator":"=", "unitflavorLabel": "flavor_label_vm_01"},
      {"attribute":"numCpuSockets", "values": "2","operator": ">=", "unitflavorProperties":[
""},            {"attribute":"numCpuSockets", "values": "4","operator": "<=", "unit": ""},
              "hpa_feature" : "cpuTopology",
              "mandatory" : "True",
              "architecture": "generic",
              "featureAttributes": [
                {"attribute":"numCpuCoresnumCpuSockets", "valuevalues": "2", "operator": ">=", "unit": ""},
       {         {"attribute":"numCpuCoresnumCpuSockets", "valuevalues": "4", "operator": "<=", "unit": ""},
                {"attribute":"numCpuThreadsnumCpuCores", "value": "42", "operator":">=", "unit": ""},
                {"attribute":"numCpuThreadsnumCpuCores", "value": "84", "operator":"<=", "unit": ""},
     ],           {"identityattribute": "cpuTopology_vGMuxInfranumCpuThreads",
    "policyScopevalue": ["vCPE4", "USoperator", :"INTERNATIONAL>=", "ipunit",: "vGMuxInfra"]},
    "type": "hpaCpuTopologyPolicy",            {"resourceInstanceTypeattribute": ["vGMuxInfranumCpuThreads"]
  }
}
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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleDistance Policy Example
linenumberstrue
collapsetrue
{
  "service, "value": "distancePolicy8",   "policyNameoperator": "oofBeijing.distancePolicy_vGMuxInfra"<=",   "descriptionunit": "Distance Policy for vGMuxInfra",
  "templateVersion": "0.0.1",
  "version": "oofBeijing",
  "priority": "3",
  "riskType": "test",
  "riskLevel": "2",
  "guard": "False",
  "content":""}
              ]
            }
            {
    "distanceProperties": {       "locationInfo": { "valuehpa_feature" : "customer_locationbasicCapabilities", "operator": "="},
           "distance": { "value": "500mandatory", "operator": "<True",
 "unit": "km" },       "resourceInstanceType": { "value": "vGMuxInfra", "operatorarchitecture": "=generic"},
    },     "identity": "distance-vGMuxInfra",     "policyScopefeatureAttributes": [
 {       "serviceType": ["vCPE"],       {"geoRegionattribute": ["USnumVirtualCpu", "INTERNATIONAL"],
      "networkType"value": "6", "operator": "=", "unit": ["ip"],},
                {"attribute": "virtualMemSize", "resourceInstanceType"value":"6", "operator": "=", "unit": ["vGMuxInfra"]GB"}
              ]
       },     }
      "type": "distancePolicy"   }
}
Column
width45%
Expand
titleComments and Notes: Distance Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. However, the policy can be updated over time by operators.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Basic Capabilities Policy Example
linenumberstrue
collapsetrue
  {
    "service": "hpaBasicCapabilitiesPolicy",          "policyNamehpa_feature" : "oofBeijing.hpaBasicCapabilitiesPolicy_vGMuxInfraovsDpdk",
     "description": "HPA Basic Capabilities policy for vGMuxInfra",          "templateVersionmandatory" : "0.0.1False",
        "version": "oofBeijing",     "priorityscore" : "3",
    "riskType": "test",     "riskLevel": "2",
    "guardarchitecture": "Falsegeneric",
    "content": {         "BasicCapabilitiesPropertiesfeatureAttributes": [
                 {"attribute":"hpaFeaturedataProcessingAccelerationLibrary", "value": "basicCapabilitiesovsDpdk_version", "operator": "=", "unit":""},
           {"attribute":"architecture", "value": "generic","operator": "=", "unit": ""}, ]
            }
            {"attribute":"mandatory
              "hpa_feature" : "cpuInstructionSetExtensions",
"value": "false","operator": "=", "unit":""},           {"attributemandatory":"score", "value": "4True",
"operator":"=", "unit": ""},              {"attributearchitecture": "numVirtualCpu", "value": "6", "operator": "=", "unit": ""},"INTEL-64",
              "featureAttributes": [
                {"attribute": "virtualMemSizeinstructionSetExtensions", "value":["6<CPUINST>", "<CPUINST>"] "operator": "=ALL", "unit": "GB"},
              ],
         "identity": "basicCapabilities_vGMuxInfra",  }
      "policyScope":["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"], 
        "type}
        {
          "flavorLabel": "hpaBasicCapabilitiesPolicyflavor_label_vm_02",
          "resourceInstanceType": ["vGMuxInfra"]"flavorProperties":[
            {
              "hpa_feature" : "cpuPinningy",
              }
}
Column
width45%
Expand
titleComments and Notes: HPA Basic Capabilities Policy

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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA OVS DPDK Policy Example
linenumberstrue
collapsetrue
{"mandatory" : "True",
        "service": "hpaOvsDpdkPolicy",     "policyNamearchitecture": "oofBeijing.hpaOvsDpdkPolicy_vGMuxInfrageneric",
    "description": "HPA OVS DPDK policy for vGMuxInfra",     "templateVersionfeatureAttributes": "0.0.1",[
    "version": "oofBeijing",     "priority": "3",     {"riskTypeattribute": "testlogicalCpuThreadPinningPolicy",     "riskLevelvalue": "2<CPUTHREADPOLICY>",
    "guardoperator": "False=",     "contentunit":""},
{         "ovsDpdkProperties": [ 	      {"attribute":"hpaFeaturelogicalCpuPinningPolicy", "value": "ovsDpdk<CPUPOLICY>","operator": "=", "unit":""},
          {"attribute":"architecture", "value": "INTELx64","operator": "=", "unit": ""},  ]
            }
            {"attribute":"mandatory",
"value": "true","operator": "=", "unit":""},           {"attribute":"dataProcessingAccelerationLibrary", "value":"ovsDpdk_version", "operator""hpa_feature" : "=basicCapabilities", "unit":""},
  
     ],         "identitymandatory" : "ovsDpdk_vGMuxInfraTrue",
        "policyScope": ["vCPE      "architecture": "generic",
              "featureAttributes": [
                {"attribute": "numVirtualCpu", "USvalue",: "INTERNATIONAL6", "ipoperator",: "vGMuxInfra="], "unit": ""},
      "type": "hpaOvsDpdkPolicy",         {"resourceInstanceTypeattribute": ["vGMuxInfravirtualMemSize"]
    }
}
Column
width45%
Expand
titleComments and Notes: HPA OVS DPDK Policy

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.

For this policy others architectures are also applicable.

Section
bordertrue

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.

CPUTHREADPOLICY = prefer, isolate, require
CPUPOLICY = shared, dedicated
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA CPU Pinning Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaCpuPinningPolicy",, "value":"6", "operator": "=", "unit": "GB"}
              ]
            }
            {
              "hpa_feature" : "localStorage",
              "policyNamemandatory" : "oofBeijing.hpaCpuPinningPolicy_vGMuxInfraFalse",
    "description": "CPU Pinning policy for vGMuxInfra",     "templateVersionscore" : "0.0.15",
    "version": "oofBeijing",
    "priority": "3",     "riskTypearchitecture": "testgeneric",
    "riskLevel": "2",     "guard": "False",     "contentfeatureAttributes": {
 [
      "cpuPinningProperties":  [           {"attribute": "hpaFeaturediskSize", "value": "cpuPinning2", "operator": "=", "unit": "GB"},   
      	        {"attribute": "architectureephemeralDiskSize", "value": "generic2", "operator": "=", "unit": "GB"},
  		        {"attribute": "mandatoryswapMemSize", "value": "true16", "operator": "=", "unit": "MB"},
          {"attribute":"logicalCpuThreadPinningPolicy", "value":"<CPUTHREADPOLICY>", "operator": "=", "unit":""},    ]
            {"attribute":"logicalCpuPinningPolicy", "value": "<CPUPOLICY>","operator": "=", "unit":""},}
        ],    {
    "identity": "cpuPinning_vGMuxInfra",         "policyScopehpa_feature" : ["vCPEpcie",
"US", "INTERNATIONAL", "ip", "vGMuxInfra"],              "typemandatory" : "hpaCpuPinningTrue",
              "resourceInstanceTypearchitecture": ["vGMuxInfra"]generic",
             }
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Pinning Policy
Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA NUMA Policy Example
linenumberstrue
collapsetrue
{ "featureAttributes": [
                {"serviceattribute": "hpaNumaPolicypciCount",     "policyNamevalue": "oofBeijing.hpaNumaPolicy_vGMuxInfra2",
    "descriptionoperator": "Hyper NUMA policy for vGMuxInfra=",     "templateVersionunit": "0.0.1"},
    "version": "oofBeijing",     "priority": "3",     {"riskTypeattribute": "testpciVendorId",     "riskLevelvalue": "28086",
    "guardoperator": "False=",     "contentunit": {
 ""},
	       "numaProperties": [    		 {"attribute": "hpaFeaturepciDeviceId", "value": "numa2", "operator": "=", "unit": ""}, 
                {"attribute": "architecturefunctionType", "value": "generic<PCITYPEVALUE>", "operator": "=", "unit": ""}, 
         {"attribute": "mandatory", "value": "false", "operator": "=", "unit": ""}, ]
           {"attribute": "score", "value": "4", "operator": "=", "unit": ""},
  }
          ] 
      {"attribute": "numaNodes", "value": "2", "operator": "=", "unit": ""}, }
        {
     {"attribute": "numaCpu-0", "values":"2", "operator": "=", "unitflavorLabel": "flavor_label_vm_03"},
          {"attributeflavorProperties": "numaMem-0", "value": "2048", "operator": "=", "unit": "MB"}[
            {
          {"attribute": "numaCpu-1", "values":"4", "operator": "=hpa_feature", "unit": "numa"},
         {"attribute": "numaMem-1", "value": "4096", "operator": "=mandatory", "unit": "MBFalse"},
        ],         "identityscore" : "numa_vGMuxInfra",5",
              "architecture": "generic",
              "policyScopefeatureAttributes": ["vCPE
                {"attribute": "numaNodes", "USvalue",: "INTERNATIONAL2", "ipoperator",: "vGMuxInfra="], "unit": ""},
      "type": "hpaNumaPolicy",         {"resourceInstanceTypeattribute": ["vGMuxInfranumaCpu-0"]
    }
}
Column
width45%
Expand
titleComments and Notes: HPA NUMA Policy

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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA SGX Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaSgxPolicy",
    "policyName": "oofBeijing.hpaSgxPolicy_vGMuxInfra",
    "description": "SGX policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "oofBeijing",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {, "values":"2", "operator": "=", "unit": ""},
                {"attribute": "numaMem-0", "value": "2048", "operator": "=", "unit": "MB"}
                {"attribute": "numaCpu-1", "values":"4", "operator": "=", "unit": ""},
             "sgxProperties": [           {"attribute": "hpaFeaturenumaMem-1", "value": "sgx4096", "operator": "=", "unit": "MB"},
              ]
       {"attribute":"architecture", "value": "INTELx64","operator": "=", "unit": ""},
            {"attribute":"mandatory", "value": "false","operator": "=", "unit":""},
              "hpa_feature" : "basicCapabilities",
              "mandatory" : "True",
              "architecture": "generic",
              "featureAttributes": [
                {"attribute": "scorenumVirtualCpu", "value": "46", "operator": "=", "unit": ""},
                {"attribute": "sgxMemSizevirtualMemSize", "value": "656", "operator": "=", "unit": "MBGB"},
          {"attribute":"sgxPubkeyHash", "value": "octect_string","operator": "=", "unit": ""}, ]
         ],   }
     "identity": "sgx_vGMuxInfra",      {
  "policyScope":["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
        "typehpa_feature" : "hpaSgxPolicyhugePages",
              "resourceInstanceTypemandatory" : ["vGMuxInfraFalse"],
     }
}
Column
width45%
Expand
titleComments and Notes: HPA SGX Policy

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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleAffinity Policy Example
linenumberstrue
collapsetrue
{         "servicescore" : "affinityPolicy7",
    "policyName": "oofBeijing.affinityPolicy_vcpe",          "descriptionarchitecture": "Affinity policy for vCPE",generic",
              "templateVersionfeatureAttributes": "1702.03", [
           "version": "oofBeijing",     {"priorityattribute": "5memoryPageSize",
    "riskTypevalue": "test<MEMORYPAGESIZE>",     "riskLeveloperator": "2=",     "guardunit": "False",}
    "content": {         "identity": "affinity_vCPE",]
          "policyScope": { }
          ] "serviceType":
["vCPE"],        }
    "geoRegion": ["US", "INTERNATIONAL"],
    }
       "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra", "vG"]
        },
        "affinityProperty": {
            "qualifier": {"value": "different", "operator": "="},
            "category": {"value": "complex", "operator": "="}
        },
        "type": "affinityPolicy",
        "resourceInstanceType": ["vGMuxInfra", "vG"]
    }
}
Column
width45%
Expand
titleComments and Notes: Affinity Policy

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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleCapacity Policy Example
linenumberstrue
collapsetrue
{
    "service": "capacityPolicy",
    "policyName": "oofBeijing.capacityPolicy_vGMuxInfra",
    "description": "Capacity policy for vGMuxInfra",
    "templateVersion": "1702.03",
    "version": "oofBeijing",
    "priority": "5",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "identity": "capacity_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.



CPUTHREADPOLICY = prefer, isolate, require


CPUPOLICY = shared, dedicated


PCIETYPEVALUE: SRIOV, PCI-PASSTHROUGH

CPUINST = aes, avx, sha_ni, mpx, adcx, mpx, pclmulqdq, rdrand,sse, etc

MEMORYPAGESIZE = 4KB (unit=KB), 2MB (unit=MB), 1GB(unit=GB), ANY, Other explicit Page size



Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleDistance Policy Example
linenumberstrue
collapsetrue
{
  "service": "distancePolicy",
  "policyName": "oofBeijing.distancePolicy_vGMuxInfra",
  "description": "Distance Policy for vGMuxInfra",
  "templateVersion": "0.0.1",
  "version": "oofBeijing",
  "priority": "3",
  "riskType": "test",
  "riskLevel": "2",
  "guard": "False",
  "content": {
    "distanceProperties": {
      "locationInfo": { "value": "customer_location", "operator": "="},
      "distance": { "value": "500", "operator": "<", "unit": "km" },
      "resourceInstanceType": { "value": "vGMuxInfra", "operator": "="},
    },
    "identity": "distance-vGMuxInfra",
    "policyScope": {
            "serviceType": ["VCPEvCPE"],
     
      "geoRegion": ["US", "INTERNATIONAL"],
 
          "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra"]
        },
   
    "capacityPropertytype": {
            "cpu": {"value": 2, "operator": ">"},
            "memory": {"value": 4, "operator": ">", "unit": "Gb"}
        },
   "distancePolicy"
  }
}
Column
width45%
Expand
titleComments and Notes: Distance Policy

The fields in this example policy are typically generated from a TOSCA service model specified by VNF vendors or service designers. However, the policy can be updated over time by operators.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Basic Capabilities Policy Example
linenumberstrue
collapsetrue
{
    "hpa_feature" : "basicCapabilities",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "generic",
    "typefeatureAttributes": "capacityPolicy",[
        {"resourceInstanceTypeattribute": ["vGMuxInfranumVirtualCpu"]
    }
}, "value": "6", "operator": "=", "unit": ""},
       {"attribute": "virtualMemSize", "value":"6", "operator": "=", "unit": "GB"}
    ]
}
Column
width45%
Expand
titleComments and Notes: Capacity HPA Basic Capabilities Policy

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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleMin Guarantee HPA OVS DPDK Policy Example
linenumberstrue
collapsetrue
{
    "servicehpa_feature" : "minGuaranteePolicyovsDpdk",
    "policyNamemandatory" : "oofBeijing.minGuaranee_vGMuxInfraFalse",
    "descriptionscore" : "Min guarantee policy for vGMuxInfra",5"
    "templateVersionarchitecture": "1702.03INTEL-64",
    "versionfeatureAttributes": "oofBeijing",
  [
 "priority": "5",     {"riskTypeattribute": "testdataProcessingAccelerationLibrary",
    "riskLevelvalue": "2ovsDpdk_version",     "guardoperator": "False=",
    "contentunit": {
        "identity": "minGuarantee_vGMuxInfra",}
         "policyScope": {
            "serviceType": ["vCPE"],
            "geoRegion": ["US", "INTERNATIONAL"],
            "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra"]
        },
        "minGuaranteeProperty": {
            "cpu": {"value": "true]
}
Column
width45%
Expand
titleComments and Notes: HPA OVS DPDK Policy

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.

For this policy others architectures are also applicable.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA CPU Pinning Policy Example
linenumberstrue
collapsetrue
{
   "hpa_feature" : "cpuPinning",
   "mandatory" : "False",
   "score" : "5"
   "architecture": "generic",
   "featureAttributes": [
     {"attribute":"logicalCpuThreadPinningPolicy", "value":"<CPUTHREADPOLICY>", "operator": "="},  "unit":""},
          "memory{"attribute":"logicalCpuPinningPolicy", {"value": "false<CPUPOLICY>", "operator": "="}
        },
        "typeunit": "minGuaraneePolicy"},
        "resourceInstanceType": ["vGMuxInfra"]
    }
}
Column
width45%
Expand
titleComments and Notes: Min Guarantee HPA CPU Pinning Policy

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.


CPUTHREADPOLICY = prefer, isolate, require
CPUPOLICY = shared, dedicated


Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleOptimization HPA NUMA Policy Example
linenumberstrue
collapsetrue
{
    "servicehpa_feature" : "PlacementOptimizationPolicynuma",
    "policyNamemandatory" : "oofBeijing.PlacementOptimizationPolicy_vGMuxInfra""False",
    "descriptionscore" : "Placement Optimization Policy for vGMuxInfra",5"
    "templateVersionarchitecture": "1702.03generic",
    "versionfeatureAttributes": "oofBeijing", [
       {"priorityattribute": "5numaNodes", "value": "2", "operator": "=", "riskTypeunit": "test"},
       {"riskLevelattribute": "3numaCpu-0",     "guard"values":"2", "operator": "False=",     "contentunit": {""},
        {"objectiveParameterattribute": {
            "parameterAttributes": [
     "numaMem-0", "value": "2048", "operator": "=", "unit": "MB"},
          {
     {"attribute": "numaCpu-1", "values":"4", "operator": "=", "unit": ""},
       {"attribute": "numaMem-1",     "value": "4096", "resourceoperator": ["vGMuxInfra="], "unit": "MB"}
    ]
}
Column
width45%
Expand
titleComments and Notes: HPA NUMA Policy

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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA CPU Topology Policy Example
linenumberstrue
collapsetrue
{
   "hpa_feature" : "cpuTopology",
      "customerLocationInfomandatory" : "customer_locFalse",
   "score" : "5"
   "architecture": "generic",
   "featureAttributes": [
      {"parameterattribute": "distancenumCpuSockets", "values": "2","operator": ">=", "unit": ""},
      {"attribute":"numCpuSockets", "values":        "weight"4","operator": "<=", "unit": "1"},
                    {"attribute":"numCpuCores", "value": "2", "operator":">=", "productunit"=: ""},
      {"attribute":"numCpuCores", "value": "4", "operator":"<=",      "unit": ""},
      {"attribute":"numCpuThreads", "value": "4", "operator":">=", "unit": ""},
    {                     "resource": ["vG"],
                    "customerLocationInfo{"attribute":"numCpuThreads", "value": "customer_loc8",                     "parameter": "distance",
                    "weight"operator":"<=", "unit": "1",}
     ]
}
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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleAffinity Policy Example
linenumberstrue
collapsetrue
{
    "service": "affinityPolicy",
      "policyName": "oofBeijing.affinityPolicy_vcpe",
    "operatordescription": "product"Affinity policy for vCPE",
    "templateVersion": "1702.03",
    "version": "oofBeijing",
 }   "priority": "5",
        ]"riskType": "test",
    "riskLevel": "2",
      "operatorguard": "sumFalse",
    "content": {
  },         "identity": "optimizationaffinity_vCPE",
        "policyScope": {
            "serviceType": ["vCPE"],
            "geoRegion": ["US", "INTERNATIONAL"],
            "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra", "vG"]
        },
        "typeaffinityProperty": "placementOptimization", {
            "objectivequalifier": {"minimizevalue"
    }
}: "different", "operator": "="},
            "category": {"value": "complex", "operator": "="}
        },
        "type": "affinityPolicy",
        "resourceInstanceType": ["vGMuxInfra", "vG"]
    }
}
Column
width45%
Expand
titleComments and Notes: Optimization Affinity Policy

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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA PCIe Passthrough Capacity Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaPciePassthroughPolicycapacityPolicy",
    "policyName": "oofBeijing.hpaPciePassthroughPolicycapacityPolicy_vGMuxInfra",
    "description": "PcieCapacity Passthrough policy for vGMuxInfra",
    "templateVersion": "01702.0.103",
    "version": "oofBeijing",
    "priority": "35",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "PciePassthroughPropertiesidentity": ["capacity_vGMuxInfra",
          {"attribute":"hpaFeature", "value": "pciePassthrough","operator": "=", "unit":""},policyScope": {
            "serviceType": ["VCPE"],
           {"attribute":"architecture", "valuegeoRegion": ["genericUS","operator": "=INTERNATIONAL"],
"unit": ""},           {"attributenetworkType": ["mandatoryip"],
     "value       "resourceInstanceType": ["false","operator": "=", "unit":""},vGMuxInfra"]
        },
        "capacityProperty": {
            {"attributecpu":"score", {"value": "4"2, "operator": "=>"},
"unit": ""},           {"attributememory": {"pciCount", "value": "2"4, "operator": "=>", "unit": "Gb"},
        },
 {"attribute": "pciVendorId", "value":"8086", "operator": "=", "unit": ""},
	      {"attribute": "pciDeviceId", "value": "2", "operator": "=", "unit": ""}   
       ],
        "identity": "pciePassthrough_vGMuxInfra",       "type": "capacityPolicy",
        "resourceInstanceType": ["vGMuxInfra"]
        "policyScope":["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"]}
}
Column
width45%
Expand
titleComments and Notes: Capacity Policy

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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleMin Guarantee Policy Example
linenumberstrue
collapsetrue
{
    "service": "minGuaranteePolicy",
    "policyName": "oofBeijing.minGuaranee_vGMuxInfra",
        "typedescription": "hpaPciePassthroughPolicy",Min guarantee policy for  vGMuxInfra",
    "resourceInstanceTypetemplateVersion": ["vGMuxInfra"]
1702.03",
   } }
Column
width45%
Expand
titleComments and Notes: HPA PCIe Passthrough Policy Example
Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Local Storage Policy Example
linenumberstrue
collapsetrue
{
    "service"version": "hpaLocalStoragePolicyoofBeijing",
    "policyNamepriority": "oofBeijing.hpaLocalStorage_vGMuxInfra5",
    "descriptionriskType": "HPA Local Storage policy for vGMuxInfratest",
    "templateVersionriskLevel": "0.0.12",
    "versionguard": "oofBeijingFalse",
    "prioritycontent": "3",{
    "riskType": "test",     "riskLevelidentity": "2minGuarantee_vGMuxInfra",
    "guard": "False",
    "contentpolicyScope": {
            "LocalStoragePropertiesserviceType": ["vCPE"],
          {"attribute":"hpaFeature",  "valuegeoRegion": ["localStorageUS","operator": "=INTERNATIONAL"], "unit":""},
            {"attributenetworkType": ["architectureip"],
            "valueresourceInstanceType": ["generic","operatorvGMuxInfra"]
        },
        "minGuaranteeProperty": "=", "unit": ""},{
            {"attributecpu":"mandatory", {"value": "falsetrue", "operator": "="},
"unit":""},            {"attributememory":"score", {"value": "4false", "operator": "=", "unit": ""},
	}
        },
        {"attributetype": "diskSize", "value": "2", "operator": "=", "unit": "GB"}, minGuaraneePolicy",
  	      {"attributeresourceInstanceType": ["ephemeralDiskSizevGMuxInfra",]
"value": "2", "operator": "=", "unit": "GB"},
		  {"attribute": "swapMemSize", "value":"16", "operator": "=", "unit": "MB"} }
}
Column
width45%
Expand
titleComments and Notes: Min Guarantee Policy

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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleOptimization Policy Example
linenumberstrue
collapsetrue
{
    "service": "PlacementOptimizationPolicy",
    "policyName": "oofBeijing.PlacementOptimizationPolicy_vGMuxInfra",
    "description": "Placement  ]Optimization Policy for vGMuxInfra",
    "templateVersion": "1702.03",
    "identityversion": "localStorage_vGMuxInfraoofBeijing",
    "priority": "5",
    "policyScoperiskType":[ "vCPEtest",
"US    "riskLevel": "3",
    "INTERNATIONALguard",: "ipFalse",
    "vGMuxInfra"],content": {
        "typeobjectiveParameter": "hpaLocalStoragePolicy",{
            "resourceInstanceTypeparameterAttributes": ["vGMuxInfra"]
             }
}
Column
width45%
Expand
titleComments and Notes: HPA Generic Attributes 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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA CPU Instruction Set Extensions Policy Example
linenumberstrue
collapsetrue
{   {
      "service": "hpaCpuInstructionSetExtensionsPolicy",     "policyName": "oofBeijing.hpaCpuInstructionSetExtensionsPolicy_vGMuxInfra",        "descriptionresource": "Cpu Instruction Set Extensions policy for vGMuxInfra",["vGMuxInfra"],
                    "templateVersioncustomerLocationInfo": "0.0.1customer_loc",
    "version": "oofBeijing",                "priorityparameter": "3distance",
    "riskType": "test",          "riskLevel": "2",     "guardweight": "False1",

   "content": {         "avxProperties": [ 	      {"attributeoperator": "hpaFeatureproduct", "value": "cpuInstructionSetExtensions","operator": "=", "unit":""},=
                {"attribute":"architecture"},
"value": "INTELx64","operator": "=", "unit": ""},                {"attribute":"mandatory", "value": "true","operator": "=", "unit":""},
                    {"attributeresource":"instructionSetExtensions", "value": ["avxvG"],
"aes"] "operator": "ALL", "unit":""},         ],         "identitycustomerLocationInfo": "cpuInstructionSetExtensionscustomer_vGMuxInfraloc",
        "policyScope            "parameter": ["vCPEdistance", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
                    "typeweight": "hpaCpuInstructionSetExtensionsPolicy1",
                    "resourceInstanceTypeoperator": ["vGMuxInfraproduct"]
     } }
Column
width45%
Expand
titleComments and Notes: HPA CPU Instruction Set Extensions Policy Example
instructionSetExtensions attribute has a list of all instruction set extensions required. 
Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Huge Pages Policy Example
linenumberstrue
collapsetrue
{}
     "service": "hpaHugePagesPolicy",     "policyName": "oofBeijing.hpaHugePagesPolicy_vGMuxInfra" ],
    "description": "HPA Huge Pages policy for vGMuxInfra",     "templateVersionoperator": "0.0.1",sum"
        },
        "versionidentity": "oofBeijingoptimization",
        "prioritypolicyScope": "3",{
            "riskTypeserviceType": ["testvCPE"],
    "riskLevel": "2",        "guardgeoRegion": ["FalseUS", "INTERNATIONAL"],
   "content": {
        "HugePagesPropertiesnetworkType": ["ip"],
            {"attributeresourceInstanceType": ["hpaFeaturevGMuxInfra", "valuevG": "hugePages","operator": "=", "unit":""},
          {"attribute":"architecture", "value": "generic","operator": "=", "unit": ""},
   ]
        },
        "type": "placementOptimization",
        "objective": "minimize"
    }
}
Column
width45%
Expand
titleComments and Notes: Optimization Policy

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.



Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA PCIe Policy Example
linenumberstrue
collapsetrue
{
    "hpa_feature" : "pcie",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "generic",
    "featureAttributes": [
      {"attribute": "pciCount", "value": "2", "operator": "=", "unit": ""},
      {"attribute": "pciVendorId", "value":"8086", "operator": "=", "unit": ""},
	  {"attribute": "pciDeviceId", "value": "2", "operator": "=", "unit": ""} 
      {"attribute": "functionType", "value": "<PCIETYPEVALUE>","operator": "=", "unit": ""} 
     ]
}
Column
width45%
Expand
titleComments and Notes: HPA PCIe Policy Example

PCIETYPEVALUE: SRIOV, PCI-PASSTHROUGH

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Local Storage Policy Example
linenumberstrue
collapsetrue
{
    "hpa_feature" : "localStorage",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "generic",
    "featureAttributes": [
       {"attribute": "diskSize", "value": "2", "operator": "=", "unit": "GB"},   
       {"attribute": "ephemeralDiskSize", "value": "2", "operator": "=", "unit": "GB"},
	   {"attribute": "swapMemSize", "value":"16", "operator": "=", "unit": "MB"},
     ]
}
Column
width45%
Expand
titleComments and Notes: HPA Generic Attributes 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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA CPU Instruction Set Extensions Policy Example
linenumberstrue
collapsetrue
{
    "hpa_feature" : "cpuInstructionSetExtensions",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "INTEL-64",
    "featureAttributes": [
      {"attribute":"mandatoryinstructionSetExtensions", "value":["<CPUINST>", "false<CPUINST>",] "operator": "=ALL", "unit":""},
          {"attribute":"score", "value": "4", "operator":"=", "unit": ""},
          {"attribute": "memoryPageSize", "value": "<MEMORYPAGESIZE>", "operator": "=", "unit": ""},
       ],
        "identity": "hugePagesAttributes_vGMuxInfra",
     ]
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Instruction Set Extensions Policy Example
instructionSetExtensions attribute has a list of all instruction set extensions required. 
CPUINST = aes, avx, sha_ni, mpx, adcx, mpx, pclmulqdq, rdrand,sse, etc
Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Huge Pages Policy Example
linenumberstrue
collapsetrue
{
    "hpa_feature" : "hugePages",
    "mandatory" : "False",
    "score" : "5"
    "architecture": "generic",
    "featureAttributes": [
        {"policyScopeattribute":["vCPE", "USmemoryPageSize", "INTERNATIONALvalue",: "ip<MEMORYPAGESIZE>", "vGMuxInfra"],
        "type"operator": "hpaHugePagesPolicy=",
        "resourceInstanceTypeunit": ["vGMuxInfra"]}
    }]
}
Column
width40%
Expand
titleComments and Notes: HPA Huge Pages Policy Example

MEMORYPAGESIZE = 4KB (unit=KB), 2MB (unit=MB), 1GB(unit GB), ANY, Other explicit Page size

...