Changing default view of the new GUI to the Topology View.
Change-Id: I99366a65bbdb91c221e70c6a0f3614c6ee319878
diff --git a/web/gui/src/main/java/org/onosproject/ui/impl/UiExtensionManager.java b/web/gui/src/main/java/org/onosproject/ui/impl/UiExtensionManager.java
index c601a5f..db5f90d 100644
--- a/web/gui/src/main/java/org/onosproject/ui/impl/UiExtensionManager.java
+++ b/web/gui/src/main/java/org/onosproject/ui/impl/UiExtensionManager.java
@@ -56,9 +56,9 @@
// Creates core UI extension
private static UiExtension createCoreExtension() {
- List<UiView> coreViews = of(new UiView("sample", "Sample"),
- new UiView("topo", "Topology View"),
- new UiView("device", "Devices"));
+ List<UiView> coreViews = of(new UiView("topo", "Topology View"),
+ new UiView("device", "Devices"),
+ new UiView("sample", "Sample"));
UiMessageHandlerFactory messageHandlerFactory =
() -> ImmutableList.of(
new TopologyViewMessageHandler()
diff --git a/web/gui/src/main/webapp/onos.js b/web/gui/src/main/webapp/onos.js
index c1338f6..60ed3fb 100644
--- a/web/gui/src/main/webapp/onos.js
+++ b/web/gui/src/main/webapp/onos.js
@@ -36,9 +36,9 @@
// view IDs.. note the first view listed is loaded at startup
var viewIds = [
// {INJECTED-VIEW-IDS-START}
- 'sample',
'topo',
'device',
+ 'sample',
// {INJECTED-VIEW-IDS-END}
// dummy entry