Skip to content

Commit

Permalink
Merge pull request #14 from QiufangMa/main
Browse files Browse the repository at this point in the history
add explanation about validity and max-allowed-end parameters
  • Loading branch information
QiufangMa authored Apr 26, 2024
2 parents 277a75d + 38136b0 commit c8112d9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
7 changes: 5 additions & 2 deletions draft-ietf-netmod-schedule-yang.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,17 @@ Also, this document uses the YANG terminology defined in {{Section 3 of !RFC7950
time zone reference of the date and time values with local time format.

The "validity" parameter specifies the date and time after which a schedule
will be considered as invalid.
will be considered as invalid. It determines the latest time that a schedule
can be executed by a system and takes precedence over similar attributes
that are provided at the schedule instance itself.

The "max/min-allowed-start" parameters specify the maximum/minimum scheduled
start date and time, a requested schedule will be rejected if the first
occurrence of the schedule is later/earlier than the configured values.

The "max-allowed-end" parameter specifies the maximum allowed end time of
the last occurrence.
the last occurrence. A requested schedule will be rejected if the end time
of last occurrence is later than the configured "max-allowed-end" value.

The "discard-action" parameter specifies the action if a requested schedule
is considered inactive or out-of-date.
Expand Down
14 changes: 7 additions & 7 deletions yang/ietf-schedule.yang
Original file line number Diff line number Diff line change
Expand Up @@ -273,27 +273,27 @@ module ietf-schedule {
type yang:date-and-time;
description
"Specifies the maximum scheduled start date and time, a
requested schedule instance whose first occurence after
requested schedule instance whose first occurrence after
this value cannot be accepted by the entity. Specifically,
a requested schedule will be rejected if the first
occurence of that new schedule exceeds
occurrence of that new schedule exceeds
'max-allowed-start'.";
}
leaf min-allowed-start {
type yang:date-and-time;
description
"Specifies the minimum scheduled start date and time, a
requested schedule instance whose first occurence before
requested schedule instance whose first occurrence before
this value cannot be accepted by the entity. Specifically,
a requested schedule will be rejected if the first
occurence of that new schedule is scheduled before
occurrence of that new schedule is scheduled before
'min-allowed-start'.";
}
leaf max-allowed-end {
type yang:date-and-time;
description
"A requested schedule will be rejected if the end time of
the last occurence exceed 'max-allowed-end'.";
the last occurrence exceeds 'max-allowed-end'.";
}
leaf discard-action {
type identityref {
Expand Down Expand Up @@ -448,7 +448,7 @@ module ietf-schedule {
}
augment "recurrence-first" {
description
"Add a parameter indicating how long the occurence
"Adds a parameter indicating how long the occurrence
lasts.";
leaf duration {
type int32;
Expand All @@ -471,7 +471,7 @@ module ietf-schedule {
uses recurrence {
augment "recurrence-first" {
description
"Add parameters indicating how long the occurrence
"Adds parameters indicating how long the occurrence
lasts and time zone identifier of the occurrence.";
leaf duration {
type duration;
Expand Down

0 comments on commit c8112d9

Please sign in to comment.