afa35bdb4966c09db60725decb192d385a7f95e3
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / resources / instanceidentifier / xml / xmlPATCHdataMergeOperationOnContainer.xml
1 <!--
2   ~ Copyright (c) 2016 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 <yang-patch xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-patch">
9     <patch-id>Test merge operation</patch-id>
10     <comment>This is test patch for merge operation on container</comment>
11     <edit>
12         <edit-id>edit1</edit-id>
13         <operation>create</operation>
14         <target>/</target>
15         <value>
16             <patch-cont xmlns="instance:identifier:patch:module">
17                 <my-list1>
18                     <name>my-list1 - A</name>
19                     <my-leaf11>I am leaf11-0</my-leaf11>
20                     <my-leaf12>I am leaf12-1</my-leaf12>
21                 </my-list1>
22                 <my-list1>
23                     <name>my-list1 - B</name>
24                     <my-leaf11>I am leaf11-0</my-leaf11>
25                     <my-leaf12>I am leaf12-1</my-leaf12>
26                 </my-list1>
27             </patch-cont>
28         </value>
29     </edit>
30     <edit>
31         <edit-id>edit2</edit-id>
32         <operation>merge</operation>
33         <target>/</target>
34         <value>
35             <patch-cont xmlns="instance:identifier:patch:module">
36                 <my-list1>
37                     <name>my-list1 - Merged</name>
38                     <my-leaf11>I am leaf11-0</my-leaf11>
39                     <my-leaf12>I am leaf12-1</my-leaf12>
40                 </my-list1>
41             </patch-cont>
42         </value>
43     </edit>
44 </yang-patch>