BUG-3604 Ignore empty edits in netconf connector 23/22223/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 18:29:16 +0000 (18:29 +0000)
commit373836d91e59e4d5cd783a9597deb6457f8f807e
tree84516297a4715a7f1eeb3cfaccae65e7bc33e23a
parent5b3c73132a0745f93be4d2f798a2802e62f7bd52
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>
(cherry picked from commit e931d7f83a470f9c5af6a0b69bc45382720e2ed7)
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

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.