3 namespace "http://frrouting.org/yang/pim";
15 import ietf-routing-types {
19 import ietf-inet-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 PIM (Protocol Independent Multicast) 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";
67 base frr-rt:routing-protocol;
69 "'Pim' routing pseudo-protocol.";
80 grouping global-pim-config-attributes {
82 "A grouping defining pim global attributes.";
95 "Enable PIM ECMP Rebalance.";
98 leaf keep-alive-timer {
104 "Keep alive Timer in seconds.";
107 leaf rp-keep-alive-timer {
113 "RP keep alive Timer in seconds.";
116 grouping per-af-global-pim-config-attributes {
118 "A grouping defining per address family pim global attributes";
120 leaf send-v6-secondary {
121 when "../frr-pim:address-family = 'frr-rt:ipv4'" {
123 "Only applicable to IPv4 address family.";
128 "Send v6 secondary addresses.";
131 container spt-switchover {
137 enum "PIM_SPT_IMMEDIATE" {
140 "Immediate switch to SPT Tree.";
142 enum "PIM_SPT_INFINITY" {
145 "Never switch to SPT Tree.";
148 default "PIM_SPT_IMMEDIATE";
150 "SPT-Switchover action";
153 leaf spt-infinity-prefix-list {
154 when "../spt-action = 'PIM_SPT_INFINITY'" {
156 "This leaf is only valid when the spt action
157 is PIM_SPT_INFINITY.";
161 "Prefix-List to control which groups to switch.";
165 leaf ssm-prefix-list {
168 "Prefix-list used to define Source-Specific Multicast address range.";
171 leaf-list ssm-pingd-source-ip {
172 type inet:ip-address;
174 "Enable ssmpingd operation.";
177 container msdp-mesh-group {
179 "Configure MSDP mesh-group.";
181 leaf mesh-group-name {
184 "MSDP mesh group name.";
187 leaf-list member-ip {
188 type inet:ip-address;
194 type inet:ip-address;
196 "Source ip address for the TCP connection.";
203 "Configure MSDP peer.";
206 type inet:ip-address;
208 "MSDP peer IP address.";
212 type inet:ip-address;
214 "MSDP source IP address.";
220 "Multi-chassis link aggregation.";
223 type frr-interface:interface-ref;
225 "Outgoing interface name.";
229 type inet:ip-address;
236 enum "MLAG_ROLE_NONE" {
241 enum "MLAG_ROLE_PRIMARY" {
244 "MLAG role primary.";
247 enum "MLAG_ROLE_SECONDARY" {
250 "MLAG role secondary.";
253 default "MLAG_ROLE_NONE";
266 leaf register-accept-list {
269 "Only accept registers from a specific source prefix list.";
271 } // per-af-global-pim-config-attributes
273 grouping interface-pim-config-attributes {
275 "A grouping defining pim interface attributes.";
281 "Enable PIM flag on the interface.";
284 leaf hello-interval {
293 leaf hello-holdtime {
297 must ". > ./../hello-interval" {
298 error-message "HoldTime must be greater than Hello";
306 "Enable BFD support on the interface.";
308 leaf min-rx-interval {
314 "Required min receive interval";
317 leaf min-tx-interval {
323 "Desired min transmit interval";
338 "Use a preconfigure BFD profile.";
346 "Enables BSM support on the interface.";
353 "Accept/Send unicast BSM on the interface.";
360 "Mark interface as Active-Active for MLAG operations.";
365 range "1..4294967295";
369 "DR (Designated Router) priority";
371 } // interface-pim-config-attributes
373 grouping per-af-interface-pim-config-attributes {
375 "A grouping defining pim interface attributes per address family.";
378 type inet:ip-address;
380 "Primary address of the interface set by user.";
383 leaf multicast-boundary-oil {
386 "Prefix-List to define multicast boundary";
390 key "source-addr group-addr";
392 "Add multicast route.";
395 type frr-interface:interface-ref;
397 "Outgoing interface name.";
401 type inet:ip-address;
403 "Multicast source address.";
407 type rt-types:ip-multicast-group-address;
409 "Multicast group address.";
412 } // per-af-interface-pim-config-attributes
415 * Global Configuration data nodes
417 augment "/frr-rt:routing/frr-rt:control-plane-protocols/"
418 + "frr-rt:control-plane-protocol" {
420 when "../frr-rt:type = 'frr-pim:pimd'" {
422 "This container is only valid for the 'pim' routing
426 "PIM configuration data.";
428 uses global-pim-config-attributes;
430 list address-family {
431 key "address-family";
433 "Each list entry for one address family.";
434 uses frr-rt:address-family;
435 uses per-af-global-pim-config-attributes;
442 * Per-interface configuration data
444 augment "/frr-interface:lib/frr-interface:interface" {
447 "Configure PIM on an interface.";
448 uses interface-pim-config-attributes;
449 list address-family {
450 key "address-family";
452 "Each list entry for one address family.";
453 uses frr-rt:address-family;
454 uses per-af-interface-pim-config-attributes;
461 "PIM router parameters.";
468 "Number of packets to process at one time per fd.";
470 leaf join-prune-interval {
476 "Join Prune Send Interval in seconds.";
478 leaf register-suppress-time {
484 "Register Suppress Timer.";