commit | 6db7577b6c15e506de89a54ec53256d9628577e6 | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Fri Jan 08 02:03:49 2016 -0800 |
committer | Brian O'Connor <bocon@onlab.us> | Fri Jan 08 02:06:12 2016 -0800 |
tree | 20d881286eac6b7d596460e3833b921721d54896 | |
parent | 6f3f79f7f5edc4f6b0e79ccb1a6f3d8cf9c25e35 [diff] |
ONOS-3728 Storing annotations in GossipHostStore.createHost Change-Id: Ie5ec5b2e0902257ee3ed5a44c3cb8a23dca2f826
diff --git a/core/store/dist/src/main/java/org/onosproject/store/host/impl/GossipHostStore.java b/core/store/dist/src/main/java/org/onosproject/store/host/impl/GossipHostStore.java index b2e4b97..c0da9b9 100644 --- a/core/store/dist/src/main/java/org/onosproject/store/host/impl/GossipHostStore.java +++ b/core/store/dist/src/main/java/org/onosproject/store/host/impl/GossipHostStore.java
@@ -251,7 +251,8 @@ descr.hwAddress(), descr.vlan(), descr.location(), - ImmutableSet.copyOf(descr.ipAddress())); + ImmutableSet.copyOf(descr.ipAddress()), + descr.annotations()); StoredHost concAdd = hosts.putIfAbsent(hostId, newhost); if (concAdd != null) { // concurrent add detected, retry from start