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