3 namespace "http://frrouting.org/yang/pim-rp";
7 import ietf-inet-types {
11 import ietf-routing-types {
27 "FRR Users List: <mailto:frog@lists.frrouting.org>
28 FRR Development List: <mailto:dev@lists.frrouting.org>";
31 "The module defines a collection of YANG definitions common for
32 all PIM (Protocol Independent Multicast) RP (Rendezvous Point) model.
34 Copyright 2020 FRRouting
36 Redistribution and use in source and binary forms, with or without
37 modification, are permitted provided that the following conditions
40 1. Redistributions of source code must retain the above copyright notice,
41 this list of conditions and the following disclaimer.
43 2. Redistributions in binary form must reproduce the above copyright
44 notice, this list of conditions and the following disclaimer in the
45 documentation and/or other materials provided with the distribution.
47 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
48 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
49 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
50 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
51 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
52 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
53 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
54 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
55 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
56 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
57 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
63 "RFC XXXX: A YANG Data Model for PIM RP";
66 typedef ipv4-multicast-group-address-prefix {
67 type inet:ipv4-prefix{
68 pattern '(2((2[4-9])|(3[0-9]))\.)(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(/(([4-9])|([1-2][0-9])|(3[0-2])))';
71 "This type represents an IPv4 multicast group prefix,
72 which is in the range from 224.0.0.0 to 239.255.255.255.";
75 typedef ipv6-multicast-group-address-prefix {
76 type inet:ipv6-prefix {
78 '(((FF|ff)[0-9a-fA-F]{2}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(/((1[6-9])|([2-9][0-9])|(1[0-1][0-9])|(12[0-8])))';
80 '(([^:]+:){6}(([^:]+:[^:]+)|(.*\..*)))|((([^:]+:)*[^:]+)?::(([^:]+:)*[^:]+)?)(/.+)';
83 "This type represents an IPv6 multicast group prefix,
84 which is in the range of FF00::/8.";
87 typedef ip-multicast-group-address-prefix {
88 description "The IP-Multicast-Group-Address-Prefix type represents an IP multicast address
89 prefix and is IP version neutral. The format of the textual representations implies the IP
90 version. It includes a prefix-length, separated by a '/' sign.";
92 type ipv4-multicast-group-address-prefix;
93 type ipv6-multicast-group-address-prefix;
95 } // typedef ip-multicast-group-address-prefix
104 grouping static-rp-container {
106 "Grouping of static RP container.";
108 container static-rp {
110 "Containing static RP attributes.";
115 "A list of RP addresses.";
118 type inet:ip-address;
120 "Specifies a static RP address.";
123 choice group-list-or-prefix-list {
124 description "Use group-list or prefix-list";
126 leaf-list group-list{
127 type ip-multicast-group-address-prefix;
129 "List of multicast group address.";
136 "Group prefix-list filter";
142 } // static-rp-container
145 * Configuration data nodes
147 augment "/frr-rt:routing/frr-rt:control-plane-protocols/"
148 + "frr-rt:control-plane-protocol/frr-pim:pim/"
149 + "frr-pim:address-family" {
150 description "PIM RP augmentation.";
154 "PIM RP configuration data.";
155 uses static-rp-container;