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