Updating the VNF policy translation 43/48543/1
authorAnkitkumar Patel <ankit@research.att.com>
Tue, 22 May 2018 18:19:36 +0000 (14:19 -0400)
committerAnkitkumar Patel <ankit@research.att.com>
Tue, 22 May 2018 18:19:54 +0000 (14:19 -0400)
Updating the VNF policy translation

Issue-ID: OPTFRA-239
Change-Id: Iadce865b35ec94613502063d718a317aba798bc4
Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
config/common_config.yaml
config/osdf_config.yaml
osdf/optimizers/placementopt/conductor/translation.py
test/policy-local-files/Affinity_vCPE_1.json
test/policy-local-files/vnfPolicy_vGMuxInfra.json

index c91433f..7cda619 100644 (file)
@@ -14,14 +14,14 @@ osdf_temp:  # special configuration required for "workarounds" or testing
         placement_policy_dir_vcpe: "./test/policy-local-files/"
         placement_policy_files_vcpe: # workaroud for policy platform glitches (or "work-arounds" for other components)
             - Affinity_vCPE_1.json
-            - Capacity_vGMuxInfra.json
-            - Capacity_vG_1.json
+            #- Capacity_vGMuxInfra.json
+            #- Capacity_vG_1.json
             - Distance_vGMuxInfra_1.json
             - Distance_vG_1.json
             - Placement_Optimization_1.json
             - QueryPolicy_vCPE.json
-            - hpa_policy_vGMuxInfra_1.json
-            - hpa_policy_vG_1.json
+            #- hpa_policy_vGMuxInfra_1.json
+            #- hpa_policy_vG_1.json
             - vnfPolicy_vG.json
             - vnfPolicy_vGMuxInfra.json
 service_info:
index 3ca3ad3..29228c2 100755 (executable)
@@ -3,7 +3,7 @@ soUsername: ""   # SO username for call back.
 soPassword: ""   # SO password for call back.
 
 # Credentials for Conductor
-conductorUrl: https://localhost:8091/v1/plans/
+conductorUrl: http://172.17.0.6:8091/v1/plans/
 conductorUsername: admin1
 conductorPassword: plan.15
 conductorPingWaitTime: 60  # seconds to wait before calling the conductor retry URL
index e703c36..7bef01c 100644 (file)
@@ -224,7 +224,7 @@ def get_demand_properties(demand, policies):
                     service_type=demand['serviceResourceId'])
         attributes = policy_config_mapping['attributes']
         prop['attributes'] = {
-            'customer-id': policy_property['customerId'],
+            'global-customer-id': policy_property['customerId'],
             'orchestration-status': "",
             'model-invariant-id': demand['resourceModelInfo']['modelInvariantId'],
             'model-version-id': demand['resourceModelInfo']['modelVersionId'],
index c9046dd..6f0ecb3 100644 (file)
@@ -12,7 +12,7 @@
         "identity": "affinity_vCPE",
         "policyScope": ["vCPE", "US", "INTERNATIONAL", "ip", "vGMuxInfra", "vG"],
         "affinityProperty": {
-            "qualifier": "different",
+            "qualifier": "same",
             "category": "complex"
         },
         "policyType": "zone",
index 7ac6dff..6849105 100644 (file)
@@ -17,9 +17,9 @@
            "vnfProperties": [
             {
                 "inventoryProvider": "aai",
-                "serviceType": "vGMuxInfra",
+                "serviceType": "vGMuxInfra-xx",
                 "inventoryType": "service",
-                "customerId": "",
+                "customerId": "SDN-ETHERNET-INTERNET",
                 "orchestrationStatus": "",
                 "equipmentRole": ""
             }