ONOS-6259: Topo2 - Implement server-side highlighting model (WIP)
- added missing 'grid' parameter in config script.
- fixed handling of peer region locations.

Change-Id: I4cd8d4db49cfde105424ca786c3fed181afbe7b7
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2NodePosition.js b/web/gui/src/main/webapp/app/view/topo2/topo2NodePosition.js
index 7c96cad..8889168 100644
--- a/web/gui/src/main/webapp/app/view/topo2/topo2NodePosition.js
+++ b/web/gui/src/main/webapp/app/view/topo2/topo2NodePosition.js
@@ -66,10 +66,15 @@
             }
 
             // assumed to be grid
-            var loc = {
-                longOrX: -20,
-                latOrY: 10 * node.index()
-            };
+            var loc = node.get('location');
+
+            // fallback to default placement if not defined.
+            if (!loc.latOrY && !loc.longOrX) {
+                loc = {
+                    longOrX: -20,
+                    latOrY: 10 * node.index()
+                };
+            }
 
             setElCoord(node, coordFromXY(loc));
             return;