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