3 namespace "http://frrouting.org/yang/staticd";
14 import ietf-inet-types {
25 "FRR Users List: <mailto:frog@lists.frrouting.org>
26 FRR Development List: <mailto:dev@lists.frrouting.org>";
28 "This module defines a model for managing FRR staticd information.
29 This YANG module augments the ietf-routing with additional
32 Copyright 2020 FRRouting
34 Redistribution and use in source and binary forms, with or without
35 modification, are permitted provided that the following conditions
38 1. Redistributions of source code must retain the above copyright notice,
39 this list of conditions and the following disclaimer.
41 2. Redistributions in binary form must reproduce the above copyright
42 notice, this list of conditions and the following disclaimer in the
43 documentation and/or other materials provided with the distribution.
45 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
46 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
47 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
48 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
49 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
50 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
51 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
52 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
53 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
54 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
55 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
63 base frr-rt:routing-protocol;
65 "'Staticd' routing pseudo-protocol.";
68 grouping staticd-prefix-attributes {
70 key "table-id distance";
78 type frr-rt:administrative-distance;
80 "Admin distance associated with this route.";
90 uses frr-nexthop:frr-nexthop;
94 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol" {
96 when "../frr-rt:type = 'frr-staticd:staticd'" {
98 "This container is only valid for the 'staticd' routing
102 "Support for a 'staticd' pseudo-protocol instance
103 consists of a list of routes.";
105 key "prefix afi-safi";
107 "List of staticd IP routes.";
115 base frr-rt:afi-safi-type;
121 uses staticd-prefix-attributes {
122 augment "path-list/frr-nexthops/nexthop" {
123 container bfd-monitoring {
124 description "BFD monitoring options.";
126 "Present if BFD configuration is available.";
128 when "../nh-type = 'ip4' or ../nh-type = 'ip4-ifindex' or
129 ../nh-type = 'ip6' or ../nh-type = 'ip6-ifindex'";
130 uses frr-bfdd:bfd-monitoring;
138 type inet:ipv6-prefix;
140 "IPv6 source prefix";
143 uses staticd-prefix-attributes;