1 // SPDX-License-Identifier: BSD-2-Clause
2 submodule frr-bgp-bmp {
9 import ietf-inet-types {
13 import frr-bgp-types {
17 include "frr-bgp-common-multiprotocol";
22 "FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development
23 List: <mailto:dev@lists.frrouting.org>";
25 "This submodule defines a model for managing FRR BGP BMP.
27 Copyright 2020 FRRouting
29 Redistribution and use in source and binary forms, with or without
30 modification, are permitted provided that the following conditions
33 1. Redistributions of source code must retain the above copyright notice,
34 this list of conditions and the following disclaimer.
36 2. Redistributions in binary form must reproduce the above copyright
37 notice, this list of conditions and the following disclaimer in the
38 documentation and/or other materials provided with the distribution.
40 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
41 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
42 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
43 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
44 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
45 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
46 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
47 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
48 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
49 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
50 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
57 grouping bmp-incoming-session {
58 container incoming-session {
60 key "address tcp-port";
64 "IPv4 address to listen on.";
74 grouping bmp-outgoing-session {
75 container outgoing-session {
77 key "hostname tcp-port";
88 range "100..86400000";
93 "Minimum connection retry interval.";
98 range "100..86400000";
100 units "milliseconds";
103 "Maximum connection retry interval.";
109 grouping bmp-afi-safis {
110 container afi-safis {
112 "List of address-families associated with the BGP
117 "AFI, SAFI configuration available for the
118 neighbour or group.";
119 uses mp-afi-safi-config;
121 uses mp-all-afi-safi-list-contents;
126 grouping bmp-afi-safi-common-config {
127 container common-config {
132 "Send state before policy and filter processing.";
139 "Send state after policy and filter processing.";
144 grouping global-bmp-config {
146 "Structural grouping used to include filter
147 configuration for BMP.";
148 container bmp-config {
150 "BMP related parameters.";
156 "Targets group name.";
159 uses bmp-incoming-session;
161 uses bmp-outgoing-session;
167 "When set to 'TRUE' it send BMP route mirroring messages.";
172 range "100..86400000";
174 units "milliseconds";
176 "Interval to send BMP Stats.";
179 leaf ipv4-access-list {
180 type frr-bt:access-list-ref;
182 "Access list to restrict BMP sessions.";
185 leaf ipv6-access-list {
186 type frr-bt:access-list-ref;
188 "Access list to restrict BMP sessions.";
194 leaf mirror-buffer-limit {
196 range "0..4294967294";
200 "Maximum memory used for buffered mirroring messages.";