Added and removed capabilities in capabilities change notification were serialized as QName.toString but should be na Uri
Change-Id: Id9783c060ecf45d3a7f506cf605051c779a6d21a
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
private CompositeNode transformNotification(final NetconfMessage cachedNotification) {
final CompositeNode parsedNotification = messageTransformer.toNotification(cachedNotification);
private CompositeNode transformNotification(final NetconfMessage cachedNotification) {
final CompositeNode parsedNotification = messageTransformer.toNotification(cachedNotification);
- Preconditions.checkNotNull(parsedNotification, "{}: Unable to parse received notification %s", id, cachedNotification);
+ Preconditions.checkNotNull(parsedNotification, "%s: Unable to parse received notification: %s", id, cachedNotification);
return parsedNotification;
}
return parsedNotification;
}
}
synchronized void onRemoteSchemaDown() {
}
synchronized void onRemoteSchemaDown() {
passNotifications = false;
}
passNotifications = false;
}
private static final Function<Module, Uri> MODULE_TO_URI = new Function<Module, Uri>() {
@Override
public Uri apply(final Module input) {
private static final Function<Module, Uri> MODULE_TO_URI = new Function<Module, Uri>() {
@Override
public Uri apply(final Module input) {
- final QName qName = QName.cachedReference(QName.create(input.getQNameModule(), input.getName()));
- return new Uri(qName.toString());
+ return new Uri(new NetconfOperationServiceFactoryImpl.YangStoreCapability(input, input.getSource()).getCapabilityUri());