Do not use null input for discard-changes 25/103725/2
authorSangwook Ha <sangwook.ha@verizon.com>
Wed, 21 Dec 2022 18:27:10 +0000 (10:27 -0800)
committerRobert Varga <nite@hq.sk>
Sat, 31 Dec 2022 14:56:08 +0000 (14:56 +0000)
commitf3cd4750c64f9002940b3bf20ea6be47a14344c3
treef21cd9175ef7a63a236c0aef27207d83aeac2634
parentaed9e381ab81ccf59d7d2d43ca879842d8240bfe
Do not use null input for discard-changes

There is already a NormalizedNode defined in NetconfMessageTransformUtil
for the content of the 'discard-changes' RPC.

Use the static variable instead of 'null'. This would make message
transformation more robust and fix an error caused by an augmentation
to the RPC input while generating NetconfMessage.

JIRA: NETCONF-934
Change-Id: I38777313d74e92bd955248ceea78e765729d9259
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/util/NetconfBaseOps.java
netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDataTreeServiceImplTest.java
netconf/sal-netconf-connector/src/test/java/org/opendaylight/netconf/sal/connect/netconf/sal/tx/NetconfDeviceWriteOnlyTxTest.java