Bug 6681: Fix md-sal netconf edit-config behavior 67/45967/5
authorAndrej Mak <andrej.mak@pantheon.tech>
Wed, 21 Sep 2016 10:11:00 +0000 (12:11 +0200)
committerAndrej Mak <andrej.mak@pantheon.tech>
Mon, 26 Sep 2016 06:52:05 +0000 (06:52 +0000)
commit7db06d4c39c1697bae50ed162aa0db60e07ca9a3
treee8c6bc26ea2372f6245d3485301463e9f44504ca
parent59cd30c3f18efba10138f1395a98ca50dbc47db3
Bug 6681: Fix md-sal netconf edit-config behavior

Check for existence of mixin map node. If it doesn't exist,
create it. Only then write map entry.

Before this patch if user tried to create map entry,
but parent mixin map node didn't exist, edit config failed.

Change-Id: I4004a66100eb4e0d0918005c54b06fdebc8ea6dd
Signed-off-by: Andrej Mak <andrej.mak@pantheon.tech>
netconf/mdsal-netconf-connector/src/main/java/org/opendaylight/netconf/mdsal/connector/ops/EditConfig.java
netconf/mdsal-netconf-connector/src/test/java/org/opendaylight/netconf/mdsal/connector/ops/NetconfMDSalMappingTest.java
netconf/mdsal-netconf-connector/src/test/resources/messages/mapping/editConfigs/edit-config-merge-map-entry.xml [new file with mode: 0644]
netconf/mdsal-netconf-connector/src/test/resources/messages/mapping/editConfigs/edit-config-replace-map-entry.xml [new file with mode: 0644]
netconf/mdsal-netconf-connector/src/test/resources/messages/mapping/get-config-map-entry.xml [new file with mode: 0644]