1 // SPDX-License-Identifier: BSD-2-Clause
2 submodule frr-bgp-peer-group {
9 import ietf-inet-types {
13 import frr-bgp-types {
17 include "frr-bgp-common-structure";
19 include "frr-bgp-neighbor";
24 "FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development
25 List: <mailto:dev@lists.frrouting.org>";
27 "This submodule contains general data definitions for use in BGP
30 Copyright 2020 FRRouting
32 Redistribution and use in source and binary forms, with or without
33 modification, are permitted provided that the following conditions
36 1. Redistributions of source code must retain the above copyright notice,
37 this list of conditions and the following disclaimer.
39 2. Redistributions in binary form must reproduce the above copyright
40 notice, this list of conditions and the following disclaimer in the
41 documentation and/or other materials provided with the distribution.
43 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
44 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
45 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
46 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
47 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
48 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
49 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
50 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
51 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
52 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
53 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
60 grouping bgp-peer-group-base {
62 "Parameters related to a BGP group.";
63 leaf peer-group-name {
66 "Name of the BGP peer-group.";
69 leaf-list ipv4-listen-range {
70 type inet:ipv4-address;
72 "Configure BGP dynamic neighbors listen range.";
75 leaf-list ipv6-listen-range {
76 type inet:ipv6-address;
78 "Configure BGP dynamic neighbors listen range.";
81 uses neighbor-remote-as;
83 uses neighbor-parameters;
85 uses structure-neighbor-group-capability-options;
88 grouping bgp-peer-group-list {
90 "The list of BGP peer groups.";
92 key "peer-group-name";
94 "List of BGP peer-groups configured on the local system -
95 uniquely identified by peer-group name.";
96 uses bgp-peer-group-base;