Added host-related unit tests for model cache.
Change-Id: Iac27f62daed2c8e9114ce924c3014f35eb0ae5ce
diff --git a/core/api/src/main/java/org/onosproject/ui/model/topo/UiHost.java b/core/api/src/main/java/org/onosproject/ui/model/topo/UiHost.java
index e80836a..8c5107e 100644
--- a/core/api/src/main/java/org/onosproject/ui/model/topo/UiHost.java
+++ b/core/api/src/main/java/org/onosproject/ui/model/topo/UiHost.java
@@ -106,12 +106,30 @@
}
/**
- * Identifier for the edge link between this host and the device to which
- * it is connected.
+ * Returns the identifier for the edge link between this host and
+ * the device to which it is connected.
*
* @return edge link identifier
*/
public UiLinkId edgeLinkId() {
- return null;
+ return edgeLinkId;
+ }
+
+ /**
+ * Returns the identifier of the device to which the host is connected.
+ *
+ * @return device identifier
+ */
+ public DeviceId locationDevice() {
+ return locDevice;
+ }
+
+ /**
+ * Returns the port number of the device to which the host is connected.
+ *
+ * @return port number
+ */
+ public PortNumber locationPort() {
+ return locPort;
}
}