Fixed the distance policy type 01/49401/1
authorPatel, Ankitkumar <ankit@research.att.com>
Tue, 29 May 2018 17:46:11 +0000 (13:46 -0400)
committerPatel, Ankitkumar <ankit@research.att.com>
Tue, 29 May 2018 17:46:55 +0000 (13:46 -0400)
Fixed the distance_to_location policy type

Issue-ID: OPTFRA-247
Change-Id: I5b63407fcf7c46dffc841b080b721e5c8203a3da
Signed-off-by: Patel, Ankitkumar <ankit@research.att.com>
osdf/optimizers/placementopt/conductor/api_builder.py

index 8123726..e841f48 100644 (file)
@@ -44,7 +44,7 @@ def conductor_api_builder(request_json, flat_policies: list, local_config,
     demand_list = tr.gen_demands(request_json, gp['vnfPolicy'])
     attribute_policy_list = tr.gen_attribute_policy(demand_vnf_name_list, gp['attribute'])
     distance_to_location_policy_list = tr.gen_distance_to_location_policy(
-        demand_vnf_name_list, gp['distancePolicy'])
+        demand_vnf_name_list, gp['distance_to_location'])
     inventory_policy_list = tr.gen_inventory_group_policy(demand_vnf_name_list, gp['inventory_group'])
     resource_instance_policy_list = tr.gen_resource_instance_policy(
         demand_vnf_name_list, gp['instance_fit'])