Skip to content

Commit

Permalink
ln2 netconf server UPDATE rename typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
roman authored and michalvasko committed Aug 14, 2024
1 parent 8735036 commit 85ba37e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/libnetconf2-netconf-server@2024-07-09.yang
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,13 @@ module libnetconf2-netconf-server {

// Typedefs

typedef certificate-expiration-time {
typedef time-period {
type string {
pattern '(1[0-2]|[1-9])m|[1-4]w|[1-7]d|(2[0-4]|1[0-9]|[1-9])h';
}

description
"The certificate-expiration-time type allows to specify time in either months, weeks, days, or hours.
"The time-period type allows to specify time in either months, weeks, days, or hours.
Its purpose is to create time intervals for the certificate expiration notifications.";
}

Expand Down Expand Up @@ -419,15 +419,15 @@ module libnetconf2-netconf-server {
key "anchor period";

leaf anchor {
type certificate-expiration-time;
type time-period;

description
"The time anchor for the notification. The anchor is the time
before the certificate expiration when a notification will be sent.
It is essentially the lower bound of the given interval.";
}
leaf period {
type certificate-expiration-time;
type time-period;

// Require the period to be smaller than the anchor (only units are checked for simplicity)
must "(contains(., 'm') and contains(../anchor, 'm')) or
Expand Down

0 comments on commit 85ba37e

Please sign in to comment.