3 namespace "http://frrouting.org/yang/staticd";
14 import ietf-inet-types {
21 "FRR Users List: <mailto:frog@lists.frrouting.org>
22 FRR Development List: <mailto:dev@lists.frrouting.org>";
24 "This module defines a model for managing FRR staticd information.
25 This YANG module augments the ietf-routing with additional
28 Copyright 2020 FRRouting
30 Redistribution and use in source and binary forms, with or without
31 modification, are permitted provided that the following conditions
34 1. Redistributions of source code must retain the above copyright notice,
35 this list of conditions and the following disclaimer.
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.
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.";
59 base frr-rt:routing-protocol;
61 "'Staticd' routing pseudo-protocol.";
64 grouping staticd-prefix-attributes {
68 type frr-rt:administrative-distance;
70 "Admin distance associated with this route.";
87 uses frr-nexthop:frr-nexthop;
91 augment "/frr-rt:routing/frr-rt:control-plane-protocols/frr-rt:control-plane-protocol" {
93 when "../frr-rt:type = 'frr-staticd:staticd'" {
95 "This container is only valid for the 'staticd' routing
99 "Support for a 'staticd' pseudo-protocol instance
100 consists of a list of routes.";
102 key "prefix afi-safi";
104 "List of staticd IP routes.";
112 base frr-rt:afi-safi-type;
118 uses staticd-prefix-attributes;
123 type inet:ipv6-prefix;
125 "IPv6 source prefix";
128 uses staticd-prefix-attributes;