check for coordinates before running hyperbolic routing

refs: #4252

Change-Id: I04a4278443f02eef29666800fb3cd22e53a5ca28
diff --git a/bin/minindn b/bin/minindn
index 99aa05c..b4ad0c2 100755
--- a/bin/minindn
+++ b/bin/minindn
@@ -302,7 +302,13 @@
         for host in hosts_conf:
             if host.cpu != None and self.isLimited != True:
                 self.isLimited = True
-            self.addHost(host.name, app=host.app, params=host.uri_tuples, cpu=host.cpu,cores=host.cores,cache=host.cache, workdir=workDir)
+            self.addHost(host.name, app=host.app, params=host.uri_tuples, cpu=host.cpu,
+                         cores=host.cores,cache=host.cache, workdir=workDir)
+            if (options.routingType != 'link-state' and (host.params.get('radius') is None
+                or host.params.get('angle') is None)):
+                info('Hyperbolic coordinates in topology file are either missing or misconfigured.\n' \
+                     'Check that each node has one radius value and one or two angle value(s).\n')
+                sys.exit(1)
 
         for switch in switches_conf:
             self.addSwitch(switch.name)