blob: 48cad6f93d22498d70f26ff20b979d9a5ca9ae6c [file] [log] [blame]
jingan8396f222017-03-20 23:00:25 -07001module demo1 {
2 yang-version 1;
3 namespace "namespace1";
4 prefix "demo1";
5 revision "2013-07-15";
6 container device {
Gaurav Agrawal7ff0e252018-11-15 17:28:38 +05307
8 uses start-end-date-time;
9
jingan8396f222017-03-20 23:00:25 -070010 list device {
11 key deviceid;
12 leaf deviceid {
13 type string;
14 }
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053015 leaf Customs-supervisor {
janani b99fccd72017-07-13 19:14:44 +053016 type empty;
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053017 description "name of the customs-supervisor.";
18 }
jingan8396f222017-03-20 23:00:25 -070019
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053020 leaf Merchandiser-supervisor {
21 type string;
22 description "name of merchandiser-supervisor";
23 }
jingan8396f222017-03-20 23:00:25 -070024
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053025 list Material-supervisor {
26 key "name";
27 leaf name {
28 type string;
29 description "name of logistics-supervisor";
Vidyashree Rama86e99322018-07-20 15:20:43 +053030 }
31 leaf departmentId {
32 type string;
33 description "name of department";
34 }
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053035 }
jingan8396f222017-03-20 23:00:25 -070036
Vidyashree Rama86e99322018-07-20 15:20:43 +053037 list General-supervisor {
38 key "name";
39 leaf name {
40 type string;
41 }
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053042 }
jingan8396f222017-03-20 23:00:25 -070043
Vidyashree Rama86e99322018-07-20 15:20:43 +053044 list Supervisor {
45 key "name";
46 leaf name {
47 type string;
48 }
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053049 }
Vidyashree Rama86e99322018-07-20 15:20:43 +053050
51 container Purchasing-supervisor {
52 leaf purchasing-specialist {
53 type string;
54 description "name of the purchasing-specialist person";
55 }
56
57 leaf-list support {
58 type string;
59 description "name of the support person";
60 }
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053061 }
jingan8396f222017-03-20 23:00:25 -070062
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053063 leaf-list Warehouse-supervisor {
64 type string;
65 description "name of the warehouse-supervisor's";
66 }
jingan8396f222017-03-20 23:00:25 -070067
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053068 leaf Trading-supervisor {
69 type string;
70 description "name of the trading-supervisor";
71 }
jingan8396f222017-03-20 23:00:25 -070072
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053073 leaf-list Employee-id {
74 type string;
75 description "list of the employee id";
76 }
77 container cont7 {
78 leaf leaf8 {
79 type string;
80 }
81 }
Vidyashree Rama78c44f12018-12-19 12:18:16 +053082 container cont8 {
83 leaf leaf9 {
84 type boolean;
85 }
86 }
Vidyashree Rama68dcfa52017-06-09 13:30:46 +053087 }
88 }
89
Gaurav Agrawal7ff0e252018-11-15 17:28:38 +053090 grouping start-end-date-time
91 {
92 leaf req-start-date-time
93 {
94 type string {
95 pattern '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2})';
96 }
97 }
98 leaf req-end-date-time
99 {
100 type string {
101 pattern '\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?'
102 + '(Z|[\+\-]\d{2}:\d{2})';
103 }
104 }
105 description "";
106 }
107
Vidyashree Rama68dcfa52017-06-09 13:30:46 +0530108 list list1 {
109 key leaf1;
110 leaf leaf1 {
111 type string;
jingan8396f222017-03-20 23:00:25 -0700112 }
113 }
114}