summaryrefslogtreecommitdiffstats
path: root/netconf/restconf/restconf-nb-bierman02/src/test/resources/instanceidentifier/json/jsonPATCHMergeOperationOnList.json
blob: 3b809e0061b38e9e60a6cda1c601ebffac592951 (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
{
  "ietf-yang-patch:yang-patch" : {
    "patch-id" : "Test merge operation",
    "comment" : "This is test patch for merge operation on list",
    "edit" : [
      {
        "edit-id": "edit1",
        "operation": "replace",
        "target": "/instance-identifier-patch-module:my-list2[instance-identifier-patch-module:name='my-leaf20']",
        "value": {
          "my-list2": {
            "name": "my-leaf20",
            "my-leaf21": "I am leaf21-0",
            "my-leaf22": "I am leaf22-0"
          }
        }
      },
      {
        "edit-id": "edit2",
        "operation": "merge",
        "target": "/instance-identifier-patch-module:my-list2[instance-identifier-patch-module:name='my-leaf21']",
        "value": {
          "my-list2": {
            "name": "my-leaf21",
            "my-leaf21": "I am leaf21-1",
            "my-leaf22": "I am leaf22-1"
          }
        }
      }
    ]
  }
}