commit | 10973dd2f1fd34beeeeeb2eb82f45ac6e43d7a01 | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Mon Aug 01 15:50:35 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Tue Aug 02 00:36:44 2016 +0000 |
tree | c63ebd5ce1530b17d5959a943f34893d0ad2743e | |
parent | bdfb5cb428d3978e6903806185d5340ffa2c4a39 [diff] |
Added ui-cache-regions CLI command. Change-Id: I196543792c85e40e582f9456e4e50dd33bedf111
diff --git a/core/api/src/main/java/org/onosproject/ui/model/topo/UiTopology.java b/core/api/src/main/java/org/onosproject/ui/model/topo/UiTopology.java index dd601eb..b4eabe9 100644 --- a/core/api/src/main/java/org/onosproject/ui/model/topo/UiTopology.java +++ b/core/api/src/main/java/org/onosproject/ui/model/topo/UiTopology.java
@@ -149,6 +149,16 @@ return cnodeLookup.size(); } + + /** + * Returns all regions in the model. + * + * @return all regions + */ + public Set<UiRegion> allRegions() { + return new HashSet<>(regionLookup.values()); + } + /** * Returns a reference to the null-region. That is, the container for * devices, hosts, and links that belong to no region.