]>
Commit | Line | Data |
---|---|---|
41db488c | 1 | // SPDX-License-Identifier: BSD-2-Clause |
85bb7335 CS |
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 | |
fe3b629a RW |
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."; | |
85bb7335 CS |
39 | |
40 | revision 2019-12-06 { | |
41 | description | |
42 | "Initial revision."; | |
43 | } | |
44 | ||
bc867a5d CS |
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"; | |
85bb7335 CS |
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 | ||
bc867a5d | 67 | container state { |
85bb7335 | 68 | config false; |
bc867a5d CS |
69 | leaf id { |
70 | type uint32 { | |
71 | range "0..4294967295"; | |
72 | } | |
73 | description | |
74 | "VRF Id."; | |
75 | } | |
85bb7335 | 76 | |
bc867a5d CS |
77 | leaf active { |
78 | type boolean; | |
79 | default "false"; | |
85bb7335 | 80 | description |
bc867a5d | 81 | "VRF active in kernel."; |
85bb7335 CS |
82 | } |
83 | } | |
84 | } | |
85 | } | |
85bb7335 | 86 | } |