blob: b9f729736f42312e9e6489134bd5e74bff4a4071 [file] [log] [blame]
VinodKumarS-Huawei2ee9e7e2016-06-01 14:30:22 +05301 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 "2016-03-01" {
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 description
32 "Container of a schedule list defining when a particular
33 configuration takes effect.";
34 list schedule {
35 key "schedule-id";
36 description "A list of schedule elements.";
37
38 leaf schedule-id {
39 type uint32;
40 description "Identifies the schedule element.";
41 }
42 leaf start {
43 type yang:date-and-time;
44 description "Start time.";
45 }
46 leaf schedule-duration {
47 type string {
48 pattern
49 'P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?T(\d+H)?(\d+M)?(\d+S)?';
50 }
51 description "Schedule duration in ISO 8601 format.";
52 }
53 leaf repeat-interval {
54 type string {
55 pattern
56 'R\d*/P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?T(\d+H)?(\d+M)?'
57 + '(\d+S)?';
58 }
59 description "Repeat interval in ISO 8601 format.";
60 }
61 }
62 }
63 } // schedules
64 }