simple topology files with no additional parameters
Change-Id: Ie121994596424249b969bb3af94c81d768fb0fc4
diff --git a/minindn/minindn.py b/minindn/minindn.py
index 7a34787..8bdec13 100644
--- a/minindn/minindn.py
+++ b/minindn/minindn.py
@@ -145,7 +145,7 @@
@staticmethod
def processTopo(topoFile):
- config = configparser.ConfigParser(delimiters=' ')
+ config = configparser.ConfigParser(delimiters=' ', allow_no_value=True)
config.read(topoFile)
topo = Topo()
@@ -154,7 +154,7 @@
for item in items:
name = item[0].split(':')[0]
- if item[1] in coordinates:
+ if item[1] in coordinates and item[1] != '_':
error("FATAL: Duplicate Coordinate, \'{}\' used by multiple nodes\n" \
.format(item[1]))
sys.exit(1)