]> git.proxmox.com Git - mirror_frr.git/blob - yang/frr-vrf.yang
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / yang / frr-vrf.yang
1 // SPDX-License-Identifier: BSD-2-Clause
2 module frr-vrf {
3 yang-version 1.1;
4 namespace "http://frrouting.org/yang/vrf";
5 prefix frr-vrf;
6
7 organization
8 "Free Range Routing";
9 contact
10 "FRR Users List: <mailto:frog@lists.frrouting.org>
11 FRR Development List: <mailto:dev@lists.frrouting.org>";
12 description
13 "This module defines a model for managing FRR VRF.
14
15 Copyright 2020 FRRouting
16
17 Redistribution and use in source and binary forms, with or without
18 modification, are permitted provided that the following conditions
19 are met:
20
21 1. Redistributions of source code must retain the above copyright notice,
22 this list of conditions and the following disclaimer.
23
24 2. Redistributions in binary form must reproduce the above copyright
25 notice, this list of conditions and the following disclaimer in the
26 documentation and/or other materials provided with the distribution.
27
28 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
39
40 revision 2019-12-06 {
41 description
42 "Initial revision.";
43 }
44
45 typedef vrf-ref {
46 type leafref {
47 path "/frr-vrf:lib/frr-vrf:vrf/frr-vrf:name";
48 require-instance false;
49 }
50 description
51 "Reference to a VRF";
52 }
53
54 container lib {
55 list vrf {
56 key "name";
57 description
58 "VRF.";
59 leaf name {
60 type string {
61 length "1..36";
62 }
63 description
64 "VRF name.";
65 }
66
67 container state {
68 config false;
69 leaf id {
70 type uint32 {
71 range "0..4294967295";
72 }
73 description
74 "VRF Id.";
75 }
76
77 leaf active {
78 type boolean;
79 default "false";
80 description
81 "VRF active in kernel.";
82 }
83 }
84 }
85 }
86 }