summaryrefslogtreecommitdiffstats
path: root/netconf/restconf/restconf-nb-bierman02/src/test/resources/instanceidentifier/json/jsonPATCHdataCreateAndDelete.json
blob: 44550381341f39a747657a0833f5944a37f9eff1 (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
{
  "ietf-yang-patch:yang-patch" : {
    "patch-id" : "test-patch",
    "comment" : "this is test patch",
    "edit" : [
      {
        "edit-id": "edit1",
        "value": {
          "my-list2": [
            {
              "name": "my-leaf20",
              "my-leaf21": "I am leaf20"
            },
            {
              "name": "my-leaf21",
              "my-leaf21": "I am leaf21-1",
              "my-leaf22": "I am leaf21-2"
            }
          ]
        },
        "target": "/instance-identifier-patch-module:my-list2[instance-identifier-patch-module:name='my-leaf20']",
        "operation": "create"
      },
      {
        "edit-id": "edit2",
        "operation": "delete",
        "target": "/instance-identifier-patch-module:my-list2[instance-identifier-patch-module:name='my-leaf20']"
      }
    ]
  }
}