summaryrefslogtreecommitdiffstats
path: root/netconf/restconf/restconf-nb-bierman02/src/test/resources/instanceidentifier/json/jsonPATCHMergeOperationOnContainer.json
blob: 14839201c7627b08d9e405f3ec7fb16e8de19a5e (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
{
  "ietf-yang-patch:yang-patch" : {
    "patch-id" : "Test merge operation",
    "comment" : "This is test patch for merge operation on container",
    "edit" : [
      {
        "edit-id": "edit1",
        "operation": "create",
        "target": "/",
        "value": {
          "patch-cont": {
            "my-list1": [
              {
                "name": "my-list1 - A",
                "my-leaf11": "I am leaf11-0",
                "my-leaf12": "I am leaf12-1"
              },
              {
                "name": "my-list1 - B",
                "my-leaf11": "I am leaf11-0",
                "my-leaf12": "I am leaf12-1"
              }
            ]
          }
        }
      },
      {
        "edit-id": "edit2",
        "operation": "merge",
        "target": "/",
        "value": {
          "patch-cont": {
            "my-list1": {
              "name": "my-list1 - Merged",
              "my-leaf11": "I am leaf11-0",
              "my-leaf12": "I am leaf12-1"
            }
          }
        }
      }
    ]
  }
}