commit | f0b103d29250477129c822d2ed29168995fc225e | [log] [tgz] |
---|---|---|
author | rruigon <arcaduino@riseup.net> | Mon Apr 29 10:00:04 2019 +0200 |
committer | Ray Milkey <ray@opennetworking.org> | Mon Apr 29 16:58:48 2019 +0000 |
tree | 7212b331b383f3255b2002080ca955064e9a4c86 | |
parent | 1a4f1b288f8c96edab06f2d5fdcb79c55c17b9f6 [diff] |
fixed unsafe downcasting that caused failures in detecting disconnection of hosts Change-Id: I767c3361e88ab65d2b40e2b00ff7d76c84ca4f9d
diff --git a/providers/hostprobing/src/main/java/org/onosproject/provider/hostprobing/impl/DefaultHostProbingProvider.java b/providers/hostprobing/src/main/java/org/onosproject/provider/hostprobing/impl/DefaultHostProbingProvider.java index d590570..522ed20 100644 --- a/providers/hostprobing/src/main/java/org/onosproject/provider/hostprobing/impl/DefaultHostProbingProvider.java +++ b/providers/hostprobing/src/main/java/org/onosproject/provider/hostprobing/impl/DefaultHostProbingProvider.java
@@ -171,7 +171,7 @@ // Remove this location if this is a verify probe. if (hostProbe.mode() == ProbeMode.VERIFY) { providerService.removeLocationFromHost(hostProbe.id(), - (HostLocation) hostProbe.connectPoint()); + new HostLocation(hostProbe.connectPoint(), 0L)); } break; case PROBE_COMPLETED: @@ -247,4 +247,4 @@ treatment, ByteBuffer.wrap(probe.serialize())); packetService.emit(outboundPacket); } -} \ No newline at end of file +}