https://git.opendaylight.org/gerrit/#/c/78758/ modified
unsubscribeDtcl to return the "data-missing" error tag
if the DTCL received no notifications which is translated by
restconf to 404 but the CSIT test is expected 500 so return
"operation-failed".
Change-Id: I22df1012e9f191171699fb4ddee8353b22b24c14
Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
dtclReg = null;
if (!idIntsListener.hasTriggered()) {
- final RpcError error = RpcResultBuilder.newError(ErrorType.APPLICATION, "data-missing",
+ final RpcError error = RpcResultBuilder.newError(ErrorType.APPLICATION, "operation-failed",
"id-ints listener did not receive any notifications.");
return Futures.immediateFuture(RpcResultBuilder.<UnsubscribeDtclOutput>failed()
.withRpcError(error).build());