/src/frr/yang/ietf/ietf-interfaces.yang.c
Line | Count | Source |
1 | | /* autogenerated by embedmodel.py. DO NOT EDIT */ |
2 | | |
3 | | #include <zebra.h> |
4 | | #include "yang.h" |
5 | | |
6 | | static const char model[] = |
7 | | "module ietf-interfaces {\n" |
8 | | " yang-version 1.1;\n" |
9 | | " namespace \"urn:ietf:params:xml:ns:yang:ietf-interfaces\";\n" |
10 | | " prefix if;\n" |
11 | | "\n" |
12 | | " import ietf-yang-types {\n" |
13 | | " prefix yang;\n" |
14 | | " }\n" |
15 | | "\n" |
16 | | " organization\n" |
17 | | " \"IETF NETMOD (Network Modeling) Working Group\";\n" |
18 | | "\n" |
19 | | " contact\n" |
20 | | " \"WG Web: <https://datatracker.ietf.org/wg/netmod/>\n" |
21 | | " WG List: <mailto:netmod@ietf.org>\n" |
22 | | "\n" |
23 | | " Editor: Martin Bjorklund\n" |
24 | | " <mailto:mbj@tail-f.com>\";\n" |
25 | | "\n" |
26 | | " description\n" |
27 | | " \"This module contains a collection of YANG definitions for\n" |
28 | | " managing network interfaces.\n" |
29 | | "\n" |
30 | | " Copyright (c) 2018 IETF Trust and the persons identified as\n" |
31 | | " authors of the code. All rights reserved.\n" |
32 | | "\n" |
33 | | " Redistribution and use in source and binary forms, with or\n" |
34 | | " without modification, is permitted pursuant to, and subject\n" |
35 | | " to the license terms contained in, the Simplified BSD License\n" |
36 | | " set forth in Section 4.c of the IETF Trust\'s Legal Provisions\n" |
37 | | " Relating to IETF Documents\n" |
38 | | " (https://trustee.ietf.org/license-info).\n" |
39 | | "\n" |
40 | | " This version of this YANG module is part of RFC 8343; see\n" |
41 | | " the RFC itself for full legal notices.\";\n" |
42 | | "\n" |
43 | | " revision 2018-02-20 {\n" |
44 | | " description\n" |
45 | | " \"Updated to support NMDA.\";\n" |
46 | | " reference\n" |
47 | | " \"RFC 8343: A YANG Data Model for Interface Management\";\n" |
48 | | " }\n" |
49 | | "\n" |
50 | | " revision 2014-05-08 {\n" |
51 | | " description\n" |
52 | | " \"Initial revision.\";\n" |
53 | | " reference\n" |
54 | | " \"RFC 7223: A YANG Data Model for Interface Management\";\n" |
55 | | " }\n" |
56 | | "\n" |
57 | | " /*\n" |
58 | | " * Typedefs\n" |
59 | | " */\n" |
60 | | "\n" |
61 | | " typedef interface-ref {\n" |
62 | | " type leafref {\n" |
63 | | " path \"/if:interfaces/if:interface/if:name\";\n" |
64 | | " }\n" |
65 | | " description\n" |
66 | | " \"This type is used by data models that need to reference\n" |
67 | | " interfaces.\";\n" |
68 | | " }\n" |
69 | | "\n" |
70 | | " /*\n" |
71 | | " * Identities\n" |
72 | | " */\n" |
73 | | "\n" |
74 | | " identity interface-type {\n" |
75 | | " description\n" |
76 | | " \"Base identity from which specific interface types are\n" |
77 | | " derived.\";\n" |
78 | | " }\n" |
79 | | "\n" |
80 | | " /*\n" |
81 | | " * Features\n" |
82 | | " */\n" |
83 | | "\n" |
84 | | " feature arbitrary-names {\n" |
85 | | " description\n" |
86 | | " \"This feature indicates that the device allows user-controlled\n" |
87 | | " interfaces to be named arbitrarily.\";\n" |
88 | | " }\n" |
89 | | " feature pre-provisioning {\n" |
90 | | " description\n" |
91 | | " \"This feature indicates that the device supports\n" |
92 | | " pre-provisioning of interface configuration, i.e., it is\n" |
93 | | " possible to configure an interface whose physical interface\n" |
94 | | " hardware is not present on the device.\";\n" |
95 | | " }\n" |
96 | | " feature if-mib {\n" |
97 | | " description\n" |
98 | | " \"This feature indicates that the device implements\n" |
99 | | " the IF-MIB.\";\n" |
100 | | " reference\n" |
101 | | " \"RFC 2863: The Interfaces Group MIB\";\n" |
102 | | " }\n" |
103 | | "\n" |
104 | | " /*\n" |
105 | | " * Data nodes\n" |
106 | | " */\n" |
107 | | "\n" |
108 | | " container interfaces {\n" |
109 | | " description\n" |
110 | | " \"Interface parameters.\";\n" |
111 | | "\n" |
112 | | " list interface {\n" |
113 | | " key \"name\";\n" |
114 | | "\n" |
115 | | " description\n" |
116 | | " \"The list of interfaces on the device.\n" |
117 | | "\n" |
118 | | " The status of an interface is available in this list in the\n" |
119 | | " operational state. If the configuration of a\n" |
120 | | " system-controlled interface cannot be used by the system\n" |
121 | | " (e.g., the interface hardware present does not match the\n" |
122 | | " interface type), then the configuration is not applied to\n" |
123 | | " the system-controlled interface shown in the operational\n" |
124 | | " state. If the configuration of a user-controlled interface\n" |
125 | | " cannot be used by the system, the configured interface is\n" |
126 | | " not instantiated in the operational state.\n" |
127 | | "\n" |
128 | | " System-controlled interfaces created by the system are\n" |
129 | | " always present in this list in the operational state,\n" |
130 | | " whether or not they are configured.\";\n" |
131 | | "\n" |
132 | | " leaf name {\n" |
133 | | " type string;\n" |
134 | | " description\n" |
135 | | " \"The name of the interface.\n" |
136 | | "\n" |
137 | | " A device MAY restrict the allowed values for this leaf,\n" |
138 | | " possibly depending on the type of the interface.\n" |
139 | | " For system-controlled interfaces, this leaf is the\n" |
140 | | " device-specific name of the interface.\n" |
141 | | "\n" |
142 | | " If a client tries to create configuration for a\n" |
143 | | " system-controlled interface that is not present in the\n" |
144 | | " operational state, the server MAY reject the request if\n" |
145 | | " the implementation does not support pre-provisioning of\n" |
146 | | " interfaces or if the name refers to an interface that can\n" |
147 | | " never exist in the system. A Network Configuration\n" |
148 | | " Protocol (NETCONF) server MUST reply with an rpc-error\n" |
149 | | " with the error-tag \'invalid-value\' in this case.\n" |
150 | | "\n" |
151 | | " If the device supports pre-provisioning of interface\n" |
152 | | " configuration, the \'pre-provisioning\' feature is\n" |
153 | | " advertised.\n" |
154 | | "\n" |
155 | | " If the device allows arbitrarily named user-controlled\n" |
156 | | " interfaces, the \'arbitrary-names\' feature is advertised.\n" |
157 | | "\n" |
158 | | " When a configured user-controlled interface is created by\n" |
159 | | " the system, it is instantiated with the same name in the\n" |
160 | | " operational state.\n" |
161 | | "\n" |
162 | | " A server implementation MAY map this leaf to the ifName\n" |
163 | | " MIB object. Such an implementation needs to use some\n" |
164 | | " mechanism to handle the differences in size and characters\n" |
165 | | " allowed between this leaf and ifName. The definition of\n" |
166 | | " such a mechanism is outside the scope of this document.\";\n" |
167 | | " reference\n" |
168 | | " \"RFC 2863: The Interfaces Group MIB - ifName\";\n" |
169 | | " }\n" |
170 | | "\n" |
171 | | " leaf description {\n" |
172 | | " type string;\n" |
173 | | " description\n" |
174 | | " \"A textual description of the interface.\n" |
175 | | "\n" |
176 | | " A server implementation MAY map this leaf to the ifAlias\n" |
177 | | " MIB object. Such an implementation needs to use some\n" |
178 | | " mechanism to handle the differences in size and characters\n" |
179 | | " allowed between this leaf and ifAlias. The definition of\n" |
180 | | " such a mechanism is outside the scope of this document.\n" |
181 | | "\n" |
182 | | " Since ifAlias is defined to be stored in non-volatile\n" |
183 | | " storage, the MIB implementation MUST map ifAlias to the\n" |
184 | | " value of \'description\' in the persistently stored\n" |
185 | | " configuration.\";\n" |
186 | | " reference\n" |
187 | | " \"RFC 2863: The Interfaces Group MIB - ifAlias\";\n" |
188 | | " }\n" |
189 | | "\n" |
190 | | " leaf type {\n" |
191 | | " type identityref {\n" |
192 | | " base interface-type;\n" |
193 | | " }\n" |
194 | | " mandatory true;\n" |
195 | | " description\n" |
196 | | " \"The type of the interface.\n" |
197 | | "\n" |
198 | | " When an interface entry is created, a server MAY\n" |
199 | | " initialize the type leaf with a valid value, e.g., if it\n" |
200 | | " is possible to derive the type from the name of the\n" |
201 | | " interface.\n" |
202 | | "\n" |
203 | | " If a client tries to set the type of an interface to a\n" |
204 | | " value that can never be used by the system, e.g., if the\n" |
205 | | " type is not supported or if the type does not match the\n" |
206 | | " name of the interface, the server MUST reject the request.\n" |
207 | | " A NETCONF server MUST reply with an rpc-error with the\n" |
208 | | " error-tag \'invalid-value\' in this case.\";\n" |
209 | | " reference\n" |
210 | | " \"RFC 2863: The Interfaces Group MIB - ifType\";\n" |
211 | | " }\n" |
212 | | "\n" |
213 | | " leaf enabled {\n" |
214 | | " type boolean;\n" |
215 | | " default \"true\";\n" |
216 | | " description\n" |
217 | | " \"This leaf contains the configured, desired state of the\n" |
218 | | " interface.\n" |
219 | | "\n" |
220 | | " Systems that implement the IF-MIB use the value of this\n" |
221 | | " leaf in the intended configuration to set\n" |
222 | | " IF-MIB.ifAdminStatus to \'up\' or \'down\' after an ifEntry\n" |
223 | | " has been initialized, as described in RFC 2863.\n" |
224 | | "\n" |
225 | | " Changes in this leaf in the intended configuration are\n" |
226 | | " reflected in ifAdminStatus.\";\n" |
227 | | " reference\n" |
228 | | " \"RFC 2863: The Interfaces Group MIB - ifAdminStatus\";\n" |
229 | | " }\n" |
230 | | "\n" |
231 | | " leaf link-up-down-trap-enable {\n" |
232 | | " if-feature if-mib;\n" |
233 | | " type enumeration {\n" |
234 | | " enum enabled {\n" |
235 | | " value 1;\n" |
236 | | " description\n" |
237 | | " \"The device will generate linkUp/linkDown SNMP\n" |
238 | | " notifications for this interface.\";\n" |
239 | | " }\n" |
240 | | " enum disabled {\n" |
241 | | " value 2;\n" |
242 | | " description\n" |
243 | | " \"The device will not generate linkUp/linkDown SNMP\n" |
244 | | " notifications for this interface.\";\n" |
245 | | " }\n" |
246 | | " }\n" |
247 | | " description\n" |
248 | | " \"Controls whether linkUp/linkDown SNMP notifications\n" |
249 | | " should be generated for this interface.\n" |
250 | | "\n" |
251 | | " If this node is not configured, the value \'enabled\' is\n" |
252 | | " operationally used by the server for interfaces that do\n" |
253 | | " not operate on top of any other interface (i.e., there are\n" |
254 | | " no \'lower-layer-if\' entries), and \'disabled\' otherwise.\";\n" |
255 | | " reference\n" |
256 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
257 | | " ifLinkUpDownTrapEnable\";\n" |
258 | | " }\n" |
259 | | "\n" |
260 | | " leaf admin-status {\n" |
261 | | " if-feature if-mib;\n" |
262 | | " type enumeration {\n" |
263 | | " enum up {\n" |
264 | | " value 1;\n" |
265 | | " description\n" |
266 | | " \"Ready to pass packets.\";\n" |
267 | | " }\n" |
268 | | " enum down {\n" |
269 | | " value 2;\n" |
270 | | " description\n" |
271 | | " \"Not ready to pass packets and not in some test mode.\";\n" |
272 | | " }\n" |
273 | | " enum testing {\n" |
274 | | " value 3;\n" |
275 | | " description\n" |
276 | | " \"In some test mode.\";\n" |
277 | | " }\n" |
278 | | " }\n" |
279 | | " config false;\n" |
280 | | " mandatory true;\n" |
281 | | " description\n" |
282 | | " \"The desired state of the interface.\n" |
283 | | "\n" |
284 | | " This leaf has the same read semantics as ifAdminStatus.\";\n" |
285 | | " reference\n" |
286 | | " \"RFC 2863: The Interfaces Group MIB - ifAdminStatus\";\n" |
287 | | " }\n" |
288 | | "\n" |
289 | | " leaf oper-status {\n" |
290 | | " type enumeration {\n" |
291 | | " enum up {\n" |
292 | | " value 1;\n" |
293 | | " description\n" |
294 | | " \"Ready to pass packets.\";\n" |
295 | | " }\n" |
296 | | " enum down {\n" |
297 | | " value 2;\n" |
298 | | "\n" |
299 | | " description\n" |
300 | | " \"The interface does not pass any packets.\";\n" |
301 | | " }\n" |
302 | | " enum testing {\n" |
303 | | " value 3;\n" |
304 | | " description\n" |
305 | | " \"In some test mode. No operational packets can\n" |
306 | | " be passed.\";\n" |
307 | | " }\n" |
308 | | " enum unknown {\n" |
309 | | " value 4;\n" |
310 | | " description\n" |
311 | | " \"Status cannot be determined for some reason.\";\n" |
312 | | " }\n" |
313 | | " enum dormant {\n" |
314 | | " value 5;\n" |
315 | | " description\n" |
316 | | " \"Waiting for some external event.\";\n" |
317 | | " }\n" |
318 | | " enum not-present {\n" |
319 | | " value 6;\n" |
320 | | " description\n" |
321 | | " \"Some component (typically hardware) is missing.\";\n" |
322 | | " }\n" |
323 | | " enum lower-layer-down {\n" |
324 | | " value 7;\n" |
325 | | " description\n" |
326 | | " \"Down due to state of lower-layer interface(s).\";\n" |
327 | | " }\n" |
328 | | " }\n" |
329 | | " config false;\n" |
330 | | " mandatory true;\n" |
331 | | " description\n" |
332 | | " \"The current operational state of the interface.\n" |
333 | | "\n" |
334 | | " This leaf has the same semantics as ifOperStatus.\";\n" |
335 | | " reference\n" |
336 | | " \"RFC 2863: The Interfaces Group MIB - ifOperStatus\";\n" |
337 | | " }\n" |
338 | | "\n" |
339 | | " leaf last-change {\n" |
340 | | " type yang:date-and-time;\n" |
341 | | " config false;\n" |
342 | | " description\n" |
343 | | " \"The time the interface entered its current operational\n" |
344 | | " state. If the current state was entered prior to the\n" |
345 | | " last re-initialization of the local network management\n" |
346 | | " subsystem, then this node is not present.\";\n" |
347 | | " reference\n" |
348 | | " \"RFC 2863: The Interfaces Group MIB - ifLastChange\";\n" |
349 | | " }\n" |
350 | | "\n" |
351 | | " leaf if-index {\n" |
352 | | " if-feature if-mib;\n" |
353 | | " type int32 {\n" |
354 | | " range \"1..2147483647\";\n" |
355 | | " }\n" |
356 | | " config false;\n" |
357 | | " mandatory true;\n" |
358 | | " description\n" |
359 | | " \"The ifIndex value for the ifEntry represented by this\n" |
360 | | " interface.\";\n" |
361 | | " reference\n" |
362 | | " \"RFC 2863: The Interfaces Group MIB - ifIndex\";\n" |
363 | | " }\n" |
364 | | "\n" |
365 | | " leaf phys-address {\n" |
366 | | " type yang:phys-address;\n" |
367 | | " config false;\n" |
368 | | " description\n" |
369 | | " \"The interface\'s address at its protocol sub-layer. For\n" |
370 | | " example, for an 802.x interface, this object normally\n" |
371 | | " contains a Media Access Control (MAC) address. The\n" |
372 | | " interface\'s media-specific modules must define the bit\n" |
373 | | " and byte ordering and the format of the value of this\n" |
374 | | " object. For interfaces that do not have such an address\n" |
375 | | " (e.g., a serial line), this node is not present.\";\n" |
376 | | " reference\n" |
377 | | " \"RFC 2863: The Interfaces Group MIB - ifPhysAddress\";\n" |
378 | | " }\n" |
379 | | "\n" |
380 | | " leaf-list higher-layer-if {\n" |
381 | | " type interface-ref;\n" |
382 | | " config false;\n" |
383 | | " description\n" |
384 | | " \"A list of references to interfaces layered on top of this\n" |
385 | | " interface.\";\n" |
386 | | " reference\n" |
387 | | " \"RFC 2863: The Interfaces Group MIB - ifStackTable\";\n" |
388 | | " }\n" |
389 | | "\n" |
390 | | " leaf-list lower-layer-if {\n" |
391 | | " type interface-ref;\n" |
392 | | " config false;\n" |
393 | | "\n" |
394 | | " description\n" |
395 | | " \"A list of references to interfaces layered underneath this\n" |
396 | | " interface.\";\n" |
397 | | " reference\n" |
398 | | " \"RFC 2863: The Interfaces Group MIB - ifStackTable\";\n" |
399 | | " }\n" |
400 | | "\n" |
401 | | " leaf speed {\n" |
402 | | " type yang:gauge64;\n" |
403 | | " units \"bits/second\";\n" |
404 | | " config false;\n" |
405 | | " description\n" |
406 | | " \"An estimate of the interface\'s current bandwidth in bits\n" |
407 | | " per second. For interfaces that do not vary in\n" |
408 | | " bandwidth or for those where no accurate estimation can\n" |
409 | | " be made, this node should contain the nominal bandwidth.\n" |
410 | | " For interfaces that have no concept of bandwidth, this\n" |
411 | | " node is not present.\";\n" |
412 | | " reference\n" |
413 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
414 | | " ifSpeed, ifHighSpeed\";\n" |
415 | | " }\n" |
416 | | "\n" |
417 | | " container statistics {\n" |
418 | | " config false;\n" |
419 | | " description\n" |
420 | | " \"A collection of interface-related statistics objects.\";\n" |
421 | | "\n" |
422 | | " leaf discontinuity-time {\n" |
423 | | " type yang:date-and-time;\n" |
424 | | " mandatory true;\n" |
425 | | " description\n" |
426 | | " \"The time on the most recent occasion at which any one or\n" |
427 | | " more of this interface\'s counters suffered a\n" |
428 | | " discontinuity. If no such discontinuities have occurred\n" |
429 | | " since the last re-initialization of the local management\n" |
430 | | " subsystem, then this node contains the time the local\n" |
431 | | " management subsystem re-initialized itself.\";\n" |
432 | | " }\n" |
433 | | "\n" |
434 | | " leaf in-octets {\n" |
435 | | " type yang:counter64;\n" |
436 | | " description\n" |
437 | | " \"The total number of octets received on the interface,\n" |
438 | | " including framing characters.\n" |
439 | | "\n" |
440 | | " Discontinuities in the value of this counter can occur\n" |
441 | | " at re-initialization of the management system and at\n" |
442 | | " other times as indicated by the value of\n" |
443 | | " \'discontinuity-time\'.\";\n" |
444 | | " reference\n" |
445 | | " \"RFC 2863: The Interfaces Group MIB - ifHCInOctets\";\n" |
446 | | " }\n" |
447 | | "\n" |
448 | | " leaf in-unicast-pkts {\n" |
449 | | " type yang:counter64;\n" |
450 | | " description\n" |
451 | | " \"The number of packets, delivered by this sub-layer to a\n" |
452 | | " higher (sub-)layer, that were not addressed to a\n" |
453 | | " multicast or broadcast address at this sub-layer.\n" |
454 | | "\n" |
455 | | " Discontinuities in the value of this counter can occur\n" |
456 | | " at re-initialization of the management system and at\n" |
457 | | " other times as indicated by the value of\n" |
458 | | " \'discontinuity-time\'.\";\n" |
459 | | " reference\n" |
460 | | " \"RFC 2863: The Interfaces Group MIB - ifHCInUcastPkts\";\n" |
461 | | " }\n" |
462 | | "\n" |
463 | | " leaf in-broadcast-pkts {\n" |
464 | | " type yang:counter64;\n" |
465 | | " description\n" |
466 | | " \"The number of packets, delivered by this sub-layer to a\n" |
467 | | " higher (sub-)layer, that were addressed to a broadcast\n" |
468 | | " address at this sub-layer.\n" |
469 | | "\n" |
470 | | " Discontinuities in the value of this counter can occur\n" |
471 | | " at re-initialization of the management system and at\n" |
472 | | " other times as indicated by the value of\n" |
473 | | " \'discontinuity-time\'.\";\n" |
474 | | " reference\n" |
475 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
476 | | " ifHCInBroadcastPkts\";\n" |
477 | | " }\n" |
478 | | "\n" |
479 | | " leaf in-multicast-pkts {\n" |
480 | | " type yang:counter64;\n" |
481 | | " description\n" |
482 | | " \"The number of packets, delivered by this sub-layer to a\n" |
483 | | " higher (sub-)layer, that were addressed to a multicast\n" |
484 | | " address at this sub-layer. For a MAC-layer protocol,\n" |
485 | | " this includes both Group and Functional addresses.\n" |
486 | | "\n" |
487 | | " Discontinuities in the value of this counter can occur\n" |
488 | | " at re-initialization of the management system and at\n" |
489 | | " other times as indicated by the value of\n" |
490 | | " \'discontinuity-time\'.\";\n" |
491 | | " reference\n" |
492 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
493 | | " ifHCInMulticastPkts\";\n" |
494 | | " }\n" |
495 | | "\n" |
496 | | " leaf in-discards {\n" |
497 | | " type yang:counter32;\n" |
498 | | " description\n" |
499 | | " \"The number of inbound packets that were chosen to be\n" |
500 | | " discarded even though no errors had been detected to\n" |
501 | | " prevent their being deliverable to a higher-layer\n" |
502 | | " protocol. One possible reason for discarding such a\n" |
503 | | " packet could be to free up buffer space.\n" |
504 | | "\n" |
505 | | " Discontinuities in the value of this counter can occur\n" |
506 | | " at re-initialization of the management system and at\n" |
507 | | " other times as indicated by the value of\n" |
508 | | " \'discontinuity-time\'.\";\n" |
509 | | " reference\n" |
510 | | " \"RFC 2863: The Interfaces Group MIB - ifInDiscards\";\n" |
511 | | " }\n" |
512 | | "\n" |
513 | | " leaf in-errors {\n" |
514 | | " type yang:counter32;\n" |
515 | | " description\n" |
516 | | " \"For packet-oriented interfaces, the number of inbound\n" |
517 | | " packets that contained errors preventing them from being\n" |
518 | | " deliverable to a higher-layer protocol. For character-\n" |
519 | | " oriented or fixed-length interfaces, the number of\n" |
520 | | " inbound transmission units that contained errors\n" |
521 | | " preventing them from being deliverable to a higher-layer\n" |
522 | | " protocol.\n" |
523 | | "\n" |
524 | | " Discontinuities in the value of this counter can occur\n" |
525 | | " at re-initialization of the management system and at\n" |
526 | | " other times as indicated by the value of\n" |
527 | | " \'discontinuity-time\'.\";\n" |
528 | | " reference\n" |
529 | | " \"RFC 2863: The Interfaces Group MIB - ifInErrors\";\n" |
530 | | " }\n" |
531 | | "\n" |
532 | | " leaf in-unknown-protos {\n" |
533 | | " type yang:counter32;\n" |
534 | | "\n" |
535 | | " description\n" |
536 | | " \"For packet-oriented interfaces, the number of packets\n" |
537 | | " received via the interface that were discarded because\n" |
538 | | " of an unknown or unsupported protocol. For\n" |
539 | | " character-oriented or fixed-length interfaces that\n" |
540 | | " support protocol multiplexing, the number of\n" |
541 | | " transmission units received via the interface that were\n" |
542 | | " discarded because of an unknown or unsupported protocol.\n" |
543 | | " For any interface that does not support protocol\n" |
544 | | " multiplexing, this counter is not present.\n" |
545 | | "\n" |
546 | | " Discontinuities in the value of this counter can occur\n" |
547 | | " at re-initialization of the management system and at\n" |
548 | | " other times as indicated by the value of\n" |
549 | | " \'discontinuity-time\'.\";\n" |
550 | | " reference\n" |
551 | | " \"RFC 2863: The Interfaces Group MIB - ifInUnknownProtos\";\n" |
552 | | " }\n" |
553 | | "\n" |
554 | | " leaf out-octets {\n" |
555 | | " type yang:counter64;\n" |
556 | | " description\n" |
557 | | " \"The total number of octets transmitted out of the\n" |
558 | | " interface, including framing characters.\n" |
559 | | "\n" |
560 | | " Discontinuities in the value of this counter can occur\n" |
561 | | " at re-initialization of the management system and at\n" |
562 | | " other times as indicated by the value of\n" |
563 | | " \'discontinuity-time\'.\";\n" |
564 | | " reference\n" |
565 | | " \"RFC 2863: The Interfaces Group MIB - ifHCOutOctets\";\n" |
566 | | " }\n" |
567 | | "\n" |
568 | | " leaf out-unicast-pkts {\n" |
569 | | " type yang:counter64;\n" |
570 | | " description\n" |
571 | | " \"The total number of packets that higher-level protocols\n" |
572 | | " requested be transmitted and that were not addressed\n" |
573 | | " to a multicast or broadcast address at this sub-layer,\n" |
574 | | " including those that were discarded or not sent.\n" |
575 | | "\n" |
576 | | " Discontinuities in the value of this counter can occur\n" |
577 | | " at re-initialization of the management system and at\n" |
578 | | " other times as indicated by the value of\n" |
579 | | " \'discontinuity-time\'.\";\n" |
580 | | " reference\n" |
581 | | " \"RFC 2863: The Interfaces Group MIB - ifHCOutUcastPkts\";\n" |
582 | | " }\n" |
583 | | "\n" |
584 | | " leaf out-broadcast-pkts {\n" |
585 | | " type yang:counter64;\n" |
586 | | " description\n" |
587 | | " \"The total number of packets that higher-level protocols\n" |
588 | | " requested be transmitted and that were addressed to a\n" |
589 | | " broadcast address at this sub-layer, including those\n" |
590 | | " that were discarded or not sent.\n" |
591 | | "\n" |
592 | | " Discontinuities in the value of this counter can occur\n" |
593 | | " at re-initialization of the management system and at\n" |
594 | | " other times as indicated by the value of\n" |
595 | | " \'discontinuity-time\'.\";\n" |
596 | | " reference\n" |
597 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
598 | | " ifHCOutBroadcastPkts\";\n" |
599 | | " }\n" |
600 | | "\n" |
601 | | " leaf out-multicast-pkts {\n" |
602 | | " type yang:counter64;\n" |
603 | | " description\n" |
604 | | " \"The total number of packets that higher-level protocols\n" |
605 | | " requested be transmitted and that were addressed to a\n" |
606 | | " multicast address at this sub-layer, including those\n" |
607 | | " that were discarded or not sent. For a MAC-layer\n" |
608 | | " protocol, this includes both Group and Functional\n" |
609 | | " addresses.\n" |
610 | | "\n" |
611 | | " Discontinuities in the value of this counter can occur\n" |
612 | | " at re-initialization of the management system and at\n" |
613 | | " other times as indicated by the value of\n" |
614 | | " \'discontinuity-time\'.\";\n" |
615 | | " reference\n" |
616 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
617 | | " ifHCOutMulticastPkts\";\n" |
618 | | " }\n" |
619 | | "\n" |
620 | | " leaf out-discards {\n" |
621 | | " type yang:counter32;\n" |
622 | | " description\n" |
623 | | " \"The number of outbound packets that were chosen to be\n" |
624 | | " discarded even though no errors had been detected to\n" |
625 | | " prevent their being transmitted. One possible reason\n" |
626 | | " for discarding such a packet could be to free up buffer\n" |
627 | | " space.\n" |
628 | | "\n" |
629 | | " Discontinuities in the value of this counter can occur\n" |
630 | | " at re-initialization of the management system and at\n" |
631 | | " other times as indicated by the value of\n" |
632 | | " \'discontinuity-time\'.\";\n" |
633 | | " reference\n" |
634 | | " \"RFC 2863: The Interfaces Group MIB - ifOutDiscards\";\n" |
635 | | " }\n" |
636 | | "\n" |
637 | | " leaf out-errors {\n" |
638 | | " type yang:counter32;\n" |
639 | | " description\n" |
640 | | " \"For packet-oriented interfaces, the number of outbound\n" |
641 | | " packets that could not be transmitted because of errors.\n" |
642 | | " For character-oriented or fixed-length interfaces, the\n" |
643 | | " number of outbound transmission units that could not be\n" |
644 | | " transmitted because of errors.\n" |
645 | | "\n" |
646 | | " Discontinuities in the value of this counter can occur\n" |
647 | | " at re-initialization of the management system and at\n" |
648 | | " other times as indicated by the value of\n" |
649 | | " \'discontinuity-time\'.\";\n" |
650 | | " reference\n" |
651 | | " \"RFC 2863: The Interfaces Group MIB - ifOutErrors\";\n" |
652 | | " }\n" |
653 | | " }\n" |
654 | | "\n" |
655 | | " }\n" |
656 | | " }\n" |
657 | | "\n" |
658 | | " /*\n" |
659 | | " * Legacy typedefs\n" |
660 | | " */\n" |
661 | | "\n" |
662 | | " typedef interface-state-ref {\n" |
663 | | " type leafref {\n" |
664 | | " path \"/if:interfaces-state/if:interface/if:name\";\n" |
665 | | " }\n" |
666 | | " status deprecated;\n" |
667 | | " description\n" |
668 | | " \"This type is used by data models that need to reference\n" |
669 | | " the operationally present interfaces.\";\n" |
670 | | " }\n" |
671 | | "\n" |
672 | | " /*\n" |
673 | | " * Legacy operational state data nodes\n" |
674 | | " */\n" |
675 | | "\n" |
676 | | " container interfaces-state {\n" |
677 | | " config false;\n" |
678 | | " status deprecated;\n" |
679 | | " description\n" |
680 | | " \"Data nodes for the operational state of interfaces.\";\n" |
681 | | "\n" |
682 | | " list interface {\n" |
683 | | " key \"name\";\n" |
684 | | " status deprecated;\n" |
685 | | "\n" |
686 | | " description\n" |
687 | | " \"The list of interfaces on the device.\n" |
688 | | "\n" |
689 | | " System-controlled interfaces created by the system are\n" |
690 | | " always present in this list, whether or not they are\n" |
691 | | " configured.\";\n" |
692 | | "\n" |
693 | | " leaf name {\n" |
694 | | " type string;\n" |
695 | | " status deprecated;\n" |
696 | | " description\n" |
697 | | " \"The name of the interface.\n" |
698 | | "\n" |
699 | | " A server implementation MAY map this leaf to the ifName\n" |
700 | | " MIB object. Such an implementation needs to use some\n" |
701 | | " mechanism to handle the differences in size and characters\n" |
702 | | " allowed between this leaf and ifName. The definition of\n" |
703 | | " such a mechanism is outside the scope of this document.\";\n" |
704 | | " reference\n" |
705 | | " \"RFC 2863: The Interfaces Group MIB - ifName\";\n" |
706 | | " }\n" |
707 | | "\n" |
708 | | " leaf type {\n" |
709 | | " type identityref {\n" |
710 | | " base interface-type;\n" |
711 | | " }\n" |
712 | | " mandatory true;\n" |
713 | | " status deprecated;\n" |
714 | | " description\n" |
715 | | " \"The type of the interface.\";\n" |
716 | | " reference\n" |
717 | | " \"RFC 2863: The Interfaces Group MIB - ifType\";\n" |
718 | | " }\n" |
719 | | "\n" |
720 | | " leaf admin-status {\n" |
721 | | " if-feature if-mib;\n" |
722 | | " type enumeration {\n" |
723 | | " enum up {\n" |
724 | | " value 1;\n" |
725 | | " description\n" |
726 | | " \"Ready to pass packets.\";\n" |
727 | | " }\n" |
728 | | " enum down {\n" |
729 | | " value 2;\n" |
730 | | " description\n" |
731 | | " \"Not ready to pass packets and not in some test mode.\";\n" |
732 | | " }\n" |
733 | | " enum testing {\n" |
734 | | " value 3;\n" |
735 | | " description\n" |
736 | | " \"In some test mode.\";\n" |
737 | | " }\n" |
738 | | " }\n" |
739 | | " mandatory true;\n" |
740 | | " status deprecated;\n" |
741 | | " description\n" |
742 | | " \"The desired state of the interface.\n" |
743 | | "\n" |
744 | | " This leaf has the same read semantics as ifAdminStatus.\";\n" |
745 | | " reference\n" |
746 | | " \"RFC 2863: The Interfaces Group MIB - ifAdminStatus\";\n" |
747 | | " }\n" |
748 | | "\n" |
749 | | " leaf oper-status {\n" |
750 | | " type enumeration {\n" |
751 | | " enum up {\n" |
752 | | " value 1;\n" |
753 | | " description\n" |
754 | | " \"Ready to pass packets.\";\n" |
755 | | " }\n" |
756 | | " enum down {\n" |
757 | | " value 2;\n" |
758 | | " description\n" |
759 | | " \"The interface does not pass any packets.\";\n" |
760 | | " }\n" |
761 | | " enum testing {\n" |
762 | | " value 3;\n" |
763 | | " description\n" |
764 | | " \"In some test mode. No operational packets can\n" |
765 | | " be passed.\";\n" |
766 | | " }\n" |
767 | | " enum unknown {\n" |
768 | | " value 4;\n" |
769 | | " description\n" |
770 | | " \"Status cannot be determined for some reason.\";\n" |
771 | | " }\n" |
772 | | " enum dormant {\n" |
773 | | " value 5;\n" |
774 | | " description\n" |
775 | | " \"Waiting for some external event.\";\n" |
776 | | " }\n" |
777 | | " enum not-present {\n" |
778 | | " value 6;\n" |
779 | | " description\n" |
780 | | " \"Some component (typically hardware) is missing.\";\n" |
781 | | " }\n" |
782 | | " enum lower-layer-down {\n" |
783 | | " value 7;\n" |
784 | | " description\n" |
785 | | " \"Down due to state of lower-layer interface(s).\";\n" |
786 | | " }\n" |
787 | | " }\n" |
788 | | " mandatory true;\n" |
789 | | " status deprecated;\n" |
790 | | " description\n" |
791 | | " \"The current operational state of the interface.\n" |
792 | | "\n" |
793 | | " This leaf has the same semantics as ifOperStatus.\";\n" |
794 | | " reference\n" |
795 | | " \"RFC 2863: The Interfaces Group MIB - ifOperStatus\";\n" |
796 | | " }\n" |
797 | | "\n" |
798 | | " leaf last-change {\n" |
799 | | " type yang:date-and-time;\n" |
800 | | " status deprecated;\n" |
801 | | " description\n" |
802 | | " \"The time the interface entered its current operational\n" |
803 | | " state. If the current state was entered prior to the\n" |
804 | | " last re-initialization of the local network management\n" |
805 | | " subsystem, then this node is not present.\";\n" |
806 | | " reference\n" |
807 | | " \"RFC 2863: The Interfaces Group MIB - ifLastChange\";\n" |
808 | | " }\n" |
809 | | "\n" |
810 | | " leaf if-index {\n" |
811 | | " if-feature if-mib;\n" |
812 | | " type int32 {\n" |
813 | | " range \"1..2147483647\";\n" |
814 | | " }\n" |
815 | | " mandatory true;\n" |
816 | | " status deprecated;\n" |
817 | | " description\n" |
818 | | " \"The ifIndex value for the ifEntry represented by this\n" |
819 | | " interface.\";\n" |
820 | | "\n" |
821 | | " reference\n" |
822 | | " \"RFC 2863: The Interfaces Group MIB - ifIndex\";\n" |
823 | | " }\n" |
824 | | "\n" |
825 | | " leaf phys-address {\n" |
826 | | " type yang:phys-address;\n" |
827 | | " status deprecated;\n" |
828 | | " description\n" |
829 | | " \"The interface\'s address at its protocol sub-layer. For\n" |
830 | | " example, for an 802.x interface, this object normally\n" |
831 | | " contains a Media Access Control (MAC) address. The\n" |
832 | | " interface\'s media-specific modules must define the bit\n" |
833 | | " and byte ordering and the format of the value of this\n" |
834 | | " object. For interfaces that do not have such an address\n" |
835 | | " (e.g., a serial line), this node is not present.\";\n" |
836 | | " reference\n" |
837 | | " \"RFC 2863: The Interfaces Group MIB - ifPhysAddress\";\n" |
838 | | " }\n" |
839 | | "\n" |
840 | | " leaf-list higher-layer-if {\n" |
841 | | " type interface-state-ref;\n" |
842 | | " status deprecated;\n" |
843 | | " description\n" |
844 | | " \"A list of references to interfaces layered on top of this\n" |
845 | | " interface.\";\n" |
846 | | " reference\n" |
847 | | " \"RFC 2863: The Interfaces Group MIB - ifStackTable\";\n" |
848 | | " }\n" |
849 | | "\n" |
850 | | " leaf-list lower-layer-if {\n" |
851 | | " type interface-state-ref;\n" |
852 | | " status deprecated;\n" |
853 | | " description\n" |
854 | | " \"A list of references to interfaces layered underneath this\n" |
855 | | " interface.\";\n" |
856 | | " reference\n" |
857 | | " \"RFC 2863: The Interfaces Group MIB - ifStackTable\";\n" |
858 | | " }\n" |
859 | | "\n" |
860 | | " leaf speed {\n" |
861 | | " type yang:gauge64;\n" |
862 | | " units \"bits/second\";\n" |
863 | | " status deprecated;\n" |
864 | | " description\n" |
865 | | " \"An estimate of the interface\'s current bandwidth in bits\n" |
866 | | " per second. For interfaces that do not vary in\n" |
867 | | " bandwidth or for those where no accurate estimation can\n" |
868 | | "\n" |
869 | | " be made, this node should contain the nominal bandwidth.\n" |
870 | | " For interfaces that have no concept of bandwidth, this\n" |
871 | | " node is not present.\";\n" |
872 | | " reference\n" |
873 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
874 | | " ifSpeed, ifHighSpeed\";\n" |
875 | | " }\n" |
876 | | "\n" |
877 | | " container statistics {\n" |
878 | | " status deprecated;\n" |
879 | | " description\n" |
880 | | " \"A collection of interface-related statistics objects.\";\n" |
881 | | "\n" |
882 | | " leaf discontinuity-time {\n" |
883 | | " type yang:date-and-time;\n" |
884 | | " mandatory true;\n" |
885 | | " status deprecated;\n" |
886 | | " description\n" |
887 | | " \"The time on the most recent occasion at which any one or\n" |
888 | | " more of this interface\'s counters suffered a\n" |
889 | | " discontinuity. If no such discontinuities have occurred\n" |
890 | | " since the last re-initialization of the local management\n" |
891 | | " subsystem, then this node contains the time the local\n" |
892 | | " management subsystem re-initialized itself.\";\n" |
893 | | " }\n" |
894 | | "\n" |
895 | | " leaf in-octets {\n" |
896 | | " type yang:counter64;\n" |
897 | | " status deprecated;\n" |
898 | | " description\n" |
899 | | " \"The total number of octets received on the interface,\n" |
900 | | " including framing characters.\n" |
901 | | "\n" |
902 | | " Discontinuities in the value of this counter can occur\n" |
903 | | " at re-initialization of the management system and at\n" |
904 | | " other times as indicated by the value of\n" |
905 | | " \'discontinuity-time\'.\";\n" |
906 | | " reference\n" |
907 | | " \"RFC 2863: The Interfaces Group MIB - ifHCInOctets\";\n" |
908 | | " }\n" |
909 | | "\n" |
910 | | " leaf in-unicast-pkts {\n" |
911 | | " type yang:counter64;\n" |
912 | | " status deprecated;\n" |
913 | | " description\n" |
914 | | " \"The number of packets, delivered by this sub-layer to a\n" |
915 | | " higher (sub-)layer, that were not addressed to a\n" |
916 | | " multicast or broadcast address at this sub-layer.\n" |
917 | | " Discontinuities in the value of this counter can occur\n" |
918 | | " at re-initialization of the management system and at\n" |
919 | | " other times as indicated by the value of\n" |
920 | | " \'discontinuity-time\'.\";\n" |
921 | | " reference\n" |
922 | | " \"RFC 2863: The Interfaces Group MIB - ifHCInUcastPkts\";\n" |
923 | | " }\n" |
924 | | "\n" |
925 | | " leaf in-broadcast-pkts {\n" |
926 | | " type yang:counter64;\n" |
927 | | " status deprecated;\n" |
928 | | " description\n" |
929 | | " \"The number of packets, delivered by this sub-layer to a\n" |
930 | | " higher (sub-)layer, that were addressed to a broadcast\n" |
931 | | " address at this sub-layer.\n" |
932 | | "\n" |
933 | | " Discontinuities in the value of this counter can occur\n" |
934 | | " at re-initialization of the management system and at\n" |
935 | | " other times as indicated by the value of\n" |
936 | | " \'discontinuity-time\'.\";\n" |
937 | | " reference\n" |
938 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
939 | | " ifHCInBroadcastPkts\";\n" |
940 | | " }\n" |
941 | | "\n" |
942 | | " leaf in-multicast-pkts {\n" |
943 | | " type yang:counter64;\n" |
944 | | " status deprecated;\n" |
945 | | " description\n" |
946 | | " \"The number of packets, delivered by this sub-layer to a\n" |
947 | | " higher (sub-)layer, that were addressed to a multicast\n" |
948 | | " address at this sub-layer. For a MAC-layer protocol,\n" |
949 | | " this includes both Group and Functional addresses.\n" |
950 | | "\n" |
951 | | " Discontinuities in the value of this counter can occur\n" |
952 | | " at re-initialization of the management system and at\n" |
953 | | " other times as indicated by the value of\n" |
954 | | " \'discontinuity-time\'.\";\n" |
955 | | " reference\n" |
956 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
957 | | " ifHCInMulticastPkts\";\n" |
958 | | " }\n" |
959 | | "\n" |
960 | | " leaf in-discards {\n" |
961 | | " type yang:counter32;\n" |
962 | | " status deprecated;\n" |
963 | | "\n" |
964 | | " description\n" |
965 | | " \"The number of inbound packets that were chosen to be\n" |
966 | | " discarded even though no errors had been detected to\n" |
967 | | " prevent their being deliverable to a higher-layer\n" |
968 | | " protocol. One possible reason for discarding such a\n" |
969 | | " packet could be to free up buffer space.\n" |
970 | | "\n" |
971 | | " Discontinuities in the value of this counter can occur\n" |
972 | | " at re-initialization of the management system and at\n" |
973 | | " other times as indicated by the value of\n" |
974 | | " \'discontinuity-time\'.\";\n" |
975 | | " reference\n" |
976 | | " \"RFC 2863: The Interfaces Group MIB - ifInDiscards\";\n" |
977 | | " }\n" |
978 | | "\n" |
979 | | " leaf in-errors {\n" |
980 | | " type yang:counter32;\n" |
981 | | " status deprecated;\n" |
982 | | " description\n" |
983 | | " \"For packet-oriented interfaces, the number of inbound\n" |
984 | | " packets that contained errors preventing them from being\n" |
985 | | " deliverable to a higher-layer protocol. For character-\n" |
986 | | " oriented or fixed-length interfaces, the number of\n" |
987 | | " inbound transmission units that contained errors\n" |
988 | | " preventing them from being deliverable to a higher-layer\n" |
989 | | " protocol.\n" |
990 | | "\n" |
991 | | " Discontinuities in the value of this counter can occur\n" |
992 | | " at re-initialization of the management system and at\n" |
993 | | " other times as indicated by the value of\n" |
994 | | " \'discontinuity-time\'.\";\n" |
995 | | " reference\n" |
996 | | " \"RFC 2863: The Interfaces Group MIB - ifInErrors\";\n" |
997 | | " }\n" |
998 | | "\n" |
999 | | " leaf in-unknown-protos {\n" |
1000 | | " type yang:counter32;\n" |
1001 | | " status deprecated;\n" |
1002 | | " description\n" |
1003 | | " \"For packet-oriented interfaces, the number of packets\n" |
1004 | | " received via the interface that were discarded because\n" |
1005 | | " of an unknown or unsupported protocol. For\n" |
1006 | | " character-oriented or fixed-length interfaces that\n" |
1007 | | " support protocol multiplexing, the number of\n" |
1008 | | " transmission units received via the interface that were\n" |
1009 | | " discarded because of an unknown or unsupported protocol.\n" |
1010 | | " For any interface that does not support protocol\n" |
1011 | | " multiplexing, this counter is not present.\n" |
1012 | | " Discontinuities in the value of this counter can occur\n" |
1013 | | " at re-initialization of the management system and at\n" |
1014 | | " other times as indicated by the value of\n" |
1015 | | " \'discontinuity-time\'.\";\n" |
1016 | | " reference\n" |
1017 | | " \"RFC 2863: The Interfaces Group MIB - ifInUnknownProtos\";\n" |
1018 | | " }\n" |
1019 | | "\n" |
1020 | | " leaf out-octets {\n" |
1021 | | " type yang:counter64;\n" |
1022 | | " status deprecated;\n" |
1023 | | " description\n" |
1024 | | " \"The total number of octets transmitted out of the\n" |
1025 | | " interface, including framing characters.\n" |
1026 | | "\n" |
1027 | | " Discontinuities in the value of this counter can occur\n" |
1028 | | " at re-initialization of the management system and at\n" |
1029 | | " other times as indicated by the value of\n" |
1030 | | " \'discontinuity-time\'.\";\n" |
1031 | | " reference\n" |
1032 | | " \"RFC 2863: The Interfaces Group MIB - ifHCOutOctets\";\n" |
1033 | | " }\n" |
1034 | | "\n" |
1035 | | " leaf out-unicast-pkts {\n" |
1036 | | " type yang:counter64;\n" |
1037 | | " status deprecated;\n" |
1038 | | " description\n" |
1039 | | " \"The total number of packets that higher-level protocols\n" |
1040 | | " requested be transmitted and that were not addressed\n" |
1041 | | " to a multicast or broadcast address at this sub-layer,\n" |
1042 | | " including those that were discarded or not sent.\n" |
1043 | | "\n" |
1044 | | " Discontinuities in the value of this counter can occur\n" |
1045 | | " at re-initialization of the management system and at\n" |
1046 | | " other times as indicated by the value of\n" |
1047 | | " \'discontinuity-time\'.\";\n" |
1048 | | " reference\n" |
1049 | | " \"RFC 2863: The Interfaces Group MIB - ifHCOutUcastPkts\";\n" |
1050 | | " }\n" |
1051 | | "\n" |
1052 | | " leaf out-broadcast-pkts {\n" |
1053 | | " type yang:counter64;\n" |
1054 | | " status deprecated;\n" |
1055 | | "\n" |
1056 | | " description\n" |
1057 | | " \"The total number of packets that higher-level protocols\n" |
1058 | | " requested be transmitted and that were addressed to a\n" |
1059 | | " broadcast address at this sub-layer, including those\n" |
1060 | | " that were discarded or not sent.\n" |
1061 | | "\n" |
1062 | | " Discontinuities in the value of this counter can occur\n" |
1063 | | " at re-initialization of the management system and at\n" |
1064 | | " other times as indicated by the value of\n" |
1065 | | " \'discontinuity-time\'.\";\n" |
1066 | | " reference\n" |
1067 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
1068 | | " ifHCOutBroadcastPkts\";\n" |
1069 | | " }\n" |
1070 | | "\n" |
1071 | | " leaf out-multicast-pkts {\n" |
1072 | | " type yang:counter64;\n" |
1073 | | " status deprecated;\n" |
1074 | | " description\n" |
1075 | | " \"The total number of packets that higher-level protocols\n" |
1076 | | " requested be transmitted and that were addressed to a\n" |
1077 | | " multicast address at this sub-layer, including those\n" |
1078 | | " that were discarded or not sent. For a MAC-layer\n" |
1079 | | " protocol, this includes both Group and Functional\n" |
1080 | | " addresses.\n" |
1081 | | "\n" |
1082 | | " Discontinuities in the value of this counter can occur\n" |
1083 | | " at re-initialization of the management system and at\n" |
1084 | | " other times as indicated by the value of\n" |
1085 | | " \'discontinuity-time\'.\";\n" |
1086 | | " reference\n" |
1087 | | " \"RFC 2863: The Interfaces Group MIB -\n" |
1088 | | " ifHCOutMulticastPkts\";\n" |
1089 | | " }\n" |
1090 | | "\n" |
1091 | | " leaf out-discards {\n" |
1092 | | " type yang:counter32;\n" |
1093 | | " status deprecated;\n" |
1094 | | " description\n" |
1095 | | " \"The number of outbound packets that were chosen to be\n" |
1096 | | " discarded even though no errors had been detected to\n" |
1097 | | " prevent their being transmitted. One possible reason\n" |
1098 | | " for discarding such a packet could be to free up buffer\n" |
1099 | | " space.\n" |
1100 | | "\n" |
1101 | | " Discontinuities in the value of this counter can occur\n" |
1102 | | " at re-initialization of the management system and at\n" |
1103 | | " other times as indicated by the value of\n" |
1104 | | " \'discontinuity-time\'.\";\n" |
1105 | | " reference\n" |
1106 | | " \"RFC 2863: The Interfaces Group MIB - ifOutDiscards\";\n" |
1107 | | " }\n" |
1108 | | "\n" |
1109 | | " leaf out-errors {\n" |
1110 | | " type yang:counter32;\n" |
1111 | | " status deprecated;\n" |
1112 | | " description\n" |
1113 | | " \"For packet-oriented interfaces, the number of outbound\n" |
1114 | | " packets that could not be transmitted because of errors.\n" |
1115 | | " For character-oriented or fixed-length interfaces, the\n" |
1116 | | " number of outbound transmission units that could not be\n" |
1117 | | " transmitted because of errors.\n" |
1118 | | "\n" |
1119 | | " Discontinuities in the value of this counter can occur\n" |
1120 | | " at re-initialization of the management system and at\n" |
1121 | | " other times as indicated by the value of\n" |
1122 | | " \'discontinuity-time\'.\";\n" |
1123 | | " reference\n" |
1124 | | " \"RFC 2863: The Interfaces Group MIB - ifOutErrors\";\n" |
1125 | | " }\n" |
1126 | | " }\n" |
1127 | | " }\n" |
1128 | | " }\n" |
1129 | | "}\n" |
1130 | | ""; |
1131 | | |
1132 | | static struct yang_module_embed embed = { |
1133 | | .mod_name = "ietf-interfaces", |
1134 | | .mod_rev = "2018-02-20", |
1135 | | .sub_mod_name = "", |
1136 | | .sub_mod_rev = "", |
1137 | | .data = model, |
1138 | | .format = LYS_IN_YANG, |
1139 | | }; |
1140 | | |
1141 | | static void embed_register(void) __attribute__((_CONSTRUCTOR(2000))); |
1142 | | static void embed_register(void) |
1143 | 7 | { |
1144 | 7 | yang_module_embed(&embed); |
1145 | 7 | } |