* Date-and-time type now properly uses ISO 8601 UTC timezone designators.
* Renamed yang file `ietf-netconf-notification@2008-07-01.yang` to `clixon-rfc5277`. * Cligen uses posix regex while yang uses XSD. It differs in some aspects. A translator function has been added for `\d` -> `[0-9]` translation, there may be more. * [ietf-netconf-notification@2008-07-01.yang validation problem #62](https://github.com/clicon/clixon/issues/62)
This commit is contained in:
parent
207858e20d
commit
f48c8f45c6
16 changed files with 105 additions and 63 deletions
|
|
@ -48,7 +48,7 @@ YANGSPECS += ietf-inet-types@2013-07-15.yang
|
|||
YANGSPECS += ietf-yang-types@2013-07-15.yang
|
||||
YANGSPECS += ietf-restconf@2017-01-26.yang
|
||||
YANGSPECS += ietf-restconf-monitoring@2017-01-26.yang
|
||||
YANGSPECS += ietf-netconf-notification@2008-07-01.yang
|
||||
YANGSPECS += clixon-rfc5277@2008-07-01.yang
|
||||
YANGSPECS += ietf-yang-library@2016-06-21.yang
|
||||
|
||||
APPNAME = clixon # subdir ehere these files are installed
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
module ietf-netconf-notification {
|
||||
module clixon-rfc5277 {
|
||||
/* namespace "urn:ietf:params:xml:ns:netconf:notification:1.0";*/
|
||||
namespace "urn:ietf:params:xml:ns:netmod:notification";
|
||||
prefix "rcmon";
|
||||
prefix "ncevent";
|
||||
|
||||
import ietf-yang-types { prefix yang; }
|
||||
import ietf-inet-types { prefix inet; }
|
||||
|
|
@ -10,7 +10,8 @@ module ietf-netconf-notification {
|
|||
"IETF NETCONF (Network Configuration) Working Group";
|
||||
|
||||
description
|
||||
"Note this is a translation from RFC 5277 schema in section 4 to Yang.
|
||||
"Note this is a translation from RFC 5277 schema in section 4 to Yang
|
||||
made by Olof Hagsand manually for the Clixon project.
|
||||
RFC 5277 is Copyright (C) The IETF Trust (2008).";
|
||||
|
||||
revision 2008-07-01 {
|
||||
|
|
@ -120,14 +121,14 @@ module ietf-netconf-notification {
|
|||
for more information on filters";
|
||||
}
|
||||
leaf startTime {
|
||||
type date-and-time;
|
||||
type yang:date-and-time;
|
||||
description "used to trigger the replay feature
|
||||
and indicate that the replay should start at the time
|
||||
specified. If <startTime> is not present, this is not a replay
|
||||
subscription.";
|
||||
}
|
||||
leaf stopTime {
|
||||
type date-and-time;
|
||||
type yang:date-and-time;
|
||||
description "used with the optional
|
||||
replay feature to indicate the newest notifications of
|
||||
interest. If <stopTime> is not present, the notifications will
|
||||
Loading…
Add table
Add a link
Reference in a new issue