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 { |
| 7 | list device { |
| 8 | key deviceid; |
| 9 | leaf deviceid { |
| 10 | type string; |
| 11 | } |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 12 | leaf Customs-supervisor { |
janani b | 99fccd7 | 2017-07-13 19:14:44 +0530 | [diff] [blame] | 13 | type empty; |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 14 | description "name of the customs-supervisor."; |
| 15 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 16 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 17 | leaf Merchandiser-supervisor { |
| 18 | type string; |
| 19 | description "name of merchandiser-supervisor"; |
| 20 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 21 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 22 | list Material-supervisor { |
| 23 | key "name"; |
| 24 | leaf name { |
| 25 | type string; |
| 26 | description "name of logistics-supervisor"; |
| 27 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 28 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 29 | leaf departmentId { |
| 30 | type string; |
| 31 | description "name of department"; |
| 32 | } |
| 33 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 34 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 35 | container Purchasing-supervisor { |
| 36 | leaf purchasing-specialist { |
| 37 | type string; |
| 38 | description "name of the purchasing-specialist person"; |
| 39 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 40 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 41 | leaf-list support { |
| 42 | type string; |
| 43 | description "name of the support person"; |
| 44 | } |
| 45 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 46 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 47 | leaf-list Warehouse-supervisor { |
| 48 | type string; |
| 49 | description "name of the warehouse-supervisor's"; |
| 50 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 51 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 52 | leaf Trading-supervisor { |
| 53 | type string; |
| 54 | description "name of the trading-supervisor"; |
| 55 | } |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 56 | |
Vidyashree Rama | 68dcfa5 | 2017-06-09 13:30:46 +0530 | [diff] [blame] | 57 | leaf-list Employee-id { |
| 58 | type string; |
| 59 | description "list of the employee id"; |
| 60 | } |
| 61 | container cont7 { |
| 62 | leaf leaf8 { |
| 63 | type string; |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | list list1 { |
| 70 | key leaf1; |
| 71 | leaf leaf1 { |
| 72 | type string; |
jingan | 8396f22 | 2017-03-20 23:00:25 -0700 | [diff] [blame] | 73 | } |
| 74 | } |
| 75 | } |