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