diff options
author | 2018-09-18 16:44:39 +0000 | |
---|---|---|
committer | 2018-09-18 16:44:39 +0000 | |
commit | 4ca7a59514fb93ad9068bee9f13129ffe14be43c (patch) | |
tree | 2c3bc0a917651004623951bcfd60a565b7308770 /test/csit/tests/optf-has/has/data/plan_with_hpa_requirements_optionals.json | |
parent | 259378a195e1079cc5d78f1933ecc1734b84849b (diff) | |
parent | 6c9628f1ef2f01b2a08bb0d5052b64dcdaff9fbf (diff) |
Merge "Update OOF CSIT plans with new policy model"
Diffstat (limited to 'test/csit/tests/optf-has/has/data/plan_with_hpa_requirements_optionals.json')
-rw-r--r-- | test/csit/tests/optf-has/has/data/plan_with_hpa_requirements_optionals.json | 144 |
1 files changed, 87 insertions, 57 deletions
diff --git a/test/csit/tests/optf-has/has/data/plan_with_hpa_requirements_optionals.json b/test/csit/tests/optf-has/has/data/plan_with_hpa_requirements_optionals.json index 4672349d2..50c23ee8a 100644 --- a/test/csit/tests/optf-has/has/data/plan_with_hpa_requirements_optionals.json +++ b/test/csit/tests/optf-has/has/data/plan_with_hpa_requirements_optionals.json @@ -1,8 +1,8 @@ -{ +{ "name":"vCPE-HPA-Requirement-Optional", - "template":{ + "template":{ "homing_template_version":"2017-10-10", - "parameters":{ + "parameters":{ "service_name":"Residential vCPE", "service_id":"vcpe_service_id", "customer_lat":45.395968, @@ -11,57 +11,70 @@ "REQUIRED_DISK":100, "pnf_id":"some_pnf_id" }, - "locations":{ - "customer_loc":{ - "latitude":{ + "locations":{ + "customer_loc":{ + "latitude":{ "get_param":"customer_lat" }, - "longitude":{ + "longitude":{ "get_param":"customer_long" } } }, - "demands":{ - "vG":[ - { + "demands":{ + "vG":[ + { "inventory_provider":"aai", "inventory_type":"cloud" } ] }, - "constraints":{ - "constraint_vg_customer":{ + "constraints":{ + "constraint_vg_customer":{ "type":"distance_to_location", - "demands":[ + "demands":[ "vG" ], - "properties":{ + "properties":{ "distance":"< 100 km", "location":"customer_loc" } }, - "hpa_constraint":{ + "hpa_constraint":{ "type":"hpa", - "demands":[ + "demands":[ "vG" ], - "properties":{ - "evaluate":[ - { - "flavorLabel":"flavor_label_1", - "flavorProperties":[ - { + "properties":{ + "evaluate":[ + { + "id":"vg_1", + "type":"vnfc", + "directives":[ + { + "type":"flavor_directives", + "attributes":[ + { + "attribute_name":"flavor_label_1", + "attribute_value":"" + } + ] + } + ], + "flavorProperties":[ + { "hpa-feature":"basicCapabilities", "hpa-version":"v1", "architecture":"generic", "mandatory": "True", - "hpa-feature-attributes":[ - { + "directives":[], + "hpa-feature-attributes":[ + { "hpa-attribute-key":"numVirtualCpu", "hpa-attribute-value":"4", "operator":">=" }, - { + { "hpa-attribute-key":"virtualMemSize", "hpa-attribute-value":"8", "operator":">=", @@ -69,13 +82,14 @@ } ] }, - { + { "hpa-feature":"instructionSetExtensions", "hpa-version":"v1", "architecture":"Intel64", "mandatory": "True", - "hpa-feature-attributes":[ - { + "directives":[], + "hpa-feature-attributes":[ + { "hpa-attribute-key":"instructionSetExtensions", "hpa-attribute-value":["aes", "sse", "avx", "smt"], "operator":"ALL", @@ -83,35 +97,36 @@ } ] }, - { + { "hpa-feature":"numa", "hpa-version":"v1", "architecture":"generic", "mandatory":"False", "score":"3", - "hpa-feature-attributes":[ - { + "directives":[], + "hpa-feature-attributes":[ + { "hpa-attribute-key":"numaNodes", "hpa-attribute-value":"2", "operator":"=" }, - { + { "hpa-attribute-key":"numaCpu-0", "hpa-attribute-value":"2", "operator":"=" }, - { + { "hpa-attribute-key":"numaCpu-1", "hpa-attribute-value":"4", "operator":"=" }, - { + { "hpa-attribute-key":"numaMem-0", "hpa-attribute-value":"2", "operator":"=", "unit":"GB" }, - { + { "hpa-attribute-key":"numaMem-1", "hpa-attribute-value":"4", "operator":"=", @@ -121,21 +136,34 @@ } ] }, - { - "flavorLabel":"flavor_label_2", - "flavorProperties":[ - { + { + "id":"vg_2", + "type":"vnfc", + "directives":[ + { + "type":"flavor_directives", + "attributes":[ + { + "attribute_name":"flavor_label_2", + "attribute_value":"" + } + ] + } + ], + "flavorProperties":[ + { "hpa-feature":"basicCapabilities", "hpa-version":"v1", "architecture":"generic", "mandatory": "True", - "hpa-feature-attributes":[ - { + "directives":[], + "hpa-feature-attributes":[ + { "hpa-attribute-key":"numVirtualCpu", "hpa-attribute-value":"4", "operator":">=" }, - { + { "hpa-attribute-key":"virtualMemSize", "hpa-attribute-value":"8", "operator":">=", @@ -143,49 +171,51 @@ } ] }, - { + { "hpa-feature":"ovsDpdk", "hpa-version":"v1", "architecture":"generic", "mandatory": "False", "score":"5", - "hpa-feature-attributes":[ - { + "directives":[], + "hpa-feature-attributes":[ + { "hpa-attribute-key":"dataProcessingAccelerationLibrary", "hpa-attribute-value":"v18.02", "operator":"=" } ] }, - { + { "hpa-feature":"numa", "hpa-version":"v1", "architecture":"generic", "mandatory":"False", "score":"3", - "hpa-feature-attributes":[ - { + "directives":[], + "hpa-feature-attributes":[ + { "hpa-attribute-key":"numaNodes", "hpa-attribute-value":"2", "operator":"=" }, - { + { "hpa-attribute-key":"numaCpu-0", "hpa-attribute-value":"2", "operator":"=" }, - { + { "hpa-attribute-key":"numaCpu-1", "hpa-attribute-value":"4", "operator":"=" }, - { + { "hpa-attribute-key":"numaMem-0", "hpa-attribute-value":"2", "operator":"=", "unit":"GB" }, - { + { "hpa-attribute-key":"numaMem-1", "hpa-attribute-value":"4", "operator":"=", @@ -199,11 +229,11 @@ } } }, - "optimization":{ - "minimize":{ - "sum":[ - { - "distance_between":[ + "optimization":{ + "minimize":{ + "sum":[ + { + "distance_between":[ "customer_loc", "vG" ] |