commit | 2abf4726d4bdc1660202f1971e7ba867fec995eb | [log] [tgz] |
---|---|---|
author | rruigon <arcaduino@riseup.net> | Mon Apr 29 10:00:04 2019 +0200 |
committer | Charles Chan <rascov@gmail.com> | Tue Apr 30 10:33:55 2019 -0700 |
tree | 2dc65c559bef94805c820136b126f337737dbd73 | |
parent | 2dacdb4ccdf25af2d0c82db3b59da829fc9c3059 [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 dfcbf0b..dfe8370 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
@@ -173,7 +173,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: @@ -249,4 +249,4 @@ treatment, ByteBuffer.wrap(probe.serialize())); packetService.emit(outboundPacket); } -} \ No newline at end of file +}