X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FNodePath.py;h=b9b4fc94e6c06c0d0fc16296b256aa63a078dfda;hb=HEAD;hp=dd685069147f2ecd6d448e5a21f06f4c9335edbe;hpb=76def9e0a3404b38c9e7fbd58260700207b17639;p=csit.git diff --git a/resources/libraries/python/NodePath.py b/resources/libraries/python/NodePath.py index dd68506914..5b445bc593 100644 --- 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() + t_dict[u"hosts"] = set() 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" @@ -259,6 +262,7 @@ class NodePath: 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: