blob: 31bcb98151a44387beb8f04b52d7da7b9cebf62a [file] [log] [blame]
janani bade77ae2016-08-17 16:33:07 +05301module ietf-interfaces {
2 namespace "urn:ietf:params:xml:ns:yang:ietf-interfaces";
3 prefix if;
4 typedef interface-state-ref {
5 type leafref {
6 path "/if:interfaces-state/if:interface/if:name";
7 }
8 description
9 "This type is used by data models that need to reference
10 the operationally present interfaces";
11 }
12 /*
13 * Operational state data nodes
14 */
15 container interfaces-state {
16 config false;
17 description
18 "Data nodes for the operational state of interfaces.";
19 list interface {
20 key "name";
21 description
22 "The list of interfaces on the device.
23 System-controlled interfaces created by the system are
24 always present in this list, whether they are configured or
25 not.";
26 leaf name {
27 type string;
28 description
29 "The name of the interface.
30 A server implementation MAY map this leaf to the ifName
31 MIB object. Such an implementation needs to use some
32 mechanism to handle the differences in size and characters
33 allowed between this leaf and ifName. The definition of
34 such a mechanism is outside the scope of this document.";
35 reference "RFC 2863: The Interfaces Group MIB - ifName";
36 }
37 leaf-list higher-layer-if {
38 type interface-state-ref;
39 description
40 "A list of references to interfaces layered on top of this
41 interface.";
42 reference
43 "RFC 2863: The Interfaces Group MIB - ifStackTable";
44 }
45 leaf-list lower-layer-if {
46 type interface-state-ref;
47 description
48 "A list of references to interfaces layered underneath this
49 interface.";
50 reference
51 "RFC 2863: The Interfaces Group MIB - ifStackTable";
52 }
53 }
54 }
55}