]> git.proxmox.com Git - mirror_frr.git/blob - yang/frr-if-rmap.yang
bgpd: Refactor subgroup_announce_table() to reuse an existing helpers
[mirror_frr.git] / yang / frr-if-rmap.yang
1 // SPDX-License-Identifier: BSD-2-Clause
2 module frr-if-rmap {
3 yang-version 1.1;
4 namespace "http://frrouting.org/yang/frr-if-rmap";
5 prefix frr-if-map;
6
7 import frr-interface {
8 prefix frr-interface;
9 }
10
11 import frr-route-map {
12 prefix frr-route-map;
13 }
14
15 organization
16 "FRRouting";
17 contact
18 "FRR Users List: <mailto:frog@lists.frrouting.org>
19 FRR Development List: <mailto:dev@lists.frrouting.org>";
20 description
21 "This module defines route map settings
22
23 Copyright 2023 LabN Consulting L.L.C
24
25 Redistribution and use in source and binary forms, with or without
26 modification, are permitted provided that the following conditions
27 are met:
28
29 1. Redistributions of source code must retain the above copyright notice,
30 this list of conditions and the following disclaimer.
31
32 2. Redistributions in binary form must reproduce the above copyright
33 notice, this list of conditions and the following disclaimer in the
34 documentation and/or other materials provided with the distribution.
35
36 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
37 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
38 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
39 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
40 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
41 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
42 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
43 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
44 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
45 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
46 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
47
48 revision 2023-04-09 {
49 description
50 "Initial revision";
51 reference "FRRouting";
52 }
53
54 grouping if-route-maps-group {
55 description "Grouping for interface route maps";
56
57 container if-route-maps {
58 description "Collection of interface route-maps";
59
60 list if-route-map {
61 must "in-route-map or out-route-map";
62 key "interface";
63 description "Collection of route-maps for an interface";
64
65 leaf "interface" {
66 type frr-interface:interface-ref;
67 description "The interface the route maps are associated with";
68 }
69 leaf "in-route-map" {
70 type frr-route-map:route-map-name;
71 description "Name of the ingress route map";
72 }
73 leaf "out-route-map" {
74 type frr-route-map:route-map-name;
75 description "Name of the egress route map";
76 }
77 }
78 }
79 }
80 }