Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
C-Docs: Update rls2406 notes.
[csit.git]
/
resources
/
libraries
/
python
/
NodePath.py
diff --git
a/resources/libraries/python/NodePath.py
b/resources/libraries/python/NodePath.py
index
dd68506
..
5b445bc
100644
(file)
--- a/
resources/libraries/python/NodePath.py
+++ b/
resources/libraries/python/NodePath.py
@@
-243,8
+243,11
@@
class NodePath:
:raises RuntimeError: If unsupported combination of parameters.
"""
t_dict = dict()
:raises RuntimeError: If unsupported combination of parameters.
"""
t_dict = dict()
+ t_dict[u"hosts"] = set()
if topo_has_dut:
duts = [key for key in nodes if u"DUT" in key]
if topo_has_dut:
duts = [key for key in nodes if u"DUT" in key]
+ for host in [nodes[dut][u"host"] for dut in duts]:
+ t_dict[u"hosts"].add(host)
t_dict[u"duts"] = duts
t_dict[u"duts_count"] = len(duts)
t_dict[u"int"] = u"pf"
t_dict[u"duts"] = duts
t_dict[u"duts_count"] = len(duts)
t_dict[u"int"] = u"pf"
@@
-259,6
+262,7
@@
class NodePath:
for dut in duts:
self.append_node(nodes[dut], filter_list=filter_list)
if topo_has_tg:
for dut in duts:
self.append_node(nodes[dut], filter_list=filter_list)
if topo_has_tg:
+ t_dict[u"hosts"].add(nodes[u"TG"][u"host"])
if topo_has_dut:
self.append_node(nodes[u"TG"])
else:
if topo_has_dut:
self.append_node(nodes[u"TG"])
else: