Adding TestVNF netconf server
[demo.git] / vnfs / TestVNF / netconftemplates / netconftemplates / ietf-yang-library@2017-08-17.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="ietf-yang-library"
4         xmlns="urn:ietf:params:xml:ns:yang:yin:1"
5         xmlns:yanglib="urn:ietf:params:xml:ns:yang:ietf-yang-library"
6         xmlns:yang="urn:ietf:params:xml:ns:yang:ietf-yang-types"
7         xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types"
8         xmlns:ds="urn:ietf:params:xml:ns:yang:ietf-datastores"&gt;
9   &lt;yang-version value="1.1"/&gt;
10   &lt;namespace uri="urn:ietf:params:xml:ns:yang:ietf-yang-library"/&gt;
11   &lt;prefix value="yanglib"/&gt;
12   &lt;import module="ietf-yang-types"&gt;
13     &lt;prefix value="yang"/&gt;
14     &lt;reference&gt;
15       &lt;text&gt;RFC 6991: Common YANG Data Types.&lt;/text&gt;
16     &lt;/reference&gt;
17   &lt;/import&gt;
18   &lt;import module="ietf-inet-types"&gt;
19     &lt;prefix value="inet"/&gt;
20     &lt;reference&gt;
21       &lt;text&gt;RFC 6991: Common YANG Data Types.&lt;/text&gt;
22     &lt;/reference&gt;
23   &lt;/import&gt;
24   &lt;import module="ietf-datastores"&gt;
25     &lt;prefix value="ds"/&gt;
26     &lt;reference&gt;
27       &lt;text&gt;I-D.ietf-revised-datastores:
28 Network Management Datastore Architecture.&lt;/text&gt;
29     &lt;/reference&gt;
30   &lt;/import&gt;
31   &lt;organization&gt;
32     &lt;text&gt;IETF NETCONF (Network Configuration) Working Group&lt;/text&gt;
33   &lt;/organization&gt;
34   &lt;contact&gt;
35     &lt;text&gt;WG Web:   &amp;lt;http://tools.ietf.org/wg/netconf/&amp;gt;
36 WG List:  &amp;lt;mailto:netconf@ietf.org&amp;gt;
37
38 Author:   Andy Bierman
39           &amp;lt;mailto:andy@yumaworks.com&amp;gt;
40
41 Author:   Martin Bjorklund
42           &amp;lt;mailto:mbj@tail-f.com&amp;gt;
43
44 Author:   Kent Watsen
45           &amp;lt;mailto:kwatsen@juniper.net&amp;gt;&lt;/text&gt;
46   &lt;/contact&gt;
47   &lt;description&gt;
48     &lt;text&gt;This module contains information about the YANG server
49 instance, including the modules and datastores the
50 server supports, and which modules are present in
51 which datastores.
52
53 Copyright (c) 2017 IETF Trust and the persons identified as
54 authors of the code.  All rights reserved.
55
56 Redistribution and use in source and binary forms, with or
57 without modification, is permitted pursuant to, and subject
58 to the license terms contained in, the Simplified BSD License
59 set forth in Section 4.c of the IETF Trust's Legal Provisions
60 Relating to IETF Documents
61 (http://trustee.ietf.org/license-info).
62
63 This version of this YANG module is part of RFC XXXX; see
64 the RFC itself for full legal notices.&lt;/text&gt;
65   &lt;/description&gt;
66   &lt;revision date="2017-08-17"&gt;
67     &lt;description&gt;
68       &lt;text&gt;Updated revision.&lt;/text&gt;
69     &lt;/description&gt;
70     &lt;reference&gt;
71       &lt;text&gt;RFC XXXX: YANG Library.&lt;/text&gt;
72     &lt;/reference&gt;
73   &lt;/revision&gt;
74   &lt;revision date="2016-04-09"&gt;
75     &lt;description&gt;
76       &lt;text&gt;Initial revision.&lt;/text&gt;
77     &lt;/description&gt;
78     &lt;reference&gt;
79       &lt;text&gt;RFC 7895: YANG Module Library.&lt;/text&gt;
80     &lt;/reference&gt;
81   &lt;/revision&gt;
82   &lt;typedef name="revision-identifier"&gt;
83     &lt;type name="string"&gt;
84       &lt;pattern value="\d{4}-\d{2}-\d{2}"/&gt;
85     &lt;/type&gt;
86     &lt;description&gt;
87       &lt;text&gt;Represents a specific date in YYYY-MM-DD format.&lt;/text&gt;
88     &lt;/description&gt;
89   &lt;/typedef&gt;
90   &lt;grouping name="module-identification-leafs"&gt;
91     &lt;description&gt;
92       &lt;text&gt;Parameters for identifying YANG modules and submodules.&lt;/text&gt;
93     &lt;/description&gt;
94     &lt;leaf name="name"&gt;
95       &lt;type name="yang:yang-identifier"/&gt;
96       &lt;mandatory value="true"/&gt;
97       &lt;description&gt;
98         &lt;text&gt;The YANG module or submodule name.&lt;/text&gt;
99       &lt;/description&gt;
100     &lt;/leaf&gt;
101     &lt;leaf name="revision"&gt;
102       &lt;type name="union"&gt;
103         &lt;type name="revision-identifier"/&gt;
104         &lt;type name="string"&gt;
105           &lt;length value="0"/&gt;
106         &lt;/type&gt;
107       &lt;/type&gt;
108       &lt;mandatory value="true"/&gt;
109       &lt;description&gt;
110         &lt;text&gt;The YANG module or submodule revision date.
111 A zero-length string is used if no revision statement
112 is present in the YANG module or submodule.&lt;/text&gt;
113       &lt;/description&gt;
114     &lt;/leaf&gt;
115   &lt;/grouping&gt;
116   &lt;grouping name="schema-leaf"&gt;
117     &lt;description&gt;
118       &lt;text&gt;Common schema leaf parameter for modules and submodules.&lt;/text&gt;
119     &lt;/description&gt;
120     &lt;leaf name="schema"&gt;
121       &lt;type name="inet:uri"/&gt;
122       &lt;description&gt;
123         &lt;text&gt;Contains a URL that represents the YANG schema
124 resource for this module or submodule.
125 This leaf will only be present if there is a URL
126 available for retrieval of the schema for this entry.&lt;/text&gt;
127       &lt;/description&gt;
128     &lt;/leaf&gt;
129   &lt;/grouping&gt;
130   &lt;grouping name="implementation-parameters"&gt;
131     &lt;description&gt;
132       &lt;text&gt;Parameters for describing the implementation of a module.&lt;/text&gt;
133     &lt;/description&gt;
134     &lt;leaf-list name="feature"&gt;
135       &lt;type name="yang:yang-identifier"/&gt;
136       &lt;description&gt;
137         &lt;text&gt;List of YANG feature names from this module that are
138 supported by the server, regardless whether they are defined
139 in the module or any included submodule.&lt;/text&gt;
140       &lt;/description&gt;
141     &lt;/leaf-list&gt;
142     &lt;list name="deviation"&gt;
143       &lt;key value="name revision"/&gt;
144       &lt;description&gt;
145         &lt;text&gt;List of YANG deviation module names and revisions used by
146 this server to modify the conformance of the module
147 associated with this entry.  Note that the same module can
148 be used for deviations for multiple modules, so the same
149 entry MAY appear within multiple 'module' entries.
150
151 The deviation module MUST be present in the 'module' list,
152 with the same name and revision values.  The
153 'conformance-type' value will be 'implement' for the
154 deviation module.&lt;/text&gt;
155       &lt;/description&gt;
156       &lt;uses name="module-identification-leafs"/&gt;
157     &lt;/list&gt;
158     &lt;leaf name="conformance-type"&gt;
159       &lt;type name="enumeration"&gt;
160         &lt;enum name="implement"&gt;
161           &lt;description&gt;
162             &lt;text&gt;Indicates that the server implements one or more
163 protocol-accessible objects defined in the YANG module
164 identified in this entry.  This includes deviation
165 statements defined in the module.
166
167 For YANG version 1.1 modules, there is at most one
168 module entry with conformance type 'implement' for a
169 particular module name, since YANG 1.1 requires that at
170 most one revision of a module is implemented.
171
172 For YANG version 1 modules, there SHOULD NOT be more
173 than one module entry for a particular module name.&lt;/text&gt;
174           &lt;/description&gt;
175         &lt;/enum&gt;
176         &lt;enum name="import"&gt;
177           &lt;description&gt;
178             &lt;text&gt;Indicates that the server imports reusable definitions
179 from the specified revision of the module, but does not
180 implement any protocol accessible objects from this
181 revision.
182
183 Multiple module entries for the same module name MAY
184 exist. This can occur if multiple modules import the
185 same module, but specify different revision-dates in the
186 import statements.&lt;/text&gt;
187           &lt;/description&gt;
188         &lt;/enum&gt;
189       &lt;/type&gt;
190       &lt;mandatory value="true"/&gt;
191       &lt;description&gt;
192         &lt;text&gt;Indicates the type of conformance the server is claiming
193 for the YANG module identified by this entry.&lt;/text&gt;
194       &lt;/description&gt;
195     &lt;/leaf&gt;
196   &lt;/grouping&gt;
197   &lt;grouping name="yang-library-parameters"&gt;
198     &lt;description&gt;
199       &lt;text&gt;The YANG library data structure is represented as a grouping
200 so it can be reused in configuration or another monitoring
201 data structure.&lt;/text&gt;
202     &lt;/description&gt;
203     &lt;container name="modules"&gt;
204       &lt;description&gt;
205         &lt;text&gt;A container holding a list of modules.  Note, modules being
206 listed here does not mean that they are supported by any
207 particular datastore.&lt;/text&gt;
208       &lt;/description&gt;
209       &lt;list name="module"&gt;
210         &lt;key value="id"/&gt;
211         &lt;description&gt;
212           &lt;text&gt;Each entry represents one revision of one module
213 currently supported by the server.&lt;/text&gt;
214         &lt;/description&gt;
215         &lt;leaf name="id"&gt;
216           &lt;type name="string"/&gt;
217           &lt;description&gt;
218             &lt;text&gt;A stable identifier, independent of any other part
219 of this module instance.&lt;/text&gt;
220           &lt;/description&gt;
221         &lt;/leaf&gt;
222         &lt;uses name="module-identification-leafs"/&gt;
223         &lt;uses name="schema-leaf"/&gt;
224         &lt;leaf name="namespace"&gt;
225           &lt;type name="inet:uri"/&gt;
226           &lt;mandatory value="true"/&gt;
227           &lt;description&gt;
228             &lt;text&gt;The XML namespace identifier for this module.&lt;/text&gt;
229           &lt;/description&gt;
230         &lt;/leaf&gt;
231         &lt;uses name="implementation-parameters"/&gt;
232         &lt;list name="submodule"&gt;
233           &lt;key value="name revision"/&gt;
234           &lt;description&gt;
235             &lt;text&gt;Each entry represents one submodule within the
236 parent module.&lt;/text&gt;
237           &lt;/description&gt;
238           &lt;uses name="module-identification-leafs"/&gt;
239           &lt;uses name="schema-leaf"/&gt;
240         &lt;/list&gt;
241       &lt;/list&gt;
242     &lt;/container&gt;
243     &lt;container name="module-sets"&gt;
244       &lt;description&gt;
245         &lt;text&gt;A container for a list of module-sets.  Module-sets being
246 listed here does not mean that they are used by any
247 particular datastore.&lt;/text&gt;
248       &lt;/description&gt;
249       &lt;list name="module-set"&gt;
250         &lt;key value="id"/&gt;
251         &lt;description&gt;
252           &lt;text&gt;An arbitrary module-set definition provided by the
253 server.&lt;/text&gt;
254         &lt;/description&gt;
255         &lt;leaf name="id"&gt;
256           &lt;type name="string"/&gt;
257           &lt;description&gt;
258             &lt;text&gt;A system-generated value that uniquely represents the
259 referenced set of modules.  Any change to the number
260 of modules referenced, or to the modules themselves,
261 generates a different value.&lt;/text&gt;
262           &lt;/description&gt;
263         &lt;/leaf&gt;
264         &lt;leaf-list name="module"&gt;
265           &lt;type name="leafref"&gt;
266             &lt;path value="../../../modules/module/id"/&gt;
267           &lt;/type&gt;
268           &lt;description&gt;
269             &lt;text&gt;A module-instance supported by the server, including its
270 features and deviations.&lt;/text&gt;
271           &lt;/description&gt;
272         &lt;/leaf-list&gt;
273       &lt;/list&gt;
274     &lt;/container&gt;
275     &lt;container name="datastores"&gt;
276       &lt;description&gt;
277         &lt;text&gt;A container for a list of datastores supported by the
278 server.  Each datastore indicates which module-sets it
279 supports.&lt;/text&gt;
280       &lt;/description&gt;
281       &lt;list name="datastore"&gt;
282         &lt;key value="name"/&gt;
283         &lt;description&gt;
284           &lt;text&gt;A datastore supported by this server.&lt;/text&gt;
285         &lt;/description&gt;
286         &lt;leaf name="name"&gt;
287           &lt;type name="identityref"&gt;
288             &lt;base name="ds:datastore"/&gt;
289           &lt;/type&gt;
290           &lt;description&gt;
291             &lt;text&gt;The identity of the datastore.&lt;/text&gt;
292           &lt;/description&gt;
293         &lt;/leaf&gt;
294         &lt;leaf name="module-set"&gt;
295           &lt;type name="leafref"&gt;
296             &lt;path value="../../../module-sets/module-set/id"/&gt;
297           &lt;/type&gt;
298           &lt;description&gt;
299             &lt;text&gt;A reference to a module-set supported by this
300 datastore&lt;/text&gt;
301           &lt;/description&gt;
302         &lt;/leaf&gt;
303       &lt;/list&gt;
304     &lt;/container&gt;
305   &lt;/grouping&gt;
306   &lt;grouping name="module-list"&gt;
307     &lt;status value="deprecated"/&gt;
308     &lt;description&gt;
309       &lt;text&gt;The module data structure is represented as a grouping
310 so it can be reused in configuration or another monitoring
311 data structure.&lt;/text&gt;
312     &lt;/description&gt;
313     &lt;grouping name="common-leafs"&gt;
314       &lt;status value="deprecated"/&gt;
315       &lt;description&gt;
316         &lt;text&gt;Common parameters for YANG modules and submodules.&lt;/text&gt;
317       &lt;/description&gt;
318       &lt;leaf name="name"&gt;
319         &lt;type name="yang:yang-identifier"/&gt;
320         &lt;status value="deprecated"/&gt;
321         &lt;description&gt;
322           &lt;text&gt;The YANG module or submodule name.&lt;/text&gt;
323         &lt;/description&gt;
324       &lt;/leaf&gt;
325       &lt;leaf name="revision"&gt;
326         &lt;type name="union"&gt;
327           &lt;type name="revision-identifier"/&gt;
328           &lt;type name="string"&gt;
329             &lt;length value="0"/&gt;
330           &lt;/type&gt;
331         &lt;/type&gt;
332         &lt;status value="deprecated"/&gt;
333         &lt;description&gt;
334           &lt;text&gt;The YANG module or submodule revision date.
335 A zero-length string is used if no revision statement
336 is present in the YANG module or submodule.&lt;/text&gt;
337         &lt;/description&gt;
338       &lt;/leaf&gt;
339     &lt;/grouping&gt;
340     &lt;list name="module"&gt;
341       &lt;key value="name revision"/&gt;
342       &lt;status value="deprecated"/&gt;
343       &lt;description&gt;
344         &lt;text&gt;Each entry represents one revision of one module
345 currently supported by the server.&lt;/text&gt;
346       &lt;/description&gt;
347       &lt;uses name="common-leafs"&gt;
348         &lt;status value="deprecated"/&gt;
349       &lt;/uses&gt;
350       &lt;uses name="schema-leaf"&gt;
351         &lt;status value="deprecated"/&gt;
352       &lt;/uses&gt;
353       &lt;leaf name="namespace"&gt;
354         &lt;type name="inet:uri"/&gt;
355         &lt;mandatory value="true"/&gt;
356         &lt;status value="deprecated"/&gt;
357         &lt;description&gt;
358           &lt;text&gt;The XML namespace identifier for this module.&lt;/text&gt;
359         &lt;/description&gt;
360       &lt;/leaf&gt;
361       &lt;leaf-list name="feature"&gt;
362         &lt;type name="yang:yang-identifier"/&gt;
363         &lt;status value="deprecated"/&gt;
364         &lt;description&gt;
365           &lt;text&gt;List of YANG feature names from this module that are
366 supported by the server, regardless whether they are
367 defined in the module or any included submodule.&lt;/text&gt;
368         &lt;/description&gt;
369       &lt;/leaf-list&gt;
370       &lt;list name="deviation"&gt;
371         &lt;key value="name revision"/&gt;
372         &lt;status value="deprecated"/&gt;
373         &lt;description&gt;
374           &lt;text&gt;List of YANG deviation module names and revisions
375 used by this server to modify the conformance of
376 the module associated with this entry.  Note that
377 the same module can be used for deviations for
378 multiple modules, so the same entry MAY appear
379 within multiple 'module' entries.
380
381 The deviation module MUST be present in the 'module'
382 list, with the same name and revision values.
383 The 'conformance-type' value will be 'implement' for
384 the deviation module.&lt;/text&gt;
385         &lt;/description&gt;
386         &lt;uses name="common-leafs"&gt;
387           &lt;status value="deprecated"/&gt;
388         &lt;/uses&gt;
389       &lt;/list&gt;
390       &lt;leaf name="conformance-type"&gt;
391         &lt;type name="enumeration"&gt;
392           &lt;enum name="implement"&gt;
393             &lt;description&gt;
394               &lt;text&gt;Indicates that the server implements one or more
395 protocol-accessible objects defined in the YANG module
396 identified in this entry.  This includes deviation
397 statements defined in the module.
398
399 For YANG version 1.1 modules, there is at most one
400 module entry with conformance type 'implement' for a
401 particular module name, since YANG 1.1 requires that
402 at most one revision of a module is implemented.
403
404 For YANG version 1 modules, there SHOULD NOT be more
405 than one module entry for a particular module name.&lt;/text&gt;
406             &lt;/description&gt;
407           &lt;/enum&gt;
408           &lt;enum name="import"&gt;
409             &lt;description&gt;
410               &lt;text&gt;Indicates that the server imports reusable definitions
411 from the specified revision of the module, but does
412 not implement any protocol accessible objects from
413 this revision.
414
415 Multiple module entries for the same module name MAY
416 exist. This can occur if multiple modules import the
417 same module, but specify different revision-dates in
418 the import statements.&lt;/text&gt;
419             &lt;/description&gt;
420           &lt;/enum&gt;
421         &lt;/type&gt;
422         &lt;mandatory value="true"/&gt;
423         &lt;status value="deprecated"/&gt;
424         &lt;description&gt;
425           &lt;text&gt;Indicates the type of conformance the server is claiming
426 for the YANG module identified by this entry.&lt;/text&gt;
427         &lt;/description&gt;
428       &lt;/leaf&gt;
429       &lt;list name="submodule"&gt;
430         &lt;key value="name revision"/&gt;
431         &lt;status value="deprecated"/&gt;
432         &lt;description&gt;
433           &lt;text&gt;Each entry represents one submodule within the
434 parent module.&lt;/text&gt;
435         &lt;/description&gt;
436         &lt;uses name="common-leafs"&gt;
437           &lt;status value="deprecated"/&gt;
438         &lt;/uses&gt;
439         &lt;uses name="schema-leaf"&gt;
440           &lt;status value="deprecated"/&gt;
441         &lt;/uses&gt;
442       &lt;/list&gt;
443     &lt;/list&gt;
444   &lt;/grouping&gt;
445   &lt;container name="yang-library"&gt;
446     &lt;config value="false"/&gt;
447     &lt;description&gt;
448       &lt;text&gt;Container providing all the YANG meta information the
449 server possesses.&lt;/text&gt;
450     &lt;/description&gt;
451     &lt;uses name="yang-library-parameters"/&gt;
452     &lt;leaf name="checksum"&gt;
453       &lt;type name="string"/&gt;
454       &lt;config value="false"/&gt;
455       &lt;mandatory value="true"/&gt;
456       &lt;description&gt;
457         &lt;text&gt;A server-generated checksum of the contents of the
458 'yang-library' tree.  The server MUST change the value of
459 this leaf if the information represented by the
460 'yang-library' tree, except yang-library/checksum, has
461 changed.&lt;/text&gt;
462       &lt;/description&gt;
463     &lt;/leaf&gt;
464   &lt;/container&gt;
465   &lt;container name="modules-state"&gt;
466     &lt;config value="false"/&gt;
467     &lt;status value="deprecated"/&gt;
468     &lt;description&gt;
469       &lt;text&gt;Contains YANG module monitoring information.&lt;/text&gt;
470     &lt;/description&gt;
471     &lt;leaf name="module-set-id"&gt;
472       &lt;type name="string"/&gt;
473       &lt;mandatory value="true"/&gt;
474       &lt;status value="deprecated"/&gt;
475       &lt;description&gt;
476         &lt;text&gt;Contains a server-specific identifier representing
477 the current set of modules and submodules.  The
478 server MUST change the value of this leaf if the
479 information represented by the 'module' list instances
480 has changed.&lt;/text&gt;
481       &lt;/description&gt;
482     &lt;/leaf&gt;
483     &lt;uses name="module-list"&gt;
484       &lt;status value="deprecated"/&gt;
485     &lt;/uses&gt;
486   &lt;/container&gt;
487   &lt;notification name="yang-library-update"&gt;
488     &lt;description&gt;
489       &lt;text&gt;Generated when any YANG library information on the
490 server has changed.&lt;/text&gt;
491     &lt;/description&gt;
492   &lt;/notification&gt;
493   &lt;notification name="yang-library-change"&gt;
494     &lt;status value="deprecated"/&gt;
495     &lt;description&gt;
496       &lt;text&gt;Generated when the set of modules and submodules supported
497 by the server has changed.&lt;/text&gt;
498     &lt;/description&gt;
499     &lt;leaf name="module-set-id"&gt;
500       &lt;type name="leafref"&gt;
501         &lt;path value="/yanglib:modules-state/yanglib:module-set-id"/&gt;
502       &lt;/type&gt;
503       &lt;mandatory value="true"/&gt;
504       &lt;status value="deprecated"/&gt;
505       &lt;description&gt;
506         &lt;text&gt;Contains the module-set-id value representing the
507 set of modules and submodules supported at the server
508 at the time the notification is generated.&lt;/text&gt;
509       &lt;/description&gt;
510     &lt;/leaf&gt;
511   &lt;/notification&gt;
512 &lt;/module&gt;
513 </data>
514 </rpc-reply>