b24ac0e1acc7ebade82cef2d3f210d92a3bb4493
[cps.git] / csit / plans / cps / pnfsim / netconf-config / stores.yang
1 module stores {\r
2 \r
3     yang-version 1.1;\r
4 \r
5     namespace "org:onap:ccsdk:sample";\r
6 \r
7     prefix book-store;\r
8 \r
9         import ietf-yang-types { prefix yang; }\r
10         import ietf-inet-types { prefix inet; }\r
11 \r
12     revision "2020-09-15" {\r
13         description\r
14         "Sample Model";\r
15     }\r
16 \r
17     typedef year {\r
18         type uint16 {\r
19             range "1000..9999";\r
20         }\r
21     }\r
22 \r
23     container bookstore {\r
24 \r
25         leaf bookstore-name {\r
26             type string;\r
27         }\r
28 \r
29         list categories {\r
30 \r
31             key "code";\r
32 \r
33             leaf code {\r
34                 type string;\r
35             }\r
36 \r
37             leaf name {\r
38                 type string;\r
39             }\r
40 \r
41             list books {\r
42                 key title;\r
43 \r
44                 leaf title {\r
45                     type string;\r
46                 }\r
47                 leaf lang {\r
48                     type string;\r
49                 }\r
50                 leaf-list authors {\r
51                     type string;\r
52                 }\r
53                 leaf pub_year {\r
54                      type year;\r
55                 }\r
56                 leaf price {\r
57                      type uint64;\r
58                 }\r
59             }\r
60         }\r
61    }\r
62 }\r
63 \r