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