routing constraint added on top of disjunction feature : step 4
select disjoint routes that satisfy route constraint
@@ -72,25 +72,16 @@ class Request_element(Element):
self.nodes_list = []
if Request.nodes_list :
self.nodes_list = Request.nodes_list.split(' | ')
+ toberemoved = [self.source, self.destination, self.srctpid, self.dsttpid]
+ for n in toberemoved:
try :
- self.nodes_list.remove(self.source)
- msg = f'{self.source} removed from explicit path node-list'
+ self.nodes_list.remove(n)
+ msg = f'{n} removed from explicit path node-list'
logger.info(msg)
# print(msg)
except ValueError:
- msg = f'{self.source} already removed from explicit path node-list'
- logger.info(msg)
- # print(msg)
- try :
- self.nodes_list.remove(self.destination)
- msg = f'{self.destination} removed from explicit path node-list'
- logger.info(msg)
+ pass
# print(msg)
- except ValueError:
- msg = f'{self.destination} already removed from explicit path node-list'
- logger.info(msg)
- # print(msg)
-
self.loose = 'loose'
if Request.is_loose == 'no' :
self.loose = 'strict'
