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": [
      {"attributeresources": "hpaFeaturevGMuxInfra", "value": "cpuTopology","operator": "=", "unit":""}
      "identity": "hpaPolicy_vGMuxInfra",
      {"attributepolicyScope": ["architecturevCPE", "valueUS":, "genericINTERNATIONAL", "operatorip":, "=vGMuxInfra"],
      "unittype": "hpaPolicy"},
      {"attributeflavorFeatures":"mandatory", "value": "false","operator": "=", "unit":""}, [
        {
      {"attribute":"score", "value": "4", "operator":"=", "unitflavorLabel": "flavor_label_vm_01"},
      {"attribute":"numCpuSockets", "values": "2","operator": ">=", "unit": ""},    "flavorProperties":[
            {
      {"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": ["vGMuxInfra""numCpuThreads", "value": "8", "operator":"<=", "unit": ""}
              ]
  }
}
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": "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          }
            {
              "hpa_feature" : "basicCapabilities",
              "mandatory" : "True",
              "architecture": "generic",
              "featureAttributes": [
                {"attribute": "numVirtualCpu", "value": "6", "operator": "=", "unit": ""},
                {"attribute": "virtualMemSize", "value":"6", "operator": "<=", "unit": "kmGB" },
       "resourceInstanceType": { "value": "vGMuxInfra", "operator": "="},
       ]
            },
    "identity": "distance-vGMuxInfra",
       "policyScope": {
              "serviceTypehpa_feature" : ["vCPEovsDpdk"],
      "geoRegion"        "mandatory" : ["USFalse",
              "score" : "INTERNATIONAL3"],
      "networkType        "architecture": ["ipgeneric"],
       "resourceInstanceType       "featureAttributes": ["vGMuxInfra"]
    },
             "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",
    "policyName": "oofBeijing.hpaBasicCapabilitiesPolicy_vGMuxInfra",
    "description": "HPA Basic Capabilities policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "oofBeijing",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False{"attribute":"dataProcessingAccelerationLibrary", "value":"ovsDpdk_version", "operator": "=", "unit":""}
              ]
            }
            {
              "hpa_feature" : "cpuInstructionSetExtensions",
    "content": {
          "BasicCapabilitiesPropertiesmandatory" : ["True",
          {"attribute    "architecture": "hpaFeatureINTEL-64",
 "value": "basicCapabilities","operator": "=", "unit":""},
          {"attributefeatureAttributes":"architecture", "value": "generic","operator": "=", "unit": ""},
 [
                {"attribute":"mandatoryinstructionSetExtensions", "value":["<CPUINST>", "false<CPUINST>",] "operator": "=ALL", "unit":""},
           {"attribute":"score", "value": "4", "operator":"=", "unit": ""},
   ]
            }
 {"attribute": "numVirtualCpu", "value": "6", "operator": "=", "unit": ""},
  ] 
       {"attribute": "virtualMemSize", "value":"6", "operator": "=", "unit": "GB"},
       ],
 }
        {
          "identityflavorLabel": "basicCapabilities_vGMuxInfraflavor_label_vm_02",
          "policyScopeflavorProperties":["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"]
            {
              "hpa_feature" : "cpuPinningy",
              "mandatory" : "True",
        "type      "architecture": "hpaBasicCapabilitiesPolicygeneric",
              "resourceInstanceTypefeatureAttributes": ["vGMuxInfra"]
    }
}
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
{
    "service": "hpaOvsDpdkPolicy",
    "policyName": "oofBeijing.hpaOvsDpdkPolicy_vGMuxInfra",
    "description": "HPA OVS DPDK policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "oofBeijing",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
                {"attribute":"logicalCpuThreadPinningPolicy", "value":"<CPUTHREADPOLICY>", "operator": "=", "unit":""},
                {"attribute":"logicalCpuPinningPolicy", "value": "<CPUPOLICY>","operator": "=", "unit":""},
              ]
        "ovsDpdkProperties": [
	    }
            {"attribute":"hpaFeature", "value": "ovsDpdk","operator": "=", "unit":""},

              "hpa_feature" : "basicCapabilities",
              "mandatory" : "True",
              "architecture": "generic",
              "featureAttributes": [
                {"attribute": "architecturenumVirtualCpu", "value": "INTELx646", "operator": "=", "unit": ""},
                {"attribute": "mandatoryvirtualMemSize", "value": "true6", "operator": "=", "unit": "GB"},
          {"attribute":"dataProcessingAccelerationLibrary", "value":"ovsDpdk_version", "operator": "=", "unit":""}, ]
        ],    }
        "identity": "ovsDpdk_vGMuxInfra",    {
        "policyScope"      "hpa_feature" : ["vCPElocalStorage", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],

              "typemandatory" : "hpaOvsDpdkPolicyFalse",
        "resourceInstanceType"      "score" : ["vGMuxInfra5"],
    }
}
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",
    "policyName": "oofBeijing.hpaCpuPinningPolicy_vGMuxInfra",
    "description": "CPU Pinning policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "oofBeijing",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {           "architecture": "generic",
              "featureAttributes": [
                {"attribute": "diskSize", "value": "2", "operator": "=", "unit": "GB"},   
      	        {"attribute": "ephemeralDiskSize", "value": "2", "operator": "=", "unit": "GB"},
		        {"attribute": "swapMemSize", "value":"16", "operator": "=", "unit": "MB"},
              ]
        "cpuPinningProperties":    [}
            {"attribute":"hpaFeature", "value": "cpuPinning","operator": "=", "unit":""},

              "hpa_feature" : "pcie",
              "mandatory" : "True",
              "architecture": "generic",
              "featureAttributes": [
                {"attribute": "architecturepciCount", "value": "generic2", "operator": "=", "unit": ""},
                {"attribute": "mandatorypciVendorId", "value": "true8086", "operator": "=", "unit": ""},
	            {"attribute": "logicalCpuThreadPinningPolicypciDeviceId", "value": "<CPUTHREADPOLICY>2", "operator": "=", "unit": ""}, 
                {"attribute": "logicalCpuPinningPolicyfunctionType", "value": "<CPUPOLICY><PCITYPEVALUE>","operator": "=", "unit": ""},
 
              ],
        "identity": "cpuPinning_vGMuxInfra",
   }
     "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"], 
        "type": "hpaCpuPinning",
}
        {
          "resourceInstanceTypeflavorLabel": ["vGMuxInfra"]
"flavor_label_vm_03",
        }
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Pinning Policy
Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA NUMA Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaNumaPolicy  "flavorProperties":[
            {
              "hpa_feature" : "numa",
    "policyName"          "mandatory" : "oofBeijing.hpaNumaPolicy_vGMuxInfraFalse",
    "description": "Hyper NUMA policy for vGMuxInfra",
          "templateVersionscore" : "0.0.15",
    "version": "oofBeijing",
          "priorityarchitecture": "3generic",
    "riskType": "test",
      "riskLevel": "2",
    "guardfeatureAttributes": "False",[
    "content": {
        "numaProperties": [   
		 {"attribute": "hpaFeaturenumaNodes", "value": "numa2", "operator": "=", "unit": ""},
                {"attribute": "architecturenumaCpu-0", "valuevalues": "generic2", "operator": "=", "unit": ""},
                {"attribute": "mandatorynumaMem-0", "value": "false2048", "operator": "=", "unit": "MB"},
                {"attribute": "scorenumaCpu-1", "valuevalues": "4", "operator": "=", "unit": ""},
                {"attribute": "numaNodesnumaMem-1", "value": "24096", "operator": "=", "unit": "MB"},
         {"attribute": "numaCpu-0", "values":"2", "operator": "=", "unit": ""},     ]
            }
         {"attribute": "numaMem-0", "value": "2048", "operator": "=", "unit": "MB"}
   {
              "hpa_feature" : "basicCapabilities",
              {"attributemandatory" : "numaCpu-1True",
 "values             "architecture": "4generic", "operator": "=", "unit": ""},
              "featureAttributes": [
                {"attribute": "numaMem-1numVirtualCpu", "value": "40966", "operator": "=", "unit": "MB"},
        ],
        {"identityattribute": "numa_vGMuxInfravirtualMemSize",
        "policyScope"value":["vCPE6", "USoperator",: "INTERNATIONAL=", "ipunit",: "vGMuxInfraGB"],}
        "type": "hpaNumaPolicy",
     ]
            }
            {
          "resourceInstanceType"    "hpa_feature" : ["vGMuxInfrahugePages"],
     }
}
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": {
         "mandatory" : "False",
              "score" : "7",
              "architecture": "generic",
              "featureAttributes": [
                 {"attribute": "memoryPageSize", "value": "<MEMORYPAGESIZE>", "operator": "=", "unit": ""}
             "sgxProperties": []
          {"attribute":"hpaFeature", "value": "sgx","operator": "=", "unit":""},
  }
          ] 
   {"attribute":"architecture", "value": "INTELx64","operator": "=", "unit": ""},
      ]
    {"attribute":"mandatory", "value": "false"}
}
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": {,"operator": "=", "unit":""},
          {"attribute":"score", "value": "4", "operator":"=", "unit": ""},
          {"attribute":"sgxMemSize", "value": "65","operator": "=", "unit":"MB"},
          {"attribute":"sgxPubkeyHash", "value": "octect_string","operator": "=", "unit": ""},
        ],
      "locationInfo": { "identityvalue": "sgxcustomer_vGMuxInfralocation",
 "operator": "="},
      "policyScopedistance":[ { "vCPEvalue",: "US500", "operator": "INTERNATIONAL<", "ip","unit": "km" },
      "resourceInstanceType": { "value": "vGMuxInfra"], "operator": "="},
    },
    "typeidentity": "hpaSgxPolicydistance-vGMuxInfra",
    "policyScope": {
      "resourceInstanceTypeserviceType": ["vGMuxInfravCPE"],
    }
}  "geoRegion": ["US", "INTERNATIONAL"],
      "networkType": ["ip"],
      "resourceInstanceType": ["vGMuxInfra"]
    },
    "type": "distancePolicy"
  }
}
Column
width45%
Expand
titleComments and Notes: Distance
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 However, the policy cannot be changed during the life-cycle of a servicecan be updated over time by operators.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleAffinity HPA Basic Capabilities Policy Example
linenumberstrue
collapsetrue
{
    "servicehpa_feature" : "affinityPolicybasicCapabilities",
    "policyNamemandatory" : "oofBeijing.affinityPolicy_vcpeFalse",
    "descriptionscore" : "Affinity policy for vCPE",5"
    "templateVersionarchitecture": "1702.03generic",
    "versionfeatureAttributes": "oofBeijing",
[
       {"priorityattribute": "5numVirtualCpu",
   "value": "6", "riskTypeoperator": "test=",
    "riskLevelunit": "2"},
       {"guardattribute": "FalsevirtualMemSize",
    "content": {
        "identity "value":"6", "operator": "=", "unit": "affinity_vCPEGB",}
        "policyScope": ]
}
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
{
    "hpa_feature"    : "ovsDpdk",
    "serviceTypemandatory" : ["vCPEFalse"],
    "score" :  "5"
     "geoRegionarchitecture": ["US", "INTERNATIONAL"]"INTEL-64",
    "featureAttributes": [
       {"networkTypeattribute": ["ipdataProcessingAccelerationLibrary"],
            "resourceInstanceTypevalue": ["vGMuxInfraovsDpdk_version", "vGoperator"]
        },
        "affinityProperty": {: "=", "unit":""}
            "qualifier": {"value": "different", "operator": "="},
            "category": {"value": "complex", "operator": "="}
        },
        "type": "affinityPolicy",
        "resourceInstanceType": ["vGMuxInfra", "vG"]
    }
}]
}
Column
width45%
Expand
titleComments and Notes: HPA OVS DPDK
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.

