aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-06-01 10:27:32 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-06-01 12:27:50 +0000
commit877c5e7b76944bfd8d1df17a03024ad7910fe03f (patch)
treec511abdec6ea51cf59cb3384e68b4e5b84597ca9
parent6c9baa31777afda116b40b1c4814767d06b32110 (diff)
fix(core): Comparison hash
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I84b46e6a792d72cb56a9a42d40db8cc13866b836 (cherry picked from commit 5ac1a66457aae598318824fe7bbc013718b3d2ae)
-rw-r--r--resources/libraries/python/topology.py4
1 files changed, 3 insertions, 1 deletions
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():