Missing notification model.
[netconf.git] / netconf / sal-netconf-connector / src / main / java / org / opendaylight / netconf / sal / connect / netconf / NetconfDevice.java
index 53169d03ede770c0457a7d0db1b3c4f30f608d42..f48d57812fc2cf40e47ba9d63aadcc8a8acb4a89 100644 (file)
@@ -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
@@ -191,7 +191,7 @@ public class NetconfDevice
 
                 // No more sources, fail or try to reconnect
                 if (cause instanceof EmptySchemaContextException) {
-                    if (nodeOptional != null && nodeOptional.getIgnoreMissingSchemaSources().isAllowed()) {
+                    if (nodeOptional != null && nodeOptional.getIgnoreMissingSchemaSources().getAllowed()) {
                         eventExecutor.schedule(() -> {
                             LOG.warn("Reconnection is allowed! This can lead to unexpected errors at runtime.");
                             LOG.warn("{} : No more sources for schema context.", id);
@@ -373,9 +373,9 @@ public class NetconfDevice
     }
 
     protected NetconfDeviceRpc getDeviceSpecificRpc(final MountPointContext result,
-            final RemoteDeviceCommunicator<NetconfMessage> listener) {
+            final RemoteDeviceCommunicator<NetconfMessage> listener, final BaseSchema schema) {
         return new NetconfDeviceRpc(result.getEffectiveModelContext(), listener,
-            new NetconfMessageTransformer(result, true, baseSchemas.getBaseSchema()));
+            new NetconfMessageTransformer(result, true, schema));
     }
 
     /**