X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2Ftopology.py;fp=resources%2Flibraries%2Fpython%2Ftopology.py;h=7e53a4ba605d225ea9f31c8f195ecdab805b1f19;hp=454692807cd4e6026401435eabf839b8ce855aed;hb=5ac1a66457aae598318824fe7bbc013718b3d2ae;hpb=265352781a137add1dc01238f9594cdbde7d77ad diff --git a/resources/libraries/python/topology.py b/resources/libraries/python/topology.py index 454692807c..7e53a4ba60 100644 --- a/resources/libraries/python/topology.py +++ b/resources/libraries/python/topology.py @@ -766,7 +766,9 @@ class Topology: # find link for node_data in nodes_info.values(): # skip self - if node_data[u"host"] == node[u"host"]: + l_hash = node_data[u"host"]+str(node_data[u"port"]) + r_hash = node[u"host"]+str(node[u"port"]) + if l_hash == r_hash: continue for if_key, if_val \ in node_data[u"interfaces"].items():