summaryrefslogtreecommitdiffstats
path: root/conductor
diff options
context:
space:
mode:
authorShankar Narayanan <snarayanan@research.att.com>2019-03-28 13:51:09 -0400
committerShankar Narayanan <snarayanan@research.att.com>2019-03-28 13:51:17 -0400
commit0da030f70e15963f09a4f11639f0eade8f8e0e6a (patch)
treee72ccd474780fccda4c9aea60ef3b5096b0ee468 /conductor
parent03f6b610d467fcffc636b5f1751349cc96516613 (diff)
Fixed some code smells and redundant comments
Change-Id: Iadfb72b678c71b9c1391a7d5011942ae1dd50781 Signed-off-by: Shankar Narayanan <snarayanan@research.att.com> Issue-ID: OPTFRA-465
Diffstat (limited to 'conductor')
-rwxr-xr-xconductor/conductor/solver/request/parser.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/conductor/conductor/solver/request/parser.py b/conductor/conductor/solver/request/parser.py
index fcdb2d5..5e7c80e 100755
--- a/conductor/conductor/solver/request/parser.py
+++ b/conductor/conductor/solver/request/parser.py
@@ -78,11 +78,6 @@ class Parser(object):
if json_template is None:
LOG.error("No template specified")
return "Error"
- # fd = open(self.region_gen.data_path + \
- # "/../dhv/dhv_test_template.json", "r")
- # fd = open(template, "r")
- # parse_template = json.load(fd)
- # fd.close()
# get request type
self.request_type = json_template['conductor_solver']['request_type']
@@ -548,23 +543,6 @@ class Parser(object):
_location=loc)
constraint_list.append(access_distance)
- '''
- access_distance = access_dist.AccessDistance(
- "uCPE-all", "access_distance", [demand1.name, demand2.name],
- _comparison_operator=operator.le, _threshold=5000, _location=loc)
- constraint_list.append(access_distance)
-
- aic_distance = aic_dist.AICDistance(
- "vVIG-vGW", "aic_distance", [demand1.name, demand2.name],
- _comparison_operator=operator.le, _threshold=50)
- constraint_list.append(aic_distance)
-
- same_zone = zone.Zone(
- "same-zone", "zone", [demand1.name, demand2.name],
- _qualifier="same", _category="zone1")
- constraint_list.append(same_zone)
- '''
-
def reorder_constraint(self):
# added manual ranking to the constraint type for optimizing purpose the last 2 are costly interaction
for constraint_name, constraint in self.constraints.items():
@@ -598,9 +576,6 @@ class Parser(object):
cl_list.sort(key=self.attr_sort(attrs=['rank']))
def assgin_constraints_to_demands(self):
- # self.parse_dhv_template() # get data from DHV template
- # self.get_data_from_aai_simulator() # get data from aai simulation
- # renaming simulate to assgin_constraints_to_demands
# spread the constraints over the demands
self.reorder_constraint()
for constraint_name, constraint in self.constraints.items():