Versions Compared

Key

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

...

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleExtensible HPA Hyper-Threading Policy Example
linenumberstrue
collapsetrue
{
  "service": "hpaHyperThreadingPolicy",
  "policyName": "oofBeijing.hyperThreadingPolicy_vGMuxInfra",
  "description": "Hyper threading policy for vGMuxInfra",
  "templateVersion": "0.0.1",
  "version": "oofBeijing",
  "priority": "3",
  "riskType": "test",
  "riskLevel": "2",
  "guard": "False",
  "content": {
    "hyperThreadingProperties": [
	      {"attribute": "hpaFeature", "value": "NUMA", "operator": "=", "unit": ""},
    	  {"attribute": "architecture", "value": "INTELx64", "operator": "=", "unit": ""},
   	   {"attribute": "mandatory", "value": "true", "operator": "=", "unit": ""},
    	  {"attribute": "score", "value": "4", "operator": "=", "unit": ""},
      {"attribute": "cpuCores", "value": "4", "operator": ">=", "unit": ""},
      {"attribute": "cpuCores", "value": "10", "operator": "<=", "unit": ""},
      {"attribute": "cpuThreads", "value": "2", "operator": ">", "unit": ""},
      {"attribute": "cpuThreadsPolicy", "value": "dedicated", "operator": "=", "unit": ""},
      {"attribute": "cpuSockets", "values": ["2", "4", "6"], "operator": "any", "unit": ""},
  	    {"attribute": "memory", "value": 8, "operator": ">", "unit": "GB"}
    ],
    "identity": "hyperThreading_vGMuxInfra",
    "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
    "type": "hpaHyperThreadingPolicy",
    "resourceInstanceType": ["vGMuxInfra"]
  }
}
Column
width45%
Expand
titleComments and Notes: HPA Hyper-Threading Policy Example
  • Underlying model to generate this policy example is extensible
    and can be used to generate other HPA policies.
  • The value domain of the operator field is <, <=, >, >=, =, !=,
    any, all, many where any represents one from a set,
    all represents all the values of a set, and many represents more
    than one from a set.
  • The model can capture simple expressions. This example captures;
    4<=cpuCores<=10, cpuThreads>2, cpuThreadsPolicy=dedicated,
    cpuSockets is one from {2, 4, 6}, memory>8GB, etc.
  • Instead of modeling policy scope over multiple explicite dimentions,
    it is modeled as a list of tags/strings to achieve extensiblity and
    support model-agnostic getConfig query.
