]> git.proxmox.com Git - mirror_frr.git/blob - yang/frr-bgp-peer-group.yang
Merge pull request #8643 from icosahedral/master
[mirror_frr.git] / yang / frr-bgp-peer-group.yang
1 submodule 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
12 import frr-bgp-types {
13 prefix frr-bt;
14 }
15
16 organization
17 "FRRouting";
18 contact
19 "FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development
20 List: <mailto:dev@lists.frrouting.org>";
21 description
22 "This submodule contains general data definitions for use in BGP
23 peer group.
24
25 Copyright 2020 FRRouting
26
27 Redistribution and use in source and binary forms, with or without
28 modification, are permitted provided that the following conditions
29 are met:
30
31 1. Redistributions of source code must retain the above copyright notice,
32 this list of conditions and the following disclaimer.
33
34 2. Redistributions in binary form must reproduce the above copyright
35 notice, this list of conditions and the following disclaimer in the
36 documentation and/or other materials provided with the distribution.
37
38 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
39 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
40 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
41 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
42 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
44 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
45 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
46 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
47 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
48 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
49
50 revision 2019-12-03 {
51 description
52 "Initial revision.";
53 }
54
55 grouping bgp-peer-group-base {
56 description
57 "Parameters related to a BGP group.";
58 leaf peer-group-name {
59 type string;
60 description
61 "Name of the BGP peer-group.";
62 }
63
64 leaf-list ipv4-listen-range {
65 type inet:ipv4-address;
66 description
67 "Configure BGP dynamic neighbors listen range.";
68 }
69
70 leaf-list ipv6-listen-range {
71 type inet:ipv6-address;
72 description
73 "Configure BGP dynamic neighbors listen range.";
74 }
75
76 uses neighbor-remote-as;
77
78 uses neighbor-parameters;
79 }
80
81 grouping bgp-peer-group-list {
82 description
83 "The list of BGP peer groups.";
84 list peer-group {
85 key "peer-group-name";
86 description
87 "List of BGP peer-groups configured on the local system -
88 uniquely identified by peer-group name.";
89 uses bgp-peer-group-base;
90 }
91 }
92 }