Adding TestVNF netconf server
[demo.git] / vnfs / TestVNF / netconftemplates / netconftemplates / ietf-netconf-monitoring@2010-10-04.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-netconf-monitoring"
4         xmlns="urn:ietf:params:xml:ns:yang:yin:1"
5         xmlns:ncm="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"
6         xmlns:yang="urn:ietf:params:xml:ns:yang:ietf-yang-types"
7         xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types"&gt;
8   &lt;namespace uri="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"/&gt;
9   &lt;prefix value="ncm"/&gt;
10   &lt;import module="ietf-yang-types"&gt;
11     &lt;prefix value="yang"/&gt;
12   &lt;/import&gt;
13   &lt;import module="ietf-inet-types"&gt;
14     &lt;prefix value="inet"/&gt;
15   &lt;/import&gt;
16   &lt;organization&gt;
17     &lt;text&gt;IETF NETCONF (Network Configuration) Working Group&lt;/text&gt;
18   &lt;/organization&gt;
19   &lt;contact&gt;
20     &lt;text&gt;WG Web:   &amp;lt;http://tools.ietf.org/wg/netconf/&amp;gt;
21 WG List:  &amp;lt;mailto:netconf@ietf.org&amp;gt;
22
23 WG Chair: Mehmet Ersue
24           &amp;lt;mailto:mehmet.ersue@nsn.com&amp;gt;
25
26 WG Chair: Bert Wijnen
27           &amp;lt;mailto:bertietf@bwijnen.net&amp;gt;
28
29 Editor:   Mark Scott
30           &amp;lt;mailto:mark.scott@ericsson.com&amp;gt;
31
32 Editor:   Martin Bjorklund
33           &amp;lt;mailto:mbj@tail-f.com&amp;gt;&lt;/text&gt;
34   &lt;/contact&gt;
35   &lt;description&gt;
36     &lt;text&gt;NETCONF Monitoring Module.
37 All elements in this module are read-only.
38
39 Copyright (c) 2010 IETF Trust and the persons identified as
40 authors of the code. All rights reserved.
41
42 Redistribution and use in source and binary forms, with or
43 without modification, is permitted pursuant to, and subject
44 to the license terms contained in, the Simplified BSD
45 License set forth in Section 4.c of the IETF Trust's
46 Legal Provisions Relating to IETF Documents
47 (http://trustee.ietf.org/license-info).
48
49 This version of this YANG module is part of RFC 6022; see
50 the RFC itself for full legal notices.&lt;/text&gt;
51   &lt;/description&gt;
52   &lt;revision date="2010-10-04"&gt;
53     &lt;description&gt;
54       &lt;text&gt;Initial revision.&lt;/text&gt;
55     &lt;/description&gt;
56     &lt;reference&gt;
57       &lt;text&gt;RFC 6022: YANG Module for NETCONF Monitoring&lt;/text&gt;
58     &lt;/reference&gt;
59   &lt;/revision&gt;
60   &lt;identity name="transport"&gt;
61     &lt;description&gt;
62       &lt;text&gt;Base identity for NETCONF transport types.&lt;/text&gt;
63     &lt;/description&gt;
64   &lt;/identity&gt;
65   &lt;identity name="netconf-ssh"&gt;
66     &lt;base name="transport"/&gt;
67     &lt;description&gt;
68       &lt;text&gt;NETCONF over Secure Shell (SSH).&lt;/text&gt;
69     &lt;/description&gt;
70     &lt;reference&gt;
71       &lt;text&gt;RFC 4742: Using the NETCONF Configuration Protocol
72           over Secure SHell (SSH)&lt;/text&gt;
73     &lt;/reference&gt;
74   &lt;/identity&gt;
75   &lt;identity name="netconf-soap-over-beep"&gt;
76     &lt;base name="transport"/&gt;
77     &lt;description&gt;
78       &lt;text&gt;NETCONF over Simple Object Access Protocol (SOAP) over
79 Blocks Extensible Exchange Protocol (BEEP).&lt;/text&gt;
80     &lt;/description&gt;
81     &lt;reference&gt;
82       &lt;text&gt;RFC 4743: Using NETCONF over the Simple Object
83           Access Protocol (SOAP)&lt;/text&gt;
84     &lt;/reference&gt;
85   &lt;/identity&gt;
86   &lt;identity name="netconf-soap-over-https"&gt;
87     &lt;base name="transport"/&gt;
88     &lt;description&gt;
89       &lt;text&gt;NETCONF over Simple Object Access Protocol (SOAP)
90 over Hypertext Transfer Protocol Secure (HTTPS).&lt;/text&gt;
91     &lt;/description&gt;
92     &lt;reference&gt;
93       &lt;text&gt;RFC 4743: Using NETCONF over the Simple Object
94           Access Protocol (SOAP)&lt;/text&gt;
95     &lt;/reference&gt;
96   &lt;/identity&gt;
97   &lt;identity name="netconf-beep"&gt;
98     &lt;base name="transport"/&gt;
99     &lt;description&gt;
100       &lt;text&gt;NETCONF over Blocks Extensible Exchange Protocol (BEEP).&lt;/text&gt;
101     &lt;/description&gt;
102     &lt;reference&gt;
103       &lt;text&gt;RFC 4744: Using the NETCONF Protocol over the
104           Blocks Extensible Exchange Protocol (BEEP)&lt;/text&gt;
105     &lt;/reference&gt;
106   &lt;/identity&gt;
107   &lt;identity name="netconf-tls"&gt;
108     &lt;base name="transport"/&gt;
109     &lt;description&gt;
110       &lt;text&gt;NETCONF over Transport Layer Security (TLS).&lt;/text&gt;
111     &lt;/description&gt;
112     &lt;reference&gt;
113       &lt;text&gt;RFC 5539: NETCONF over Transport Layer Security (TLS)&lt;/text&gt;
114     &lt;/reference&gt;
115   &lt;/identity&gt;
116   &lt;identity name="schema-format"&gt;
117     &lt;description&gt;
118       &lt;text&gt;Base identity for data model schema languages.&lt;/text&gt;
119     &lt;/description&gt;
120   &lt;/identity&gt;
121   &lt;identity name="xsd"&gt;
122     &lt;base name="schema-format"/&gt;
123     &lt;description&gt;
124       &lt;text&gt;W3C XML Schema Definition.&lt;/text&gt;
125     &lt;/description&gt;
126     &lt;reference&gt;
127       &lt;text&gt;W3C REC REC-xmlschema-1-20041028:
128   XML Schema Part 1: Structures&lt;/text&gt;
129     &lt;/reference&gt;
130   &lt;/identity&gt;
131   &lt;identity name="yang"&gt;
132     &lt;base name="schema-format"/&gt;
133     &lt;description&gt;
134       &lt;text&gt;The YANG data modeling language for NETCONF.&lt;/text&gt;
135     &lt;/description&gt;
136     &lt;reference&gt;
137       &lt;text&gt;RFC 6020:  YANG - A Data Modeling Language for the
138            Network Configuration Protocol (NETCONF)&lt;/text&gt;
139     &lt;/reference&gt;
140   &lt;/identity&gt;
141   &lt;identity name="yin"&gt;
142     &lt;base name="schema-format"/&gt;
143     &lt;description&gt;
144       &lt;text&gt;The YIN syntax for YANG.&lt;/text&gt;
145     &lt;/description&gt;
146     &lt;reference&gt;
147       &lt;text&gt;RFC 6020:  YANG - A Data Modeling Language for the
148            Network Configuration Protocol (NETCONF)&lt;/text&gt;
149     &lt;/reference&gt;
150   &lt;/identity&gt;
151   &lt;identity name="rng"&gt;
152     &lt;base name="schema-format"/&gt;
153     &lt;description&gt;
154       &lt;text&gt;Regular Language for XML Next Generation (RELAX NG).&lt;/text&gt;
155     &lt;/description&gt;
156     &lt;reference&gt;
157       &lt;text&gt;ISO/IEC 19757-2:2008: RELAX NG&lt;/text&gt;
158     &lt;/reference&gt;
159   &lt;/identity&gt;
160   &lt;identity name="rnc"&gt;
161     &lt;base name="schema-format"/&gt;
162     &lt;description&gt;
163       &lt;text&gt;Relax NG Compact Syntax&lt;/text&gt;
164     &lt;/description&gt;
165     &lt;reference&gt;
166       &lt;text&gt;ISO/IEC 19757-2:2008: RELAX NG&lt;/text&gt;
167     &lt;/reference&gt;
168   &lt;/identity&gt;
169   &lt;typedef name="netconf-datastore-type"&gt;
170     &lt;type name="enumeration"&gt;
171       &lt;enum name="running"/&gt;
172       &lt;enum name="candidate"/&gt;
173       &lt;enum name="startup"/&gt;
174     &lt;/type&gt;
175     &lt;description&gt;
176       &lt;text&gt;Enumeration of possible NETCONF datastore types.&lt;/text&gt;
177     &lt;/description&gt;
178     &lt;reference&gt;
179       &lt;text&gt;RFC 4741: NETCONF Configuration Protocol&lt;/text&gt;
180     &lt;/reference&gt;
181   &lt;/typedef&gt;
182   &lt;grouping name="common-counters"&gt;
183     &lt;description&gt;
184       &lt;text&gt;Counters that exist both per session, and also globally,
185 accumulated from all sessions.&lt;/text&gt;
186     &lt;/description&gt;
187     &lt;leaf name="in-rpcs"&gt;
188       &lt;type name="yang:zero-based-counter32"/&gt;
189       &lt;description&gt;
190         &lt;text&gt;Number of correct &amp;lt;rpc&amp;gt; messages received.&lt;/text&gt;
191       &lt;/description&gt;
192     &lt;/leaf&gt;
193     &lt;leaf name="in-bad-rpcs"&gt;
194       &lt;type name="yang:zero-based-counter32"/&gt;
195       &lt;description&gt;
196         &lt;text&gt;Number of messages received when an &amp;lt;rpc&amp;gt; message was expected,
197 that were not correct &amp;lt;rpc&amp;gt; messages.  This includes XML parse
198 errors and errors on the rpc layer.&lt;/text&gt;
199       &lt;/description&gt;
200     &lt;/leaf&gt;
201     &lt;leaf name="out-rpc-errors"&gt;
202       &lt;type name="yang:zero-based-counter32"/&gt;
203       &lt;description&gt;
204         &lt;text&gt;Number of &amp;lt;rpc-reply&amp;gt; messages sent that contained an
205 &amp;lt;rpc-error&amp;gt; element.&lt;/text&gt;
206       &lt;/description&gt;
207     &lt;/leaf&gt;
208     &lt;leaf name="out-notifications"&gt;
209       &lt;type name="yang:zero-based-counter32"/&gt;
210       &lt;description&gt;
211         &lt;text&gt;Number of &amp;lt;notification&amp;gt; messages sent.&lt;/text&gt;
212       &lt;/description&gt;
213     &lt;/leaf&gt;
214   &lt;/grouping&gt;
215   &lt;container name="netconf-state"&gt;
216     &lt;config value="false"/&gt;
217     &lt;description&gt;
218       &lt;text&gt;The netconf-state container is the root of the monitoring
219 data model.&lt;/text&gt;
220     &lt;/description&gt;
221     &lt;container name="capabilities"&gt;
222       &lt;description&gt;
223         &lt;text&gt;Contains the list of NETCONF capabilities supported by the
224 server.&lt;/text&gt;
225       &lt;/description&gt;
226       &lt;leaf-list name="capability"&gt;
227         &lt;type name="inet:uri"/&gt;
228         &lt;description&gt;
229           &lt;text&gt;List of NETCONF capabilities supported by the server.&lt;/text&gt;
230         &lt;/description&gt;
231       &lt;/leaf-list&gt;
232     &lt;/container&gt;
233     &lt;container name="datastores"&gt;
234       &lt;description&gt;
235         &lt;text&gt;Contains the list of NETCONF configuration datastores.&lt;/text&gt;
236       &lt;/description&gt;
237       &lt;list name="datastore"&gt;
238         &lt;key value="name"/&gt;
239         &lt;description&gt;
240           &lt;text&gt;List of NETCONF configuration datastores supported by
241 the NETCONF server and related information.&lt;/text&gt;
242         &lt;/description&gt;
243         &lt;leaf name="name"&gt;
244           &lt;type name="netconf-datastore-type"/&gt;
245           &lt;description&gt;
246             &lt;text&gt;Name of the datastore associated with this list entry.&lt;/text&gt;
247           &lt;/description&gt;
248         &lt;/leaf&gt;
249         &lt;container name="locks"&gt;
250           &lt;presence value="This container is present only if the datastore
251 is locked."/&gt;
252           &lt;description&gt;
253             &lt;text&gt;The NETCONF &amp;lt;lock&amp;gt; and &amp;lt;partial-lock&amp;gt; operations allow
254 a client to lock specific resources in a datastore.  The
255 NETCONF server will prevent changes to the locked
256 resources by all sessions except the one that acquired
257 the lock(s).
258
259 Monitoring information is provided for each datastore
260 entry including details such as the session that acquired
261 the lock, the type of lock (global or partial) and the
262 list of locked resources.  Multiple locks per datastore
263 are supported.&lt;/text&gt;
264           &lt;/description&gt;
265           &lt;grouping name="lock-info"&gt;
266             &lt;description&gt;
267               &lt;text&gt;Lock related parameters, common to both global and
268 partial locks.&lt;/text&gt;
269             &lt;/description&gt;
270             &lt;leaf name="locked-by-session"&gt;
271               &lt;type name="uint32"/&gt;
272               &lt;mandatory value="true"/&gt;
273               &lt;description&gt;
274                 &lt;text&gt;The session ID of the session that has locked
275 this resource.  Both a global lock and a partial
276 lock MUST contain the NETCONF session-id.
277
278 If the lock is held by a session that is not managed
279 by the NETCONF server (e.g., a CLI session), a session
280 id of 0 (zero) is reported.&lt;/text&gt;
281               &lt;/description&gt;
282               &lt;reference&gt;
283                 &lt;text&gt;RFC 4741: NETCONF Configuration Protocol&lt;/text&gt;
284               &lt;/reference&gt;
285             &lt;/leaf&gt;
286             &lt;leaf name="locked-time"&gt;
287               &lt;type name="yang:date-and-time"/&gt;
288               &lt;mandatory value="true"/&gt;
289               &lt;description&gt;
290                 &lt;text&gt;The date and time of when the resource was
291 locked.&lt;/text&gt;
292               &lt;/description&gt;
293             &lt;/leaf&gt;
294           &lt;/grouping&gt;
295           &lt;choice name="lock-type"&gt;
296             &lt;description&gt;
297               &lt;text&gt;Indicates if a global lock or a set of partial locks
298 are set.&lt;/text&gt;
299             &lt;/description&gt;
300             &lt;container name="global-lock"&gt;
301               &lt;description&gt;
302                 &lt;text&gt;Present if the global lock is set.&lt;/text&gt;
303               &lt;/description&gt;
304               &lt;uses name="lock-info"/&gt;
305             &lt;/container&gt;
306             &lt;list name="partial-lock"&gt;
307               &lt;key value="lock-id"/&gt;
308               &lt;description&gt;
309                 &lt;text&gt;List of partial locks.&lt;/text&gt;
310               &lt;/description&gt;
311               &lt;reference&gt;
312                 &lt;text&gt;RFC 5717: Partial Lock Remote Procedure Call (RPC) for
313           NETCONF&lt;/text&gt;
314               &lt;/reference&gt;
315               &lt;leaf name="lock-id"&gt;
316                 &lt;type name="uint32"/&gt;
317                 &lt;description&gt;
318                   &lt;text&gt;This is the lock id returned in the &amp;lt;partial-lock&amp;gt;
319 response.&lt;/text&gt;
320                 &lt;/description&gt;
321               &lt;/leaf&gt;
322               &lt;uses name="lock-info"/&gt;
323               &lt;leaf-list name="select"&gt;
324                 &lt;type name="yang:xpath1.0"/&gt;
325                 &lt;min-elements value="1"/&gt;
326                 &lt;description&gt;
327                   &lt;text&gt;The xpath expression that was used to request
328 the lock.  The select expression indicates the
329 original intended scope of the lock.&lt;/text&gt;
330                 &lt;/description&gt;
331               &lt;/leaf-list&gt;
332               &lt;leaf-list name="locked-node"&gt;
333                 &lt;type name="instance-identifier"/&gt;
334                 &lt;description&gt;
335                   &lt;text&gt;The list of instance-identifiers (i.e., the
336 locked nodes).
337
338 The scope of the partial lock is defined by the list
339 of locked nodes.&lt;/text&gt;
340                 &lt;/description&gt;
341               &lt;/leaf-list&gt;
342             &lt;/list&gt;
343           &lt;/choice&gt;
344         &lt;/container&gt;
345       &lt;/list&gt;
346     &lt;/container&gt;
347     &lt;container name="schemas"&gt;
348       &lt;description&gt;
349         &lt;text&gt;Contains the list of data model schemas supported by the
350 server.&lt;/text&gt;
351       &lt;/description&gt;
352       &lt;list name="schema"&gt;
353         &lt;key value="identifier version format"/&gt;
354         &lt;description&gt;
355           &lt;text&gt;List of data model schemas supported by the server.&lt;/text&gt;
356         &lt;/description&gt;
357         &lt;leaf name="identifier"&gt;
358           &lt;type name="string"/&gt;
359           &lt;description&gt;
360             &lt;text&gt;Identifier to uniquely reference the schema.  The
361 identifier is used in the &amp;lt;get-schema&amp;gt; operation and may
362 be used for other purposes such as file retrieval.
363
364 For modeling languages that support or require a data
365 model name (e.g., YANG module name) the identifier MUST
366 match that name.  For YANG data models, the identifier is
367 the name of the module or submodule.  In other cases, an
368 identifier such as a filename MAY be used instead.&lt;/text&gt;
369           &lt;/description&gt;
370         &lt;/leaf&gt;
371         &lt;leaf name="version"&gt;
372           &lt;type name="string"/&gt;
373           &lt;description&gt;
374             &lt;text&gt;Version of the schema supported.  Multiple versions MAY be
375 supported simultaneously by a NETCONF server.  Each
376 version MUST be reported individually in the schema list,
377 i.e., with same identifier, possibly different location,
378 but different version.
379
380 For YANG data models, version is the value of the most
381 recent YANG 'revision' statement in the module or
382 submodule, or the empty string if no 'revision' statement
383 is present.&lt;/text&gt;
384           &lt;/description&gt;
385         &lt;/leaf&gt;
386         &lt;leaf name="format"&gt;
387           &lt;type name="identityref"&gt;
388             &lt;base name="schema-format"/&gt;
389           &lt;/type&gt;
390           &lt;description&gt;
391             &lt;text&gt;The data modeling language the schema is written
392 in (currently xsd, yang, yin, rng, or rnc).
393 For YANG data models, 'yang' format MUST be supported and
394 'yin' format MAY also be provided.&lt;/text&gt;
395           &lt;/description&gt;
396         &lt;/leaf&gt;
397         &lt;leaf name="namespace"&gt;
398           &lt;type name="inet:uri"/&gt;
399           &lt;mandatory value="true"/&gt;
400           &lt;description&gt;
401             &lt;text&gt;The XML namespace defined by the data model.
402
403 For YANG data models, this is the module's namespace.
404 If the list entry describes a submodule, this field
405 contains the namespace of the module to which the
406 submodule belongs.&lt;/text&gt;
407           &lt;/description&gt;
408         &lt;/leaf&gt;
409         &lt;leaf-list name="location"&gt;
410           &lt;type name="union"&gt;
411             &lt;type name="enumeration"&gt;
412               &lt;enum name="NETCONF"/&gt;
413             &lt;/type&gt;
414             &lt;type name="inet:uri"/&gt;
415           &lt;/type&gt;
416           &lt;description&gt;
417             &lt;text&gt;One or more locations from which the schema can be
418 retrieved.  This list SHOULD contain at least one
419 entry per schema.
420
421 A schema entry may be located on a remote file system
422 (e.g., reference to file system for ftp retrieval) or
423 retrieved directly from a server supporting the
424 &amp;lt;get-schema&amp;gt; operation (denoted by the value 'NETCONF').&lt;/text&gt;
425           &lt;/description&gt;
426         &lt;/leaf-list&gt;
427       &lt;/list&gt;
428     &lt;/container&gt;
429     &lt;container name="sessions"&gt;
430       &lt;description&gt;
431         &lt;text&gt;The sessions container includes session-specific data for
432 NETCONF management sessions.  The session list MUST include
433 all currently active NETCONF sessions.&lt;/text&gt;
434       &lt;/description&gt;
435       &lt;list name="session"&gt;
436         &lt;key value="session-id"/&gt;
437         &lt;description&gt;
438           &lt;text&gt;All NETCONF sessions managed by the NETCONF server
439 MUST be reported in this list.&lt;/text&gt;
440         &lt;/description&gt;
441         &lt;leaf name="session-id"&gt;
442           &lt;type name="uint32"&gt;
443             &lt;range value="1..max"/&gt;
444           &lt;/type&gt;
445           &lt;description&gt;
446             &lt;text&gt;Unique identifier for the session.  This value is the
447 NETCONF session identifier, as defined in RFC 4741.&lt;/text&gt;
448           &lt;/description&gt;
449           &lt;reference&gt;
450             &lt;text&gt;RFC 4741: NETCONF Configuration Protocol&lt;/text&gt;
451           &lt;/reference&gt;
452         &lt;/leaf&gt;
453         &lt;leaf name="transport"&gt;
454           &lt;type name="identityref"&gt;
455             &lt;base name="transport"/&gt;
456           &lt;/type&gt;
457           &lt;mandatory value="true"/&gt;
458           &lt;description&gt;
459             &lt;text&gt;Identifies the transport for each session, e.g.,
460 'netconf-ssh', 'netconf-soap', etc.&lt;/text&gt;
461           &lt;/description&gt;
462         &lt;/leaf&gt;
463         &lt;leaf name="username"&gt;
464           &lt;type name="string"/&gt;
465           &lt;mandatory value="true"/&gt;
466           &lt;description&gt;
467             &lt;text&gt;The username is the client identity that was authenticated
468 by the NETCONF transport protocol.  The algorithm used to
469 derive the username is NETCONF transport protocol specific
470 and in addition specific to the authentication mechanism
471 used by the NETCONF transport protocol.&lt;/text&gt;
472           &lt;/description&gt;
473         &lt;/leaf&gt;
474         &lt;leaf name="source-host"&gt;
475           &lt;type name="inet:host"/&gt;
476           &lt;description&gt;
477             &lt;text&gt;Host identifier of the NETCONF client.  The value
478 returned is implementation specific (e.g., hostname,
479 IPv4 address, IPv6 address)&lt;/text&gt;
480           &lt;/description&gt;
481         &lt;/leaf&gt;
482         &lt;leaf name="login-time"&gt;
483           &lt;type name="yang:date-and-time"/&gt;
484           &lt;mandatory value="true"/&gt;
485           &lt;description&gt;
486             &lt;text&gt;Time at the server at which the session was established.&lt;/text&gt;
487           &lt;/description&gt;
488         &lt;/leaf&gt;
489         &lt;uses name="common-counters"&gt;
490           &lt;description&gt;
491             &lt;text&gt;Per-session counters.  Zero based with following reset
492 behaviour:
493   - at start of a session
494   - when max value is reached&lt;/text&gt;
495           &lt;/description&gt;
496         &lt;/uses&gt;
497       &lt;/list&gt;
498     &lt;/container&gt;
499     &lt;container name="statistics"&gt;
500       &lt;description&gt;
501         &lt;text&gt;Statistical data pertaining to the NETCONF server.&lt;/text&gt;
502       &lt;/description&gt;
503       &lt;leaf name="netconf-start-time"&gt;
504         &lt;type name="yang:date-and-time"/&gt;
505         &lt;description&gt;
506           &lt;text&gt;Date and time at which the management subsystem was
507 started.&lt;/text&gt;
508         &lt;/description&gt;
509       &lt;/leaf&gt;
510       &lt;leaf name="in-bad-hellos"&gt;
511         &lt;type name="yang:zero-based-counter32"/&gt;
512         &lt;description&gt;
513           &lt;text&gt;Number of sessions silently dropped because an
514 invalid &amp;lt;hello&amp;gt; message was received.  This includes &amp;lt;hello&amp;gt;
515 messages with a 'session-id' attribute, bad namespace, and
516 bad capability declarations.&lt;/text&gt;
517         &lt;/description&gt;
518       &lt;/leaf&gt;
519       &lt;leaf name="in-sessions"&gt;
520         &lt;type name="yang:zero-based-counter32"/&gt;
521         &lt;description&gt;
522           &lt;text&gt;Number of sessions started.  This counter is incremented
523 when a &amp;lt;hello&amp;gt; message with a &amp;lt;session-id&amp;gt; is sent.
524
525 'in-sessions' - 'in-bad-hellos' =
526    'number of correctly started netconf sessions'&lt;/text&gt;
527         &lt;/description&gt;
528       &lt;/leaf&gt;
529       &lt;leaf name="dropped-sessions"&gt;
530         &lt;type name="yang:zero-based-counter32"/&gt;
531         &lt;description&gt;
532           &lt;text&gt;Number of sessions that were abnormally terminated, e.g.,
533 due to idle timeout or transport close.  This counter is not
534 incremented when a session is properly closed by a
535 &amp;lt;close-session&amp;gt; operation, or killed by a &amp;lt;kill-session&amp;gt;
536 operation.&lt;/text&gt;
537         &lt;/description&gt;
538       &lt;/leaf&gt;
539       &lt;uses name="common-counters"&gt;
540         &lt;description&gt;
541           &lt;text&gt;Global counters, accumulated from all sessions.
542 Zero based with following reset behaviour:
543   - re-initialization of NETCONF server
544   - when max value is reached&lt;/text&gt;
545         &lt;/description&gt;
546       &lt;/uses&gt;
547     &lt;/container&gt;
548   &lt;/container&gt;
549   &lt;rpc name="get-schema"&gt;
550     &lt;description&gt;
551       &lt;text&gt;This operation is used to retrieve a schema from the
552 NETCONF server.
553
554 Positive Response:
555   The NETCONF server returns the requested schema.
556
557 Negative Response:
558   If requested schema does not exist, the &amp;lt;error-tag&amp;gt; is
559   'invalid-value'.
560
561   If more than one schema matches the requested parameters, the
562   &amp;lt;error-tag&amp;gt; is 'operation-failed', and &amp;lt;error-app-tag&amp;gt; is
563   'data-not-unique'.&lt;/text&gt;
564     &lt;/description&gt;
565     &lt;input&gt;
566       &lt;leaf name="identifier"&gt;
567         &lt;type name="string"/&gt;
568         &lt;mandatory value="true"/&gt;
569         &lt;description&gt;
570           &lt;text&gt;Identifier for the schema list entry.&lt;/text&gt;
571         &lt;/description&gt;
572       &lt;/leaf&gt;
573       &lt;leaf name="version"&gt;
574         &lt;type name="string"/&gt;
575         &lt;description&gt;
576           &lt;text&gt;Version of the schema requested.  If this parameter is not
577 present, and more than one version of the schema exists on
578 the server, a 'data-not-unique' error is returned, as
579 described above.&lt;/text&gt;
580         &lt;/description&gt;
581       &lt;/leaf&gt;
582       &lt;leaf name="format"&gt;
583         &lt;type name="identityref"&gt;
584           &lt;base name="schema-format"/&gt;
585         &lt;/type&gt;
586         &lt;description&gt;
587           &lt;text&gt;The data modeling language of the schema.  If this
588 parameter is not present, and more than one formats of
589 the schema exists on the server, a 'data-not-unique' error
590 is returned, as described above.&lt;/text&gt;
591         &lt;/description&gt;
592       &lt;/leaf&gt;
593     &lt;/input&gt;
594     &lt;output&gt;
595       &lt;anyxml name="data"&gt;
596         &lt;description&gt;
597           &lt;text&gt;Contains the schema content.&lt;/text&gt;
598         &lt;/description&gt;
599       &lt;/anyxml&gt;
600     &lt;/output&gt;
601   &lt;/rpc&gt;
602 &lt;/module&gt;
603 </data>
604 </rpc-reply>