For this policy others architectures are also applicable.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleCapacity HPA CPU Pinning Policy Example
linenumberstrue
collapsetrue
{
    "servicehpa_feature" : "capacityPolicycpuPinning",
    "policyNamemandatory" : "oofBeijing.capacityPolicy_vGMuxInfraFalse",
    "descriptionscore" : "Capacity policy for vGMuxInfra",5"
    "templateVersionarchitecture": "1702.03generic",
    "versionfeatureAttributes": "oofBeijing",[
     {"priorityattribute": "5logicalCpuThreadPinningPolicy",
    "riskTypevalue": "test<CPUTHREADPOLICY>",
    "riskLeveloperator": "2=",
    "guardunit": "False"},
     {"contentattribute": {
        "identity"logicalCpuPinningPolicy", "value": "capacity_vGMuxInfra<CPUPOLICY>",
        "policyScope"operator": {
            "serviceType": ["VCPE"]"=", "unit":""},
            "geoRegion": ["US", "INTERNATIONAL"],
            "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra"]
        }]
}
Column
width45%
Expand
titleComments and Notes: 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
titleHPA NUMA Policy Example
linenumberstrue
collapsetrue
{
    "hpa_feature" : "numa",
    "mandatory" : "False",
    "score" : "5"
    "capacityPropertyarchitecture": {"generic",
    "featureAttributes": [
       {"cpuattribute": {"numaNodes", "value": "2", "operator": ">"=", "unit": ""},
       {"attribute": "numaCpu-0", "values":"2", "operator": "=", "memoryunit": ""},
       {"attribute": "numaMem-0", "value": 4"2048", "operator": ">=", "unit": "GbMB"},
        },
        "type{"attribute": "numaCpu-1", "values":"4", "operator": "=", "unit": "capacityPolicy"},
        {"resourceInstanceTypeattribute": ["vGMuxInfra"]numaMem-1", "value": "4096", "operator": "=", "unit": "MB"}
    }]
}
Column
width45%
Expand
titleComments and Notes: Capacity 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
titleMin Guarantee HPA CPU Topology Policy Example
linenumberstrue
collapsetrue
{
    "servicehpa_feature" : "minGuaranteePolicycpuTopology",
    "policyNamemandatory" : "oofBeijing.minGuaranee_vGMuxInfraFalse",
    "descriptionscore" : "Min guarantee policy for vGMuxInfra",5"
    "templateVersionarchitecture": "1702.03generic",
    "versionfeatureAttributes": "oofBeijing",
[
      {"priorityattribute": "5numCpuSockets",
    "riskTypevalues": "test2",
    "riskLevel"operator": ">=", "unit": "2"},
      {"guardattribute": "FalsenumCpuSockets",
 "values": "4","operator": "<=", "contentunit": {""},
        "identity{"attribute":"numCpuCores", "value": "minGuarantee_vGMuxInfra2",
        "policyScope "operator":">=", "unit": {""},
            "serviceType{"attribute": ["vCPEnumCpuCores"],
            "geoRegion": ["US", "INTERNATIONAL"],
            "networkType": ["ip"]"value": "4", "operator":"<=", "unit": ""},
            "resourceInstanceType{"attribute": ["vGMuxInfra"]
        },
        "minGuaranteeProperty": {
            "cpu": {"value": "truenumCpuThreads", "value": "4", "operator":">=", "operatorunit": "="},
            "memory{"attribute":"numCpuThreads", {"value": "false8", "operator": "<="}
        },
        "typeunit": "minGuaraneePolicy",}
        "resourceInstanceType": ["vGMuxInfra"]
    }
}
Column
width45%
Expand
titleComments and Notes: Min Guarantee 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
titleOptimization Affinity Policy Example
linenumberstrue
collapsetrue
{
    "service": "PlacementOptimizationPolicyaffinityPolicy",
    "policyName": "oofBeijing.PlacementOptimizationPolicyaffinityPolicy_vGMuxInfravcpe",
    "description": "PlacementAffinity Optimization Policypolicy for vGMuxInfravCPE",
    "templateVersion": "1702.03",
    "version": "oofBeijing",
    "priority": "5",
    "riskType": "test",
    "riskLevel": "32",
    "guard": "False",
    "content": {
        "objectiveParameteridentity": {
    "affinity_vCPE",
        "parameterAttributespolicyScope": [{
                {
  "serviceType": ["vCPE"],
                  "resource"geoRegion": ["vGMuxInfraUS", "INTERNATIONAL"],
                    "customerLocationInfonetworkType": ["customer_locip"],
                    "parameter"resourceInstanceType": ["distancevGMuxInfra", "vG"]
          },
          "weightaffinityProperty": "1",{
            "qualifier": {"value":       "different", "operator": "product="=},
            "category":    },
                {
                    "resource": ["vG"],{"value": "complex", "operator": "="}
        },
            "customerLocationInfotype": "customer_locaffinityPolicy",
                    "parameter"resourceInstanceType": ["distancevGMuxInfra", "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
{
     "weightservice": "1capacityPolicy",
    "policyName": "oofBeijing.capacityPolicy_vGMuxInfra",
    "description": "Capacity policy    for vGMuxInfra",
     "operatortemplateVersion": "product1702.03",
    "version": "oofBeijing",
    "priority": "5",
      }"riskType": "test",
            ],
   "riskLevel": "2",
         "operatorguard": "sumFalse",
        },"content": {
        "identity": "optimizationcapacity_vGMuxInfra",
        "policyScope": {
            "serviceType": ["vCPEVCPE"],
            "geoRegion": ["US", "INTERNATIONAL"],
            "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra", "vG"]
        },
        "typecapacityProperty": "placementOptimization",
{
           "objective "cpu": {"value": 2, "minimize"
    }
}operator": ">"},
            "memory": {"value": 4, "operator": ">", "unit": "Gb"}
        },
        "type": "capacityPolicy",
        "resourceInstanceType": ["vGMuxInfra"]
    }
}
Column
width45%
Expand
titleComments and Notes: Capacity Policy

