From: wsx25289 <10200860@zte.com.cn> Date: Fri, 3 Apr 2020 09:14:58 +0000 (-0400) Subject: Get notification streams error. X-Git-Tag: release/aluminium~82 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=98389a986a692c7906f9ad25e66fc86962599d85;p=netconf.git Get notification streams error. Get streams should have correct response. JIRA: NETCONF-663 Change-Id: I5cd5342653795b5531ca66cf6d839f9568c59474 Signed-off-by: Wsx25289 <10200860@zte.com.cn> --- diff --git a/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java b/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java index b6ec00c8b8..389643b5e7 100644 --- a/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java +++ b/restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java @@ -10,7 +10,7 @@ package org.opendaylight.restconf.nb.rfc8040.rests.services.impl; import static java.util.Objects.requireNonNull; import static org.opendaylight.restconf.nb.rfc8040.rests.utils.RestconfDataServiceConstant.PostPutQueryParameters.INSERT; import static org.opendaylight.restconf.nb.rfc8040.rests.utils.RestconfDataServiceConstant.PostPutQueryParameters.POINT; -import static org.opendaylight.restconf.nb.rfc8040.rests.utils.RestconfStreamsConstants.CREATE_NOTIFICATION_STREAM; +import static org.opendaylight.restconf.nb.rfc8040.rests.utils.RestconfStreamsConstants.NOTIFICATION_STREAM; import static org.opendaylight.restconf.nb.rfc8040.rests.utils.RestconfStreamsConstants.STREAM_ACCESS_PATH_PART; import static org.opendaylight.restconf.nb.rfc8040.rests.utils.RestconfStreamsConstants.STREAM_LOCATION_PATH_PART; import static org.opendaylight.restconf.nb.rfc8040.rests.utils.RestconfStreamsConstants.STREAM_PATH; @@ -143,7 +143,7 @@ public class RestconfDataServiceImpl implements RestconfDataService { && identifier.contains(STREAM_LOCATION_PATH_PART)) { final String value = (String) node.getValue(); final String streamName = value.substring( - value.indexOf(CREATE_NOTIFICATION_STREAM + RestconfConstants.SLASH)); + value.indexOf(NOTIFICATION_STREAM + RestconfConstants.SLASH)); this.delegRestconfSubscrService.subscribeToStream(streamName, uriInfo); } if (node == null) {