aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatel, Ankitkumar <ankit@research.att.com>2018-05-29 13:46:11 -0400
committerPatel, Ankitkumar <ankit@research.att.com>2018-05-29 13:46:55 -0400
commit839b658537f201b6f18c23ace1dc78d091eed7f1 (patch)
tree4126c27dfd7f8a8cca149b24dec294c5baf19b70
parent35266fadb09d9e986af1af2c03cd979baa2ba8fa (diff)
Fixed the distance policy type
Fixed the distance_to_location policy type Issue-ID: OPTFRA-247 Change-Id: I5b63407fcf7c46dffc841b080b721e5c8203a3da Signed-off-by: Patel, Ankitkumar <ankit@research.att.com>
-rw-r--r--osdf/optimizers/placementopt/conductor/api_builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdf/optimizers/placementopt/conductor/api_builder.py b/osdf/optimizers/placementopt/conductor/api_builder.py
index 8123726..e841f48 100644
--- a/osdf/optimizers/placementopt/conductor/api_builder.py
+++ b/osdf/optimizers/placementopt/conductor/api_builder.py
@@ -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'])