jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 1 | module demo1 { |
2 | yang-version 1; | ||||
3 | namespace "namespace1"; | ||||
4 | prefix "demo1"; | ||||
5 | revision "2013-07-15"; | ||||
6 | container device { | ||||
Gaurav Agrawal | 7ff0e25 | 2018-11-15 17:28:38 +0530 | [diff] [blame] | 7 | |
8 | uses start-end-date-time; | ||||
9 | |||||
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 10 | list device { |
11 | key deviceid; | ||||
12 | leaf deviceid { | ||||
13 | type string; | ||||
14 | } | ||||
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 15 | leaf Customs-supervisor { |
janani b | 99fccd7 | 2017-07-13 19:14:44 +0530 | [diff] [blame] | 16 | type empty; |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 17 | description "name of the customs-supervisor."; |
18 | } | ||||
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 19 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 20 | leaf Merchandiser-supervisor { |
21 | type string; | ||||
22 | description "name of merchandiser-supervisor"; | ||||
23 | } | ||||
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 24 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 25 | list Material-supervisor { |
26 | key "name"; | ||||
27 | leaf name { | ||||
28 | type string; | ||||
29 | description "name of logistics-supervisor"; | ||||
Vidyashree Rama | 86e9932 | 2018-07-20 15:20:43 +0530 | [diff] [blame] | 30 | } |
31 | leaf departmentId { | ||||
32 | type string; | ||||
33 | description "name of department"; | ||||
34 | } | ||||
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 35 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 36 | |
Vidyashree Rama | 86e9932 | 2018-07-20 15:20:43 +0530 | [diff] [blame] | 37 | list General-supervisor { |
38 | key "name"; | ||||
39 | leaf name { | ||||
40 | type string; | ||||
41 | } | ||||
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 42 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 43 | |
Vidyashree Rama | 86e9932 | 2018-07-20 15:20:43 +0530 | [diff] [blame] | 44 | list Supervisor { |
45 | key "name"; | ||||
46 | leaf name { | ||||
47 | type string; | ||||
48 | } | ||||
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 49 | } |
Vidyashree Rama | 86e9932 | 2018-07-20 15:20:43 +0530 | [diff] [blame] | 50 | |
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 Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 61 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 62 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 63 | leaf-list Warehouse-supervisor { |
64 | type string; | ||||
65 | description "name of the warehouse-supervisor's"; | ||||
66 | } | ||||
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 67 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 68 | leaf Trading-supervisor { |
69 | type string; | ||||
70 | description "name of the trading-supervisor"; | ||||
71 | } | ||||
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 72 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 73 | 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 Rama | 78c44f1 | 2018-12-19 12:18:16 +0530 | [diff] [blame^] | 82 | container cont8 { |
83 | leaf leaf9 { | ||||
84 | type boolean; | ||||
85 | } | ||||
86 | } | ||||
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 87 | } |
88 | } | ||||
89 | |||||
Gaurav Agrawal | 7ff0e25 | 2018-11-15 17:28:38 +0530 | [diff] [blame] | 90 | 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 Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 108 | list list1 { |
109 | key leaf1; | ||||
110 | leaf leaf1 { | ||||
111 | type string; | ||||
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 112 | } |
113 | } | ||||
114 | } |