CPS-615 - CSIT for model sync & passthrough
[cps.git] / csit / plans / cps / pnfsim / netconf-config / stores.yang
diff --git a/csit/plans/cps/pnfsim/netconf-config/stores.yang b/csit/plans/cps/pnfsim/netconf-config/stores.yang
new file mode 100644 (file)
index 0000000..b24ac0e
--- /dev/null
@@ -0,0 +1,63 @@
+module stores {\r
+\r
+    yang-version 1.1;\r
+\r
+    namespace "org:onap:ccsdk:sample";\r
+\r
+    prefix book-store;\r
+\r
+       import ietf-yang-types { prefix yang; }\r
+       import ietf-inet-types { prefix inet; }\r
+\r
+    revision "2020-09-15" {\r
+        description\r
+        "Sample Model";\r
+    }\r
+\r
+    typedef year {\r
+        type uint16 {\r
+            range "1000..9999";\r
+        }\r
+    }\r
+\r
+    container bookstore {\r
+\r
+        leaf bookstore-name {\r
+            type string;\r
+        }\r
+\r
+        list categories {\r
+\r
+            key "code";\r
+\r
+            leaf code {\r
+                type string;\r
+            }\r
+\r
+            leaf name {\r
+                type string;\r
+            }\r
+\r
+            list books {\r
+                key title;\r
+\r
+                leaf title {\r
+                    type string;\r
+                }\r
+                leaf lang {\r
+                    type string;\r
+                }\r
+                leaf-list authors {\r
+                    type string;\r
+                }\r
+                leaf pub_year {\r
+                     type year;\r
+                }\r
+                leaf price {\r
+                     type uint64;\r
+                }\r
+            }\r
+        }\r
+   }\r
+}\r
+\r