summaryrefslogtreecommitdiffstats
path: root/samples/cps-bookstore.yang
diff options
context:
space:
mode:
Diffstat (limited to 'samples/cps-bookstore.yang')
-rw-r--r--samples/cps-bookstore.yang61
1 files changed, 61 insertions, 0 deletions
diff --git a/samples/cps-bookstore.yang b/samples/cps-bookstore.yang
new file mode 100644
index 0000000..0bfbfb7
--- /dev/null
+++ b/samples/cps-bookstore.yang
@@ -0,0 +1,61 @@
+module stores {
+ yang-version 1.1;
+ namespace "org:onap:ccsdk:sample";
+
+ prefix book-store;
+
+ revision "2020-09-15" {
+ description
+ "Sample Model";
+ }
+ container shops {
+
+ container bookstore {
+
+ leaf bookstore-name {
+ type string;
+ }
+
+ leaf name {
+ type string;
+ }
+
+ list categories {
+
+ key "code";
+
+ leaf code {
+ type uint16;
+ }
+
+ leaf name {
+ type string;
+ }
+
+ leaf numberOfBooks {
+ type uint16;
+ }
+
+ container books {
+
+ list book {
+ key title;
+
+ leaf title {
+ type string;
+ }
+ leaf price {
+ type uint16;
+ }
+ leaf-list label {
+ type string;
+ }
+ leaf-list edition {
+ type string;
+ }
+ }
+ }
+ }
+ }
+ }
+} \ No newline at end of file