1 // SPDX-License-Identifier: BSD-2-Clause
4 namespace "http://frrouting.org/yang/staticd";
15 import ietf-inet-types {
26 "FRR Users List: <mailto:frog@lists.frrouting.org>
27 FRR Development List: <mailto:dev@lists.frrouting.org>";
29 "This module defines a model for managing FRR staticd information.
30 This YANG module augments the ietf-routing with additional
33 Copyright 2020 FRRouting
35 Redistribution and use in source and binary forms, with or without
36 modification, are permitted provided that the following conditions
39 1. Redistributions of source code must retain the above copyright notice,
40 this list of conditions and the following disclaimer.
42 2. Redistributions in binary form must reproduce the above copyright
43 notice, this list of conditions and the following disclaimer in the
44 documentation and/or other materials provided with the distribution.
46 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
47 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
48 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
49 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
50 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
51 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
52 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
53 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
54 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
55 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
56 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
64 base frr-rt:routing-protocol;
66 "'Staticd' routing pseudo-protocol.";
69 grouping staticd-prefix-attributes {
71 key "table-id distance";
79 type frr-rt:administrative-distance;
81 "Admin distance associated with this route.";
91 uses frr-nexthop:frr-nexthop;
95 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol" {
97 when "../frr-rt:type = 'frr-staticd:staticd'" {
99 "This container is only valid for the 'staticd' routing
103 "Support for a 'staticd' pseudo-protocol instance
104 consists of a list of routes.";
106 key "prefix afi-safi";
108 "List of staticd IP routes.";
116 base frr-rt:afi-safi-type;
122 uses staticd-prefix-attributes {
123 augment "path-list/frr-nexthops/nexthop" {
124 container bfd-monitoring {
125 description "BFD monitoring options.";
127 "Present if BFD configuration is available.";
129 when "../nh-type = 'ip4' or ../nh-type = 'ip4-ifindex' or
130 ../nh-type = 'ip6' or ../nh-type = 'ip6-ifindex'";
131 uses frr-bfdd:bfd-monitoring;
139 type inet:ipv6-prefix;
141 "IPv6 source prefix";
144 uses staticd-prefix-attributes;