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.";
117 grouping msdp-timers {
125 "Hold period is started at the MSDP peer connection establishment
126 and is reset every new message. When the period expires the
127 connection is closed. This value should be greater than the
128 remote keep-alive time.";
138 "To maintain a connection established it is necessary to send
139 keep alive messages in a certain frequency and this allows its
140 configuration. This value should be less than the remote
144 leaf connection-retry {
151 "This period is used in the MSDP peer with the highest IP value
152 in the pair and configures the interval between TCP connection
157 grouping per-af-global-pim-config-attributes {
159 "A grouping defining per address family pim global attributes";
161 leaf send-v6-secondary {
162 when "../frr-pim:address-family = 'frr-rt:ipv4'" {
164 "Only applicable to IPv4 address family.";
169 "Send v6 secondary addresses.";
172 container spt-switchover {
178 enum "PIM_SPT_IMMEDIATE" {
181 "Immediate switch to SPT Tree.";
183 enum "PIM_SPT_INFINITY" {
186 "Never switch to SPT Tree.";
189 default "PIM_SPT_IMMEDIATE";
191 "SPT-Switchover action";
194 leaf spt-infinity-prefix-list {
195 when "../spt-action = 'PIM_SPT_INFINITY'" {
197 "This leaf is only valid when the spt action
198 is PIM_SPT_INFINITY.";
202 "Prefix-List to control which groups to switch.";
206 leaf ssm-prefix-list {
209 "Prefix-list used to define Source-Specific Multicast address range.";
212 leaf-list ssm-pingd-source-ip {
213 type inet:ip-address;
215 "Enable ssmpingd operation.";
218 /* Global timers configuration. */
220 description "Global MSDP configuration.";
224 list msdp-mesh-groups {
227 "RFC 3618 Section 10.2. MSDP mesh-group semantics
229 Groups multiple MSDP peers to reduce SA flooding typically used
230 in intra-domain settings.";
237 "The mesh group name.";
241 type inet:ip-address;
243 "Source IP address for the TCP connections.";
250 type inet:ip-address;
252 "Peer member IP address.";
260 "Configure MSDP peer.";
263 type inet:ip-address;
265 "MSDP peer IP address.";
270 type inet:ip-address;
272 "MSDP source IP address.";
278 "Multi-chassis link aggregation.";
281 type frr-interface:interface-ref;
283 "Outgoing interface name.";
287 type inet:ip-address;
294 enum "MLAG_ROLE_NONE" {
299 enum "MLAG_ROLE_PRIMARY" {
302 "MLAG role primary.";
305 enum "MLAG_ROLE_SECONDARY" {
308 "MLAG role secondary.";
311 default "MLAG_ROLE_NONE";
324 leaf register-accept-list {
327 "Only accept registers from a specific source prefix list.";
329 } // per-af-global-pim-config-attributes
331 grouping interface-pim-config-attributes {
333 "A grouping defining pim interface attributes.";
339 "Enable PIM flag on the interface.";
342 leaf hello-interval {
351 leaf hello-holdtime {
355 must ". > ./../hello-interval" {
356 error-message "HoldTime must be greater than Hello";
364 "Enable BFD support on the interface.";
366 leaf min-rx-interval {
372 "Required min receive interval";
375 leaf min-tx-interval {
381 "Desired min transmit interval";
396 "Use a preconfigure BFD profile.";
404 "Enables BSM support on the interface.";
411 "Accept/Send unicast BSM on the interface.";
418 "Mark interface as Active-Active for MLAG operations.";
427 "DR (Designated Router) priority";
429 } // interface-pim-config-attributes
431 grouping per-af-interface-pim-config-attributes {
433 "A grouping defining pim interface attributes per address family.";
436 type inet:ip-address;
438 "Primary address of the interface set by user.";
441 leaf multicast-boundary-oil {
444 "Prefix-List to define multicast boundary";
448 key "source-addr group-addr";
450 "Add multicast route.";
453 type frr-interface:interface-ref;
455 "Outgoing interface name.";
459 type inet:ip-address;
461 "Multicast source address.";
465 type rt-types:ip-multicast-group-address;
467 "Multicast group address.";
470 } // per-af-interface-pim-config-attributes
473 * Global Configuration data nodes
475 augment "/frr-rt:routing/frr-rt:control-plane-protocols/"
476 + "frr-rt:control-plane-protocol" {
478 when "../frr-rt:type = 'frr-pim:pimd'" {
480 "This container is only valid for the 'pim' routing
484 "PIM configuration data.";
486 uses global-pim-config-attributes;
488 list address-family {
489 key "address-family";
491 "Each list entry for one address family.";
492 uses frr-rt:address-family;
493 uses per-af-global-pim-config-attributes;
500 * Per-interface configuration data
502 augment "/frr-interface:lib/frr-interface:interface" {
505 "Configure PIM on an interface.";
506 uses interface-pim-config-attributes;
507 list address-family {
508 key "address-family";
510 "Each list entry for one address family.";
511 uses frr-rt:address-family;
512 uses per-af-interface-pim-config-attributes;
519 "PIM router parameters.";
526 "Number of packets to process at one time per fd.";
528 leaf join-prune-interval {
534 "Join Prune Send Interval in seconds.";
536 leaf register-suppress-time {
542 "Register Suppress Timer.";