commit | 24c0ca43c10bd27c803a3372d9be2605ce5ec165 | [log] [tgz] |
---|---|---|
author | Thomas Vachuska <tom@opennetworking.org> | Thu Aug 29 18:19:16 2019 -0700 |
committer | Thomas Vachuska <tom@onlab.us> | Fri Aug 30 15:26:37 2019 +0000 |
tree | e6522cfe93e935a429b4631160630a8977fb6f50 | |
parent | 57d8cd99c1cffdfb958e9665b20dada021a855b8 [diff] |
Minor fix to disconnect only devices that belong to the provider. Change-Id: I1910a10dfd39de781fdb515743aac5a05b141caa
diff --git a/providers/general/device/src/main/java/org/onosproject/provider/general/device/impl/GeneralDeviceProvider.java b/providers/general/device/src/main/java/org/onosproject/provider/general/device/impl/GeneralDeviceProvider.java index 59d0ae5..c466d73 100644 --- a/providers/general/device/src/main/java/org/onosproject/provider/general/device/impl/GeneralDeviceProvider.java +++ b/providers/general/device/src/main/java/org/onosproject/provider/general/device/impl/GeneralDeviceProvider.java
@@ -966,7 +966,7 @@ @Override public boolean isRelevant(DeviceEvent event) { - return DeviceEvent.Type.DEVICE_REMOVED == event.type(); + return DeviceEvent.Type.DEVICE_REMOVED == event.type() && myScheme(event.subject().id()); } } }