Use callbacks while parsing to NormalizedNodes.
[controller.git] / opendaylight / netconf / mdsal-netconf-connector / src / test / resources / messages / mapping / editConfigs / editConfig_merge_multiple_operations_3_leaf_operations.xml
diff --git a/opendaylight/netconf/mdsal-netconf-connector/src/test/resources/messages/mapping/editConfigs/editConfig_merge_multiple_operations_3_leaf_operations.xml b/opendaylight/netconf/mdsal-netconf-connector/src/test/resources/messages/mapping/editConfigs/editConfig_merge_multiple_operations_3_leaf_operations.xml
new file mode 100644 (file)
index 0000000..6d07436
--- /dev/null
@@ -0,0 +1,52 @@
+<!--
+  ~ Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
+  ~
+  ~ This program and the accompanying materials are made available under the
+  ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
+  ~ and is available at http://www.eclipse.org/legal/epl-v10.html
+  -->
+
+<rpc message-id="a" a="64" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+    <edit-config>
+        <target>
+            <candidate/>
+        </target>
+        <test-option>
+            set
+        </test-option>
+        <default-operation>merge</default-operation>
+        <config>
+            <mapping-nodes xmlns="urn:opendaylight:mdsal:mapping:test">
+                <mapping-node>
+                    <id>node1-merge</id>
+                    <content xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="delete">overwritten old content node1</content>
+                </mapping-node>
+                <mapping-node>
+                    <id>new-node5</id>
+                    <content xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="replace">new-node5 replaced content</content>
+                </mapping-node>
+                <mapping-node>
+                    <id>new-node6</id>
+                    <content xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="delete">new node6 content</content>
+                </mapping-node>
+                <mapping-node xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="delete">
+                    <id>node2-merge</id>
+                    <content>overwritten old content node2</content>
+                </mapping-node>
+            </mapping-nodes>
+            <top xmlns="urn:opendaylight:mdsal:mapping:test">
+                <users>
+                    <user>
+                        <name>single user</name>
+                        <type>superuser</type>
+                        <full-name>i replaced everything</full-name>
+                        <company-info xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="delete">
+                            <dept>2</dept>
+                            <id>2</id>
+                        </company-info>
+                    </user>
+                </users>
+            </top>
+        </config>
+    </edit-config>
+</rpc>
\ No newline at end of file