//Support the current simple capacity check API besides the intent-based framework for backward compatibility.
//If a cloud region does not support the policy-based interface, it is given a high net value assuming the current capacity api (yes/no)
//returns an yes. This ensures smooth migration to the new policy-based framework.
{
"service": "cloudSelectionPolicy",
"policyName": "oofMulti-cloudCasablanca.cloudSelectionPolicy_vCPE_VNF",
"description": "Cloud Selection Policy for vCPE VNFs",
"templateVersion": "0.0.1",
"version": "oofMulti-cloudCasablanca",
"priority": "3",
"riskType": "test",
"riskLevel": "2",
"guard": "False",
"content":
{
"cloudOwner" :
{
{
"owner": "All", //default is all, it can be a specific cloud owner such as Azure, VMware VIO, Wind River Titanium Cloud etc.
"capacityCheck": "TRUE", //perform capacity check per <cloud owner, cloud region>
"dollarCostEvaluationVM-Type": "TRUE", //evaluate dollar cost per VM type if operator has configured a policy
"dollarCostEvaluationVM-FeatureGroup": "TRUE" //evaluate dollar per feature/group of features if operator has configured a policy
}
{
"owner": "Azure", //different cloud providers may need different capacities for the same VNFC
"capacityProperty": //same parameters as R2
{
"request": //from R2
"{\"vCPU\": {\"quantity\": {\"get_param\": \"REQUIRED_VCPU\"}, \"Memory\": {\"quantity\": {\"get_param\": \"REQUIRED_MEM\"},
\"unit\": \"GB\"}, \"Storage\": {\"quantity\": {\"get_param\": \"REQUIRED_DISK\"}, \"unit\": \"GB\"}}"
}
}
{
"owner": "OpenStack",
"capacityProperty":
{
"request":
"{\"vCPU\": {\"quantity\": {\"get_param\": \"REQUIRED_VCPU\"}, \"Memory\": {\"quantity\": {\"get_param\": \"REQUIRED_MEM\"},
\"unit\": \"GB\"}, \"Storage\": {\"quantity\": {\"get_param\": \"REQUIRED_DISK\"}, \"unit\": \"GB\"}}"
}
}
}
}
"resources": ["vgw"], //"vgw" is also intechangeably used as "vg"
"applicableResources": "any",
"identity": "cloud-atrributes-vgw",
"policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vgw"],
"policyType": "AllPolicy"
}
|