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
1 <!--
2   ~ Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
3   ~
4   ~ This program and the accompanying materials are made available under the
5   ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
6   ~ and is available at http://www.eclipse.org/legal/epl-v10.html
7   -->
8
9 <rpc message-id="a" a="64" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
10     <edit-config>
11         <target>
12             <candidate/>
13         </target>
14         <test-option>
15             set
16         </test-option>
17         <default-operation>merge</default-operation>
18         <config>
19             <mapping-nodes xmlns="urn:opendaylight:mdsal:mapping:test">
20                 <mapping-node>
21                     <id>node1-merge</id>
22                     <content xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="delete">overwritten old content node1</content>
23                 </mapping-node>
24                 <mapping-node>
25                     <id>new-node5</id>
26                     <content xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="replace">new-node5 replaced content</content>
27                 </mapping-node>
28                 <mapping-node>
29                     <id>new-node6</id>
30                     <content xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="delete">new node6 content</content>
31                 </mapping-node>
32                 <mapping-node xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="delete">
33                     <id>node2-merge</id>
34                     <content>overwritten old content node2</content>
35                 </mapping-node>
36             </mapping-nodes>
37             <top xmlns="urn:opendaylight:mdsal:mapping:test">
38                 <users>
39                     <user>
40                         <name>single user</name>
41                         <type>superuser</type>
42                         <full-name>i replaced everything</full-name>
43                         <company-info xmlns:a="urn:ietf:params:xml:ns:netconf:base:1.0" a:operation="delete">
44                             <dept>2</dept>
45                             <id>2</id>
46                         </company-info>
47                     </user>
48                 </users>
49             </top>
50         </config>
51     </edit-config>
52 </rpc>