Skip to content

Commit 85ba37e

Browse files
romanmichalvasko
authored andcommitted
ln2 netconf server UPDATE rename typedef
1 parent 8735036 commit 85ba37e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/[email protected]

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,13 +244,13 @@ module libnetconf2-netconf-server {
244244

245245
// Typedefs
246246

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

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

@@ -419,15 +419,15 @@ module libnetconf2-netconf-server {
419419
key "anchor period";
420420

421421
leaf anchor {
422-
type certificate-expiration-time;
422+
type time-period;
423423

424424
description
425425
"The time anchor for the notification. The anchor is the time
426426
before the certificate expiration when a notification will be sent.
427427
It is essentially the lower bound of the given interval.";
428428
}
429429
leaf period {
430-
type certificate-expiration-time;
430+
type time-period;
431431

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

0 commit comments

Comments
 (0)