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