The fields in

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 Passthrough Min Guarantee Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaPciePassthroughPolicyminGuaranteePolicy",
    "policyName": "oofBeijing.hpaPciePassthroughPolicyminGuaranee_vGMuxInfra",
    "description": "PcieMin Passthroughguarantee policy for vGMuxInfra",
    "templateVersion": "01702.0.103",
    "version": "oofBeijing",
    "priority": "35",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "PciePassthroughPropertiesidentity": [
  "minGuarantee_vGMuxInfra",
        {"attribute":"hpaFeature", "valuepolicyScope": {
            "serviceType": ["pciePassthroughvCPE","operator],
            "geoRegion": ["=US", "unit":""}INTERNATIONAL"],
            {"attributenetworkType": ["architectureip"],
  "value          "resourceInstanceType": ["generic","operator": "=", "unit": ""},vGMuxInfra"]
        },
        "minGuaranteeProperty": {
          {  "attributecpu":"mandatory", {"value": "falsetrue", "operator": "=", "unit":""},
          {  "attributememory":"score", {"value": "4false", "operator": "=", "unit": ""},
        },
  {"attribute": "pciCount", "value": "2", "operator": "=", "unittype": "minGuaraneePolicy"},
          {"attributeresourceInstanceType": ["pciVendorIdvGMuxInfra", "value":"8086", "operator": "=", "unit": ""},
	      {"attribute": "pciDeviceId", "value": "2", "operator": "=", "unit": ""}   
       ]]
    }
}
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",
    "version": "oofBeijing",
    "identitypriority": "pciePassthrough_vGMuxInfra5",
    "riskType": "test",
    "policyScoperiskLevel":[ "vCPE3",
    "USguard",: "INTERNATIONALFalse",
    "ipcontent", "vGMuxInfra"],: {
        "typeobjectiveParameter": "hpaPciePassthroughPolicy", 
 {
            "resourceInstanceTypeparameterAttributes": ["vGMuxInfra"]
    }
}
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": "hpaLocalStoragePolicy",
    "policyName": "oofBeijing.hpaLocalStorage_vGMuxInfra", {
    "description": "HPA Local Storage policy for vGMuxInfra",
            "templateVersion": "0.0.1",
    "versionresource": ["oofBeijingvGMuxInfra"],
     "priority": "3",
          "riskType": "test",
    "riskLevelcustomerLocationInfo": "2customer_loc",
    "guard": "False",
       "content": {
        "LocalStoragePropertiesparameter": ["distance",
           {"attribute":"hpaFeature", "value": "localStorage","operator": "=", "unit":""}         "weight": "1",
          {"attribute":"architecture", "value": "generic","          "operator": "product"=", "unit": ""},

            {"attribute":"mandatory", "value": "false","operator": "=", "unit":""},
           {"attribute":"score", "value": "4", "operator":"=", "unit": ""},
	 {
       {"attribute": "diskSize", "value             "resource": ["2vG"],
  "operator": "=", "unit": "GB"},   
	      {"attribute": "ephemeralDiskSize", "value": "2", "operator": "=", "unitcustomerLocationInfo": "GBcustomer_loc"},
		                    {"attributeparameter": "swapMemSizedistance", "value":"16", "operator": "=", "unit
                    "weight": "MB1"},
          ],
          "identityoperator": "localStorage_vGMuxInfraproduct",
           "policyScope":["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],     }
        "type": "hpaLocalStoragePolicy",
    ],
            "resourceInstanceTypeoperator": ["vGMuxInfrasum"]
        }
}
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
{
,
        "serviceidentity": "hpaCpuInstructionSetExtensionsPolicyoptimization",
    "policyName": "oofBeijing.hpaCpuInstructionSetExtensionsPolicy_vGMuxInfra",
    "descriptionpolicyScope": "Cpu Instruction Set Extensions policy for vGMuxInfra",
{
            "templateVersionserviceType": ["0.0.1vCPE"],
      "version      "geoRegion": "oofBeijing",
["US", "INTERNATIONAL"],
       "priority": "3",
    "riskTypenetworkType": ["testip"],
    "riskLevel": "2",
        "guardresourceInstanceType": ["FalsevGMuxInfra",
    "contentvG": {]
        "avxProperties": [
	},
      {"attribute":"hpaFeature", "value": "cpuInstructionSetExtensions","operatortype": "=", "unit":""}placementOptimization",
          {"attributeobjective":"architecture", "valueminimize": "INTELx64","operator": "=", "unit": ""},
          {"attribute":"mandatory", "value": "true","operator": "=", "unit":""},
          {"attribute":"instructionSetExtensions
    }
}
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":[ "avx2", "aes"] "operator": "ALL=", "unit": ""},
      {"attribute":  ],
        "identity"pciVendorId", "value":"8086", "operator": "=", "unit": "cpuInstructionSetExtensions_vGMuxInfra"},
	        "policyScope{"attribute": "pciDeviceId", "value": ["vCPE2", "USoperator",: "INTERNATIONAL=", "ipunit",: "vGMuxInfra"],} 
        {"typeattribute": "hpaCpuInstructionSetExtensionsPolicyfunctionType",
 "value":       "resourceInstanceType"<PCIETYPEVALUE>","operator": "=", "unit": ["vGMuxInfra"]} 
     }]
}
Column
width45%
Expand
titleComments and Notes: HPA CPU Instruction Set Extensions Policy ExamplePCIe Policy Example

PCIETYPEVALUE: SRIOV, PCI-PASSTHROUGH

instructionSetExtensions attribute has a list of all instruction set extensions required.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Huge Pages Local Storage Policy Example
linenumberstrue
collapsetrue
{
    "servicehpa_feature" : "hpaHugePagesPolicylocalStorage",
    "policyNamemandatory" : "oofBeijing.hpaHugePagesPolicy_vGMuxInfraFalse",
    "descriptionscore" : "5"HPA
 Huge Pages policy for vGMuxInfra",
    "templateVersion""architecture": "0.0.1generic",
    "versionfeatureAttributes": "oofBeijing",
  [
  "priority": "3",
    {"riskTypeattribute": "testdiskSize",
    "riskLevelvalue": "2",
    "guardoperator": "False=",
    "contentunit": {
        "HugePagesPropertiesGB":}, [
  
        {"attribute": "hpaFeatureephemeralDiskSize", "value": "hugePages2", "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",
    {"attributemandatory" : "architectureFalse",
    "valuescore" : "generic","operator": "=", "unit5"
    "architecture": "INTEL-64"},
    "featureAttributes": [
      {"attribute":"mandatoryinstructionSetExtensions", "value":["<CPUINST>", "false<CPUINST>",] "operator": "=ALL", "unit":""}
     ]
}
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": [,
          {"attribute":"score", "value": "4", "operator":"=", "unit": ""},
          {"attribute": "memoryPageSize", "value": "<MEMORYPAGESIZE>", "operator": "=", "unit": ""},
       ],
        "identity": "hugePagesAttributes_vGMuxInfra",
        {"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

...