]>
Commit | Line | Data |
---|---|---|
41db488c | 1 | // SPDX-License-Identifier: BSD-2-Clause |
1a4bc045 RW |
2 | module frr-test-module { |
3 | yang-version 1.1; | |
4 | namespace "urn:frr-test-module"; | |
5 | prefix frr-test-module; | |
6 | ||
7 | import ietf-inet-types { | |
8 | prefix inet; | |
9 | } | |
10 | import ietf-yang-types { | |
11 | prefix yang; | |
12 | } | |
13 | import frr-interface { | |
14 | prefix frr-interface; | |
15 | } | |
16 | ||
fe3b629a RW |
17 | description |
18 | "FRRouting internal testing module. | |
19 | ||
20 | Copyright 2020 FRRouting | |
21 | ||
22 | Redistribution and use in source and binary forms, with or without | |
23 | modification, are permitted provided that the following conditions | |
24 | are met: | |
25 | ||
26 | 1. Redistributions of source code must retain the above copyright notice, | |
27 | this list of conditions and the following disclaimer. | |
28 | ||
29 | 2. Redistributions in binary form must reproduce the above copyright | |
30 | notice, this list of conditions and the following disclaimer in the | |
31 | documentation and/or other materials provided with the distribution. | |
32 | ||
33 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
34 | \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
35 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
36 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
37 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
38 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
39 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |
40 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |
41 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |
42 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |
43 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."; | |
44 | ||
1a4bc045 RW |
45 | revision 2018-11-26 { |
46 | description | |
47 | "Initial revision."; | |
48 | } | |
49 | ||
50 | container frr-test-module { | |
51 | config false; | |
52 | container vrfs { | |
53 | list vrf { | |
54 | key "name"; | |
55 | ||
56 | leaf name { | |
57 | type string; | |
58 | } | |
59 | container interfaces { | |
60 | leaf-list interface { | |
806defc8 | 61 | type frr-interface:interface-ref; |
1a4bc045 RW |
62 | } |
63 | } | |
64 | container routes { | |
65 | list route { | |
1a4bc045 RW |
66 | leaf prefix { |
67 | type inet:ipv4-prefix; | |
68 | } | |
69 | leaf next-hop { | |
70 | type inet:ipv4-address; | |
71 | } | |
72 | leaf interface { | |
806defc8 | 73 | type frr-interface:interface-ref; |
1a4bc045 RW |
74 | } |
75 | leaf metric { | |
76 | type uint8; | |
77 | } | |
78 | leaf active { | |
79 | type empty; | |
80 | } | |
81 | } | |
82 | } | |
83 | } | |
84 | } | |
85 | } | |
86 | } |