From: Iaroslav Date: Mon, 22 Feb 2021 16:33:17 +0000 (+0200) Subject: Missing notification model. X-Git-Tag: v1.13.2~25 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=9e97714dcc5056e2fcc6660a80e8850875698499;p=netconf.git 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 --- 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)); } /**