<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" docName="draft-ietf-pim-igmp-mld-proxy-yang-10" indexInclude="true" ipr="trust200902" number="9398" prepTime="2023-05-30T16:40:42" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="3" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-pim-igmp-mld-proxy-yang-10" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9398" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="IGMP/MLD Proxy YANG Module">A YANG Data Model for Internet Group Management Protocol (IGMP) and Multicast Listener Discovery (MLD) Proxy Devices</title>
    <seriesInfo name="RFC" value="9398" stream="IETF"/>
    <author initials="H." surname="Zhao" fullname="Hongji Zhao">
      <organization abbrev="Ericsson" showOnFrontPage="true">Ericsson (China) Communications Company Ltd.</organization>
      <address>
        <postal>
          <street>Ericsson Tower, No. 5 Lize East Street</street>
          <city>Beijing</city>
          <code>100102</code>
          <country>China</country>
        </postal>
        <email>hongji.zhao@ericsson.com</email>
      </address>
    </author>
    <author initials="X." surname="Liu" fullname="Xufeng Liu">
      <organization showOnFrontPage="true">Alef Edge</organization>
      <address>
        <postal>
          <street/>
          <city/>
          <region/>
          <code/>
          <country>United States of America</country>
        </postal>
        <email>xufeng.liu.ietf@gmail.com</email>
      </address>
    </author>
    <author initials="Y." surname="Liu" fullname="Yisong Liu">
      <organization showOnFrontPage="true">China Mobile</organization>
      <address>
        <postal>
          <street/>
          <city/>
          <region/>
          <code/>
          <country>China</country>
        </postal>
        <email>liuyisong@chinamobile.com</email>
      </address>
    </author>
    <author initials="M." surname="Panchanathan" fullname="Mani Panchanathan">
      <organization showOnFrontPage="true">Cisco Systems, Inc.</organization>
      <address>
        <postal>
          <street>3625 Cisco Way</street>
          <city>San Jose</city>
          <region>CA</region>
          <code/>
          <country>United States of America</country>
        </postal>
        <email>mapancha@cisco.com</email>
      </address>
    </author>
    <author initials="M." surname="Sivakumar" fullname="Mahesh Sivakumar">
      <organization abbrev="Juniper" showOnFrontPage="true">Juniper Networks</organization>
      <address>
        <postal>
          <street>1133 Innovation Way</street>
          <city>Sunnyvale</city>
          <region>CA</region>
          <country>United States of America</country>
        </postal>
        <email>sivakumar.mahesh@gmail.com</email>
      </address>
    </author>
    <date month="05" year="2023"/>
    <area>rtg</area>
    <workgroup>pim</workgroup>
    <keyword>IGMP Proxy</keyword>
    <keyword>MLD Proxy</keyword>
    <keyword>YANG</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document defines a YANG data model that can be used to configure
     and manage Internet Group Management Protocol (IGMP) or Multicast
     Listener Discovery (MLD) Proxy devices. The YANG module in this document
     conforms to the Network Management Datastore Architecture (NMDA).</t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t indent="0" pn="section-boilerplate.1-1">
            This is an Internet Standards Track document.
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by
            the Internet Engineering Steering Group (IESG).  Further
            information on Internet Standards is available in Section 2 of 
            RFC 7841.
        </t>
        <t indent="0" pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc9398" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t indent="0" pn="section-boilerplate.2-1">
            Copyright (c) 2023 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t indent="0" pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Revised BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Revised BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t indent="0" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.1.2">
              <li pn="section-toc.1-1.1.2.1">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.1.1"><xref derivedContent="1.1" format="counter" sectionFormat="of" target="section-1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-terminology">Terminology</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.2">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.2.1"><xref derivedContent="1.2" format="counter" sectionFormat="of" target="section-1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-tree-diagrams">Tree Diagrams</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.3">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.3.1"><xref derivedContent="1.3" format="counter" sectionFormat="of" target="section-1.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-prefixes-in-data-node-names">Prefixes in Data Node Names</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-design-of-data-model">Design of Data Model</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2">
              <li pn="section-toc.1-1.2.2.1">
                <t indent="0" pn="section-toc.1-1.2.2.1.1"><xref derivedContent="2.1" format="counter" sectionFormat="of" target="section-2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-overview">Overview</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.2">
                <t indent="0" pn="section-toc.1-1.2.2.2.1"><xref derivedContent="2.2" format="counter" sectionFormat="of" target="section-2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-optional-features">Optional Features</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.3">
                <t indent="0" pn="section-toc.1-1.2.2.3.1"><xref derivedContent="2.3" format="counter" sectionFormat="of" target="section-2.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-position-of-address-family-">Position of Address Family in Hierarchy</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-module-structure">Module Structure</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2">
              <li pn="section-toc.1-1.3.2.1">
                <t indent="0" pn="section-toc.1-1.3.2.1.1"><xref derivedContent="3.1" format="counter" sectionFormat="of" target="section-3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-igmp-proxy-configuration-an">IGMP Proxy Configuration and Operational State</xref></t>
              </li>
              <li pn="section-toc.1-1.3.2.2">
                <t indent="0" pn="section-toc.1-1.3.2.2.1"><xref derivedContent="3.2" format="counter" sectionFormat="of" target="section-3.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-mld-proxy-configuration-and">MLD Proxy Configuration and Operational State</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.4">
            <t indent="0" pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-igmp-mld-proxy-yang-module">IGMP/MLD Proxy YANG Module</xref></t>
          </li>
          <li pn="section-toc.1-1.5">
            <t indent="0" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.6.2">
              <li pn="section-toc.1-1.6.2.1">
                <t indent="0" pn="section-toc.1-1.6.2.1.1"><xref derivedContent="6.1" format="counter" sectionFormat="of" target="section-6.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ietf-xml-registry">IETF XML Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.2">
                <t indent="0" pn="section-toc.1-1.6.2.2.1"><xref derivedContent="6.2" format="counter" sectionFormat="of" target="section-6.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-yang-module-names-registry">YANG Module Names Registry</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.7.2">
              <li pn="section-toc.1-1.7.2.1">
                <t indent="0" pn="section-toc.1-1.7.2.1.1"><xref derivedContent="7.1" format="counter" sectionFormat="of" target="section-7.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.7.2.2">
                <t indent="0" pn="section-toc.1-1.7.2.2.1"><xref derivedContent="7.2" format="counter" sectionFormat="of" target="section-7.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-data-tree-example">Data Tree Example</xref></t>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section anchor="sect-1" numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">
   This document defines a YANG data model <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/> for the management of
   Internet Group Management Protocol (IGMP) or Multicast Listener Discovery
   (MLD) Proxy devices <xref target="RFC4605" format="default" sectionFormat="of" derivedContent="RFC4605"/>. The YANG module in this document conforms to
   the Network Management Datastore Architecture as defined in <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>.</t>
      <section anchor="sect-1.1" numbered="true" toc="include" removeInRFC="false" pn="section-1.1">
        <name slugifiedName="name-terminology">Terminology</name>
        <t indent="0" pn="section-1.1-1">
   The terminology for describing YANG data models is found in <xref target="RFC6020" format="default" sectionFormat="of" derivedContent="RFC6020"/> and
   <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/>, including:

        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-1.1-2">
          <li pn="section-1.1-2.1">augment</li>
          <li pn="section-1.1-2.2">data model</li>
          <li pn="section-1.1-2.3">data node</li>
          <li pn="section-1.1-2.4">identity</li>
          <li pn="section-1.1-2.5">module</li>
        </ul>
        <t indent="0" pn="section-1.1-3">The following abbreviations are used in this document and in the defined YANG data model:

        </t>
        <dl spacing="normal" indent="3" newline="false" pn="section-1.1-4">
          <dt pn="section-1.1-4.1">IGMP:</dt>
          <dd pn="section-1.1-4.2">Internet Group Management Protocol <xref target="RFC3376" format="default" sectionFormat="of" derivedContent="RFC3376"/>.</dd>
          <dt pn="section-1.1-4.3">MLD:</dt>
          <dd pn="section-1.1-4.4">Multicast Listener Discovery <xref target="RFC3810" format="default" sectionFormat="of" derivedContent="RFC3810"/>.</dd>
          <dt pn="section-1.1-4.5">PIM:</dt>
          <dd pn="section-1.1-4.6">Protocol Independent Multicast <xref target="RFC7761" format="default" sectionFormat="of" derivedContent="RFC7761"/>.</dd>
        </dl>
      </section>
      <section anchor="sect-1.2" numbered="true" toc="include" removeInRFC="false" pn="section-1.2">
        <name slugifiedName="name-tree-diagrams">Tree Diagrams</name>
        <t indent="0" pn="section-1.2-1">
   Tree diagrams used in this document follow the notation defined in <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.</t>
      </section>
      <section anchor="sect-1.3" numbered="true" toc="include" removeInRFC="false" pn="section-1.3">
        <name slugifiedName="name-prefixes-in-data-node-names">Prefixes in Data Node Names</name>
        <t indent="0" pn="section-1.3-1">
   In this document, names of data nodes and other data model objects are
   often used without a prefix, as long as the context clearly indicates
   the YANG module in which each name is defined. Otherwise, names are prefixed using
   the standard prefix associated with the corresponding YANG module, as shown
   in <xref target="tab-1" format="default" sectionFormat="of" derivedContent="Table 1"/>.</t>
        <table anchor="tab-1" align="center" pn="table-1">
          <name slugifiedName="name-prefixes-and-corresponding-">Prefixes and Corresponding YANG Modules</name>
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Prefix</th>
              <th align="left" colspan="1" rowspan="1">YANG Module</th>
              <th align="left" colspan="1" rowspan="1">Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">inet</td>
              <td align="left" colspan="1" rowspan="1">ietf-inet-types</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">if</td>
              <td align="left" colspan="1" rowspan="1">ietf-interfaces</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8343" format="default" sectionFormat="of" derivedContent="RFC8343"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">rt</td>
              <td align="left" colspan="1" rowspan="1">ietf-routing</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">rt-types</td>
              <td align="left" colspan="1" rowspan="1">ietf-routing-types</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8294" format="default" sectionFormat="of" derivedContent="RFC8294"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">pim-base</td>
              <td align="left" colspan="1" rowspan="1">ietf-pim-base</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC9128" format="default" sectionFormat="of" derivedContent="RFC9128"/></td>
            </tr>
          </tbody>
        </table>
      </section>
    </section>
    <section anchor="sect-2" numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-design-of-data-model">Design of Data Model</name>
      <t indent="0" pn="section-2-1">
   The model covers forwarding based on IGMP and MLD proxying <xref target="RFC4605" format="default" sectionFormat="of" derivedContent="RFC4605"/>. One goal of this document is to define a data model that
   provides a common user interface for IGMP/MLD Proxy devices.</t>
      <section anchor="sect-2.1" numbered="true" toc="include" removeInRFC="false" pn="section-2.1">
        <name slugifiedName="name-overview">Overview</name>
        <t indent="0" pn="section-2.1-1">
   The model defined in this document has all the common building blocks for
   IGMP/MLD Proxy devices and can be used to configure those devices. The
   operational state data and statistics can also be retrieved via this model.</t>
      </section>
      <section anchor="sect-2.2" numbered="true" toc="include" removeInRFC="false" pn="section-2.2">
        <name slugifiedName="name-optional-features">Optional Features</name>
        <t indent="0" pn="section-2.2-1">
   This model is designed to represent the basic capability subsets of
   IGMP/MLD Proxies. The main design goals of this document are that (1) the basic
   capabilities described in the model will be supported by any major 
   implementations that exist at the time of this writing and (2) the configuration of all implementations meeting
   the specifications will be easy to express through some combination of the
   optional features in the model and simple vendor augmentations.</t>
        <t indent="0" pn="section-2.2-2">
   This model declares two features representing capabilities that not all
   deployed devices support. One feature is called "igmp-proxy", and the other feature
   is called "mld-proxy". Either or both features could be implemented; this would
   provide more choices for vendors.</t>
      </section>
      <section anchor="sect-2.3" numbered="true" toc="include" removeInRFC="false" pn="section-2.3">
        <name slugifiedName="name-position-of-address-family-">Position of Address Family in Hierarchy</name>
        <t indent="0" pn="section-2.3-1">
   IGMP Proxies only support IPv4, while MLD Proxies only support IPv6. The data
   model defined in this document can be used for both IPv4 and IPv6 address
   families.</t>
        <t indent="0" pn="section-2.3-2">
   This document defines IGMP Proxies and MLD Proxies in separate schema branches
   in the structure. The benefits of this technique are as follows:

        </t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.3-3">
          <li pn="section-2.3-3.1">The model can support IGMP Proxies (IPv4), MLD Proxies (IPv6), or both,
     optionally and independently. Such flexibility cannot be achieved cleanly
     with a combined branch.</li>
          <li pn="section-2.3-3.2">The structure is consistent with other YANG data models such as the model defined in <xref target="RFC8652" format="default" sectionFormat="of" derivedContent="RFC8652"/>, which uses separate branches for IPv4 and IPv6.</li>
          <li pn="section-2.3-3.3">Having separate branches for IGMP Proxies and MLD Proxies allows minor
     differences in their behavior to be modeled more simply and cleanly. The
     two branches can better support different features and node types.</li>
        </ul>
      </section>
    </section>
    <section anchor="sect-3" numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-module-structure">Module Structure</name>
      <t indent="0" pn="section-3-1">This model augments the core routing data model specified in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/>.</t>
      <sourcecode name="" type="yangtree" markers="false" pn="section-3-2">
   +--rw routing
      +--rw router-id?
      +--rw control-plane-protocols
      |  +--rw control-plane-protocol* [type name]
      |     +--rw type
      |     +--rw name
      |     +--rw igmp-proxy &lt;= Augmented by this model
                     ...
      |     +--rw mld-proxy  &lt;= Augmented by this model
</sourcecode>
      <t indent="0" pn="section-3-3">
   The "igmp-proxy" container instantiates an IGMP Proxy. The "mld-proxy"
   container instantiates an MLD Proxy.</t>
      <section anchor="sect-3.1" numbered="true" toc="include" removeInRFC="false" pn="section-3.1">
        <name slugifiedName="name-igmp-proxy-configuration-an">IGMP Proxy Configuration and Operational State</name>
        <t indent="0" pn="section-3.1-1">
   The YANG module augments
   /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol to add the
   igmp-proxy container.</t>
        <t indent="0" pn="section-3.1-2">
   All attributes related to IGMP Proxies are defined in the igmp-proxy
   container. The read-write attributes represent configurable data. The
   read-only attributes represent state data.</t>
        <t indent="0" pn="section-3.1-3">
   The igmp-version parameter represents the IGMP protocol version; the default
   value is 2. If the value of the "enabled" parameter is "true", it means that the IGMP Proxy is
   enabled.</t>
        <t indent="0" pn="section-3.1-4">
   The interface list under igmp-proxy contains upstream interfaces for an IGMP
   Proxy. A constraint is provided to make sure that the upstream interface for
   the IGMP Proxy is not configured to use PIM.</t>
        <t indent="0" pn="section-3.1-5">
   To configure a downstream interface for an IGMP Proxy, the ability to enable
   IGMP on that interface is needed. This is defined in 
   "<xref target="RFC8652" format="title" sectionFormat="of" derivedContent="A YANG Data Model for the Internet Group Management Protocol (IGMP) and Multicast Listener Discovery (MLD)"/>" <xref target="RFC8652" format="default" sectionFormat="of" derivedContent="RFC8652"/>.</t>
        <sourcecode name="" type="yangtree" markers="false" pn="section-3.1-6">
augment /rt:routing/rt:control-plane-protocols
          /rt:control-plane-protocol:
  +--rw igmp-proxy! {igmp-proxy}?
     +--rw interfaces
        +--rw interface* [name]
           +--rw name                     if:interface-ref
           +--rw igmp-version?            uint8
           +--rw enabled?                 boolean
           +--rw sender-source-address?   inet:ipv4-address-no-zone
           +--ro group* [group-address]
              +--ro group-address
              |       rt-types:ipv4-multicast-group-address
              +--ro up-time?         uint32
              +--ro filter-mode      enumeration
              +--ro source* [source-address]
                 +--ro source-address
                 |       inet:ipv4-address-no-zone
                 +--ro up-time?                uint32
                 +--ro downstream-interface* [name]
                    +--ro name    if:interface-ref
</sourcecode>
      </section>
      <section anchor="sect-3.2" numbered="true" toc="include" removeInRFC="false" pn="section-3.2">
        <name slugifiedName="name-mld-proxy-configuration-and">MLD Proxy Configuration and Operational State</name>
        <t indent="0" pn="section-3.2-1">
   The YANG module augments
   /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol to add the
   mld-proxy container.</t>
        <t indent="0" pn="section-3.2-2">
   All attributes related to MLD Proxies are defined in the mld-proxy
   container. The read-write attributes represent configurable data. The
   read-only attributes represent state data.</t>
        <t indent="0" pn="section-3.2-3">
   The mld-version parameter represents the MLD protocol version; the default value
   is 2. If the value of the "enabled" parameter is "true", it means that the MLD Proxy is enabled.</t>
        <t indent="0" pn="section-3.2-4">
   The interface list under mld-proxy contains upstream interfaces for an MLD
   Proxy. A constraint is provided to make sure that the upstream interface for
   the MLD Proxy is not configured to use PIM.</t>
        <t indent="0" pn="section-3.2-5">
   To configure a downstream interface for an MLD Proxy, enable MLD on that
   interface. This is defined in "<xref target="RFC8652" format="title" sectionFormat="of" derivedContent="A YANG Data Model for the Internet Group Management Protocol (IGMP) and Multicast Listener Discovery (MLD)"/>" <xref target="RFC8652" format="default" sectionFormat="of" derivedContent="RFC8652"/>.</t>
        <sourcecode name="" type="yangtree" markers="false" pn="section-3.2-6">
augment /rt:routing/rt:control-plane-protocols
          /rt:control-plane-protocol:
  +--rw mld-proxy! {mld-proxy}?
     +--rw interfaces
        +--rw interface* [name]
           +--rw name                     if:interface-ref
           +--rw mld-version?             uint8
           +--rw enabled?                 boolean
           +--rw sender-source-address?   inet:ipv6-address-no-zone
           +--ro group* [group-address]
              +--ro group-address
              |       rt-types:ipv6-multicast-group-address
              +--ro up-time?         uint32
              +--ro filter-mode      enumeration
              +--ro source* [source-address]
                 +--ro source-address
                 |       inet:ipv6-address-no-zone
                 +--ro up-time?                uint32
                 +--ro downstream-interface* [name]
                    +--ro name    if:interface-ref
</sourcecode>
      </section>
    </section>
    <section anchor="sect-4" numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-igmp-mld-proxy-yang-module">IGMP/MLD Proxy YANG Module</name>
      <t indent="0" pn="section-4-1">
   This module references <xref target="RFC4605" format="default" sectionFormat="of" derivedContent="RFC4605"/>, <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/>, <xref target="RFC8294" format="default" sectionFormat="of" derivedContent="RFC8294"/>, <xref target="RFC8343" format="default" sectionFormat="of" derivedContent="RFC8343"/>,
      <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/>, and <xref target="RFC9128" format="default" sectionFormat="of" derivedContent="RFC9128"/>.</t>
      <sourcecode name="ietf-igmp-mld-proxy@2023-05-30.yang" type="yang" markers="true" pn="section-4-2">
module ietf-igmp-mld-proxy {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-igmp-mld-proxy";
  prefix igmp-mld-proxy;

  import ietf-inet-types {
    prefix inet;
    reference
      "RFC 6991: Common YANG Data Types";
  }
  import ietf-interfaces {
    prefix if;
    reference
      "RFC 8343: A YANG Data Model for Interface Management";
  }
  import ietf-routing {
    prefix rt;
    reference
      "RFC 8349: A YANG Data Model for Routing Management (NMDA
       Version)";
  }
  import ietf-routing-types {
    prefix rt-types;
    reference
      "RFC 8294: Common YANG Data Types for the Routing Area";
  }
  import ietf-pim-base {
    prefix pim-base;
    reference
      "RFC 9128: YANG Data Model for Protocol Independent Multicast
       (PIM)";
  }

  organization
    "IETF PIM Working Group";
  contact
    "WG Web:   &lt;https://datatracker.ietf.org/wg/pim/&gt;
     WG List:  &lt;mailto:pim@ietf.org&gt;

     Editors:  Hongji Zhao
               &lt;mailto:hongji.zhao@ericsson.com&gt;

               Xufeng Liu
               &lt;mailto:xufeng.liu.ietf@gmail.com&gt;

               Yisong Liu
               &lt;mailto:liuyisong@chinamobile.com&gt;

               Mani Panchanathan
               &lt;mailto:mapancha@cisco.com&gt;

               Mahesh Sivakumar
               &lt;mailto:sivakumar.mahesh@gmail.com&gt;";
  description
    "This module defines a collection of YANG definitions common for
     all Internet Group Management Protocol (IGMP) and Multicast
     Listener Discovery (MLD) Proxy devices.

     Copyright (c) 2023 IETF Trust and the persons identified as
     authors of the code.  All rights reserved.

     Redistribution and use in source and binary forms, with or
     without modification, is permitted pursuant to, and subject to
     the license terms contained in, the Revised BSD License set
     forth in Section 4.c of the IETF Trust's Legal Provisions
     Relating to IETF Documents
     (https://trustee.ietf.org/license-info).

     This version of this YANG module is part of RFC 9398; see the
     RFC itself for full legal notices.";

  revision 2023-05-30 {
    description
      "Initial revision.";
    reference
      "RFC 9398: A YANG Data Model for Internet Group Management
       Protocol (IGMP) and Multicast Listener Discovery (MLD)
       Proxy Devices";
  }

  /*
   * Features
   */

  feature igmp-proxy {
    description
      "Support for the IGMP Proxy protocol.";
    reference
      "RFC 4605: Internet Group Management Protocol (IGMP) /
       Multicast Listener Discovery (MLD)-Based Multicast Forwarding
       ('IGMP/MLD Proxying')";
  }

  feature mld-proxy {
    description
      "Support for the MLD Proxy protocol.";
    reference
      "RFC 4605: Internet Group Management Protocol (IGMP) /
       Multicast Listener Discovery (MLD)-Based Multicast Forwarding
       ('IGMP/MLD Proxying')";
  }

  /*
   * Identities
   */

  identity igmp-proxy {
    base rt:control-plane-protocol;
    description
      "IGMP Proxy protocol.";
  }

  identity mld-proxy {
    base rt:control-plane-protocol;
    description
      "MLD Proxy protocol.";
  }

  /*
   * Groupings
   */

  grouping per-interface-config-attributes {
    description
      "'config' attributes as listed under an interface entry.";
    leaf enabled {
      type boolean;
      default "true";
      description
        "Set the value to 'true' to enable the IGMP/MLD Proxy.";
    }
  } // per-interface-config-attributes

  grouping state-group-attributes {
    description
      "State group attributes.";
    leaf up-time {
      type uint32;
      units "seconds";
      description
        "The elapsed time for (S,G) or (*,G).";
    }
    leaf filter-mode {
      type enumeration {
        enum include {
          description
            "In 'include' mode, reception of packets sent
             to the specified multicast address is requested
             only from those IP source addresses listed in the
             'source' list parameter.";
        }
        enum exclude {
          description
            "In 'exclude' mode, reception of packets sent
             to the given multicast address is requested
             from all IP source addresses except those
             listed in the 'source' list parameter.";
        }
      }
      mandatory true;
      description
        "Filter mode for a multicast group.
         May be either 'include' or 'exclude'.";
    }
  } // state-group-attributes

  /* augments */

  augment "/rt:routing/rt:control-plane-protocols"
        + "/rt:control-plane-protocol" {
    when "derived-from-or-self(rt:type, "
       + "'igmp-mld-proxy:igmp-proxy')" {
      description
        "This augmentation is only valid for IGMP Proxies.";
    }
    description
      "IGMP Proxy augmentation to routing control plane protocol
       configuration and state.";
    container igmp-proxy {
      if-feature "igmp-proxy";
      presence "IGMP Proxy configuration.";
      description
        "IGMP Proxy instance configuration.";
      container interfaces {
        description
          "Contains a list of upstream interfaces.";
        list interface {
          key "name";
          description
            "List of upstream interfaces.";
          leaf name {
            type if:interface-ref;
            must 'not( current() = /rt:routing'
               + '/rt:control-plane-protocols/pim-base:pim'
               + '/pim-base:interfaces/pim-base:interface'
               + '/pim-base:name )' {
              description
                "The upstream interface for the IGMP Proxy
                 must not be configured to use PIM.";
            }
            description
              "The upstream interface name.";
          }
          leaf igmp-version {
            type uint8 {
              range "1..3";
            }
            default "2";
            description
              "IGMP version.";
          }
          uses per-interface-config-attributes;
          leaf sender-source-address {
            type inet:ipv4-address-no-zone;
            description
              "The sender source address of an
               IGMP membership report message or leave message.";
          }
          list group {
            key "group-address";
            config false;
            description
              "List of the multicast groups in the membership
               database built on this upstream interface.";
            leaf group-address {
              type rt-types:ipv4-multicast-group-address;
              description
                "Multicast group address.";
            }
            uses state-group-attributes;
            list source {
              key "source-address";
              description
                "Multicast source information
                 for the multicast group.";
              leaf source-address {
                type inet:ipv4-address-no-zone;
                description
                  "Multicast source address.";
              }
              leaf up-time {
                type uint32;
                units "seconds";
                description
                  "The elapsed time for (S,G) or (*,G).";
              }
              list downstream-interface {
                key "name";
                description
                  "List of downstream interfaces.";
                leaf name {
                  type if:interface-ref;
                  description
                    "Downstream interfaces
                     for each upstream interface.";
                }
              }
            } // list source
          } // list group
        } // interface
      } // interfaces
    }
  }

  augment "/rt:routing/rt:control-plane-protocols"
        + "/rt:control-plane-protocol" {
    when "derived-from-or-self(rt:type, "
       + "'igmp-mld-proxy:mld-proxy')" {
      description
        "This augmentation is only valid for MLD Proxies.";
    }
    description
      "MLD Proxy augmentation to routing control plane protocol
       configuration and state.";
    container mld-proxy {
      if-feature "mld-proxy";
      presence "MLD Proxy configuration.";
      description
        "MLD Proxy instance configuration.";
      container interfaces {
        description
          "Contains a list of upstream interfaces.";
        list interface {
          key "name";
          description
            "List of upstream interfaces.";
          leaf name {
            type if:interface-ref;
            must 'not( current() = /rt:routing'
               + '/rt:control-plane-protocols/pim-base:pim'
               + '/pim-base:interfaces/pim-base:interface'
               + '/pim-base:name )' {
              description
                "The upstream interface for the MLD Proxy
                 must not be configured to use PIM.";
            }
            description
              "The upstream interface name.";
          }
          leaf mld-version {
            type uint8 {
              range "1..2";
            }
            default "2";
            description
              "MLD version.";
          }
          uses per-interface-config-attributes;
          leaf sender-source-address {
            type inet:ipv6-address-no-zone;
            description
              "The sender source address of an
               MLD membership report message or leave message.";
          }
          list group {
            key "group-address";
            config false;
            description
              "List of the multicast groups in the membership
               database built on this upstream interface.";
            leaf group-address {
              type rt-types:ipv6-multicast-group-address;
              description
                "Multicast group address.";
            }
            uses state-group-attributes;
            list source {
              key "source-address";
              description
                "Multicast source information
                 for the multicast group.";
              leaf source-address {
                type inet:ipv6-address-no-zone;
                description
                  "Multicast source address.";
              }
              leaf up-time {
                type uint32;
                units "seconds";
                description
                  "The elapsed time for (S,G) or (*,G).";
              }
              list downstream-interface {
                key "name";
                description
                  "List of downstream interfaces.";
                leaf name {
                  type if:interface-ref;
                  description
                    "Downstream interfaces
                     for each upstream interface.";
                }
              }
            } // list source
          } // list group
        } // interface
      } // interfaces
    }
  }
}
</sourcecode>
    </section>
    <section anchor="sect-5" numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-5-1">The YANG module specified in this document defines a schema for data
that is designed to be accessed via network management protocols such
as NETCONF <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> or RESTCONF <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>.
The lowest NETCONF layer is the secure transport layer, and the
mandatory-to-implement secure transport is Secure Shell (SSH)
<xref target="RFC6242" format="default" sectionFormat="of" derivedContent="RFC6242"/>. The lowest RESTCONF layer is HTTPS, and the
mandatory-to-implement secure transport is TLS <xref target="RFC8446" format="default" sectionFormat="of" derivedContent="RFC8446"/>.</t>
      <t indent="0" pn="section-5-2">The Network Configuration Access Control Model (NACM) <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/>
provides the means to restrict access for particular NETCONF or RESTCONF users
to a preconfigured subset of all available NETCONF or RESTCONF protocol
operations and content.</t>
      <t indent="0" pn="section-5-3">There are a number of data nodes defined in this YANG module that are
writable/creatable/deletable (i.e., config true, which is the default). These
data nodes may be considered sensitive or vulnerable in some network
environments. Write operations (e.g., edit-config) to these data nodes without
proper protection can have a negative effect on network operations. These are
the subtrees and data nodes and their sensitivity/vulnerability:</t>
      <t indent="0" pn="section-5-4">Under
   /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol:/
   igmp-mld-proxy:igmp-proxy:</t>
      <dl newline="true" indent="3" spacing="normal" pn="section-5-5">
        <dt pn="section-5-5.1">igmp-mld-proxy:interfaces</dt>
        <dd pn="section-5-5.2">This subtree specifies the interface list for an IGMP Proxy. Modifying
     the configuration may cause the IGMP Proxy interface to be deleted or
     changed.</dd>
        <dt pn="section-5-5.3">igmp-mld-proxy:interfaces/interface</dt>
        <dd pn="section-5-5.4">This subtree specifies the configuration for the IGMP Proxy
      attributes at the interface level. Modifying the configuration may
      cause the IGMP Proxy to be deleted or changed on a specific interface.</dd>
      </dl>
      <t indent="0" pn="section-5-6">Under
   /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol:/
   igmp-mld-proxy:mld-proxy:</t>
      <dl newline="true" indent="3" spacing="normal" pn="section-5-7">
        <dt pn="section-5-7.1">igmp-mld-proxy:interfaces</dt>
        <dd pn="section-5-7.2">This subtree specifies the interface list for an MLD Proxy. Modifying
     the configuration may cause the MLD Proxy interface to be deleted or
     changed.</dd>
        <dt pn="section-5-7.3">igmp-mld-proxy:interfaces/interface</dt>
        <dd pn="section-5-7.4">This subtree specifies the configuration for the MLD Proxy
      attributes at the interface level. Modifying the configuration may
      cause the MLD Proxy to be deleted or changed on a specific
      interface.</dd>
      </dl>
      <t indent="0" pn="section-5-8">
   Unauthorized access to any data nodes in these subtrees can adversely
   affect the IGMP/MLD Proxy subsystem of both the local device and the
   network. This may lead to network malfunctions, delivery of packets to
   inappropriate destinations, and other problems.</t>
      <t indent="0" pn="section-5-9">Some of the readable data nodes in this YANG module may be considered
sensitive or vulnerable in some network environments. It is thus important to
control read access (e.g., via get, get-config, or notification) to these data
nodes. These are the subtrees and data nodes and their
sensitivity/vulnerability:</t>
      <artwork name="" type="" align="left" alt="" pn="section-5-10">
Under
/rt:routing/rt:control-plane-protocols/rt:control-plane-protocol:/

igmp-mld-proxy:igmp-proxy
igmp-mld-proxy:mld-proxy
</artwork>
      <t indent="0" pn="section-5-11">
   Unauthorized access to any data nodes in these subtrees can disclose
   operational state information about the IGMP/MLD Proxy on this device. 
   Group information or source information may expose multicast group memberships.</t>
    </section>
    <section anchor="sect-6" numbered="true" toc="include" removeInRFC="false" pn="section-6">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <section anchor="sect-6.1" numbered="true" toc="include" removeInRFC="false" pn="section-6.1">
        <name slugifiedName="name-ietf-xml-registry">IETF XML Registry</name>
        <t indent="0" pn="section-6.1-1">
   This document registers the following namespace URIs in the "IETF XML
   Registry" <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>:</t>
        <dl spacing="compact" indent="3" newline="false" pn="section-6.1-2">
          <dt pn="section-6.1-2.1">URI:</dt>
          <dd pn="section-6.1-2.2">urn:ietf:params:xml:ns:yang:ietf-igmp-mld-proxy</dd>
          <dt pn="section-6.1-2.3">Registrant Contact:</dt>
          <dd pn="section-6.1-2.4">The IESG.</dd>
          <dt pn="section-6.1-2.5">XML:</dt>
          <dd pn="section-6.1-2.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
      </section>
      <section anchor="sect-6.2" numbered="true" toc="include" removeInRFC="false" pn="section-6.2">
        <name slugifiedName="name-yang-module-names-registry">YANG Module Names Registry</name>
        <t indent="0" pn="section-6.2-1">This document registers the following YANG module in the "YANG Module
Names" registry <xref target="RFC6020" format="default" sectionFormat="of" derivedContent="RFC6020"/>:</t>
        <dl spacing="compact" indent="3" newline="false" pn="section-6.2-2">
          <dt pn="section-6.2-2.1">Name:</dt>
          <dd pn="section-6.2-2.2">ietf-igmp-mld-proxy</dd>
          <dt pn="section-6.2-2.3">Namespace:</dt>
          <dd pn="section-6.2-2.4">urn:ietf:params:xml:ns:yang:ietf-igmp-mld-proxy</dd>
          <dt pn="section-6.2-2.5">Prefix:</dt>
          <dd pn="section-6.2-2.6">igmp-mld-proxy</dd>
          <dt pn="section-6.2-2.7">Reference:</dt>
          <dd pn="section-6.2-2.8">RFC 9398</dd>
        </dl>
      </section>
    </section>
  </middle>
  <back>
    <references pn="section-7">
      <name slugifiedName="name-references">References</name>
      <references pn="section-7.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC3376" target="https://www.rfc-editor.org/info/rfc3376" quoteTitle="true" derivedAnchor="RFC3376">
          <front>
            <title>Internet Group Management Protocol, Version 3</title>
            <author fullname="B. Cain" initials="B." surname="Cain"/>
            <author fullname="S. Deering" initials="S." surname="Deering"/>
            <author fullname="I. Kouvelas" initials="I." surname="Kouvelas"/>
            <author fullname="B. Fenner" initials="B." surname="Fenner"/>
            <author fullname="A. Thyagarajan" initials="A." surname="Thyagarajan"/>
            <date month="October" year="2002"/>
          </front>
          <seriesInfo name="RFC" value="3376"/>
          <seriesInfo name="DOI" value="10.17487/RFC3376"/>
        </reference>
        <reference anchor="RFC3688" target="https://www.rfc-editor.org/info/rfc3688" quoteTitle="true" derivedAnchor="RFC3688">
          <front>
            <title>The IETF XML Registry</title>
            <author fullname="M. Mealling" initials="M." surname="Mealling"/>
            <date month="January" year="2004"/>
            <abstract>
              <t indent="0">This document describes an IANA maintained registry for IETF standards which use Extensible Markup Language (XML) related items such as Namespaces, Document Type Declarations (DTDs), Schemas, and Resource Description Framework (RDF) Schemas.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="81"/>
          <seriesInfo name="RFC" value="3688"/>
          <seriesInfo name="DOI" value="10.17487/RFC3688"/>
        </reference>
        <reference anchor="RFC3810" target="https://www.rfc-editor.org/info/rfc3810" quoteTitle="true" derivedAnchor="RFC3810">
          <front>
            <title>Multicast Listener Discovery Version 2 (MLDv2) for IPv6</title>
            <author fullname="R. Vida" initials="R." role="editor" surname="Vida"/>
            <author fullname="L. Costa" initials="L." role="editor" surname="Costa"/>
            <date month="June" year="2004"/>
            <abstract>
              <t indent="0">This document updates RFC 2710, and it specifies Version 2 of the ulticast Listener Discovery Protocol (MLDv2).  MLD is used by an IPv6 router to discover the presence of multicast listeners on directly attached links, and to discover which multicast addresses are of interest to those neighboring nodes.  MLDv2 is designed to be interoperable with MLDv1.  MLDv2 adds the ability for a node to report interest in listening to packets with a particular multicast address only from specific source addresses or from all sources except for specific source addresses. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="3810"/>
          <seriesInfo name="DOI" value="10.17487/RFC3810"/>
        </reference>
        <reference anchor="RFC4605" target="https://www.rfc-editor.org/info/rfc4605" quoteTitle="true" derivedAnchor="RFC4605">
          <front>
            <title>Internet Group Management Protocol (IGMP) / Multicast Listener Discovery (MLD)-Based Multicast Forwarding ("IGMP/MLD Proxying")</title>
            <author fullname="B. Fenner" initials="B." surname="Fenner"/>
            <author fullname="H. He" initials="H." surname="He"/>
            <author fullname="B. Haberman" initials="B." surname="Haberman"/>
            <author fullname="H. Sandick" initials="H." surname="Sandick"/>
            <date month="August" year="2006"/>
            <abstract>
              <t indent="0">In certain topologies, it is not necessary to run a multicast routing protocol.  It is sufficient for a device to learn and proxy group membership information and simply forward multicast packets based upon that information.  This document describes a mechanism for forwarding based solely upon Internet Group Management Protocol (IGMP) or Multicast Listener Discovery (MLD) membership information. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4605"/>
          <seriesInfo name="DOI" value="10.17487/RFC4605"/>
        </reference>
        <reference anchor="RFC6020" target="https://www.rfc-editor.org/info/rfc6020" quoteTitle="true" derivedAnchor="RFC6020">
          <front>
            <title>YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)</title>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <date month="October" year="2010"/>
            <abstract>
              <t indent="0">YANG is a data modeling language used to model configuration and state data manipulated by the Network Configuration Protocol (NETCONF), NETCONF remote procedure calls, and NETCONF notifications. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6020"/>
          <seriesInfo name="DOI" value="10.17487/RFC6020"/>
        </reference>
        <reference anchor="RFC6241" target="https://www.rfc-editor.org/info/rfc6241" quoteTitle="true" derivedAnchor="RFC6241">
          <front>
            <title>Network Configuration Protocol (NETCONF)</title>
            <author fullname="R. Enns" initials="R." role="editor" surname="Enns"/>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <author fullname="J. Schoenwaelder" initials="J." role="editor" surname="Schoenwaelder"/>
            <author fullname="A. Bierman" initials="A." role="editor" surname="Bierman"/>
            <date month="June" year="2011"/>
            <abstract>
              <t indent="0">The Network Configuration Protocol (NETCONF) defined in this document provides mechanisms to install, manipulate, and delete the configuration of network devices.  It uses an Extensible Markup Language (XML)-based data encoding for the configuration data as well as the protocol messages.  The NETCONF protocol operations are realized as remote procedure calls (RPCs).  This document obsoletes RFC 4741. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6241"/>
          <seriesInfo name="DOI" value="10.17487/RFC6241"/>
        </reference>
        <reference anchor="RFC6242" target="https://www.rfc-editor.org/info/rfc6242" quoteTitle="true" derivedAnchor="RFC6242">
          <front>
            <title>Using the NETCONF Protocol over Secure Shell (SSH)</title>
            <author fullname="M. Wasserman" initials="M." surname="Wasserman"/>
            <date month="June" year="2011"/>
            <abstract>
              <t indent="0">This document describes a method for invoking and running the Network Configuration Protocol (NETCONF) within a Secure Shell (SSH) session as an SSH subsystem.  This document obsoletes RFC 4742. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6242"/>
          <seriesInfo name="DOI" value="10.17487/RFC6242"/>
        </reference>
        <reference anchor="RFC6991" target="https://www.rfc-editor.org/info/rfc6991" quoteTitle="true" derivedAnchor="RFC6991">
          <front>
            <title>Common YANG Data Types</title>
            <author fullname="J. Schoenwaelder" initials="J." role="editor" surname="Schoenwaelder"/>
            <date month="July" year="2013"/>
            <abstract>
              <t indent="0">This document introduces a collection of common data types to be used with the YANG data modeling language.  This document obsoletes RFC 6021.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6991"/>
          <seriesInfo name="DOI" value="10.17487/RFC6991"/>
        </reference>
        <reference anchor="RFC7950" target="https://www.rfc-editor.org/info/rfc7950" quoteTitle="true" derivedAnchor="RFC7950">
          <front>
            <title>The YANG 1.1 Data Modeling Language</title>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <date month="August" year="2016"/>
            <abstract>
              <t indent="0">YANG is a data modeling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols.  This document describes the syntax and semantics of version 1.1 of the YANG language.  YANG version 1.1 is a maintenance release of the YANG language, addressing ambiguities and defects in the original specification.  There are a small number of backward incompatibilities from YANG version 1.  This document also specifies the YANG mappings to the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7950"/>
          <seriesInfo name="DOI" value="10.17487/RFC7950"/>
        </reference>
        <reference anchor="RFC8040" target="https://www.rfc-editor.org/info/rfc8040" quoteTitle="true" derivedAnchor="RFC8040">
          <front>
            <title>RESTCONF Protocol</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <date month="January" year="2017"/>
            <abstract>
              <t indent="0">This document describes an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8040"/>
          <seriesInfo name="DOI" value="10.17487/RFC8040"/>
        </reference>
        <reference anchor="RFC8294" target="https://www.rfc-editor.org/info/rfc8294" quoteTitle="true" derivedAnchor="RFC8294">
          <front>
            <title>Common YANG Data Types for the Routing Area</title>
            <author fullname="X. Liu" initials="X." surname="Liu"/>
            <author fullname="Y. Qu" initials="Y." surname="Qu"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <author fullname="C. Hopps" initials="C." surname="Hopps"/>
            <author fullname="L. Berger" initials="L." surname="Berger"/>
            <date month="December" year="2017"/>
            <abstract>
              <t indent="0">This document defines a collection of common data types using the YANG data modeling language.  These derived common types are designed to be imported by other modules defined in the routing area.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8294"/>
          <seriesInfo name="DOI" value="10.17487/RFC8294"/>
        </reference>
        <reference anchor="RFC8341" target="https://www.rfc-editor.org/info/rfc8341" quoteTitle="true" derivedAnchor="RFC8341">
          <front>
            <title>Network Configuration Access Control Model</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability. There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content. This document defines such an access control model.</t>
              <t indent="0">This document obsoletes RFC 6536.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="91"/>
          <seriesInfo name="RFC" value="8341"/>
          <seriesInfo name="DOI" value="10.17487/RFC8341"/>
        </reference>
        <reference anchor="RFC8342" target="https://www.rfc-editor.org/info/rfc8342" quoteTitle="true" derivedAnchor="RFC8342">
          <front>
            <title>Network Management Datastore Architecture (NMDA)</title>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="J. Schoenwaelder" initials="J." surname="Schoenwaelder"/>
            <author fullname="P. Shafer" initials="P." surname="Shafer"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <author fullname="R. Wilton" initials="R." surname="Wilton"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">Datastores are a fundamental concept binding the data models written in the YANG data modeling language to network management protocols such as the Network Configuration Protocol (NETCONF) and RESTCONF.  This document defines an architectural framework for datastores based on the experience gained with the initial simpler model, addressing requirements that were not well supported in the initial model.  This document updates RFC 7950.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8342"/>
          <seriesInfo name="DOI" value="10.17487/RFC8342"/>
        </reference>
        <reference anchor="RFC8343" target="https://www.rfc-editor.org/info/rfc8343" quoteTitle="true" derivedAnchor="RFC8343">
          <front>
            <title>A YANG Data Model for Interface Management</title>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">This document defines a YANG data model for the management of network interfaces. It is expected that interface-type-specific data models augment the generic interfaces data model defined in this document. The data model includes definitions for configuration and system state (status information and counters for the collection of statistics).</t>
              <t indent="0">The YANG data model in this document conforms to the Network Management Datastore Architecture (NMDA) defined in RFC 8342.</t>
              <t indent="0">This document obsoletes RFC 7223.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8343"/>
          <seriesInfo name="DOI" value="10.17487/RFC8343"/>
        </reference>
        <reference anchor="RFC8349" target="https://www.rfc-editor.org/info/rfc8349" quoteTitle="true" derivedAnchor="RFC8349">
          <front>
            <title>A YANG Data Model for Routing Management (NMDA Version)</title>
            <author fullname="L. Lhotka" initials="L." surname="Lhotka"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <author fullname="Y. Qu" initials="Y." surname="Qu"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">This document specifies three YANG modules and one submodule. Together, they form the core routing data model that serves as a framework for configuring and managing a routing subsystem. It is expected that these modules will be augmented by additional YANG modules defining data models for control-plane protocols, route filters, and other functions. The core routing data model provides common building blocks for such extensions -- routes, Routing Information Bases (RIBs), and control-plane protocols.</t>
              <t indent="0">The YANG modules in this document conform to the Network Management Datastore Architecture (NMDA). This document obsoletes RFC 8022.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8349"/>
          <seriesInfo name="DOI" value="10.17487/RFC8349"/>
        </reference>
        <reference anchor="RFC8446" target="https://www.rfc-editor.org/info/rfc8446" quoteTitle="true" derivedAnchor="RFC8446">
          <front>
            <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
            <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
            <date month="August" year="2018"/>
            <abstract>
              <t indent="0">This document specifies version 1.3 of the Transport Layer Security (TLS) protocol. TLS allows client/server applications to communicate over the Internet in a way that is designed to prevent eavesdropping, tampering, and message forgery.</t>
              <t indent="0">This document updates RFCs 5705 and 6066, and obsoletes RFCs 5077, 5246, and 6961. This document also specifies new requirements for TLS 1.2 implementations.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8446"/>
          <seriesInfo name="DOI" value="10.17487/RFC8446"/>
        </reference>
        <reference anchor="RFC8652" target="https://www.rfc-editor.org/info/rfc8652" quoteTitle="true" derivedAnchor="RFC8652">
          <front>
            <title>A YANG Data Model for the Internet Group Management Protocol (IGMP) and Multicast Listener Discovery (MLD)</title>
            <author fullname="X. Liu" initials="X." surname="Liu"/>
            <author fullname="F. Guo" initials="F." surname="Guo"/>
            <author fullname="M. Sivakumar" initials="M." surname="Sivakumar"/>
            <author fullname="P. McAllister" initials="P." surname="McAllister"/>
            <author fullname="A. Peter" initials="A." surname="Peter"/>
            <date month="November" year="2019"/>
            <abstract>
              <t indent="0">This document defines a YANG data model that can be used to configure and manage Internet Group Management Protocol (IGMP) and Multicast Listener Discovery (MLD) devices.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8652"/>
          <seriesInfo name="DOI" value="10.17487/RFC8652"/>
        </reference>
        <reference anchor="RFC9128" target="https://www.rfc-editor.org/info/rfc9128" quoteTitle="true" derivedAnchor="RFC9128">
          <front>
            <title>YANG Data Model for Protocol Independent Multicast (PIM)</title>
            <author fullname="X. Liu" initials="X." surname="Liu"/>
            <author fullname="P. McAllister" initials="P." surname="McAllister"/>
            <author fullname="A. Peter" initials="A." surname="Peter"/>
            <author fullname="M. Sivakumar" initials="M." surname="Sivakumar"/>
            <author fullname="Y. Liu" initials="Y." surname="Liu"/>
            <author fullname="F. Hu" initials="F." surname="Hu"/>
            <date month="October" year="2022"/>
            <abstract>
              <t indent="0">This document defines a YANG data model that can be used to configure and manage devices supporting Protocol Independent Multicast (PIM).  The model covers the PIM protocol configuration, operational state, and event notifications data.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9128"/>
          <seriesInfo name="DOI" value="10.17487/RFC9128"/>
        </reference>
      </references>
      <references pn="section-7.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="RFC7761" target="https://www.rfc-editor.org/info/rfc7761" quoteTitle="true" derivedAnchor="RFC7761">
          <front>
            <title>Protocol Independent Multicast - Sparse Mode (PIM-SM): Protocol Specification (Revised)</title>
            <author fullname="B. Fenner" initials="B." surname="Fenner"/>
            <author fullname="M. Handley" initials="M." surname="Handley"/>
            <author fullname="H. Holbrook" initials="H." surname="Holbrook"/>
            <author fullname="I. Kouvelas" initials="I." surname="Kouvelas"/>
            <author fullname="R. Parekh" initials="R." surname="Parekh"/>
            <author fullname="Z. Zhang" initials="Z." surname="Zhang"/>
            <author fullname="L. Zheng" initials="L." surname="Zheng"/>
            <date month="March" year="2016"/>
            <abstract>
              <t indent="0">This document specifies Protocol Independent Multicast - Sparse Mode (PIM-SM). PIM-SM is a multicast routing protocol that can use the underlying unicast routing information base or a separate multicast-capable routing information base. It builds unidirectional shared trees rooted at a Rendezvous Point (RP) per group, and it optionally creates shortest-path trees per source.</t>
              <t indent="0">This document obsoletes RFC 4601 by replacing it, addresses the errata filed against it, removes the optional (*,*,RP), PIM Multicast Border Router features and authentication using IPsec that lack sufficient deployment experience (see Appendix A), and moves the PIM specification to Internet Standard.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="83"/>
          <seriesInfo name="RFC" value="7761"/>
          <seriesInfo name="DOI" value="10.17487/RFC7761"/>
        </reference>
        <reference anchor="RFC7951" target="https://www.rfc-editor.org/info/rfc7951" quoteTitle="true" derivedAnchor="RFC7951">
          <front>
            <title>JSON Encoding of Data Modeled with YANG</title>
            <author fullname="L. Lhotka" initials="L." surname="Lhotka"/>
            <date month="August" year="2016"/>
            <abstract>
              <t indent="0">This document defines encoding rules for representing configuration data, state data, parameters of Remote Procedure Call (RPC) operations or actions, and notifications defined using YANG as JavaScript Object Notation (JSON) text.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7951"/>
          <seriesInfo name="DOI" value="10.17487/RFC7951"/>
        </reference>
        <reference anchor="RFC8340" target="https://www.rfc-editor.org/info/rfc8340" quoteTitle="true" derivedAnchor="RFC8340">
          <front>
            <title>YANG Tree Diagrams</title>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="L. Berger" initials="L." role="editor" surname="Berger"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">This document captures the current syntax used in YANG module tree diagrams.  The purpose of this document is to provide a single location for this definition.  This syntax may be updated from time to time based on the evolution of the YANG language.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="215"/>
          <seriesInfo name="RFC" value="8340"/>
          <seriesInfo name="DOI" value="10.17487/RFC8340"/>
        </reference>
      </references>
    </references>
    <section anchor="sect-appendix" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-data-tree-example">Data Tree Example</name>
      <t indent="0" pn="section-appendix.a-1">
   This section contains an example for the IGMP Proxy, shown in JSON encoding
   <xref target="RFC7951" format="default" sectionFormat="of" derivedContent="RFC7951"/> and containing both configuration and state data. In the example, the
   IGMP Proxy is enabled on interface eth1/1.</t>
      <t indent="0" pn="section-appendix.a-2">
   The ability to enable IGMP on eth1/2 and eth1/3 is also needed. The configuration
   details are omitted here because this document is focused on IGMP/MLD
   Proxies.</t>
      <artwork name="" type="" align="left" alt="" pn="section-appendix.a-3">
           +-----------+
           +  Source   +
           +-----+-----+
                 |
