Fix output's NodeIdentifier 05/106705/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 26 Jun 2023 18:36:32 +0000 (20:36 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 26 Jun 2023 18:47:50 +0000 (20:47 +0200)
We are mis-representing the output as input, fix that.

Change-Id: Ic5eee44575e42b30ad60d75c3dd3256426ca9137
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec-api/src/main/java/org/opendaylight/mdsal/binding/dom/codec/api/BindingNormalizedNodeSerializer.java

index f74129c8d46ca7eef88229096c0fb9febff1661b..46663d22c99b76798d3a8fea2086b7cb286c0b32 100644 (file)
@@ -283,7 +283,7 @@ public interface BindingNormalizedNodeSerializer {
     @Beta default @NonNull BindingLazyContainerNode<RpcOutput> toLazyNormalizedNodeActionOutput(
             @NonNull final Class<? extends Action<?, ?, ?>> action, @NonNull final RpcOutput output) {
         return toLazyNormalizedNodeActionOutput(action,
-            new NodeIdentifier(YangConstants.operationInputQName(BindingReflections.getQNameModule(action))), output);
+            new NodeIdentifier(YangConstants.operationOutputQName(BindingReflections.getQNameModule(action))), output);
     }
 
     /**
@@ -295,7 +295,7 @@ public interface BindingNormalizedNodeSerializer {
     @Beta default @NonNull ContainerNode toNormalizedNodeActionOutput(
             @NonNull final Class<? extends Action<?, ?, ?>> action, @NonNull final RpcOutput output) {
         return toLazyNormalizedNodeActionOutput(action,
-            new NodeIdentifier(YangConstants.operationInputQName(BindingReflections.getQNameModule(action))), output)
+            new NodeIdentifier(YangConstants.operationOutputQName(BindingReflections.getQNameModule(action))), output)
                 .getDelegate();
     }
 }