Fixed TD policies 43/87343/1
authorLukasz Rajewski <lukasz.rajewski@orange.com>
Thu, 9 May 2019 10:05:11 +0000 (12:05 +0200)
committerLukasz Rajewski <lukasz.rajewski@orange.com>
Thu, 9 May 2019 10:06:20 +0000 (12:06 +0200)
Fixed TD policies after result of pair-wise testing

Change-Id: I47eb4fb4bef4fac42989770dfab8361d33ccdc5c
Issue-ID: OPTFRA-443
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
test/placement-tests/request_placement_vfmod.json
test/policy-local-files/QueryPolicy_vFW_TD.json
test/policy-local-files/affinity_vFW_TD.json
test/policy-local-files/vnfPolicy_vFW_TD.json
test/policy-local-files/vnfPolicy_vPGN_TD.json

index d9f620f..21b9268 100644 (file)
@@ -33,7 +33,9 @@
         "demands": {
             "vFW-SINK": [{
                 "attributes": {
-                    "global-customer-id": "Demonstration",
+                    "global-customer-id": {
+                        "get_param": "chosen_customer_id"
+                    },
                     "cloud-region-id": {
                         "get_param": "chosen_region"
                     },
@@ -56,7 +58,9 @@
             }],
             "vPGN": [{
                 "attributes": {
-                    "global-customer-id": "Demonstration",
+                    "global-customer-id": {
+                        "get_param": "chosen_customer_id"
+                    },
                     "cloud-region-id": {
                         "get_param": "chosen_region"
                     },
index dcf7439..8866635 100644 (file)
     "queryProperties": [
       {"attribute":"customerLatitude", "attribute_location": "customerLatitude", "value": 1.1},
       {"attribute":"customerLongitude", "attribute_location": "customerLongitude", "value": 2.2},
-      {"attribute":"chosen_region", "attribute_location": "chosenRegion"}
+      {"attribute":"chosen_region", "attribute_location": "chosenRegion"},
+      {"attribute":"chosen_customer_id", "attribute_location": "chosenCustomerId"}
     ],
     "policyScope": [
-            "TD",
-            "vFW-SINK",
-            "vPGN"
+      "td",
+      "us",
+      "vFW-SINK",
+      "vPGN"
     ],
     "policyType": "request_param_query",
     "serviceName": "vFW_TD",
index 371cbfc..2df2d50 100644 (file)
@@ -11,7 +11,8 @@
     "content": {
         "identity": "affinity_vFW_TD",
         "policyScope": [
-            "TD",
+            "td",
+            "us",
             "vFW-SINK",
             "vPGN"
         ],
index efe8ffa..9a9cbe0 100644 (file)
     "guard": "False",
     "content": {
         "identity": "vnf_vFW_TD",
-        "policyScope": ["TD", "vFW-SINK"],
+        "policyScope": [
+            "td",
+            "us",
+            "vFW-SINK"
+        ],
         "policyType": "vnfPolicy",
         "resources": ["vFW-SINK"],
         "applicableResources": "any",
@@ -18,7 +22,9 @@
             "inventoryProvider": "aai",
             "serviceType": "",
             "inventoryType": "vfmodule",
-            "customerId": "Demonstration",
+            "customerId": {
+                "get_param": "chosen_customer_id"
+            },
             "equipmentRole": "",
             "attributes": {
                 "orchestrationStatus": ["active"],
index 64740ce..7b374b4 100644 (file)
     "guard": "False",
     "content": {
         "identity": "vnf_vPGN_TD",
-        "policyScope": ["TD", "vPGN"],
+        "policyScope": [
+            "td",
+            "us",
+            "vPGN"
+        ],
         "policyType": "vnfPolicy",
         "resources": ["vPGN"],
         "applicableResources": "any",
@@ -18,7 +22,9 @@
             "inventoryProvider": "aai",
             "serviceType": "",
             "inventoryType": "vfmodule",
-            "customerId": "Demonstration",
+            "customerId": {
+                "get_param": "chosen_customer_id"
+            },
             "equipmentRole": "",
             "attributes": {
                 "orchestrationStatus": ["active"],