Versions Compared

Key

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

...

Section
bordertrue
Column
width45%
Code Block
languagejs
themeEclipse
titleHPA Hyper-Threading Policy Example
linenumberstrue
collapsetrue
{
    "service": "HPA_Hyper_Threading_Policy",
    "policyName": "OOF_Beijing.vGMuxInfra",
    "description": "Hyper threading policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "ONAP_Beijing",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "hyper_threading_properties": {
	    "cpu_cores": {
                "magnitude": 4,
                "operator": "=",
                "unit": ""
        },
	    "cpu_threads": {
                "magnitude": 2,
                "operator": "=",
                "unit": ""
        },
	    "cpu_threads_policy": {
                "magnitude": "dedicated",
                "operator": "=",
                "unit": ""
        },
		"cpu_sockets": {
                "magnitude": 2,
                "operator": "=",
                "unit": ""
         }

        },

        "identity": "hyper_threading_vGMuxInfra",
        "policyScope": {
            "serviceType": ["vCPE"],
            "geoRegion": ["US", "INTERNATIONAL"],
            "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra"]
        },
        "type": "HPA_hyper_threading",
        "resourceInstanceType": ["vGMuxInfra"]
    }
}
Column
width45%
Expand
titleComments/Notes

The values in this exemplary policy are populated from a TOSCA service model by the policy platform.

Section
bordertrue
Column
width45%
Code Block
languagejs
themeEclipse
titleDistance Policy Example
linenumberstrue
collapsetrue
{
    "service": "DistancePolicy",
    "policyName": "OOF_Beijing.DistancePolicy_vGMuxInfra",
    "description": "Distance Policy for vGMuxInfra",
    "templateVersion": "0.0.1",
    "version": "ONAP_Beijing",
    "priority": "3",
    "riskType": "test",
    "riskLevel": "2",
    "guard": "False",
    "content": {
        "distance_properties": {
            "locationInfo": "customer_loc",
            "distance": {
                "magnitude": "distance",
                "value": "500",
                "operator": "<",
				"unit": "km"
            },
	    	"resourceInstanceType": ["vGMuxInfra"]
        },
        "identity": "distance-bGMuxInfra",
        "policyScope": {
            "serviceType": ["vCPE"],
            "geoRegion": ["US", "INTERNATIONAL"],
            "networkType": ["ip"],
            "resourceInstanceType": ["vGMuxInfra"]
        },
        "type": "distance"
    }
}
Column
width45%
Expand
titleComments/Notes

The values in this exemplary policy are populated using the policy portal.