commit | 9fb87f665b813067a23769db4c84bd3bda836860 | [log] [tgz] |
---|---|---|
author | RafaĆ Szalecki <r.szalecki@samsung.com> | Wed Dec 06 15:06:09 2017 +0100 |
committer | Thomas Vachuska <tom@opennetworking.org> | Tue Jan 16 18:05:06 2018 +0000 |
tree | e1de861eeaf387214ca51d2848e09bb7a03ac3a2 | |
parent | 73f9aeaa11fead280f72da1b79c4af9806c70c19 [diff] |
Remove device from deviceLocalStatus after the device was removed from the store. Change-Id: I98ac16a9ce7baf2676d7f8f860689a6ece4b800f
diff --git a/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java b/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java index e348dd7..a0c74ca 100644 --- a/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java +++ b/core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java
@@ -952,6 +952,9 @@ @Override public void notify(DeviceEvent event) { post(event); + if (event.type().equals(DeviceEvent.Type.DEVICE_REMOVED)) { + deviceLocalStatus.remove(event.subject().id()); + } } }