aboutsummaryrefslogtreecommitdiffstats
path: root/test/placement-tests/conductor_response.json
diff options
context:
space:
mode:
authorRuoyu Ying <ruoyu.ying@intel.com>2018-09-20 18:30:15 +0800
committerRuoyu Ying <ruoyu.ying@intel.com>2018-09-20 18:32:10 +0800
commit6ae89d5df37c626d7bd6f1fcf94571e718f10b02 (patch)
tree8054d725df42b1cc450f1c10374a0f20fd170911 /test/placement-tests/conductor_response.json
parenta014bc832ce5e59b6dd52a6ac9dd5cea03a0ceec (diff)
Update sample response and resolve directives
Update the sample conductor response and add name_map to resolve directives. Also updated functest payload and localpolicies with the new policy model. Change-Id: I5255c40fb714558261efffabbdf44da535171cbf Issue-ID: OPTFRA-322 Signed-off-by: Ruoyu Ying <ruoyu.ying@intel.com>
Diffstat (limited to 'test/placement-tests/conductor_response.json')
-rw-r--r--test/placement-tests/conductor_response.json62
1 files changed, 59 insertions, 3 deletions
diff --git a/test/placement-tests/conductor_response.json b/test/placement-tests/conductor_response.json
index e7037c2..ee38ce9 100644
--- a/test/placement-tests/conductor_response.json
+++ b/test/placement-tests/conductor_response.json
@@ -24,9 +24,65 @@
"location_type": "openstack-cloud"
},
"attributes": {
- "flavors": {
- "flavor_label_1": "vim_flavor_X",
- "flavor_label_2": "vim_flavor_Y"
+ "directives": {
+ "directives": [
+ {
+ "id": "vFW_0",
+ "type": "<vnfc/tocsa.nodes.nfv.Vdu.Compute>",
+ "directives": [
+ {
+ "type": "flavor_directives",
+ "attributes": [
+ {
+ "attribute_name": "oof_returned_flavor_label_for_firewall",
+ "attribute_value": "vim_flavor_X"
+ }
+ ]
+ },
+ {
+ "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"
+ }
+ ]
+ },
+ {
+ "type": "sriovNICNetwork_directives",
+ "attributes": [
+ {
+ "attribute_name": "oof_returned_vnic_type_for_firewall_unprotected",
+ "attribute_value": "direct"
+ },
+ {
+ "attribute_name": "oof_returned_provider_network_for_firewall_unprotected",
+ "attribute_value": "physnet2"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "id": "vFW_1",
+ "type": "<vnfc/tocsa.nodes.nfv.Vdu.Compute>",
+ "directives": [
+ {
+ "type": "flavor_directives",
+ "attributes": [
+ {
+ "attribute_name": "oof_returned_flavor_label_for_generator",
+ "attribute_value": "vim_flavor_Y"
+ }
+ ]
+ }
+ ]
+ }
+ ]
},
"cloud_owner": "CloudOwner1",
"physical-location-id": "DLLSTX1A",