CNlucius
Committed by Gerrit Code Review

ONOS-2624

Fix host annotations of host description

Change-Id: I4822741e8cdef5c9620f5f2b8cf260fc0f523bf9
......@@ -125,7 +125,8 @@ public class ECHostStore
hostDescription.hwAddress(),
hostDescription.vlan(),
hostDescription.location(),
ImmutableSet.copyOf(hostDescription.ipAddress()));
ImmutableSet.copyOf(hostDescription.ipAddress()),
hostDescription.annotations());
hosts.put(hostId, newhost);
return new HostEvent(HOST_ADDED, newhost);
}
......
......@@ -36,6 +36,7 @@ import org.onosproject.net.Host;
import org.onosproject.net.HostId;
import org.onosproject.net.HostLocation;
import org.onosproject.net.PortNumber;
import org.onosproject.net.SparseAnnotations;
import org.onosproject.net.host.DefaultHostDescription;
import org.onosproject.net.host.HostDescription;
import org.onosproject.net.host.HostProvider;
......@@ -116,7 +117,7 @@ public class OvsdbHostProvider extends AbstractProvider implements HostProvider
.portNumber().value(), subject.portName().value());
HostLocation loaction = new HostLocation(deviceId, portNumber,
0L);
DefaultAnnotations annotations = DefaultAnnotations.builder()
SparseAnnotations annotations = DefaultAnnotations.builder()
.set("ifaceid", subject.ifaceid().value()).build();
HostDescription hostDescription = new DefaultHostDescription(
subject.hwAddress(),
......