Adding TestVNF netconf server
[demo.git] / vnfs / TestVNF / netconftemplates / netconftemplates / notifications@2008-07-14.yin
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">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
3 &lt;module name="notifications"
4         xmlns="urn:ietf:params:xml:ns:yang:yin:1"
5         xmlns:ncEvent="urn:ietf:params:xml:ns:netconf:notification:1.0"
6         xmlns:yang="urn:ietf:params:xml:ns:yang:ietf-yang-types"&gt;
7   &lt;namespace uri="urn:ietf:params:xml:ns:netconf:notification:1.0"/&gt;
8   &lt;prefix value="ncEvent"/&gt;
9   &lt;import module="ietf-yang-types"&gt;
10     &lt;prefix value="yang"/&gt;
11   &lt;/import&gt;
12   &lt;organization&gt;
13     &lt;text&gt;IETF NETCONF WG&lt;/text&gt;
14   &lt;/organization&gt;
15   &lt;contact&gt;
16     &lt;text&gt;netconf@ops.ietf.org&lt;/text&gt;
17   &lt;/contact&gt;
18   &lt;description&gt;
19     &lt;text&gt;Conversion of the 'ncEvent' XSD in the
20 NETCONF Notifications RFC.&lt;/text&gt;
21   &lt;/description&gt;
22   &lt;reference&gt;
23     &lt;text&gt;RFC 5277.&lt;/text&gt;
24   &lt;/reference&gt;
25   &lt;revision date="2008-07-14"&gt;
26     &lt;description&gt;
27       &lt;text&gt;RFC 5277 version.&lt;/text&gt;
28     &lt;/description&gt;
29   &lt;/revision&gt;
30   &lt;typedef name="streamNameType"&gt;
31     &lt;type name="string"/&gt;
32     &lt;description&gt;
33       &lt;text&gt;The name of an event stream.&lt;/text&gt;
34     &lt;/description&gt;
35   &lt;/typedef&gt;
36   &lt;container name="notification"&gt;
37     &lt;config value="false"/&gt;
38     &lt;description&gt;
39       &lt;text&gt;internal struct to start a notification&lt;/text&gt;
40     &lt;/description&gt;
41     &lt;leaf name="eventTime"&gt;
42       &lt;type name="yang:date-and-time"/&gt;
43       &lt;mandatory value="true"/&gt;
44     &lt;/leaf&gt;
45   &lt;/container&gt;
46   &lt;rpc name="create-subscription"&gt;
47     &lt;description&gt;
48       &lt;text&gt;The command to create a notification subscription. It
49 takes as argument the name of the notification stream
50 and filter. Both of those options limit the content of
51 the subscription. In addition, there are two time-related
52 parameters, startTime and stopTime, which can be used to
53 select the time interval of interest to the notification
54 replay feature.&lt;/text&gt;
55     &lt;/description&gt;
56     &lt;input&gt;
57       &lt;leaf name="stream"&gt;
58         &lt;type name="streamNameType"/&gt;
59         &lt;default value="NETCONF"/&gt;
60         &lt;description&gt;
61           &lt;text&gt;An optional parameter that indicates which stream of events
62 is of interest. If not present, then events in the default
63 NETCONF stream will be sent.&lt;/text&gt;
64         &lt;/description&gt;
65       &lt;/leaf&gt;
66       &lt;anyxml name="filter"&gt;
67         &lt;description&gt;
68           &lt;text&gt;An optional parameter that indicates which subset of all
69 possible events is of interest. The format of this
70 parameter is the same as that of the filter parameter
71 in the NETCONF protocol operations. If not present,
72 all events not precluded by other parameters will
73 be sent.&lt;/text&gt;
74         &lt;/description&gt;
75       &lt;/anyxml&gt;
76       &lt;leaf name="startTime"&gt;
77         &lt;type name="yang:date-and-time"/&gt;
78         &lt;description&gt;
79           &lt;text&gt;A parameter used to trigger the replay feature and
80 indicates that the replay should start at the time
81 specified. If start time is not present, this is not a
82 replay subscription.&lt;/text&gt;
83         &lt;/description&gt;
84       &lt;/leaf&gt;
85       &lt;leaf name="stopTime"&gt;
86         &lt;type name="yang:date-and-time"/&gt;
87         &lt;description&gt;
88           &lt;text&gt;An optional parameter used with the optional replay
89 feature to indicate the newest notifications of
90 interest. If stop time is not present, the notifications
91 will continue until the subscription is terminated.
92 Must be used with startTime.&lt;/text&gt;
93         &lt;/description&gt;
94       &lt;/leaf&gt;
95     &lt;/input&gt;
96   &lt;/rpc&gt;
97 &lt;/module&gt;
98 </data>
99 </rpc-reply>