Fix CORD-2326 Dual home host loses one of its location when its name being changed in GUI
Change-Id: I9e5500cca4aeda66ad6cef781d5552f9ec0609ec
diff --git a/core/net/src/main/java/org/onosproject/net/host/impl/BasicHostOperator.java b/core/net/src/main/java/org/onosproject/net/host/impl/BasicHostOperator.java
index 108fdd4..976e324 100644
--- a/core/net/src/main/java/org/onosproject/net/host/impl/BasicHostOperator.java
+++ b/core/net/src/main/java/org/onosproject/net/host/impl/BasicHostOperator.java
@@ -96,7 +96,7 @@
*/
public static HostDescription descriptionOf(Host host) {
checkNotNull(host, "Must supply a non-null Host");
- return new DefaultHostDescription(host.mac(), host.vlan(), host.location(),
+ return new DefaultHostDescription(host.mac(), host.vlan(), host.locations(),
host.ipAddresses(), host.configured(),
(SparseAnnotations) host.annotations());
}