Section
bordertrue
Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA Hyper-Threading CPU Topology Policy Example
linenumberstrue
collapsetrue
{
  "service": "hpaHyperThreadingPolicyhpaCpuTopologyPolicy",
  "policyName": "oofBeijing.hyperThreadingPolicy_vGMuxInfra",
  "description": "Hyper threading policy for vGMuxInfra",
  "templateVersion": "0.0.1",
  "version": "oofBeijing",
  "priority": "3",
  "riskType": "test",
  "riskLevel": "2",
  "guard": "False",
  "content": {
    "hyperThreadingPropertiescpuTopologyProperties": {[
      {"cpuCoresattribute":"hpaFeature", { "value": 4"cpuTopology", "operator": "=", "unit":""},
      {"cpuThreadsattribute":"architecture", { "value": 2"INTELx64", "operator": "=", "unit": ""},
      {"cpuThreadsPolicyattribute":"mandatory", { "value": "dedicatedtrue", "operator": "=", "unit":""},
      {"cpuSocketsattribute": {"score", "value": 2"4", "operator": "="}
    },
    "identityunit": "hyperThreading_vGMuxInfra"},
     "policyScope": {
      "serviceType"attribute": ["vCPEcpuCores"],       "geoRegion"value": ["US2", "INTERNATIONAL"],
      "networkType"operator":">=", "unit": ["ip"]},
      {"resourceInstanceTypeattribute":"cpuThreads", ["vGMuxInfravalue"]: "4", "operator":">=",   "unit": ""},
      {"typeattribute": "hpaHyperThreadingPolicycpuSockets", "values":   "2","operator": ">=", "resourceInstanceTypeunit": ["vGMuxInfra"]},
     }
}
Column
width45%
Expand
titleComments and Notes: HPA Hyper-Threading 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", "operator": "<", "unit": "km" },
      "resourceInstanceType": { "value": "vGMuxInfra", "operator": "="},
    },
    "identity": "distance-vGMuxInfra",
    "policyScope": {
      "serviceType": ["vCPE"],
      "geoRegion": ["US", "INTERNATIONAL"],
      "networkType": ["ip"],
      "resourceInstanceType": ["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.

Column
width60%
Code Block
languagejs
themeEclipse
titleHPA AES Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaAesPolicy",
    "policyName": "oofBeijing.aesPolicy_vGMuxInfra",
    "description": "AES policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "oofBeijing",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "aesProperties": {
	    	"version": { "values": 1.0 {"attribute":"cpuCores", "value": "4", "operator":"<=", "unit": ""},
      {"attribute":"cpuThreads", "value": "8", "operator":"<=", "unit": ""},
      {"attribute":"cpuSockets", "values": "4","operator": "<=", "unit": ""},
    ],
    "identity": "CpuTopology_vGMuxInfra",
    "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
    "type": "hpaHyperThreadingPolicy",
    "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.

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": "="},
	    	"hwArch": { "values": "intel_64", "operator},
    "identity": "=distance-vGMuxInfra"},
	    	"aesFeaturepolicyScope": {"values": "true","operator": "="}

       },
        "identity": "aes_vGMuxInfra",
        "policyScope": {
			"serviceType": ["vCPE"],
     
      "geoRegion": ["US", "INTERNATIONAL"],
     
      "networkType": ["ip"],
   
        "resourceInstanceType": ["vGMuxInfra"]
        },
        "type": "hpaAesPolicydistancePolicy",
        "resourceInstanceType": ["vGMuxInfra"]
    }
}
Column
width45%
Expand
titleComments and Notes: HPA AES Distance 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
titleHPA OCS_DPDK AES Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaOvsDpdkPolicyhpaAesPolicy",
    "policyName": "oofBeijing.hpaOvsDpdkPolicyaesPolicy_vGMuxInfra",
    "description": "HPA OVS DPDKAES policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "oofBeijing",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "ovsDpdkPropertiesaesProperties": {[
	     	 {"versionattribute": {"hpaFeature", "valuesvalue": 1.0, "cpuInstructionAES","operator": "=", "unit":""},
           {"attribute":"architecture", "hwArchvalue": { "values"INTELx64","operator": "*=", "operatorunit": "="},
	          	{"OvsDpdkattribute":"mandatory", {"valuesvalue": "true", "operator": "=", "unit":""},
        },  {"attribute":"score", "value":      "identity"4", "operator":"=", "unit": "ovsDpdk_vGMuxInfra"},
          {"policyScopeattribute": {"instructionSetExtensions", "value":"aes", "operator": "=", "unit":""},
        ],
        "serviceTypeidentity": ["vCPEaes_vGMuxInfra"],
            "geoRegionpolicyScope": ["vCPE", "US", "INTERNATIONAL"], "ip", "vGMuxInfra"],
          "networkTypetype": ["iphpaAesPolicy"],
   
        "resourceInstanceType": ["vGMuxInfra"]
    }
   },
        "type": "hpaOvsDpdkPolicy",
        "resourceInstanceType": ["vGMuxInfra"]
    }
}
Column
width
}
Column
width45%
Expand
titleComments and Notes: HPA OVS_DPDK AES 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 CPUOVS_Pinning DPDK Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaCpuPinningPolicyhpaOvsDpdkPolicy",
    "policyName": "oofBeijing.hpaCpuPinningPolicyhpaOvsDpdkPolicy_vGMuxInfra",
    "description": "CPUHPA OVS PinningDPDK policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "oofBeijing",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "cpuPinningPropertiesovsDpdkProperties": {[
	      	{"pinningattribute": {"hpaFeature", "valuesvalue": "preferovsDpdk", "operator": "="}
  , "unit":""},
     },     {"attribute":"architecture", "value": "INTELx64","operator": "=", "identityunit": "cpuPinning_vGMuxInfra"},
          "policyScope": {
       {"attribute":"mandatory", "value": "true","operator": "=", "unit":""},
          {"attribute":"score", "value": "4", "operator":"=", "unit": ""},
          {"attribute":"dataProcessingAccelerationLibray", "value":"library_version", "operator": "=", "unit":""},
        ],
        "identity": "ovsDpdk_vGMuxInfra",
        "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
        "type": "hpaOvsDpdkPolicy",
        "resourceInstanceType": ["vGMuxInfra"]
    }
}
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.

Section
bordertrue
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": {
        "cpuPinningProperties":  [
          {"attribute":"hpaFeature", "value": "cpuPinning","operator": "=", "unit":""},
          {"attribute":"architecture", "value": "INTELx64","operator": "=", "unit": ""},
          {"attribute":"mandatory", "value": "true","operator": "=", "unit":""},
          {"attribute":"score", "value": "4", "operator":"=", "unit": ""},
          {"attribute":"logicalCpuThreadPinningPolicy", "value":"prefer", "operator": "=", "unit":""},
          {"attribute":"logicalCpuPinningPolicy", "value": "dedicated","operator": "=", "unit":""},
    ],
        "identity": "cpuPinning_vGMuxInfra",
        "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
        "type": "hpaCpuPinning",
        "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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA NUMA Policy Example
