Fix full lists removal for remote devices via Restconf.
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / rests / transactions / MdsalRestconfTransaction.java
index 7d57d36cdf848b27ae1e1c04510b94fd30856fb2..97ae9b3d5956e643500764010a14d3baf2d18e02 100644 (file)
@@ -128,4 +128,9 @@ final class MdsalRestconfTransaction extends RestconfTransaction {
     ListenableFuture<Optional<NormalizedNode>> read(final YangInstanceIdentifier path) {
         return verifyNotNull(rwTx).read(CONFIGURATION, path);
     }
+
+    @Override
+    NormalizedNodeContainer<?> readList(final YangInstanceIdentifier path) {
+        return (NormalizedNodeContainer<?>) TransactionUtil.syncAccess(read(path), path).orElse(null);
+    }
 }