Check duplicate HR coordinates in topology file
refs: #4812
Change-Id: If6c88d24d74e8d5d0d5e815eef1270fafe7b51e6
diff --git a/minindn/minindn.py b/minindn/minindn.py
index 847e003..9921fe6 100644
--- a/minindn/minindn.py
+++ b/minindn/minindn.py
@@ -141,8 +141,15 @@
topo = Topo()
items = config.items('nodes')
+ coordinates = []
+
for item in items:
name = item[0].split(':')[0]
+ if item[1] in coordinates:
+ error("FATAL: Duplicate Coordinate, \"{}\" used by multiple nodes\n" \
+ .format(item[1]))
+ sys.exit(1)
+ coordinates.append(item[1])
params = {}
for param in item[1].split(' '):