Thomas Vachuska
Committed by Gerrit Code Review

GUI -- Fixed topology view failover.

- Promoted the new dynamically composed GUI page as the primary.
- Legacy is still available under onos/ui/legacy/index.html

Change-Id: Ife0ba50b7b4b567913498d80c2d261379ee268a5
1 -<script src="app/view/sample/sample.js"></script>
2 <script src="app/view/topo/topo.js"></script> 1 <script src="app/view/topo/topo.js"></script>
3 <script src="app/view/topo/topoD3.js"></script> 2 <script src="app/view/topo/topoD3.js"></script>
4 <script src="app/view/topo/topoEvent.js"></script> 3 <script src="app/view/topo/topoEvent.js"></script>
...@@ -11,4 +10,6 @@ ...@@ -11,4 +10,6 @@
11 <script src="app/view/topo/topoPanel.js"></script> 10 <script src="app/view/topo/topoPanel.js"></script>
12 <script src="app/view/topo/topoSelect.js"></script> 11 <script src="app/view/topo/topoSelect.js"></script>
13 <script src="app/view/topo/topoTraffic.js"></script> 12 <script src="app/view/topo/topoTraffic.js"></script>
13 +<script src="app/view/topo/topoToolbar.js"></script>
14 <script src="app/view/device/device.js"></script> 14 <script src="app/view/device/device.js"></script>
15 +<script src="app/view/sample/sample.js"></script>
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
21 <display-name>ONOS GUI</display-name> 21 <display-name>ONOS GUI</display-name>
22 22
23 <welcome-file-list> 23 <welcome-file-list>
24 - <welcome-file>legacy/index.html</welcome-file> 24 + <welcome-file>index.html</welcome-file>
25 </welcome-file-list> 25 </welcome-file-list>
26 26
27 <!-- 27 <!--
...@@ -67,6 +67,7 @@ ...@@ -67,6 +67,7 @@
67 67
68 <servlet-mapping> 68 <servlet-mapping>
69 <servlet-name>Index Page</servlet-name> 69 <servlet-name>Index Page</servlet-name>
70 + <url-pattern>/index.html</url-pattern>
70 <url-pattern>/main.html</url-pattern> 71 <url-pattern>/main.html</url-pattern>
71 </servlet-mapping> 72 </servlet-mapping>
72 73
......
...@@ -61,10 +61,8 @@ ...@@ -61,10 +61,8 @@
61 61
62 function wsOpen(host, url) { 62 function wsOpen(host, url) {
63 $log.debug('TOPO: web socket open - cluster node:', host, 'URL:', url); 63 $log.debug('TOPO: web socket open - cluster node:', host, 'URL:', url);
64 - 64 + // Request batch of initial data from the new server
65 - // TODO: request "instanceUpdate" events for all instances 65 + wss.sendEvent('topoStart');
66 - // this should give us the updated uiAttached icon placement
67 -
68 } 66 }
69 67
70 angular.module('ovTopo') 68 angular.module('ovTopo')
......
...@@ -86,7 +86,6 @@ ...@@ -86,7 +86,6 @@
86 86
87 <!-- This is where contributed javascript will get injected --> 87 <!-- This is where contributed javascript will get injected -->
88 <!-- {INJECTED-JAVASCRIPT-START} --> 88 <!-- {INJECTED-JAVASCRIPT-START} -->
89 - <script src="app/view/sample/sample.js"></script>
90 <script src="app/view/topo/topo.js"></script> 89 <script src="app/view/topo/topo.js"></script>
91 <script src="app/view/topo/topoD3.js"></script> 90 <script src="app/view/topo/topoD3.js"></script>
92 <script src="app/view/topo/topoEvent.js"></script> 91 <script src="app/view/topo/topoEvent.js"></script>
...@@ -101,14 +100,15 @@ ...@@ -101,14 +100,15 @@
101 <script src="app/view/topo/topoTraffic.js"></script> 100 <script src="app/view/topo/topoTraffic.js"></script>
102 <script src="app/view/topo/topoToolbar.js"></script> 101 <script src="app/view/topo/topoToolbar.js"></script>
103 <script src="app/view/device/device.js"></script> 102 <script src="app/view/device/device.js"></script>
103 + <script src="app/view/sample/sample.js"></script>
104 <!-- {INJECTED-JAVASCRIPT-END} --> 104 <!-- {INJECTED-JAVASCRIPT-END} -->
105 105
106 106
107 <!-- This is where contributed stylesheets will get injected --> 107 <!-- This is where contributed stylesheets will get injected -->
108 <!-- {INJECTED-STYLESHEETS-START} --> 108 <!-- {INJECTED-STYLESHEETS-START} -->
109 - <link rel="stylesheet" href="app/view/sample/sample.css">
110 <link rel="stylesheet" href="app/view/topo/topo.css"> 109 <link rel="stylesheet" href="app/view/topo/topo.css">
111 <link rel="stylesheet" href="app/view/device/device.css"> 110 <link rel="stylesheet" href="app/view/device/device.css">
111 + <link rel="stylesheet" href="app/view/sample/sample.css">
112 <!-- {INJECTED-STYLESHEETS-END} --> 112 <!-- {INJECTED-STYLESHEETS-END} -->
113 113
114 </head> 114 </head>
......