commit | 58a0dd0cef615721a0a9221d4891a50d9528c61a | [log] [tgz] |
---|---|---|
author | Simon Hunt <simon@onlab.us> | Tue May 17 11:54:23 2016 -0700 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed May 18 20:59:54 2016 +0000 |
tree | 479f480ead138ea236d19e4f946ca8fe05366f9c | |
parent | b85000deeec5c45a31731b775b5eea041bcc2055 [diff] [blame] |
Included connect point port number in definition of UiLinkId. Added dumpString() to ModelCache / UiTopology. Added more unit tests for ModelCache. Change-Id: I842bb418b25cc901bd12bc28c6660c836f7235bc
diff --git a/core/api/src/main/java/org/onosproject/ui/model/topo/UiDevice.java b/core/api/src/main/java/org/onosproject/ui/model/topo/UiDevice.java index bb59752..3ed9da0 100644 --- a/core/api/src/main/java/org/onosproject/ui/model/topo/UiDevice.java +++ b/core/api/src/main/java/org/onosproject/ui/model/topo/UiDevice.java
@@ -87,6 +87,16 @@ } /** + * Returns the identifier of the region to which this device belongs. + * This will be null if the device does not belong to any region. + * + * @return region identity + */ + public RegionId regionId() { + return regionId; + } + + /** * Returns the UI region to which this device belongs. * * @return the UI region