#
#Example 1: vFW, Basic Capability + sriovNICNetwork + Cloud Agnostic Guaranteed QoS
#one VNFC(VFC) with one basic capability requirement
#
{
"service": "hpaPolicy",
"policyName": "oofCasablanca.hpaPolicy_vFW",
"description": "HPA policy for vFW",
"templateVersion": "0.0.1",
"version": "1.0",
"priority": "3",
"riskType": "test",
"riskLevel": "2",
"guard": "False",
"content": {
"resources": "vFW",
"identity": "hpaPolicy_vFW",
"policyScope": ["vFW", "US", "INTERNATIONAL", "ip", "vFW"],
"policyType": "hpaPolicy",
"flavorFeatures": [
{
"id" : "<vdu.Name>",
"type":"vnfc/tocsa.nodes.nfv.Vdu.Compute",
"directives":[
{
"type":"flavor_directives",
"attributes":[
{
"attribute_name":" oof_returned_flavor_label_for_firewall ", //Admin needs to ensure that this value is same as flavor parameter in HOT
"attribute_value": "<Blank>"
}
]
}
],
"flavorProperties": [
{
"hpa-feature": "basicCapabilities",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{ "hpa-attribute-key": "numVirtualCpu", "hpa-attribute-value": "6", "operator": "=", "unit": "" }
]
},
{
"hpa-feature": "basicCapabilities",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{ "hpa-attribute-key": "virtualMemSize", "hpa-attribute-value": "6", "operator": "=", "unit": "GB" }
]
},
{
"hpa-feature": "sriovNICNetwork",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives" : [
{
"type": "sriovNICNetwork_directives",
"attributes": [
{ "attribute_name": "oof_returned_vnic_type_for_firewall_protected",
"attribute_value": "direct"
},
{ "attribute_name": "oof_returned_provider_network_for_firewall_protected",
"attribute_value": "physnet1"
}
]
}
],
"hpa-feature-attributes": [
{ "hpa-attribute-key": "pciVendorId", "hpa-attribute-value": "1234", "operator": "=", "unit": "" },
{ "hpa-attribute-key": "pciDeviceId", "hpa-attribute-value": "5678", "operator": "=", "unit": "" },
{ "hpa-attribute-key": "pciCount", "hpa-attribute-value": "1", "operator": ">=", "unit": "" },
{ "hpa-attribute-key": "physicalNetwork", "hpa-attribute-value": "physnet1", "operator": "=", "unit": "" }
]
},
{
"hpa-feature": "sriovNICNetwork",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives" : [
{
"type": "sriovNICNetwork_directives",
"attributes": [
{ "attribute_name": "oof_returned_vnic_type_for_firewall_unprotected",
"attribute_value": "direct"
}
{ "attribute_name": "oof_returned_provider_for_firewall_unprotected",
"attribute_value": "physnet2"
}
]
}
],
"hpa-feature-attributes": [
{ "hpa-attribute-key": "pciVendorId", "hpa-attribute-value": "3333", "operator": "=", "unit": "hpa-feature-attributes": [},
{ "hpa-attribute-key": "pciVendorIdpciDeviceId", "hpa-attribute-value": "33337777", "operator": "=", "unit": "" },
{ "hpa-attribute-key": "pciDeviceIdpciCount", "hpa-attribute-value": "77771", "operator": ">=", "unit": "" },
{ "hpa-attribute-key": "pciCountphysicalNetwork", "hpa-attribute-value": "1physnet1", "operator": ">=", "unit": "" }
]
},
{
"hpa-feature": "qosIntentCapabilities",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{"hpa-attribute-key":"Infrastructure Resource Isolation for VNF", "hpa-attribute-value": "Guaranteed QoS","operator": "=", "unit": ""},
]
}
]
}
]
}
}
#
#Example two: vFW, basicCapabilities, hugePages, sriovNICNetwork, cpuPinning.
#one VNFC(VFC) with basic capablity requirements, cpuPinning requirement and huge page requirement.
#the other VNFC(VFC) with basic capability requirements and sriovNICNetwork requirements.
#
{
"service": "hpaPolicy",
"policyName": "oofCasablanca.hpaPolicy_vFW",
"description": "HPA policy for vFW",
"templateVersion": "0.0.1",
"version": "1.0",
"priority": "3",
"riskType": "test",
"riskLevel": "2",
"guard": "False",
"content": {
"resources": "vFW",
"identity": "hpaPolicy_vFW",
"policyScope": ["vFW", "US", "INTERNATIONAL", "ip", "vFW" ],
"policyType": "hpaPolicy",
"flavorFeatures": [
{
"id": "<vdu.Name>",
"type": "vnfc/tocsa.nodes.nfv.Vdu.Compute",
"directives": [
{
"type": "flavor_directives",
"attributes": [
{
"attribute_name": " oof_returned_flavor_label_for_firewall ",
"attribute_value": "<Blank>"
}
]
}
],
"flavorProperties": [
{
"hpa-feature": "qosIntentCapabilities",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{"hpa-attribute-key": "Infrastructure Resource Isolation for VNF", "hpa-attribute-value": "Guaranteed QoS", "operator": "=", "unit": ""}
]
},
{
"hpa-feature": "basicCapabilities",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{ "hpa-attribute-key": "numVirtualCpu", "hpa-attribute-value": "6", "operator": "=", "unit": "" }
]
},
{
"hpa-feature": "basicCapabilities",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{ "hpa-attribute-key": "virtualMemSize", "hpa-attribute-value": "6", "operator": "=", "unit": "GB" }
]
},
{
"hpa-feature": "sriovNICNetwork",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [
{
"type": "sriovNICNetwork_directives",
"attributes": [
{
"attribute_name": "oof_returned_vnic_type_for_firewall_protected",
"attribute_value": "direct"
},
{
"attribute_name": "oof_returned_provider_network_for_firewall_protected",
"attribute_value": "physnet1"
}
]
}
],
"hpa-feature-attributes": [
{"hpa-attribute-key": "pciVendorId", "hpa-attribute-value": "1234", "operator": "=", "unit": ""},
{"hpa-attribute-key": "pciDeviceId", "hpa-attribute-value": "5678", "operator": "=", "unit": ""},
{"hpa-attribute-key": "pciCount", "hpa-attribute-value": "1", "operator": ">=", "unit": ""},
{ "hpa-attribute-key": "physicalNetwork", "hpa-attribute-value": "physnet1", "operator": "=", "unit": "" }
]
},
{
"hpa-feature": "sriovNICNetwork",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [
{
"type": "sriovNICNetwork_directives",
"attributes": [
{
"attribute_name": "oof_returned_vnic_type_for_firewall_unprotected",
"attribute_value": "direct"
},
{
"attribute_name": "oof_returned_provider_for_firewall_unprotected",
"attribute_value": "physnet2"
}
]
}
],
"hpa-feature-attributes": [
{"hpa-attribute-key": "pciVendorId", "hpa-attribute-value": "3333", "operator": "=", "unit": ""},
{"hpa-attribute-key": "pciDeviceId", "hpa-attribute-value": "7777", "operator": "=", "unit": ""},
{"hpa-attribute-key": "pciCount", "hpa-attribute-value": "1", "operator": ">=", "unit": ""},
{ "hpa-attribute-key": "physicalNetwork", "hpa-attribute-value": "physnet1", "operator": "=", "unit": "" }
]
}
]
},
{
"id": "<vdu.Name>",
"type": "vnfc/tocsa.nodes.nfv.Vdu.Compute",
"directives": [
{
"type": "flavor_directives",
"attributes": [
{
"attribute_name": " oof_returned_flavor_label_for_generator ",
"attribute_value": "<Blank>"
}
]
}
],
"flavorProperties": [
{
"hpa-feature": "qosIntentCapabilities",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{"hpa-attribute-key": "Infrastructure Resource Isolation for VNF", "hpa-attribute-value": "Guaranteed QoS", "operator": "=", "unit": ""}
]
},
{
"hpa-feature": "basicCapabilities",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{ "hpa-attribute-key": "numVirtualCpu", "hpa-attribute-value": "6", "operator": "=", "unit": "" }
]
},
{
"hpa-feature": "basicCapabilities",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{ "hpa-attribute-key": "virtualMemSize", "hpa-attribute-value": "6", "operator": "=", "unit": "GB" }
]
},
{
"hpa-feature": "cpuPinning",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{"hpa-attribute-key": "logicalCpuThreadPinningPolicy", "hpa-attribute-value": "prefer", "operator": "=", "unit": ""}
]
},
{
"hpa-feature": "cpuPinning",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{"hpa-attribute-key": "logicalCpuPinningPolicy", "hpa-attribute-value": "dedicated", "operator": "=", "unit": ""}
]
},
{
"hpa-feature": "hugePages",
"mandatory": "True",
"architecture": "generic",
"hpa-version": "v1",
"directives": [],
"hpa-feature-attributes": [
{"hpa-attribute-key": "memoryPageSize", "hpa-attribute-value": "2", "operator": "=", "unit": "GB"}
]
}
]
}
]
}
}
|