commit | 21782d67bb3f570ea16ccafc95ef7d172de54f8f | [log] [tgz] |
---|---|---|
author | rruigon <arcaduino@riseup.net> | Mon Apr 29 10:00:04 2019 +0200 |
committer | Charles Chan <charles@opennetworking.org> | Tue Apr 30 17:33:11 2019 +0000 |
tree | 2028e98bf7debbd437adea998507c876dea0ced6 | |
parent | 67ba8a6bf619a64745ac460d2334f736ae63e16a [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 +}