1 // SPDX-License-Identifier: BSD-2-Clause
4 namespace "http://frrouting.org/yang/bgp-types";
10 "FRR Users List: <mailto:frog@lists.frrouting.org> FRR Development
11 List: <mailto:dev@lists.frrouting.org>";
13 "This module contains general data definitions for use in BGP.
15 Copyright 2020 FRRouting
17 Redistribution and use in source and binary forms, with or without
18 modification, are permitted provided that the following conditions
21 1. Redistributions of source code must retain the above copyright notice,
22 this list of conditions and the following disclaimer.
24 2. Redistributions in binary form must reproduce the above copyright
25 notice, this list of conditions and the following disclaimer in the
26 documentation and/or other materials provided with the distribution.
28 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
49 typedef access-list-ref {
53 typedef as-path-filter-ref {
57 typedef bgp-instance-type {
62 "BGP instance default.";
82 "AS has explicitly specified value.";
97 typedef add-path-type {
102 "To advertise all paths to a neighbor.";
107 "To advertise the best path per each neighboring AS.";
112 "Add path feature is disabled.";
117 typedef bfd-session-type {
122 "Single hop session.";
127 "Multiple hop session.";
129 enum "not-configured" {