demx8as6 | 9872fa0 | 2018-07-06 10:27:37 +0200 | [diff] [blame] | 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; } |
| 7 | import notifications { prefix ncEvent; } |
| 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 | } |
| 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 | } |