ONOS-4326: Working on topology topo2start processing.
- Added getPeers() to UiTopoLayoutService.
- Fixed wipe-out command to leave the default layout alone.
- Fixed handling of null-region (associated with default layout).
- Added refresh() method to model cache.
- Fixed regions-topo-2 device IDs
Change-Id: Iee49b47ff6702bed9751be7b63392577422d4763
diff --git a/web/gui/src/main/java/org/onosproject/ui/impl/topo/model/UiSharedTopologyModel.java b/web/gui/src/main/java/org/onosproject/ui/impl/topo/model/UiSharedTopologyModel.java
index 50ebb06..4fbf707 100644
--- a/web/gui/src/main/java/org/onosproject/ui/impl/topo/model/UiSharedTopologyModel.java
+++ b/web/gui/src/main/java/org/onosproject/ui/impl/topo/model/UiSharedTopologyModel.java
@@ -217,6 +217,22 @@
return cache.accessRegion(id);
}
+ /**
+ * Returns the null region.
+ *
+ * @return the null region
+ */
+ public UiRegion getNullRegion() {
+ return cache.nullRegion();
+ }
+
+ /**
+ * Refreshes the cache's internal state.
+ */
+ public void refresh() {
+ cache.refresh();
+ }
+
// =====================================================================