ONOS-3728 Storing annotations in GossipHostStore.createHost
Change-Id: Ie5ec5b2e0902257ee3ed5a44c3cb8a23dca2f826
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -251,7 +251,8 @@ public class GossipHostStore | ... | @@ -251,7 +251,8 @@ public class GossipHostStore |
251 | descr.hwAddress(), | 251 | descr.hwAddress(), |
252 | descr.vlan(), | 252 | descr.vlan(), |
253 | descr.location(), | 253 | descr.location(), |
254 | - ImmutableSet.copyOf(descr.ipAddress())); | 254 | + ImmutableSet.copyOf(descr.ipAddress()), |
255 | + descr.annotations()); | ||
255 | StoredHost concAdd = hosts.putIfAbsent(hostId, newhost); | 256 | StoredHost concAdd = hosts.putIfAbsent(hostId, newhost); |
256 | if (concAdd != null) { | 257 | if (concAdd != null) { |
257 | // concurrent add detected, retry from start | 258 | // concurrent add detected, retry from start | ... | ... |
-
Please register or login to post a comment