1 // SPDX-License-Identifier: BSD-2-Clause
4 namespace "http://frrouting.org/yang/pim-rp";
8 import ietf-inet-types {
20 import frr-route-types {
21 prefix frr-route-types;
28 "FRR Users List: <mailto:frog@lists.frrouting.org>
29 FRR Development List: <mailto:dev@lists.frrouting.org>";
32 "The module defines a collection of YANG definitions common for
33 all PIM (Protocol Independent Multicast) RP (Rendezvous Point) model.
35 Copyright 2020 FRRouting
37 Redistribution and use in source and binary forms, with or without
38 modification, are permitted provided that the following conditions
41 1. Redistributions of source code must retain the above copyright notice,
42 this list of conditions and the following disclaimer.
44 2. Redistributions in binary form must reproduce the above copyright
45 notice, this list of conditions and the following disclaimer in the
46 documentation and/or other materials provided with the distribution.
48 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
49 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
50 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
51 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
52 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
53 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
54 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
55 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
56 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
57 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
58 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
64 "RFC XXXX: A YANG Data Model for PIM RP";
74 grouping static-rp-container {
76 "Grouping of static RP container.";
80 "Containing static RP attributes.";
85 "A list of RP addresses.";
90 "Specifies a static RP address.";
93 choice group-list-or-prefix-list {
94 description "Use group-list or prefix-list";
97 type frr-route-types:ip-multicast-group-prefix;
99 "List of multicast group address.";
106 "Group prefix-list filter";
112 } // static-rp-container
115 * Configuration data nodes
117 augment "/frr-rt:routing/frr-rt:control-plane-protocols/"
118 + "frr-rt:control-plane-protocol/frr-pim:pim/"
119 + "frr-pim:address-family" {
120 description "PIM RP augmentation.";
124 "PIM RP configuration data.";
125 uses static-rp-container;