Migrate getResult()/getErrors() callers
[netconf.git] / netconf / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / impl / actors / NetconfNodeActor.java
index 0fd70e5fdabe205802c297326e519b056f4d2ec8..b0599cc97e3436c79d0876041deea489dc70bb18 100644 (file)
@@ -68,6 +68,7 @@ import org.opendaylight.netconf.topology.singleton.messages.transactions.NewRead
 import org.opendaylight.netconf.topology.singleton.messages.transactions.NewWriteTransactionRequest;
 import org.opendaylight.yangtools.yang.common.QName;
 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
+import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode;
 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
 import org.opendaylight.yangtools.yang.model.api.stmt.SchemaNodeIdentifier.Absolute;
 import org.opendaylight.yangtools.yang.model.repo.api.EffectiveModelContextFactory;
@@ -240,7 +241,7 @@ public class NetconfNodeActor extends AbstractUntypedActor {
                 deviceRpc);
 
         final ListenableFuture<? extends DOMRpcResult> rpcResult = deviceRpc.invokeRpc(qname,
-                normalizedNodeMessage != null ? normalizedNodeMessage.getNode() : null);
+                normalizedNodeMessage != null ? (ContainerNode) normalizedNodeMessage.getNode() : null);
 
         Futures.addCallback(rpcResult, new FutureCallback<DOMRpcResult>() {
             @Override
@@ -252,11 +253,10 @@ public class NetconfNodeActor extends AbstractUntypedActor {
                     return;
                 }
                 NormalizedNodeMessage nodeMessageReply = null;
-                if (domRpcResult.getResult() != null) {
-                    nodeMessageReply = new NormalizedNodeMessage(YangInstanceIdentifier.empty(),
-                            domRpcResult.getResult());
+                if (domRpcResult.value() != null) {
+                    nodeMessageReply = new NormalizedNodeMessage(YangInstanceIdentifier.empty(), domRpcResult.value());
                 }
-                recipient.tell(new InvokeRpcMessageReply(nodeMessageReply, domRpcResult.getErrors()), getSelf());
+                recipient.tell(new InvokeRpcMessageReply(nodeMessageReply, domRpcResult.errors()), getSelf());
             }
 
             @Override