Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
2653527
)
fix(core): Comparison hash
62/38962/1
author
pmikus
<peter.mikus@protonmail.ch>
Thu, 1 Jun 2023 10:27:32 +0000
(10:27 +0000)
committer
pmikus
<peter.mikus@protonmail.ch>
Thu, 1 Jun 2023 10:27:32 +0000
(10:27 +0000)
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I84b46e6a792d72cb56a9a42d40db8cc13866b836
resources/libraries/python/topology.py
patch
|
blob
|
history
diff --git
a/resources/libraries/python/topology.py
b/resources/libraries/python/topology.py
index
4546928
..
7e53a4b
100644
(file)
--- 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():