Update karaf cache nc-notifications YANG schema
[transportpce.git] / karaf / src / main / assembly / cache / schema / nc-notifications@2008-07-14.yang
1 module nc-notifications {
2
3     namespace "urn:ietf:params:xml:ns:netmod:notification";
4     prefix "manageEvent";
5
6     import ietf-yang-types { prefix yang; revision-date "2013-07-15";}
7     import notifications { prefix ncEvent; revision-date "2008-07-14";}
8
9     organization
10       "IETF NETCONF WG";
11
12     contact
13       "netconf@ietf.org";
14
15     description
16       "Conversion of the 'manageEvent' XSD in the NETCONF
17        Notifications RFC.";
18
19     reference
20       "RFC 5277";
21
22     revision 2008-07-14 {
23       description "RFC 5277 version.";
24     }
25
26     container netconf {
27       description "Top-level element in the notification namespace";
28
29       config false;
30
31       container streams {
32         description
33           "The list of event streams supported by the system. When
34            a query is issued, the returned set of streams is
35            determined based on user privileges.";
36
37         list stream {
38           description
39             "Stream name, description and other information.";
40           key name;
41           min-elements 1;
42
43           leaf name {
44             description
45               "The name of the event stream. If this is the default
46                NETCONF stream, this must have the value 'NETCONF'.";
47             type ncEvent:streamNameType;
48           }
49
50           leaf description {
51             description
52               "A description of the event stream, including such
53                information as the type of events that are sent over
54                this stream.";
55             type string;
56             mandatory true;
57           }
58
59           leaf replaySupport {
60             description
61               "A description of the event stream, including such
62                information as the type of events that are sent over
63                this stream.";
64             type boolean;
65             mandatory true;
66           }
67
68           leaf replayLogCreationTime {
69             description
70               "The timestamp of the creation of the log used to support
71                the replay function on this stream. Note that this might
72                be earlier then the earliest available notification in
73                the log. This object is updated if the log resets for
74                some reason.  This object MUST be present if replay is
75                supported.";
76             type yang:date-and-time;   // xsd:dateTime is wrong!
77           }
78
79           leaf replayLogAgedTime {
80             when "current()/../replaySupport" {
81               description
82                "This object MUST be present if replay is supported
83                and any notifications have been aged out of the log.";
84             }
85             type yang:date-and-time;
86             description
87               "The timestamp of the last notification aged
88               out of the log. This object MUST be present
89               if replay is supported and any notifications
90               have been aged out of the log.";
91           }
92         }
93       }
94     }
95
96     notification replayComplete {
97       description
98         "This notification is sent to signal the end of a replay
99          portion of a subscription.";
100     }
101
102     notification notificationComplete {
103       description
104         "This notification is sent to signal the end of a notification
105          subscription. It is sent in the case that stopTime was
106          specified during the creation of the subscription..";
107     }
108
109 }