Extend host structures to store multiple locations
Also update host location format in CLI and REST API
Change-Id: I0fbd655f642627dd3eb8a2925f83a3ee016fe4aa
diff --git a/core/api/src/main/java/org/onosproject/net/Host.java b/core/api/src/main/java/org/onosproject/net/Host.java
index 5094727..86ef79f 100644
--- a/core/api/src/main/java/org/onosproject/net/Host.java
+++ b/core/api/src/main/java/org/onosproject/net/Host.java
@@ -59,11 +59,18 @@
* Returns the most recent host location where the host attaches to the
* network edge.
*
- * @return host location
+ * @return the most recent host location
*/
HostLocation location();
/**
+ * Returns all host locations where the host attaches to the network edge.
+ *
+ * @return all host locations
+ */
+ Set<HostLocation> locations();
+
+ /**
* Returns true if configured by NetworkConfiguration.
* @return configured/learnt dynamically
*/
@@ -73,4 +80,3 @@
// TODO: explore capturing list of recent locations to aid in mobility
}
-