Skip to content

Commit

Permalink
Merge branch 'netmod-wg:main' into patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
QiufangMa authored Apr 26, 2024
2 parents a37c999 + 5a821df commit bf14cac
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 34 deletions.
81 changes: 48 additions & 33 deletions yang/ietf-schedule.yang
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,9 @@ module ietf-schedule {
Author: Daniel King
<mailto:d.king@lancaster.ac.uk>";
description
"This YANG module defines common shedule groupings. It defines
in particuler groupings for Internet Calendaring and Scheduling
Core Object Specification (iCalendar) data types: period of time
and recurrence rule, for representing and exchanging calendaring
and scheduling information. The YANG module complies with
Sections 3.3.9 and 3.3.10 of RFC 5545.
"This YANG module defines a set of common groupings which
are applicable for scheduling purposes such as events,
policy, services, or resources based on date and time.
Copyright (c) 2024 IETF Trust and the persons identified
as authors of the code. All rights reserved.
Expand Down Expand Up @@ -151,43 +148,43 @@ module ietf-schedule {
identity secondly {
base frequency-type;
description
"Identity for a repeating event based on an interval of
"Indicates a repeating rule based on an interval of
a second or more.";
}
identity minutely {
base frequency-type;
description
"Identity for a repeating event based on an interval of
"Indicates a repeating rule based on an interval of
a minute or more.";
}
identity hourly {
base frequency-type;
description
"Identity for a repeating event based on an interval of
"Indicates a repeating rule based on an interval of
an hour or more.";
}
identity daily {
base frequency-type;
description
"Identity for a repeating event based on an interval of
"Indicates a repeating rule based on an interval of
a day or more.";
}
identity weekly {
base frequency-type;
description
"Identity for a repeating event based on an interval of
"Indicates a repeating rule based on an interval of
a week or more.";
}
identity monthly {
base frequency-type;
description
"Identity for a repeating event based on an interval of
"Indicates a repeating rule based on an interval of
a month or more.";
}
identity yearly {
base frequency-type;
description
"Identity for a repeating event based on an interval of
"Indicates a repeating rule based on an interval of
a year or more.";
}
identity schedule-type {
Expand All @@ -197,30 +194,57 @@ module ietf-schedule {
identity period {
base schedule-type;
description
"Identity for a period based schedule.";
"Indicates a period based schedule.";
}

identity recurrence {
base schedule-type;
description
"Identity for a recurrence based schedule.";
"Indicates a recurrence based schedule.";
}
identity schedule-state {
description
"Base identity for schedule state.";
}
identity enabled {
base schedule-state;
description
"Identity for the recurrence with enabled state.";
"Indicates a recurrence with an enabled state.";
}
identity disabled {
base schedule-state;
description
"Identity for the recurrence with disabled state.";
"Indicates a recurrence with a disabled state.";
}
identity out-of-date {
base schedule-state;
description
"Identity for the recurrence with out-of-date state.";
}
"Indicates a recurrence with an out-of-date state.";
}

identity discard-action {
description
"Indicates that schedule will be discarded.";
}

identity warning {
base discard-action;
description
"Indicates that a warning message is generated
when a schedule is discarded.";
}
identity error {
base discard-action;
description
"Indicates that an error message is generated
when a schedule is discarded.";
}
identity silently-discard {
base discard-action;
description
"Indicates that an invalid schedule is silently
discarded.";
}

grouping generic-schedule-params {
description
Expand Down Expand Up @@ -272,22 +296,13 @@ module ietf-schedule {
the last occurence exceed 'max-allowed-end'.";
}
leaf discard-action {
type enumeration {
enum warning {
description
"A warning message is generated when a schedule is
discarded when enforcing the guards in this grouping
or it is received out-of-date.";
}
enum silently-discard {
description
"Discards silently a schedule when it is invalid because
it is not consistent with the guards in this grouping or
it is received out-of-date.";
}
type identityref {
base discard-action;
}
description
"Specifies the behavior when a schedule is discarded.";
"Specifies the behavior when a schedule is discarded when
enforcing the guards in this grouping or it is received
out-of-date.";
}
}

Expand Down
2 changes: 1 addition & 1 deletion yang/tree/sch-generic-params.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module: ietf-schedule
+-- max-allowed-start? yang:date-and-time
+-- min-allowed-start? yang:date-and-time
+-- max-allowed-end? yang:date-and-time
+-- discard-action? enumeration
+-- discard-action? identityref
grouping period-of-time:
...
grouping recurrence:
Expand Down

0 comments on commit bf14cac

Please sign in to comment.