linenumberstrue
collapsetrue
{
    "serviceTypeservice": ["vCPEhpaNumaPolicy"],
       
    "geoRegionpolicyName": ["USoofBeijing.hpaNumaPolicy_vGMuxInfra",
"INTERNATIONAL"],    "description": "Hyper NUMA policy for vGMuxInfra",
    "networkTypetemplateVersion": ["ip0.0.1"],
    "version": "oofBeijing",
      "resourceInstanceTypepriority": ["vGMuxInfra3",]
    "riskType": "test",
  },  "riskLevel": "2",
     "typeguard": "hpaCpuPinningFalse",
  
     "resourceInstanceTypecontent": ["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.

Section
bordertrue
Column
width60%
Code Block
languagejs
themeEclipse
titleHPA NUMA Policy Example
linenumberstrue
collapsetrue
{
    "service": "hpaNumaPolicy",
    "policyName": "oofBeijing.hpaNumaPolicy_vGMuxInfra",
    "description": "Hyper NUMA policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "oofBeijing",
    "priority": "3",]
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "numaProperties": {
	    	"version": { "values": 1.0    "numaProperties": [   
		 {"attribute": "hpaFeature", "value": "NUMA", "operator": "=", "unit": ""},
         {"attribute": "architecture", "value": "INTELx64", "operator": "=", "unit": ""},
         {"attribute": "mandatory", "value": "true", "operator": "=", "unit": ""},
         {"attribute": "score", "value": "4", "operator": "=", "unit": ""},
         {"attribute": "numaNodes", "value": "2", "operator": "="}, "unit": ""},
          {"hwArchattribute": {"numaCpu-0", "values": ["*0", "operator": "="}1"], 			"numaNodesoperator": { "valuesany": 2, "operatorunit": "="},
			"complexAttributes": [
				{
					"numaCpu": { "values": [0, 1]
         {"attribute": "numaMem-0", "value": "2", "operator": ">="}, 					"numaMemunit": "GB"}
         {"attribute": "numaCpu-1", "values": 2["2", "3"], "operator": "=any", "unit": "GB"},
				}, 				{ 					"numaCpu": { "values": [2, 3, 4, 5], {"operatorattribute": "=numaMem-1"}, 					"numaMemvalue": { "values4": 4, "operator": ">=", "unit": "GB"},
        ],
        "identity": "numa_vGMuxInfra",
   } 	    	]
        }"policyScope":["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra"],
        "identitytype": "numa_vGMuxInfrahpaNumaPolicy",
        "policyScoperesourceInstanceType": {["vGMuxInfra"]
        }
}
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
{
    "serviceTypeservice": ["vCPEhpaSgxPolicy"],
      
     "geoRegionpolicyName": ["US", "INTERNATIONAL"]"oofBeijing.hpaSgxPolicy_vGMuxInfra",
            "networkType"description": ["ip"],SGX policy for  vGMuxInfra",
        "resourceInstanceTypetemplateVersion": ["vGMuxInfra"]
        }0.0.1",
        "typeversion": "hpaNumaPolicyoofBeijing",
   
    "resourceInstanceTypepriority": ["vGMuxInfra"]
    }
}
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
{3",
    "riskType": "test",
    "serviceriskLevel": "hpaSgxPolicy2",
    "policyNameguard": "oofBeijing.hpaSgxPolicy_vGMuxInfraFalse",
    "description": "SGX policy for vGMuxInfra",
    "templateVersion": "0.0.1"content": {
        "sgxProperties": [
          {"attribute":"hpaFeature", "value": "sgx","operator": "=", "unit":""},
    "version": "oofBeijing",     {"priorityattribute": "3architecture",
    "riskTypevalue": "testINTELx64",
    "riskLeveloperator": "2=",
    "guardunit": "False"},
    "content": {     {"attribute":"mandatory", "value": "true","operator": "=", "sgxPropertiesunit":""},
 { 	    	"version": { "values": 1.0, {"operatorattribute": "=score"}, 			"hwArchvalue": {"4", "valuesoperator": "intel_64=", "operatorunit": "="},
			          {"attribute":"sgxMemSize":, { "valuesvalue": "12865", "operator": "=", "unit": "MB"},
            {"attribute":"sgxPubkeyHash":, { "valuesvalue": "octect_string","operator": "=", "operatorunit": "="},
        }],
        "identity": "sgx_vGMuxInfra",
        "policyScope": {
            "serviceType": ["vCPE"],
            "geoRegion": ["US", "INTERNATIONAL"],             "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra"]
        },
        "type": "hpaSgxPolicy",
        "resourceInstanceType": ["vGMuxInfra"]
    }
}
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.

...