Yixiao Chen | 39828a6 | 2016-09-14 14:37:06 -0400 | [diff] [blame] | 1 | module ietf-schedule { |
| 2 | yang-version 1; |
| 3 | namespace "urn:ietf:params:xml:ns:yang:ietf-schedule"; |
| 4 | // replace with IANA namespace when assigned |
| 5 | |
| 6 | prefix "sch"; |
| 7 | |
| 8 | import ietf-yang-types { |
| 9 | prefix "yang"; |
| 10 | } |
| 11 | |
| 12 | organization "TBD"; |
| 13 | contact "TBD"; |
| 14 | description |
| 15 | "The model allows time scheduling parameters to be specified."; |
| 16 | |
| 17 | revision "2015-10-08" { |
| 18 | description "Initial revision"; |
| 19 | reference "TBD"; |
| 20 | } |
| 21 | |
| 22 | /* |
| 23 | * Groupings |
| 24 | */ |
| 25 | |
| 26 | grouping schedules { |
| 27 | description |
| 28 | "A list of schedules defining when a particular |
| 29 | configuration takes effect."; |
| 30 | container schedules { |
| 31 | list schedule { |
| 32 | key "schedule-id"; |
| 33 | description "A list of schedule elements."; |
| 34 | |
| 35 | leaf schedule-id { |
| 36 | type uint32; |
| 37 | description "Identifies the schedule element."; |
| 38 | } |
| 39 | leaf start { |
| 40 | type yang:date-and-time; |
| 41 | description "Start time."; |
| 42 | } |
| 43 | leaf schedule-duration { |
| 44 | type string { |
| 45 | pattern |
| 46 | 'P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?T(\d+H)?(\d+M)?(\d+S)?'; |
| 47 | } |
| 48 | description "Schedule duration in ISO 8601 format."; |
| 49 | } |
| 50 | leaf repeat-interval { |
| 51 | type string { |
| 52 | pattern |
| 53 | 'R\d*/P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?T(\d+H)?(\d+M)?' |
| 54 | + '(\d+S)?'; |
| 55 | } |
| 56 | description "Repeat interval in ISO 8601 format."; |
| 57 | } |
| 58 | } |
| 59 | } |
| 60 | } // schedules |
| 61 | } |