Shankara-Huawei | d5823ab | 2016-11-22 10:14:52 +0530 | [diff] [blame] | 1 | module ych-purchasingsupervisor { |
| 2 | |
| 3 | yang-version 1; |
| 4 | |
| 5 | namespace "ych.purchasing-supervisor"; |
| 6 | |
| 7 | prefix "purchasing"; |
| 8 | |
| 9 | organization "ON-LAB"; |
| 10 | |
| 11 | description "This module defines for purchasing-supervisor."; |
| 12 | |
| 13 | revision "2016-05-24" { |
| 14 | description "Initial revision."; |
| 15 | } |
| 16 | |
| 17 | container ych-purchasing-supervisor { |
| 18 | leaf ych-purchasing-specialist { |
| 19 | type string; |
| 20 | description "name of the purchasing-specialist person"; |
| 21 | } |
| 22 | |
| 23 | leaf ych-purchasing-support { |
| 24 | type string; |
| 25 | description "name of the support person"; |
| 26 | } |
Sean Condon | fe6ceba | 2017-02-26 16:40:03 +0000 | [diff] [blame] | 27 | |
| 28 | leaf ych-purchasing-options { |
| 29 | type bits { |
| 30 | bit "option0"; |
| 31 | bit "option1"; |
| 32 | bit "option2"; |
| 33 | bit "option3"; |
| 34 | } |
| 35 | description |
| 36 | "A bit mask that may have 0, 1, many or all options present"; |
| 37 | } |
| 38 | |
| 39 | container ych-is-manager { |
| 40 | presence "If node is present denotes that supervisor is a manager"; |
| 41 | } |
Shankara-Huawei | d5823ab | 2016-11-22 10:14:52 +0530 | [diff] [blame] | 42 | } |
| 43 | } |