Commit 06165c09 authored by Maxime Perrotin's avatar Maxime Perrotin

Filter completely user-provided names

parent 6683cbc7
......@@ -30,10 +30,14 @@ tpl['arrsFunctNames'] = [fName for fName in iv.functions.keys()
connections = [] # type: List[str]
for fromName, content in iv.functions.viewitems():
group = defaultdict(list)
if fromName in sys.argv[1:]:
continue
for iName, iContent in content['interfaces'].viewitems():
if iContent['direction'] == iv.RI:
group[iContent['distant_fv']].append(iName)
for destName, destContent in group.viewitems():
if destName in sys.argv[1:]:
continue
tplConn = new("connection")
tplConn['sFrom'] = fromName
tplConn['sTo'] = destName
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment