3 namespace "http://frrouting.org/yang/gmp";
11 import ietf-routing-types {
15 import ietf-inet-types {
19 import frr-interface {
27 "FRR Users List: <mailto:frog@lists.frrouting.org>
28 FRR Development List: <mailto:dev@lists.frrouting.org>";
31 "This module defines a model for managing FRR pimd daemon.
33 Copyright 2020 FRRouting
35 Redistribution and use in source and binary forms, with or without
36 modification, are permitted provided that the following conditions
39 1. Redistributions of source code must retain the above copyright notice,
40 this list of conditions and the following disclaimer.
42 2. Redistributions in binary form must reproduce the above copyright
43 notice, this list of conditions and the following disclaimer in the
44 documentation and/or other materials provided with the distribution.
46 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
47 \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
48 LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
49 A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
50 HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
51 SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
52 LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
53 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
54 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
55 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
56 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.";
68 grouping interface-config-attributes {
70 "Configuration IGMP/MLD attributes applied to the interface level.";
76 "Enable IGMP/MLD flag on the interface.";
80 when "../frr-gmp:address-family = 'frr-rt:ipv4'" {
82 "Only applicable to IPv4 address family.";
92 when "../frr-gmp:address-family = 'frr-rt:ipv6'" {
94 "Only applicable to IPv6 address family.";
103 leaf query-interval {
108 must ". * 10 >= ../query-max-response-time";
111 "The Query Interval is the interval between General Queries
112 sent by the Querier.";
115 leaf query-max-response-time {
120 must ". <= ../query-interval * 10";
123 "Query maximum response time specifies the maximum time
124 allowed before sending a responding report.";
127 leaf last-member-query-interval {
134 "Last Member Query Interval, which may be tuned to modify
135 the leave latency of the network.";
138 leaf robustness-variable {
144 "Querier's Robustness Variable allows tuning for the
145 expected packet loss on a network.";
149 key "group-addr source-addr";
151 "A static multicast route, (*,G) or (S,G).
152 The version of IGMP must be 3 to support (S,G).";
155 type rt-types:ip-multicast-group-address;
157 "Multicast group address.";
160 type inet:ip-address;
162 "Multicast source address.";
165 } // interface-config-attributes
168 * Per-interface configuration data
170 augment "/frr-interface:lib/frr-interface:interface" {
172 list address-family {
173 key "address-family";
175 "Each list entry for one address family.";
176 uses frr-rt:address-family;
177 uses interface-config-attributes;