BUG-3604 Ignore empty edits in netconf connector 59/22159/2
authorMaros Marsalek <mmarsale@cisco.com>
Tue, 9 Jun 2015 08:15:35 +0000 (10:15 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 9 Jun 2015 17:47:24 +0000 (17:47 +0000)
commite931d7f83a470f9c5af6a0b69bc45382720e2ed7
tree565d13c964866239f3819e45201fe8aceacc43eb
parentbc9579fb5cbb7db3b5ce071a9ce4a858c819caf7
BUG-3604 Ignore empty edits in netconf connector

Ignore merge/put operation with data that result in an empty edit-config rpc.
Some netconf devices ignore it, but some dont and return errors.

This kind of merge is triggered e.g. by Restconf when trying to ensure parent
structure for top level list.

Change-Id: I8351be304f4e55e000eb7fe0da262549ec377459
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
opendaylight/md-sal/sal-netconf-connector/src/main/java/org/opendaylight/controller/sal/connect/netconf/sal/tx/AbstractWriteTx.java
opendaylight/md-sal/sal-netconf-connector/src/test/java/org/opendaylight/controller/sal/connect/netconf/sal/tx/NetconfDeviceWriteOnlyTxTest.java