-----------------+----------------------------
                 |eth1/1
             +---+----+
             +  R1    +
             +-+----+-+
        eth1/2 |     \ eth1/3
               |      \
               |       \
               |        \
---------------+---------+--------------------
               |          \
               |           \
     +---------+--+     +---+--------+
     + Receiver 1 +     + Receiver 2 +
     +------------+     +------------+
</artwork>
      <t indent="0" pn="section-appendix.a-4">The configuration data for R1 in the above figure could be as follows:</t>
      <sourcecode name="" type="json" markers="false" pn="section-appendix.a-5">
{
    "ietf-interfaces:interfaces": {
      "interface": [
        {
          "name": "eth1/1",
          "type": "iana-if-type:ipForward",
          "ietf-ip:ipv4": {
            "address": [
              {
                "ip": "203.0.113.1",
                "prefix-length": 24
              }
            ]
          }
        }
      ]
    },
   "ietf-routing:routing": {
      "control-plane-protocols": {
        "control-plane-protocol": [
          {
            "type": "ietf-igmp-mld-proxy:igmp-proxy",
            "name": "proxy1",
            "ietf-igmp-mld-proxy:igmp-proxy": {
              "interfaces": {
                "interface": [
                  {
                    "name": "eth1/1",
                    "igmp-version": 3,
                    "enabled": true
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
</sourcecode>
      <t indent="0" pn="section-appendix.a-6">The corresponding operational state data for R1 could be as follows:</t>
      <sourcecode name="" type="json" markers="false" pn="section-appendix.a-7">
{
    "ietf-interfaces:interfaces": {
      "interface": [
        {
          "name": "eth1/1",
          "type": "iana-if-type:ipForward",
          "admin-status": "up",
          "oper-status": "up",
          "if-index": 25678136,
          "statistics": {
            "discontinuity-time": "2021-05-23T10:34:56-06:00"
          },
          "ietf-ip:ipv4": {
            "address": [
              {
                "ip": "203.0.113.1",
                "prefix-length": 24
              }
            ]
          }
        }
      ]
    },
   "ietf-routing:routing": {
      "control-plane-protocols": {
        "control-plane-protocol": [
          {
            "type": "ietf-igmp-mld-proxy:igmp-proxy",
            "name": "proxy1",
            "ietf-igmp-mld-proxy:igmp-proxy": {
              "interfaces": {
                "interface": [
                  {
                    "name": "eth1/1",
                    "igmp-version": 3,
                    "enabled": true,
                    "group": [
                      {
                        "group-address": "233.252.0.23",
                        "filter-mode": "include",
                        "source": [
                          {
                            "source-address": "192.0.2.1",
                            "downstream-interface": [
                              {
                                "name": "eth1/2"
                              },
                              {
                                "name": "eth1/3"
                              }
                            ]
                          }
                        ]
                      }
                    ]
                  }
                ]
              }
            }
          }
        ]
      }
    }
  }
</sourcecode>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author initials="H." surname="Zhao" fullname="Hongji Zhao">
        <organization abbrev="Ericsson" showOnFrontPage="true">Ericsson (China) Communications Company Ltd.</organization>
        <address>
          <postal>
            <street>Ericsson Tower, No. 5 Lize East Street</street>
            <city>Beijing</city>
            <code>100102</code>
            <country>China</country>
          </postal>
          <email>hongji.zhao@ericsson.com</email>
        </address>
      </author>
      <author initials="X." surname="Liu" fullname="Xufeng Liu">
        <organization showOnFrontPage="true">Alef Edge</organization>
        <address>
          <postal>
            <street/>
            <city/>
            <region/>
            <code/>
            <country>United States of America</country>
          </postal>
          <email>xufeng.liu.ietf@gmail.com</email>
        </address>
      </author>
      <author initials="Y." surname="Liu" fullname="Yisong Liu">
        <organization showOnFrontPage="true">China Mobile</organization>
        <address>
          <postal>
            <street/>
            <city/>
            <region/>
            <code/>
            <country>China</country>
          </postal>
          <email>liuyisong@chinamobile.com</email>
        </address>
      </author>
      <author initials="M." surname="Panchanathan" fullname="Mani Panchanathan">
        <organization showOnFrontPage="true">Cisco Systems, Inc.</organization>
        <address>
          <postal>
            <street>3625 Cisco Way</street>
            <city>San Jose</city>
            <region>CA</region>
            <code/>
            <country>United States of America</country>
          </postal>
          <email>mapancha@cisco.com</email>
        </address>
      </author>
      <author initials="M." surname="Sivakumar" fullname="Mahesh Sivakumar">
        <organization abbrev="Juniper" showOnFrontPage="true">Juniper Networks</organization>
        <address>
          <postal>
            <street>1133 Innovation Way</street>
            <city>Sunnyvale</city>
            <region>CA</region>
            <country>United States of America</country>
          </postal>
          <email>sivakumar.mahesh@gmail.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
