3 namespace "http://frrouting.org/yang/frr-bgp-rpki";
6 import ietf-inet-types {
17 "FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development
18 List: <mailto:dev@lists.frrouting.org>";
20 "This module defines a model for managing FRR BGP RPKI.
22 Copyright 2020 FRRouting
24 Redistribution and use in source and binary forms, with or without
25 modification, are permitted provided that the following conditions
28 1. Redistributions of source code must retain the above copyright notice,
29 this list of conditions and the following disclaimer.
31 2. Redistributions in binary form must reproduce the above copyright
32 notice, this list of conditions and the following disclaimer in the
33 documentation and/or other materials provided with the distribution.
35 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
36 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
37 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
38 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
39 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
42 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
43 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
44 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
45 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
52 typedef transport-type {
57 "Connection to server is TCP based.";
62 "Connection to server is SSH based.";
67 grouping bgp-rpki-timers {
68 container rpki-timers {
70 "RPKI timers config.";
78 "Set the number of seconds the router waits until the
79 router asks the cache again for updated data.";
89 "Set the expire interval.";
99 "Set the retry interval.";
104 grouping bgp-rpki-cache-server {
105 container rpki-cache-server {
107 "Add a cache server to the socket.";
115 "Preference of the cache server.";
122 "Specifies a transport method for the RPKI cache.";
128 type inet:ip-address;
134 leaf ip-host-address {
141 container transport {
143 when "../../cache-type = 'TCP'";
145 "TCP server details.";
152 when "../../cache-type = 'SSH'";
160 "SSH port on which session gets opened.";
166 "SSH username to establish an SSH connection to the
173 "Local path that includes the private key file of the router.";
179 "Local path that includes the public key file of the router.";
182 leaf server-public-ley {
185 "Server public key.";
193 augment "/frr-vrf:lib/frr-vrf:vrf" {
196 "RPKI configuration parameters.";
201 "When set to 'true' it enables the RPKI.";
204 uses bgp-rpki-timers;
206 uses bgp-rpki-cache-server;