From 9e97714dcc5056e2fcc6660a80e8850875698499 Mon Sep 17 00:00:00 2001 From: Iaroslav Date: Mon, 22 Feb 2021 18:33:17 +0200 Subject: [PATCH] Missing notification model. In case server provides schema it should check if notifications supported by the remote session. According to this it should provide schema with notifications or without. JIRA: NETCONF-754 Change-Id: Ifc37ebded7051aabf9150f9f49ecadaf81746261 Signed-off-by: Iaroslav --- .../netconf/sal/connect/netconf/NetconfDevice.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/NetconfDevice.java b/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/NetconfDevice.java index 42ce7987f2..f48d57812f 100644 --- a/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/NetconfDevice.java +++ b/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/NetconfDevice.java @@ -182,7 +182,7 @@ public class NetconfDevice @Override public void onSuccess(final MountPointContext result) { handleSalInitializationSuccess(result, remoteSessionCapabilities, - getDeviceSpecificRpc(result, listener), listener); + getDeviceSpecificRpc(result, listener, baseSchema), listener); } @Override @@ -373,9 +373,9 @@ public class NetconfDevice } protected NetconfDeviceRpc getDeviceSpecificRpc(final MountPointContext result, - final RemoteDeviceCommunicator listener) { + final RemoteDeviceCommunicator listener, final BaseSchema schema) { return new NetconfDeviceRpc(result.getEffectiveModelContext(), listener, - new NetconfMessageTransformer(result, true, baseSchemas.getBaseSchema())); + new NetconfMessageTransformer(result, true, schema)); } /** -- 2.36.6