1 // SPDX-License-Identifier: BSD-2-Clause
2 submodule frr-bgp-neighbor {
9 include "frr-bgp-common-multiprotocol";
11 include "frr-bgp-common-structure";
16 "FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development
17 List: <mailto:dev@lists.frrouting.org>";
19 "This submodule contains general data definitions for use in BGP neighbor.
21 Copyright 2020 FRRouting
23 Redistribution and use in source and binary forms, with or without
24 modification, are permitted provided that the following conditions
27 1. Redistributions of source code must retain the above copyright notice,
28 this list of conditions and the following disclaimer.
30 2. Redistributions in binary form must reproduce the above copyright
31 notice, this list of conditions and the following disclaimer in the
32 documentation and/or other materials provided with the distribution.
34 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
36 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
38 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
39 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
40 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
42 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
43 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
51 grouping neighbor-parameters {
63 "BGP Time To Live (TTL) security check.";
65 "RFC 5082: The Generalized TTL Security Mechanism
67 RFC 7454: BGP Operations and Security.";
74 "Solo peer - part of its own update group.";
77 leaf enforce-first-as {
81 "When set to 'true' it will enforce the first AS for EBGP routes.";
87 "An optional textual description (intended primarily for use
88 with a peer or group.";
95 "Don't send open messages to this neighbor.";
98 uses neighbor-update-source;
100 uses structure-neighbor-group-ebgp-multihop;
102 uses neighbor-local-as-options;
104 uses neighbor-bfd-options;
106 uses structure-neighbor-group-admin-shutdown;
108 uses structure-neighbor-group-graceful-restart;
110 uses structure-neighbor-config-timers;
112 container afi-safis {
114 "List of address-families associated with the BGP
119 "AFI, SAFI configuration available for the
120 neighbour or group.";
121 uses mp-afi-safi-config;
126 "This leaf indicates whether the IPv4 Unicast AFI, SAFI is
127 enabled for the neighbour or group.";
130 uses mp-all-afi-safi-list-contents;