]>
Commit | Line | Data |
---|---|---|
a4bed468 RW |
1 | module frr-interface { |
2 | yang-version 1.1; | |
3 | namespace "http://frrouting.org/yang/interface"; | |
4 | prefix frr-interface; | |
5 | ||
6 | organization | |
7 | "Free Range Routing"; | |
8 | contact | |
9 | "FRR Users List: <mailto:frog@lists.frrouting.org> | |
10 | FRR Development List: <mailto:dev@lists.frrouting.org>"; | |
11 | description | |
12 | "This module defines a model for managing FRR interfaces."; | |
13 | ||
f22b9250 QY |
14 | revision 2019-09-09 { |
15 | description | |
16 | "Added interface-ref typedef"; | |
17 | } | |
a4bed468 RW |
18 | revision 2018-03-28 { |
19 | description | |
20 | "Initial revision."; | |
21 | } | |
22 | ||
23 | container lib { | |
24 | list interface { | |
25 | key "name vrf"; | |
26 | description | |
27 | "Interface."; | |
28 | ||
29 | leaf name { | |
30 | type string { | |
31 | length "1..16"; | |
32 | } | |
33 | description | |
34 | "Interface name."; | |
35 | } | |
36 | leaf vrf { | |
37 | type string { | |
38 | length "1..36"; | |
39 | } | |
40 | description | |
41 | "VRF this interface is associated with."; | |
42 | } | |
43 | leaf description { | |
44 | type string; | |
45 | description | |
46 | "Interface description."; | |
47 | } | |
48 | } | |
49 | } | |
f22b9250 QY |
50 | |
51 | typedef interface-ref { | |
52 | type leafref { | |
53 | require-instance false; | |
54 | path "/frr-interface:lib/frr-interface:interface/frr-interface:name"; | |
55 | } | |
56 | description | |
57 | "Reference to an interface"; | |
58 | } | |
a4bed468 | 59 | } |