]> git.proxmox.com Git - mirror_frr.git/blame - yang/frr-staticd.yang
Merge pull request #10946 from donaldsharp/pim_fhr_lhr_same_pimreg
[mirror_frr.git] / yang / frr-staticd.yang
CommitLineData
56822e76 1module frr-staticd {
556d5006 2 yang-version 1.1;
56822e76 3 namespace "http://frrouting.org/yang/staticd";
56822e76 4 prefix frr-staticd;
5
6 import frr-routing {
556d5006 7 prefix frr-rt;
56822e76 8 }
9
10 import frr-nexthop {
11 prefix frr-nexthop;
12 }
13
14 import ietf-inet-types {
15 prefix inet;
16 }
17
18 organization
78891caf 19 "FRRouting";
56822e76 20 contact
21 "FRR Users List: <mailto:frog@lists.frrouting.org>
22 FRR Development List: <mailto:dev@lists.frrouting.org>";
56822e76 23 description
24 "This module defines a model for managing FRR staticd information.
25 This YANG module augments the ietf-routing with additional
fe3b629a
RW
26 nexthop information
27
28 Copyright 2020 FRRouting
29
30 Redistribution and use in source and binary forms, with or without
31 modification, are permitted provided that the following conditions
32 are met:
33
34 1. Redistributions of source code must retain the above copyright notice,
35 this list of conditions and the following disclaimer.
36
37 2. Redistributions in binary form must reproduce the above copyright
38 notice, this list of conditions and the following disclaimer in the
39 documentation and/or other materials provided with the distribution.
40
41 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
42 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
43 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
44 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
45 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
46 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
47 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
48 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
49 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
50 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
51 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
56822e76 52
53 revision 2019-12-03 {
54 description
55 "Initial revision.";
56 }
57
556d5006 58 identity staticd {
56822e76 59 base frr-rt:routing-protocol;
60 description
556d5006 61 "'Staticd' routing pseudo-protocol.";
56822e76 62 }
63
556d5006 64 grouping staticd-prefix-attributes {
65 list path-list {
ad6149e3 66 key "table-id distance";
67 leaf table-id {
68 type uint32;
69 description
70 "Table-id";
71 }
72
556d5006 73 leaf distance {
74 type frr-rt:administrative-distance;
75 description
76 "Admin distance associated with this route.";
77 }
78
79 leaf tag {
80 type uint32;
81 default "0";
82 description
83 "Route tag";
84 }
85
556d5006 86 uses frr-nexthop:frr-nexthop;
87 }
88 }
89
90 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol" {
56822e76 91 container staticd {
556d5006 92 when "../frr-rt:type = 'frr-staticd:staticd'" {
56822e76 93 description
556d5006 94 "This container is only valid for the 'staticd' routing
56822e76 95 protocol.";
96 }
97 description
556d5006 98 "Support for a 'staticd' pseudo-protocol instance
99 consists of a list of routes.";
100 list route-list {
314825ff 101 key "prefix afi-safi";
56822e76 102 description
556d5006 103 "List of staticd IP routes.";
104 leaf prefix {
105 type inet:ip-prefix;
56822e76 106 description
556d5006 107 "IP prefix.";
56822e76 108 }
314825ff 109 leaf afi-safi {
110 type identityref {
111 base frr-rt:afi-safi-type;
112 }
113 description
114 "AFI-SAFI type.";
115 }
56822e76 116
556d5006 117 uses staticd-prefix-attributes;
56822e76 118
556d5006 119 list src-list {
120 key "src-prefix";
121 leaf src-prefix {
122 type inet:ipv6-prefix;
123 description
124 "IPv6 source prefix";
56822e76 125 }
556d5006 126
127 uses staticd-prefix-attributes;
56822e76 128 }
129 }
130 }
131 }
132}