1b170c772ff6cc8868acd7b30543ab1259341ccc
[netconf.git] / restconf / restconf-nb-bierman02 / src / test / resources / instanceidentifier / json / jsonPATCHdataCompleteTargetInURI.json
1 {
2   "ietf-yang-patch:yang-patch" : {
3
4     "patch-id" : "test-patch",
5     "comment" : "Test to create and replace data in container directly using / sign as a target",
6     "edit" : [
7       {
8         "edit-id": "edit1",
9         "operation": "create",
10         "target": "/",
11         "value": {
12           "patch-cont": {
13             "my-list1": [
14               {
15                 "name": "my-list1 - A",
16                 "my-leaf11": "I am leaf11-0",
17                 "my-leaf12": "I am leaf12-1"
18               },
19               {
20                 "name": "my-list1 - B",
21                 "my-leaf11": "I am leaf11-0",
22                 "my-leaf12": "I am leaf12-1"
23               }
24             ]
25           }
26         }
27       },
28       {
29         "edit-id": "edit2",
30         "operation": "replace",
31         "target": "/",
32         "value": {
33           "patch-cont": {
34             "my-list1": {
35               "name": "my-list1 - Replacing",
36               "my-leaf11": "I am leaf11-0",
37               "my-leaf12": "I am leaf12-1"
38             }
39           }
40         }
41       }
42     ]
43   }
44 }