+ {
+ "hpa-attribute-key":"pciCount",
+ "hpa-attribute-value":"1",
+ "operator":"=",
+ "unit":""
+ },
+ {
+ "hpa-attribute-key":"physicalNetwork",
+ "hpa-attribute-value":"physnet2",
+ "operator":"=",
+ "unit":""
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ }
+ }
+
+Example for Pure TOSCA request(VF-C)
+
+.. code-block:: json
+
+ {
+ "hpa_constraint":{
+ "type":"hpa",
+ "demands":[
+ "vG"
+ ],
+ "properties":{
+ "evaluate":[
+ {
+ "id": "vgw_0",
+ "type": "tocsa.nodes.nfv.Vdu.Compute",
+ "directives": [
+ {
+ "type":"flavor_directives",
+ "attributes":[
+ {
+ "attribute_name":" flavor_name ",
+ "attribute_value": "<Blank>"
+ }
+ ]
+ }
+ ],
+ "flavorProperties":[
+ {
+ "hpa-feature":"basicCapabilities",
+ "hpa-version":"v1",
+ "architecture":"generic",
+ "mandatory": "True",
+ "directives": [],
+ "hpa-feature-attributes":[
+ {
+ "hpa-attribute-key":"numVirtualCpu",
+ "hpa-attribute-value":"32",
+ "operator":"="
+ }
+ ]
+ },
+ {
+ "hpa-feature":"basicCapabilities",
+ "hpa-version":"v1",
+ "architecture":"generic",
+ "mandatory": "True",
+ "directives": [],
+ "hpa-feature-attributes":[
+ {
+ "hpa-attribute-key":"virtualMemSize",
+ "hpa-attribute-value":"64",
+ "operator":"=",
+ "unit":"GB"
+ }
+ ]
+ },
+ {
+ "hpa-feature":"ovsDpdk",
+ "hpa-version":"v1",
+ "architecture":"generic",
+ "mandatory": "False",
+ "score": "10",
+ "directives": [],
+ "hpa-feature-attributes":[
+ {
+ "hpa-attribute-key":"dataProcessingAccelerationLibrary",
+ "hpa-attribute-value":"v18.02",
+ "operator":"="
+ }
+ ]
+ },
+ {
+ "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": "Burstable QoS",
+ "operator": "=",
+ "unit": ""
+ },
+ { "hpa-attribute-key":"Burstable QoS Oversubscription Percentage",
+ "hpa-attribute-value": "25",
+ "operator": "=",
+ "unit": ""
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "vgw_1",
+ "type": "tosca.nodes.nfv.Vdu.Compute",
+ "directives": [
+ {
+ "type":"flavor_directives",
+ "attributes":[
+ {
+ "attribute_name":" flavor_name ",
+ "attribute_value": "<Blank>"
+ }
+ ]
+ }
+ ],
+ "flavorProperties":[
+ {
+ "hpa-feature":"basicCapabilities",
+ "hpa-version":"v1",
+ "architecture":"generic",
+ "mandatory": "False",
+ "score": "5",
+ "directives": [],
+ "hpa-feature-attributes":[
+ {
+ "hpa-attribute-key":"numVirtualCpu",
+ "hpa-attribute-value":"8",
+ "operator":">="
+ }
+ ]
+ },
+ {
+ "hpa-feature":"basicCapabilities",
+ "hpa-version":"v1",
+ "architecture":"generic",
+ "mandatory": "False",
+ "score": "5",
+ "directives": [],
+ "hpa-feature-attributes":[