]> git.proxmox.com Git - mirror_frr.git/blame - yang/frr-bgp-peer-group.yang
tools: allow // SPDX... in checkpatch.pl
[mirror_frr.git] / yang / frr-bgp-peer-group.yang
CommitLineData
41db488c 1// SPDX-License-Identifier: BSD-2-Clause
2228b116 2submodule frr-bgp-peer-group {
3 yang-version 1.1;
4
5 belongs-to frr-bgp {
6 prefix "bgp";
7 }
8
9 import ietf-inet-types {
10 prefix inet;
11 }
12
f4b8ec07
CS
13 import frr-bgp-types {
14 prefix frr-bt;
15 }
16
3f5af3d5
RB
17 include "frr-bgp-common-structure";
18
19 include "frr-bgp-neighbor";
20
2228b116 21 organization
22 "FRRouting";
23 contact
24 "FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development
25 List: <mailto:dev@lists.frrouting.org>";
26 description
27 "This submodule contains general data definitions for use in BGP
28 peer group.
29
30 Copyright 2020 FRRouting
31
32 Redistribution and use in source and binary forms, with or without
33 modification, are permitted provided that the following conditions
34 are met:
35
36 1. Redistributions of source code must retain the above copyright notice,
37 this list of conditions and the following disclaimer.
38
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.
42
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.";
54
55 revision 2019-12-03 {
56 description
57 "Initial revision.";
58 }
59
60 grouping bgp-peer-group-base {
61 description
62 "Parameters related to a BGP group.";
63 leaf peer-group-name {
64 type string;
65 description
66 "Name of the BGP peer-group.";
67 }
68
69 leaf-list ipv4-listen-range {
70 type inet:ipv4-address;
71 description
72 "Configure BGP dynamic neighbors listen range.";
73 }
74
75 leaf-list ipv6-listen-range {
76 type inet:ipv6-address;
77 description
78 "Configure BGP dynamic neighbors listen range.";
79 }
80
f4b8ec07
CS
81 uses neighbor-remote-as;
82
2228b116 83 uses neighbor-parameters;
d267d776
CH
84
85 uses structure-neighbor-group-capability-options;
2228b116 86 }
87
88 grouping bgp-peer-group-list {
89 description
90 "The list of BGP peer groups.";
91 list peer-group {
92 key "peer-group-name";
93 description
94 "List of BGP peer-groups configured on the local system -
95 uniquely identified by peer-group name.";
96 uses bgp-peer-group-base;
97 }
98 }
99}