- Identification of stream should start with "notification-stream"
and not "create-notification-stream".
- Added missing '/' before JSON suffix.
JIRA: NETCONF-623
Change-Id: Ia3b78ba8af1b0f53f60dd88b39dff8b92b881ffd
Signed-off-by: Jaroslav Tóth <jtoth@frinx.io>
notificationDefinitionQName.getModule().getNamespace()));
final StringBuilder streamNameBuilder = new StringBuilder();
- streamNameBuilder.append(RestconfStreamsConstants.CREATE_NOTIFICATION_STREAM)
+ streamNameBuilder.append(RestconfStreamsConstants.NOTIFICATION_STREAM)
.append('/')
.append(module.getName())
.append(':')
.append(notificationDefinitionQName.getLocalName());
if (outputType.equals(NotificationOutputType.JSON.getName())) {
- streamNameBuilder.append(NotificationOutputType.JSON.getName());
+ streamNameBuilder.append('/').append(NotificationOutputType.JSON.getName());
}
return streamNameBuilder.toString();
}