From ecd7f5e418c17d8f0f3f12af4fd0a543084e8254 Mon Sep 17 00:00:00 2001 From: tragait Date: Thu, 13 Jan 2022 13:15:14 +0000 Subject: patch operation for ncmp running Signed-off-by: tragait Change-Id: Ib136291963a5d7f115c8637708a1d5a64c62c9f2 Issue-ID: CPS-641 --- csit/data/bookstorePatchExample.json | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 csit/data/bookstorePatchExample.json (limited to 'csit/data/bookstorePatchExample.json') diff --git a/csit/data/bookstorePatchExample.json b/csit/data/bookstorePatchExample.json new file mode 100644 index 000000000..039ea4bcd --- /dev/null +++ b/csit/data/bookstorePatchExample.json @@ -0,0 +1,59 @@ +{ + "ietf-restconf:yang-patch":{ + "patch-id":"patch-1", + "edit":[ + { + "edit-id":"edit1", + "operation":"merge", + "target":"/", + "value":{ + "bookstore": { + "categories": [ + { + "code": "100", + "books": [ + { + "title": "A new book in a new category", + "pub_year": "2019", + "authors": [ + "Rahul" + ], + "lang": "English", + "price": "2011" + } + ], + "name": "Category100" + } + ] + } + } + }, + { + "edit-id":"edit2", + "operation":"merge", + "target":"/", + "value":{ + "bookstore": { + "categories": [ + { + "code": "02", + "name": "Horror", + "books": [ + { + "title": "A New book in existing category", + "lang": "English", + "authors": [ + "Joe & Rahul" + ], + "pub_year": "2003", + "price": "2000" + } + ] + } + ] + } + } + } + ] + } +} \ No newline at end of file -- cgit 1.2.3-korg