<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" ipr="trust200902" docName="draft-ietf-netmod-immutable-flag-14" number="10099" category="std" consensus="true" submissionType="IETF" updates="8040, 8526" tocInclude="true" sortRefs="true" symRefs="true" xml:lang="en" prepTime="2026-12-04T00:07:41" indexInclude="true" scripts="Common,Latin" tocDepth="3">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-netmod-immutable-flag-14" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc10099" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="Immutable Flag">YANG Metadata Annotation for the Immutable Flag</title>
    <seriesInfo name="RFC" value="10099" stream="IETF"/>
    <author fullname="Qiufang Ma" surname="Ma" initials="Q." role="editor">
      <organization showOnFrontPage="true">Huawei</organization>
      <address>
        <postal>
          <street>101 Software Avenue, Yuhua District</street>
          <city>Nanjing</city>
          <region>Jiangsu</region>
          <code>210012</code>
          <country>China</country>
        </postal>
        <email>maqiufang1@huawei.com</email>
      </address>
    </author>
    <author fullname="Qin Wu" surname="Wu" initials="Q.">
      <organization showOnFrontPage="true">Huawei</organization>
      <address>
        <postal>
          <street>101 Software Avenue, Yuhua District</street>
          <city>Nanjing</city>
          <region>Jiangsu</region>
          <code>210012</code>
          <country>China</country>
        </postal>
        <email>bill.wu@huawei.com</email>
      </address>
    </author>
    <author fullname="Balázs Lengyel" asciiFullname="Balazs Lengyel" surname="Lengyel" initials="B." role="editor">
      <organization showOnFrontPage="true">Ericsson</organization>
      <address>
        <email>balazs.lengyel@ericsson.com</email>
      </address>
    </author>
    <author fullname="Hongwei Li" surname="Li" initials="H.">
      <organization showOnFrontPage="true">HPE</organization>
      <address>
        <email>flycoolman@gmail.com</email>
      </address>
    </author>
    <date month="12" year="2026"/>
    <area>OPS</area>
    <workgroup>netmod</workgroup>
    <keyword>immutable flag</keyword>
    <keyword>system configuration</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document defines a mechanism to formally document an existing behavior,
   implemented by servers of YANG-driven network management protocols (e.g., the Network Configuration Protocol (NETCONF) and RESTCONF), on the immutability of some
   system-provided nodes, using a YANG metadata annotation called
   "immutable" to flag which nodes are immutable.</t>
      <t indent="0" pn="section-abstract-2">Clients may use "immutable" annotations provided by the server to
   know beforehand why certain otherwise valid configuration requests
   will cause the server to return an error.</t>
      <t indent="0" pn="section-abstract-3">The immutable flag is descriptive, documenting an existing behavior, not
   prescriptive, dictating server behaviors.</t>
      <t indent="0" pn="section-abstract-4">This document updates RFCs 8040 and 8526.</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/rfc10099" 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) 2026 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" keepWithNext="true" 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-updates-to-rfc-8040">Updates to RFC 8040</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-updates-to-rfc-8526">Updates to RFC 8526</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-conventions-and-definitions">Conventions and Definitions</xref></t>
          </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-applicability">Applicability</xref></t>
          </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-immutable-metadata-annotati">"Immutable" Metadata Annotation</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2">
              <li pn="section-toc.1-1.4.2.1">
                <t indent="0" pn="section-toc.1-1.4.2.1.1"><xref derivedContent="4.1" format="counter" sectionFormat="of" target="section-4.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-definition">Definition</xref></t>
              </li>
              <li pn="section-toc.1-1.4.2.2">
                <t indent="0" pn="section-toc.1-1.4.2.2.1"><xref derivedContent="4.2" format="counter" sectionFormat="of" target="section-4.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-with-immutability-parameter">"with-immutability" Parameter</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2.2.2">
                  <li pn="section-toc.1-1.4.2.2.2.1">
                    <t indent="0" pn="section-toc.1-1.4.2.2.2.1.1"><xref derivedContent="4.2.1" format="counter" sectionFormat="of" target="section-4.2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-netconf-extensions-to-suppo">NETCONF Extensions to Support "with-immutability"</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.2.2.2">
                    <t indent="0" pn="section-toc.1-1.4.2.2.2.2.1"><xref derivedContent="4.2.2" format="counter" sectionFormat="of" target="section-4.2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-restconf-extensions-to-supp">RESTCONF Extensions to Support
          "with-immutability"</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </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-use-of-the-immutable-flag-f">Use of the Immutable Flag for Different Statements</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2">
              <li pn="section-toc.1-1.5.2.1">
                <t indent="0" pn="section-toc.1-1.5.2.1.1"><xref derivedContent="5.1" format="counter" sectionFormat="of" target="section-5.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-leaf-statement">The "leaf" Statement</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.2">
                <t indent="0" pn="section-toc.1-1.5.2.2.1"><xref derivedContent="5.2" format="counter" sectionFormat="of" target="section-5.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-leaf-list-statement">The "leaf-list" Statement</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.3">
                <t indent="0" pn="section-toc.1-1.5.2.3.1"><xref derivedContent="5.3" format="counter" sectionFormat="of" target="section-5.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-container-statement">The "container" Statement</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.4">
                <t indent="0" pn="section-toc.1-1.5.2.4.1"><xref derivedContent="5.4" format="counter" sectionFormat="of" target="section-5.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-list-statement">The "list" Statement</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.5">
                <t indent="0" pn="section-toc.1-1.5.2.5.1"><xref derivedContent="5.5" format="counter" sectionFormat="of" target="section-5.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-anydata-statement">The "anydata" Statement</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.6">
                <t indent="0" pn="section-toc.1-1.5.2.6.1"><xref derivedContent="5.6" format="counter" sectionFormat="of" target="section-5.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-anyxml-statement">The "anyxml" Statement</xref></t>
              </li>
            </ul>
          </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-immutability-of-interior-no">Immutability of Interior Nodes</xref></t>
          </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-system-configuration-datast">System Configuration Datastore Interactions</xref></t>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="8" format="counter" sectionFormat="of" target="section-8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-nacm-interactions">NACM Interactions</xref></t>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="9" format="counter" sectionFormat="of" target="section-9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ietf-immutable-annotation-y">"ietf-immutable-annotation" YANG Module</xref></t>
          </li>
          <li pn="section-toc.1-1.10">
            <t indent="0" pn="section-toc.1-1.10.1"><xref derivedContent="10" format="counter" sectionFormat="of" target="section-10"/>. <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.10.2">
              <li pn="section-toc.1-1.10.2.1">
                <t indent="0" pn="section-toc.1-1.10.2.1.1"><xref derivedContent="10.1" format="counter" sectionFormat="of" target="section-10.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-ietf-xml-registry">The IETF XML Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.10.2.2">
                <t indent="0" pn="section-toc.1-1.10.2.2.1"><xref derivedContent="10.2" format="counter" sectionFormat="of" target="section-10.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-yang-module-names-regis">The YANG Module Names Registry</xref></t>
              </li>
              <li pn="section-toc.1-1.10.2.3">
                <t indent="0" pn="section-toc.1-1.10.2.3.1"><xref derivedContent="10.3" format="counter" sectionFormat="of" target="section-10.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-restconf-capability-urn">The RESTCONF Capability URNs Registry</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.11">
            <t indent="0" pn="section-toc.1-1.11.1"><xref derivedContent="11" format="counter" sectionFormat="of" target="section-11"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-operational-considerations">Operational Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.12">
            <t indent="0" pn="section-toc.1-1.12.1"><xref derivedContent="12" format="counter" sectionFormat="of" target="section-12"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.13">
            <t indent="0" pn="section-toc.1-1.13.1"><xref derivedContent="13" format="counter" sectionFormat="of" target="section-13"/>. <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.13.2">
              <li pn="section-toc.1-1.13.2.1">
                <t indent="0" pn="section-toc.1-1.13.2.1.1"><xref derivedContent="13.1" format="counter" sectionFormat="of" target="section-13.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.13.2.2">
                <t indent="0" pn="section-toc.1-1.13.2.2.1"><xref derivedContent="13.2" format="counter" sectionFormat="of" target="section-13.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.14">
            <t indent="0" pn="section-toc.1-1.14.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sample-use-cases">Sample Use Cases</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.14.2">
              <li pn="section-toc.1-1.14.2.1">
                <t indent="0" pn="section-toc.1-1.14.2.1.1"><xref derivedContent="A.1" format="counter" sectionFormat="of" target="section-appendix.a.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-uc1-modeling-of-server-capa">UC1: Modeling of Server Capabilities</xref></t>
              </li>
              <li pn="section-toc.1-1.14.2.2">
                <t indent="0" pn="section-toc.1-1.14.2.2.1"><xref derivedContent="A.2" format="counter" sectionFormat="of" target="section-appendix.a.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-uc2-hardware-based-autoconf">UC2: Hardware-Based Autoconfiguration - Interface Example</xref></t>
              </li>
              <li pn="section-toc.1-1.14.2.3">
                <t indent="0" pn="section-toc.1-1.14.2.3.1"><xref derivedContent="A.3" format="counter" sectionFormat="of" target="section-appendix.a.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-uc3-predefined-administrato">UC3: Predefined Administrator Roles</xref></t>
              </li>
              <li pn="section-toc.1-1.14.2.4">
                <t indent="0" pn="section-toc.1-1.14.2.4.1"><xref derivedContent="A.4" format="counter" sectionFormat="of" target="section-appendix.a.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-uc4-declaring-immutable-sys">UC4: Declaring Immutable System Configuration from the Perspective of an LNE</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.15">
            <t indent="0" pn="section-toc.1-1.15.1"><xref derivedContent="Appendix B" format="default" sectionFormat="of" target="section-appendix.b"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-examples-of-a-servers-immut">Examples of a Server's Immutable Behavior</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.15.2">
              <li pn="section-toc.1-1.15.2.1">
                <t indent="0" pn="section-toc.1-1.15.2.1.1"><xref derivedContent="B.1" format="counter" sectionFormat="of" target="section-appendix.b.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-netconf-example-to-retrieve">NETCONF Example to Retrieve the Immutable Configuration</xref></t>
              </li>
              <li pn="section-toc.1-1.15.2.2">
                <t indent="0" pn="section-toc.1-1.15.2.2.1"><xref derivedContent="B.2" format="counter" sectionFormat="of" target="section-appendix.b.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-restconf-example-to-retriev">RESTCONF Example to Retrieve the Immutable Configuration</xref></t>
              </li>
              <li pn="section-toc.1-1.15.2.3">
                <t indent="0" pn="section-toc.1-1.15.2.3.1"><xref derivedContent="B.3" format="counter" sectionFormat="of" target="section-appendix.b.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-the-inheritance-of-immutabi">The Inheritance of Immutability</xref></t>
              </li>
              <li pn="section-toc.1-1.15.2.4">
                <t indent="0" pn="section-toc.1-1.15.2.4.1"><xref derivedContent="B.4" format="counter" sectionFormat="of" target="section-appendix.b.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-immutability-of-the-list">Immutability of the "list"</xref></t>
              </li>
              <li pn="section-toc.1-1.15.2.5">
                <t indent="0" pn="section-toc.1-1.15.2.5.1"><xref derivedContent="B.5" format="counter" sectionFormat="of" target="section-appendix.b.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-immutability-of-the-leaf-li">Immutability of the "leaf-list"</xref></t>
              </li>
              <li pn="section-toc.1-1.15.2.6">
                <t indent="0" pn="section-toc.1-1.15.2.6.1"><xref derivedContent="B.6" format="counter" sectionFormat="of" target="section-appendix.b.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-error-responses-to-clients-">Error Responses to Clients Overriding the Immutable Configuration</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.16">
            <t indent="0" pn="section-toc.1-1.16.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.c"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.17">
            <t indent="0" pn="section-toc.1-1.17.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.d"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section anchor="introduction" numbered="true" removeInRFC="false" toc="include" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">This document defines a YANG metadata annotation <xref target="RFC7952" format="default" sectionFormat="of" derivedContent="RFC7952"/> to formally document
   an existing model handling behavior that has been used by
   multiple standards organizations (e.g., 3GPP TS 32.156 <xref target="TS32.156" format="default" sectionFormat="of" derivedContent="TS32.156"/>, 3GPP TS 28.623 <xref target="TS28.623" format="default" sectionFormat="of" derivedContent="TS28.623"/>, and ONF TR-531 <xref target="TR-531" format="default" sectionFormat="of" derivedContent="TR-531"/>) and vendors.</t>
      <t indent="0" pn="section-1-2">YANG <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/> is a data modeling language used to model both state
   and configuration data, based on the "config" statement. However,
   there exists some system configuration data that cannot be modified
   by clients (that is, it is immutable) but that still needs to be declared as
   "config true" to:</t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-1-3">
        <li pn="section-1-3.1">
          <t indent="0" pn="section-1-3.1.1">allow configuration of data nodes under immutable lists or containers;</t>
        </li>
        <li pn="section-1-3.2">
          <t indent="0" pn="section-1-3.2.1">place "when", "must", and "leafref" constraints between configuration
   and immutable nodes;</t>
        </li>
        <li pn="section-1-3.3">
          <t indent="0" pn="section-1-3.3.1">ensure the existence of specific list entries that are provided and
   needed by the system, while additional list entries can be created,
   modified, or deleted.</t>
        </li>
      </ul>
      <t indent="0" pn="section-1-4">If a server always rejects a client's attempt to override some
   system-provided data because it internally thinks the data is immutable, it should document
   it toward the clients in a machine-readable way rather than writing as
   plain text in the "description" statement.</t>
      <t indent="0" pn="section-1-5">This document defines an approach to formally document an existing behavior,
   implemented by servers in production, on the immutability of some
   system-provided data, using a YANG metadata annotation <xref target="RFC7952" format="default" sectionFormat="of" derivedContent="RFC7952"/>
   called "immutable" to flag which nodes are immutable. A server <bcp14>MUST NOT</bcp14> set the immutable flag to "true" for configuration data that is not system-provided. This document does not
   regulate server behaviors. That said, it is expected that a server will return
   an error with an error-tag value "invalid-value" if a client attempts to
   modify an immutable node.</t>
      <t indent="0" pn="section-1-6">A nonexhaustive list of already implemented and potential use cases is provided below:</t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-1-7">
        <li pn="section-1-7.1">
          <t indent="0" pn="section-1-7.1.1">UC1: Modeling of server capabilities (<xref target="sec-uc1" format="default" sectionFormat="of" derivedContent="Appendix A.1"/>)</t>
        </li>
        <li pn="section-1-7.2">
          <t indent="0" pn="section-1-7.2.1">UC2: Hardware-based autoconfiguration (<xref target="sec-uc2" format="default" sectionFormat="of" derivedContent="Appendix A.2"/>)</t>
        </li>
        <li pn="section-1-7.3">
          <t indent="0" pn="section-1-7.3.1">UC3: Predefined administrator roles (<xref target="sec-uc3" format="default" sectionFormat="of" derivedContent="Appendix A.3"/>)</t>
        </li>
        <li pn="section-1-7.4">
          <t indent="0" pn="section-1-7.4.1">UC4: Declaring immutable system configuration from the perspective of a Logical Network Element (LNE) (<xref target="sec-uc4" format="default" sectionFormat="of" derivedContent="Appendix A.4"/>)</t>
        </li>
      </ul>
      <section anchor="updates-to-rfc-8040" numbered="true" removeInRFC="false" toc="include" pn="section-1.1">
        <name slugifiedName="name-updates-to-rfc-8040">Updates to RFC 8040</name>
        <t indent="0" pn="section-1.1-1">This document updates Sections <xref target="RFC8040" section="4.8" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8040#section-4.8" derivedContent="RFC8040"/> and <xref target="RFC8040" section="9.1.1" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8040#section-9.1.1" derivedContent="RFC8040"/> of <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/> to add an
  additional query parameter named "with-immutability", as specified in <xref target="RESTCONF-ext" format="default" sectionFormat="of" derivedContent="Section 4.2.2"/>.</t>
      </section>
      <section anchor="updates-to-rfc-8526" numbered="true" removeInRFC="false" toc="include" pn="section-1.2">
        <name slugifiedName="name-updates-to-rfc-8526">Updates to RFC 8526</name>
        <t indent="0" pn="section-1.2-1">This document updates <xref section="3.1.1" sectionFormat="of" target="RFC8526" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8526#section-3.1.1" derivedContent="RFC8526"/> to add an additional input parameter
   named "with-immutability" for the &lt;get-data&gt; operation, as specified in <xref target="NETCONF-ext" format="default" sectionFormat="of" derivedContent="Section 4.2.1"/>.</t>
      </section>
    </section>
    <section anchor="conventions-and-definitions" numbered="true" removeInRFC="false" toc="include" pn="section-2">
      <name slugifiedName="name-conventions-and-definitions">Conventions and Definitions</name>
      <t indent="0" pn="section-2-1">The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
"<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
described in BCP 14 <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/> when, and only when, they
appear in all capitals, as shown here.</t>
      <t indent="0" pn="section-2-2">This document uses the following term defined in <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/>:</t>
      <ul spacing="compact" bare="false" empty="false" indent="3" pn="section-2-3">
        <li pn="section-2-3.1">
          <t indent="0" pn="section-2-3.1.1">configuration data</t>
        </li>
      </ul>
      <t indent="0" pn="section-2-4">This document uses the following terms defined in <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/>:</t>
      <ul spacing="compact" bare="false" empty="false" indent="3" pn="section-2-5">
        <li pn="section-2-5.1">
          <t indent="0" pn="section-2-5.1.1">data node</t>
        </li>
        <li pn="section-2-5.2">
          <t indent="0" pn="section-2-5.2.1">leaf</t>
        </li>
        <li pn="section-2-5.3">
          <t indent="0" pn="section-2-5.3.1">leaf-list</t>
        </li>
        <li pn="section-2-5.4">
          <t indent="0" pn="section-2-5.4.1">container</t>
        </li>
        <li pn="section-2-5.5">
          <t indent="0" pn="section-2-5.5.1">list</t>
        </li>
        <li pn="section-2-5.6">
          <t indent="0" pn="section-2-5.6.1">anydata</t>
        </li>
        <li pn="section-2-5.7">
          <t indent="0" pn="section-2-5.7.1">anyxml</t>
        </li>
        <li pn="section-2-5.8">
          <t indent="0" pn="section-2-5.8.1">interior node</t>
        </li>
        <li pn="section-2-5.9">
          <t indent="0" pn="section-2-5.9.1">data tree</t>
        </li>
      </ul>
      <t indent="0" pn="section-2-6">This document uses the following term defined in <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/>:</t>
      <ul spacing="compact" bare="false" empty="false" indent="3" pn="section-2-7">
        <li pn="section-2-7.1">
          <t indent="0" pn="section-2-7.1.1">access operation</t>
        </li>
      </ul>
      <t indent="0" pn="section-2-8">This document uses the following terms defined in <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>:</t>
      <ul spacing="compact" bare="false" empty="false" indent="3" pn="section-2-9">
        <li pn="section-2-9.1">
          <t indent="0" pn="section-2-9.1.1">client</t>
        </li>
        <li pn="section-2-9.2">
          <t indent="0" pn="section-2-9.2.1">server</t>
        </li>
      </ul>
      <t indent="0" pn="section-2-10">This document uses the following term defined in <xref target="RFC10016" format="default" sectionFormat="of" derivedContent="RFC10016"/>:</t>
      <ul spacing="compact" bare="false" empty="false" indent="3" pn="section-2-11">
        <li pn="section-2-11.1">
          <t indent="0" pn="section-2-11.1.1">system configuration</t>
        </li>
      </ul>
      <t indent="0" pn="section-2-12">This document defines the following term:</t>
      <dl indent="3" newline="false" spacing="normal" pn="section-2-13">
        <dt pn="section-2-13.1">immutable flag:</dt>
        <dd pn="section-2-13.2">
          <t indent="0" pn="section-2-13.2.1">A read-only server-provided metadata value that describes the
   immutability of the configuration, which is conveyed via a YANG metadata annotation
   called "immutable" with a boolean value.</t>
        </dd>
      </dl>
    </section>
    <section anchor="applicability" numbered="true" removeInRFC="false" toc="include" pn="section-3">
      <name slugifiedName="name-applicability">Applicability</name>
      <t indent="0" pn="section-3-1">While the immutable flag applies to all configuration nodes, its value <bcp14>MUST NOT</bcp14> be set to "true" for configuration data that is not system configuration.</t>
      <t indent="0" pn="section-3-2">The immutable flag is only visible in read-only datastores (i.e., &lt;system&gt;
   <xref target="RFC10016" format="default" sectionFormat="of" derivedContent="RFC10016"/>, &lt;intended&gt;, and &lt;operational&gt;)
   when a "with-immutability" parameter is carried (<xref target="with-immutability" format="default" sectionFormat="of" derivedContent="Section 4.2"/>).
   However, this only serves as descriptive information about the
   instance node itself; it has no effect on the handling of the read-only
   datastore. If the immutable flag is requested to be returned for an invalid
   datastore (i.e., any datastore other than &lt;system&gt;, &lt;intended&gt;, or &lt;operational&gt;), then the server <bcp14>MUST</bcp14> return an error response with the error-tag value
   "unknown-element".</t>
      <t indent="0" pn="section-3-3">Configuration data has the same immutability if it appears in different datastores.
   The immutability of configuration data is protocol and
   user independent.</t>
    </section>
    <section anchor="immutable-metadata-annotation" numbered="true" removeInRFC="false" toc="include" pn="section-4">
      <name slugifiedName="name-immutable-metadata-annotati">"Immutable" Metadata Annotation</name>
      <section anchor="immutable-def" numbered="true" removeInRFC="false" toc="include" pn="section-4.1">
        <name slugifiedName="name-definition">Definition</name>
        <t indent="0" pn="section-4.1-1">The immutable flag, which is defined as the metadata annotation, takes a boolean
   value, and it is returned as requested by the client using a "with-immutability"
   parameter (<xref target="with-immutability" format="default" sectionFormat="of" derivedContent="Section 4.2"/>). If the "immutable" metadata annotation for
   a configuration node is not specified, the default "immutable" value is the
   same as the value of its parent node in the data tree (<xref target="interior" format="default" sectionFormat="of" derivedContent="Section 6"/>).
   The "immutable" metadata annotation value for a top-level instance
   node is "false" if not specified.</t>
        <t indent="0" pn="section-4.1-2">A node annotated as immutable indicates that the server does not allow it to be changed by configuring
   a different value in read-write configuration datastores (e.g., &lt;running&gt;),
   or deleted from the intended datastore, which is the merged result of &lt;running&gt; and &lt;system&gt; as defined in <xref section="4" sectionFormat="of" target="RFC10016" format="default" derivedLink="https://rfc-editor.org/rfc/rfc10016#section-4" derivedContent="RFC10016"/>. The node <bcp14>MAY</bcp14> be explicitly configured by a client in &lt;running&gt; with the
   same value, and that configuration in &lt;running&gt; may subsequently be removed.  However, neither of these edits will change the configuration in &lt;intended&gt; (if implemented) on the device.</t>
        <t indent="0" pn="section-4.1-3">Note that "immutable" metadata annotations are used to annotate data node
   instances.  A list may have multiple instances in the data tree;
   servers may annotate some of the instances as immutable and others as
   mutable.</t>
        <t indent="0" pn="section-4.1-4">Servers <bcp14>MUST</bcp14> ignore any "immutable" annotations sent from the client.</t>
      </section>
      <section anchor="with-immutability" numbered="true" removeInRFC="false" toc="include" pn="section-4.2">
        <name slugifiedName="name-with-immutability-parameter">"with-immutability" Parameter</name>
        <t indent="0" pn="section-4.2-1">This section specifies the Network Configuration Protocol (NETCONF) <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> <xref target="RFC8526" format="default" sectionFormat="of" derivedContent="RFC8526"/> and RESTCONF <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>
   protocol extensions to support the "with-immutability" parameter.
   The "immutable" metadata annotations are not returned in a response unless
   explicitly requested by the client using this parameter.</t>
        <section anchor="NETCONF-ext" numbered="true" removeInRFC="false" toc="include" pn="section-4.2.1">
          <name slugifiedName="name-netconf-extensions-to-suppo">NETCONF Extensions to Support "with-immutability"</name>
          <t indent="0" pn="section-4.2.1-1">This document updates <xref target="RFC8526" format="default" sectionFormat="of" derivedContent="RFC8526"/> to augment the &lt;get-data&gt;
   operation with an additional parameter named "with-immutability" when interacting with read-only datastores.
   If present, this parameter requests that the server include
   the "immutable" metadata annotations in its response.</t>
          <t indent="0" pn="section-4.2.1-2"><xref target="tree" format="default" sectionFormat="of" derivedContent="Figure 1"/> provides the tree structure <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/> of augmentations to NETCONF
	  operations, as defined in the "ietf-immutable-annotation" module (<xref target="module" format="default" sectionFormat="of" derivedContent="Section 9"/>).</t>
          <figure anchor="tree" align="left" suppress-title="false" pn="figure-1">
            <name slugifiedName="name-augmentations-to-netconf-op">Augmentations to NETCONF Operations</name>
            <sourcecode type="yangtree" markers="false" pn="section-4.2.1-3.1">
module: ietf-immutable-annotation
  augment /ncds:get-data/ncds:input:
    +---w with-immutability?   empty
</sourcecode>
          </figure>
          <t indent="0" pn="section-4.2.1-4">To discover if the "with-immutability" parameter is supported by a server,
a NETCONF client can query if the server implements the "ietf-immutable-annotation" module (<xref target="module" format="default" sectionFormat="of" derivedContent="Section 9"/>) by reading the YANG library information from the operational state datastore, as per <xref target="RFC8526" format="default" sectionFormat="of" derivedContent="RFC8526"/>.</t>
          <t indent="0" pn="section-4.2.1-5">Refer to <xref target="NETCONF-example" format="default" sectionFormat="of" derivedContent="Appendix B.1"/> for an example of a NETCONF operation with the "with-immutability" input parameter.</t>
        </section>
        <section anchor="RESTCONF-ext" numbered="true" removeInRFC="false" toc="include" pn="section-4.2.2">
          <name slugifiedName="name-restconf-extensions-to-supp">RESTCONF Extensions to Support
          "with-immutability"</name>
          <t indent="0" pn="section-4.2.2-1">This document extends Sections <xref target="RFC8040" section="4.8" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8040#section-4.8" derivedContent="RFC8040"/> and <xref target="RFC8040" section="9.1.1" sectionFormat="bare" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8040#section-9.1.1" derivedContent="RFC8040"/> of <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/> to add a query
   parameter named "with-immutability" to the GET operation. If present, this parameter
   requests that the server include the "immutable" metadata annotations in its
   response. This parameter is only allowed with no values carried when interacting with read-only datastores.
   If it has any unexpected value, then a "400 Bad Request" status-line <bcp14>MUST</bcp14> be returned. The error-tag value "invalid-value" is used in this case.
   RESTCONF protocol operations for the datastore resources are defined in <xref target="RFC8527" format="default" sectionFormat="of" derivedContent="RFC8527"/>.</t>
          <t indent="0" pn="section-4.2.2-2">To enable a RESTCONF client to discover if the "with-immutability" query parameter
   is supported by a server, the following capability URI is defined:</t>
          <artwork align="left" pn="section-4.2.2-3">
    urn:ietf:params:restconf:capability:with-immutability:1.0
</artwork>
          <t indent="0" pn="section-4.2.2-4">If the "with-immutability" query parameter URI is listed in the "capability"
leaf-list defined in <xref section="9.3" sectionFormat="of" target="RFC8040" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8040#section-9.3" derivedContent="RFC8040"/>, then the server supports the
"with-immutability" query parameter.</t>
          <t indent="0" pn="section-4.2.2-5">Refer to <xref target="RESTCONF-example" format="default" sectionFormat="of" derivedContent="Appendix B.2"/> for an example of a RESTCONF operation with the "with-immutability" query parameter.</t>
        </section>
      </section>
    </section>
    <section anchor="use-of-immutable-flag-for-different-statements" numbered="true" removeInRFC="false" toc="include" pn="section-5">
      <name slugifiedName="name-use-of-the-immutable-flag-f">Use of the Immutable Flag for Different Statements</name>
      <t indent="0" pn="section-5-1">This section defines what the immutable flag means to the client for
   each instance of YANG data node statements.</t>
      <section anchor="the-leaf-statement" numbered="true" removeInRFC="false" toc="include" pn="section-5.1">
        <name slugifiedName="name-the-leaf-statement">The "leaf" Statement</name>
        <t indent="0" pn="section-5.1-1">When a leaf node instance is immutable, it cannot be configured with a
   different value in read-write configuration datastores (e.g., &lt;running&gt;) or
   removed from &lt;intended&gt; (if implemented), though it can be created/deleted
   in read-write configuration datastores (see Sections <xref format="counter" target="immutable-def" sectionFormat="of" derivedContent="4.1"/> and <xref format="counter" target="system-interact" sectionFormat="of" derivedContent="7"/>).</t>
      </section>
      <section anchor="the-leaf-list-statement" numbered="true" removeInRFC="false" toc="include" pn="section-5.2">
        <name slugifiedName="name-the-leaf-list-statement">The "leaf-list" Statement</name>
        <t indent="0" pn="section-5.2-1">When a leaf-list entry is immutable, it cannot be
  removed from &lt;intended&gt; (if implemented), though it can be created/deleted
  in read-write configuration datastores (see Sections <xref format="counter" target="immutable-def" sectionFormat="of" derivedContent="4.1"/> and <xref format="counter" target="system-interact" sectionFormat="of" derivedContent="7"/>).</t>
        <t indent="0" pn="section-5.2-2">The "immutable" annotation attached to an individual leaf-list entry
   provides immutability with respect to the entry itself. As per the restrictions in <xref target="RFC7952" format="default" sectionFormat="of" derivedContent="RFC7952"/>,
   annotations cannot be attached to an entire leaf-list instance: only
   to individual leaf-list entries, which implies a leaf-list as a whole
	can only inherit immutability from a parent node (e.g., container).</t>
        <t indent="0" pn="section-5.2-3">If a leaf-list as a whole is immutable via inheritance from a parent node, any leaf-list entries cannot be added,
   modified, removed, or reordered (if it is ordered-by user).</t>
        <t indent="0" pn="section-5.2-4">Refer to <xref target="imm-leaf-list" format="default" sectionFormat="of" derivedContent="Appendix B.5"/> for an example of immutability of leaf-lists.</t>
      </section>
      <section anchor="the-container-statement" numbered="true" removeInRFC="false" toc="include" pn="section-5.3">
        <name slugifiedName="name-the-container-statement">The "container" Statement</name>
        <t indent="0" pn="section-5.3-1">When a container node instance is immutable, it cannot be removed from &lt;intended&gt; (if implemented),
   though it can be created/deleted in read-write configuration datastores
   (see Sections <xref format="counter" target="immutable-def" sectionFormat="of" derivedContent="4.1"/> and <xref format="counter" target="system-interact" sectionFormat="of" derivedContent="7"/>).</t>
        <t indent="0" pn="section-5.3-2">Descendant nodes of a container recursively inherit the immutability of the container, unless
   the immutability is overridden by an "immutable" annotation on a descendant node (<xref target="interior" format="default" sectionFormat="of" derivedContent="Section 6"/>).</t>
      </section>
      <section anchor="the-list-statement" numbered="true" removeInRFC="false" toc="include" pn="section-5.4">
        <name slugifiedName="name-the-list-statement">The "list" Statement</name>
        <t indent="0" pn="section-5.4-1">When a list entry is immutable, it cannot be removed from &lt;intended&gt; (if implemented),
  though it can be created/deleted in read-write configuration datastores
  (see Sections <xref format="counter" target="immutable-def" sectionFormat="of" derivedContent="4.1"/> and <xref format="counter" target="system-interact" sectionFormat="of" derivedContent="7"/>).</t>
        <t indent="0" pn="section-5.4-2">Descendant nodes of a list entry recursively inherit the immutability of the list entry, unless
  the immutability is overridden by an "immutable" annotation on a descendant node (<xref target="interior" format="default" sectionFormat="of" derivedContent="Section 6"/>).</t>
        <t indent="0" pn="section-5.4-3">The "immutable" annotation attached to an individual list entry provides
   immutability with respect to the entry itself. As per the restrictions in <xref target="RFC7952" format="default" sectionFormat="of" derivedContent="RFC7952"/>,
   annotations cannot be attached to an entire list instance: only
   to individual list entries, which implies a list as a whole
   can only inherit immutability from a parent node (e.g., container).</t>
        <t indent="0" pn="section-5.4-4">If a list as a whole is immutable via inheritance from a parent node, any list entries cannot be added, removed, or reordered (if it is ordered-by user).
   Each list entry inherits the immutability of the list by default, unless the immutability is
   overridden by an "immutable" annotation on a list entry.</t>
        <t indent="0" pn="section-5.4-5">Refer to <xref target="imm-list" format="default" sectionFormat="of" derivedContent="Appendix B.4"/> for an example of immutability of lists.</t>
      </section>
      <section anchor="the-anydata-statement" numbered="true" removeInRFC="false" toc="include" pn="section-5.5">
        <name slugifiedName="name-the-anydata-statement">The "anydata" Statement</name>
        <t indent="0" pn="section-5.5-1">When an "anydata" node instance is immutable, it cannot be removed from &lt;intended&gt; (if implemented),
   though it can be created/deleted in read-write configuration datastores
   (see Sections <xref format="counter" target="immutable-def" sectionFormat="of" derivedContent="4.1"/> and <xref format="counter" target="system-interact" sectionFormat="of" derivedContent="7"/>).</t>
        <t indent="0" pn="section-5.5-2">Additionally, as with all interior nodes, immutability is recursively applied to
   descendants (<xref target="interior" format="default" sectionFormat="of" derivedContent="Section 6"/>).</t>
      </section>
      <section anchor="the-anyxml-statement" numbered="true" removeInRFC="false" toc="include" pn="section-5.6">
        <name slugifiedName="name-the-anyxml-statement">The "anyxml" Statement</name>
        <t indent="0" pn="section-5.6-1">When an "anyxml" node instance is immutable, it cannot be removed from &lt;intended&gt; (if implemented),
   though it can be created/deleted in read-write configuration datastores
   (see Sections <xref format="counter" target="immutable-def" sectionFormat="of" derivedContent="4.1"/> and <xref format="counter" target="system-interact" sectionFormat="of" derivedContent="7"/>).</t>
        <t indent="0" pn="section-5.6-2">Additionally, as with all interior nodes, immutability is recursively applied to
   descendants (<xref target="interior" format="default" sectionFormat="of" derivedContent="Section 6"/>).</t>
      </section>
    </section>
    <section anchor="interior" numbered="true" removeInRFC="false" toc="include" pn="section-6">
      <name slugifiedName="name-immutability-of-interior-no">Immutability of Interior Nodes</name>
      <t indent="0" pn="section-6-1">Immutability is a property of a configuration data node instance, conveyed as metadata <xref target="RFC7952" format="default" sectionFormat="of" derivedContent="RFC7952"/>. It is
   recursively applied to descendants, which may reset the immutability
   state as needed, thereby affecting their descendants.  There is no limit
   to the number of times the immutability state may change in a data tree.</t>
      <t indent="0" pn="section-6-2">If the "immutable" metadata annotation for a returned child node is omitted,
   it has the same immutability as its parent node. For each top-level returned node, the default "immutable" annotation value is "false" unless explicitly annotated. Servers may suppress the
   annotation if it is inherited from its parent node or uses the default value
   as the top-level node, but they are not precluded from returning the annotation
   on every single element.</t>
      <t indent="0" pn="section-6-3">Refer to <xref target="inheritance" format="default" sectionFormat="of" derivedContent="Appendix B.3"/> for an example of how immutability is recursively
   inherited or explicitly reset by descendants.</t>
    </section>
    <section anchor="system-interact" numbered="true" removeInRFC="false" toc="include" pn="section-7">
      <name slugifiedName="name-system-configuration-datast">System Configuration Datastore Interactions</name>
      <t indent="0" pn="section-7-1">Immutable configuration can only be created, updated, and deleted by the server; it is present in &lt;system&gt;, if implemented. That said, the existence of
   immutable configuration is independent of whether or not &lt;system&gt; is implemented. For example, a server that does not support &lt;system&gt; may have predefined hardware-specific configuration in use that cannot be overridden or removed by clients.
   Not all system configuration data is immutable. Immutable configuration
   does not appear in &lt;running&gt; unless it is explicitly configured.</t>
      <t indent="0" pn="section-7-2">As specified in <xref target="immutable-def" format="default" sectionFormat="of" derivedContent="Section 4.1"/>, a client <bcp14>MAY</bcp14> create/delete immutable nodes
   with the same values as defined by the server in read-write configuration datastores (e.g.,
   &lt;candidate&gt;, &lt;running&gt;), which merely makes immutable nodes
   visible/invisible in the datastore.</t>
    </section>
    <section anchor="nacm-interactions" numbered="true" removeInRFC="false" toc="include" pn="section-8">
      <name slugifiedName="name-nacm-interactions">NACM Interactions</name>
      <t indent="0" pn="section-8-1">The server rejects an operation request due to immutability when it
   tries to perform the operation on the request data. Any immutability checking
   <bcp14>MUST</bcp14> be performed after
   access control decisions, if the Network Configuration Access
   Control Model (NACM) <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/> is implemented on a server. For
   example, if an operation requests to override an immutable
   configuration node, but the server determines that the user is not authorized
   to perform the requested access operation on the request data, the
   request is rejected with an "access-denied" error.</t>
    </section>
    <section anchor="module" numbered="true" removeInRFC="false" toc="include" pn="section-9">
      <name slugifiedName="name-ietf-immutable-annotation-y">"ietf-immutable-annotation" YANG Module</name>
      <t indent="0" pn="section-9-1">This module imports definitions from <xref target="RFC7952" format="default" sectionFormat="of" derivedContent="RFC7952"/>, <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>, <xref target="RFC8526" format="default" sectionFormat="of" derivedContent="RFC8526"/>, and <xref target="RFC10016" format="default" sectionFormat="of" derivedContent="RFC10016"/>.</t>
      <sourcecode type="yang" markers="true" name="ietf-immutable-annotation@2026-12-03.yang" pn="section-9-2">
module ietf-immutable-annotation {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-immutable-annotation";
  prefix imma;

  import ietf-yang-metadata {
    prefix md;
    reference
      "RFC 7952: Defining and Using Metadata with YANG";
  }
  import ietf-netconf-nmda {
    prefix ncds;
    reference
      "RFC 8526: NETCONF Extensions to Support the Network
                 Management Datastore Architecture";
  }
  import ietf-system-datastore {
    prefix sysds;
    reference
      "RFC 10016: System-Defined Configuration";
  }
  import ietf-datastores {
    prefix ds;
    reference
      "RFC 8342: Network Management Datastore Architecture
                 (NMDA)";
  }

  organization
    "IETF NETMOD (Network Modeling) Working Group";
  contact
    "WG Web:  https://datatracker.ietf.org/wg/netmod/
     WG List: NETMOD &lt;mailto:netmod@ietf.org&gt;

     Editor: Qiufang Ma
             &lt;mailto:maqiufang1@huawei.com&gt;
     Editor: Qin Wu
             &lt;mailto:bill.wu@huawei.com&gt;
     Editor: Balázs Lengyel
             &lt;mailto:balazs.lengyel@ericsson.com&gt;
     Editor: Hongwei Li
             &lt;mailto:flycoolman@gmail.com&gt;";
  description
    "This module defines a metadata annotation called 'immutable'
     to allow the server to formally document existing behavior on
     the mutability of some system configuration.  Clients may use
     the 'immutable' metadata annotation provided by the server to
     know beforehand why certain otherwise valid configuration
     requests will cause the server to return an error.

     Copyright (c) 2026 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).

     All revisions of IETF and IANA published modules can be found
     at the YANG Parameters registry group
     (https://www.iana.org/assignments/yang-parameters).

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

  revision 2026-12-03 {
    description
      "Initial revision.";
    reference
      "RFC 10099: YANG Metadata Annotation for the Immutable Flag";
  }

  md:annotation immutable {
    type boolean;
    description
      "The 'immutable' metadata annotation indicates the
       immutability of an instantiated data node.  It takes as a
       value 'true' or 'false'.  An immutable node cannot be
       changed via configuring a different value in read-write
       configuration datastores (e.g., &lt;running&gt;), though it can be
       created/deleted in read-write configuration datastores.  If
       not specified for a given configuration data node, the
       immutability is the same as the value of its parent node in
       the data tree.  The default value of the 'immutable'
       annotation for a top-level instance node is 'false' if not
       specified.";
  }

  augment "/ncds:get-data/ncds:input" {
    description
      "Allows the server to include 'immutable' metadata
       annotations in its response to the get-data operation.";
    leaf with-immutability {
      when
        "derived-from-or-self(../ncds:datastore,'sysds:system') or "
      + "derived-from-or-self(../ncds:datastore,'ds:intended') or "
      + "derived-from-or-self(../ncds:datastore,'ds:operational')";
      type empty;
      description
        "Requests that 'immutable' metadata annotations be returned.

         This parameter is only valid when the datastore is system,
         intended, or operational.  See Section 3 of RFC 10099 for
         the required error behavior when used with other
         datastores.";
    }
  }
}
</sourcecode>
    </section>
    <section anchor="iana-considerations" numbered="true" removeInRFC="false" toc="include" pn="section-10">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <section anchor="the-ietf-xml-registry" numbered="true" removeInRFC="false" toc="include" pn="section-10.1">
        <name slugifiedName="name-the-ietf-xml-registry">The IETF XML Registry</name>
        <t indent="0" pn="section-10.1-1">IANA has registered the following URI in the "ns"
registry within the "IETF XML Registry" group <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>:</t>
        <dl spacing="compact" newline="false" indent="3" pn="section-10.1-2">
          <dt pn="section-10.1-2.1">URI:</dt>
          <dd pn="section-10.1-2.2">urn:ietf:params:xml:ns:yang:ietf-immutable-annotation</dd>
          <dt pn="section-10.1-2.3">Registrant Contact:</dt>
          <dd pn="section-10.1-2.4">The IESG</dd>
          <dt pn="section-10.1-2.5">XML:</dt>
          <dd pn="section-10.1-2.6">N/A; the requested URI is an XML namespace.</dd>
        </dl>
      </section>
      <section anchor="the-yang-module-names-registry" numbered="true" removeInRFC="false" toc="include" pn="section-10.2">
        <name slugifiedName="name-the-yang-module-names-regis">The YANG Module Names Registry</name>
        <t indent="0" pn="section-10.2-1">IANA has registered the following YANG module in the "YANG
Module Names" registry <xref target="RFC6020" format="default" sectionFormat="of" derivedContent="RFC6020"/> within the "YANG Parameters"
registry group.</t>
        <dl spacing="compact" newline="false" indent="3" pn="section-10.2-2">
          <dt pn="section-10.2-2.1">Name:</dt>
          <dd pn="section-10.2-2.2">ietf-immutable-annotation</dd>
          <dt pn="section-10.2-2.3">Maintained by IANA?</dt>
          <dd pn="section-10.2-2.4">N</dd>
          <dt pn="section-10.2-2.5">Namespace:</dt>
          <dd pn="section-10.2-2.6">urn:ietf:params:xml:ns:yang:ietf-immutable-annotation</dd>
          <dt pn="section-10.2-2.7">Prefix:</dt>
          <dd pn="section-10.2-2.8">imma</dd>
          <dt pn="section-10.2-2.9">Reference:</dt>
          <dd pn="section-10.2-2.10">RFC 10099</dd>
        </dl>
      </section>
      <section anchor="restconf-capability-urn-registry" numbered="true" removeInRFC="false" toc="include" pn="section-10.3">
        <name slugifiedName="name-the-restconf-capability-urn">The RESTCONF Capability URNs Registry</name>
        <t indent="0" pn="section-10.3-1">IANA has registered the following capability identifier URN in the
"RESTCONF Capability URNs" registry defined in <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>:</t>
        <dl spacing="compact" newline="false" indent="3" pn="section-10.3-2">
          <dt pn="section-10.3-2.1">Index:</dt>
          <dd pn="section-10.3-2.2">:with-immutability</dd>
          <dt pn="section-10.3-2.3">Capability Identifier:</dt>
          <dd pn="section-10.3-2.4">urn:ietf:params:restconf:capability:with-immutability:1.0</dd>
        </dl>
      </section>
    </section>
    <section anchor="operational-considerations" numbered="true" removeInRFC="false" toc="include" pn="section-11">
      <name slugifiedName="name-operational-considerations">Operational Considerations</name>
      <t indent="0" pn="section-11-1">This document specifies a mechanism for clients to discover immutable system configuration before attempting modifications. Clients can leverage this information to avoid sending edit requests that would otherwise fail due to immutable nodes.</t>
      <t indent="0" pn="section-11-2">The mechanism defined in this document is backward compatible with existing implementations. A legacy client unaware of this mechanism will not include the "with-immutability" parameter in its retrieval requests. Consequently, servers will process the request normally without returning any "immutable" metadata annotations. Conversely, a client explicitly requesting the immutable flag from a legacy server may either receive an error response for an unsupported parameter or have the parameter ignored, depending on the server's implementation.</t>
    </section>
    <section anchor="security-considerations" numbered="true" removeInRFC="false" toc="include" pn="section-12">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-12-1">This section is modeled after the template described in <xref section="3.7.1" sectionFormat="of" target="RFC9907" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9907#section-3.7.1" derivedContent="RFC9907"/>.</t>
      <t indent="0" pn="section-12-2">The "ietf-immutable-annotation" YANG module defines a data model that is
   designed to be accessed via YANG-based management protocols, such as the Network Configuration Protocol (NETCONF) <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> and RESTCONF <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>. These YANG-based management protocols (1) have to
   use a secure transport layer (e.g., SSH <xref target="RFC4253" format="default" sectionFormat="of" derivedContent="RFC4253"/>, TLS <xref target="RFC9846" format="default" sectionFormat="of" derivedContent="RFC9846"/>, and QUIC <xref target="RFC9000" format="default" sectionFormat="of" derivedContent="RFC9000"/>) and (2) have to use mutual authentication (e.g., for SSH, the SSH Authentication Protocol <xref target="RFC4252" format="default" sectionFormat="of" derivedContent="RFC4252"/>).</t>
      <t indent="0" pn="section-12-3">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-12-4">The YANG module specified in this document defines a metadata annotation;
   it also extends the RPC operations of the NETCONF protocol in <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/>
   and <xref target="RFC8526" format="default" sectionFormat="of" derivedContent="RFC8526"/>.</t>
      <t indent="0" pn="section-12-5">The "immutable" metadata annotation exposes the immutability of configuration data,
   which may provide hints for attackers to find vulnerabilities in the network,
   e.g., to leverage the immutability of some configuration to better craft an attack.
   Since "immutable" annotations are attached to the instances of configuration data nodes,
   they are only accessible to clients that have the permissions to read the annotated configuration nodes.</t>
      <t indent="0" pn="section-12-6">The security considerations for the NETCONF protocol operations (see
   <xref section="9" sectionFormat="of" target="RFC6241" format="default" derivedLink="https://rfc-editor.org/rfc/rfc6241#section-9" derivedContent="RFC6241"/> and <xref section="6" sectionFormat="of" target="RFC8526" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8526#section-6" derivedContent="RFC8526"/>) also apply to
   the operations extended in this document.</t>
    </section>
  </middle>
  <back>
    <references anchor="sec-combined-references" pn="section-13">
      <name slugifiedName="name-references">References</name>
      <references anchor="sec-normative-references" pn="section-13.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t indent="0">In many standards track documents several words are used to signify the requirements in the specification. These words are often capitalized. This document defines these words as they should be interpreted in IETF documents. This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </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="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="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="RFC7952" target="https://www.rfc-editor.org/info/rfc7952" quoteTitle="true" derivedAnchor="RFC7952">
          <front>
            <title>Defining and Using Metadata with YANG</title>
            <author fullname="L. Lhotka" initials="L." surname="Lhotka"/>
            <date month="August" year="2016"/>
            <abstract>
              <t indent="0">This document defines a YANG extension that allows for defining metadata annotations in YANG modules. The document also specifies XML and JSON encoding of annotations and other rules for annotating instances of YANG data nodes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7952"/>
          <seriesInfo name="DOI" value="10.17487/RFC7952"/>
        </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="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t indent="0">RFC 2119 specifies common key words that may be used in protocol specifications. This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </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="RFC8526" target="https://www.rfc-editor.org/info/rfc8526" quoteTitle="true" derivedAnchor="RFC8526">
          <front>
            <title>NETCONF Extensions to Support the Network Management Datastore Architecture</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="2019"/>
            <abstract>
              <t indent="0">This document extends the Network Configuration Protocol (NETCONF) defined in RFC 6241 in order to support the Network Management Datastore Architecture (NMDA) defined in RFC 8342.</t>
              <t indent="0">This document updates RFCs 6241 and 7950. The update to RFC 6241 adds new and operations and augments existing,, and operations. The update to RFC 7950 requires the usage of the YANG library (described in RFC 8525) by NETCONF servers implementing the NMDA.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8526"/>
          <seriesInfo name="DOI" value="10.17487/RFC8526"/>
        </reference>
        <reference anchor="RFC8527" target="https://www.rfc-editor.org/info/rfc8527" quoteTitle="true" derivedAnchor="RFC8527">
          <front>
            <title>RESTCONF Extensions to Support the Network Management Datastore Architecture</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="2019"/>
            <abstract>
              <t indent="0">This document extends the RESTCONF protocol defined in RFC 8040 in order to support the Network Management Datastore Architecture (NMDA) defined in RFC 8342.</t>
              <t indent="0">This document updates RFC 8040 by introducing new datastore resources, adding a new query parameter, and requiring the usage of the YANG library (described in RFC 8525) by RESTCONF servers implementing the NMDA.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8527"/>
          <seriesInfo name="DOI" value="10.17487/RFC8527"/>
        </reference>
        <reference anchor="RFC10016" target="https://www.rfc-editor.org/info/rfc10016" quoteTitle="true" derivedAnchor="RFC10016">
          <front>
            <title>System-Defined Configuration</title>
            <author fullname="Q. Ma" initials="Q." role="editor" surname="Ma"/>
            <author fullname="Q. Wu" initials="Q." surname="Wu"/>
            <author fullname="C. Feng" initials="C." surname="Feng"/>
            <date month="September" year="2026"/>
            <abstract>
              <t indent="0">The Network Management Datastore Architecture (NMDA) in RFC 8342 defines several configuration datastores holding configuration. The contents of these configuration datastores are controlled by clients. This document introduces the concept of a system configuration datastore holding configuration controlled by the system on which a server is running. The system configuration can be referenced (e.g., leafref) by configuration explicitly created by clients.</t>
              <t indent="0">This document updates RFC 8342.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="10016"/>
          <seriesInfo name="DOI" value="10.17487/RFC10016"/>
        </reference>
      </references>
      <references anchor="sec-informative-references" pn="section-13.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="RFC4252" target="https://www.rfc-editor.org/info/rfc4252" quoteTitle="true" derivedAnchor="RFC4252">
          <front>
            <title>The Secure Shell (SSH) Authentication Protocol</title>
            <author fullname="T. Ylonen" initials="T." surname="Ylonen"/>
            <author fullname="C. Lonvick" initials="C." role="editor" surname="Lonvick"/>
            <date month="January" year="2006"/>
            <abstract>
              <t indent="0">The Secure Shell Protocol (SSH) is a protocol for secure remote login and other secure network services over an insecure network. This document describes the SSH authentication protocol framework and public key, password, and host-based client authentication methods. Additional authentication methods are described in separate documents. The SSH authentication protocol runs on top of the SSH transport layer protocol and provides a single authenticated tunnel for the SSH connection protocol. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4252"/>
          <seriesInfo name="DOI" value="10.17487/RFC4252"/>
        </reference>
        <reference anchor="RFC4253" target="https://www.rfc-editor.org/info/rfc4253" quoteTitle="true" derivedAnchor="RFC4253">
          <front>
            <title>The Secure Shell (SSH) Transport Layer Protocol</title>
            <author fullname="T. Ylonen" initials="T." surname="Ylonen"/>
            <author fullname="C. Lonvick" initials="C." role="editor" surname="Lonvick"/>
            <date month="January" year="2006"/>
            <abstract>
              <t indent="0">The Secure Shell (SSH) is a protocol for secure remote login and other secure network services over an insecure network.</t>
              <t indent="0">This document describes the SSH transport layer protocol, which typically runs on top of TCP/IP. The protocol can be used as a basis for a number of secure network services. It provides strong encryption, server authentication, and integrity protection. It may also provide compression.</t>
              <t indent="0">Key exchange method, public key algorithm, symmetric encryption algorithm, message authentication algorithm, and hash algorithm are all negotiated.</t>
              <t indent="0">This document also describes the Diffie-Hellman key exchange method and the minimal set of algorithms that are needed to implement the SSH transport layer protocol. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4253"/>
          <seriesInfo name="DOI" value="10.17487/RFC4253"/>
        </reference>
        <reference anchor="RFC7317" target="https://www.rfc-editor.org/info/rfc7317" quoteTitle="true" derivedAnchor="RFC7317">
          <front>
            <title>A YANG Data Model for System Management</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <date month="August" year="2014"/>
            <abstract>
              <t indent="0">This document defines a YANG data model for the configuration and identification of some common system properties within a device containing a Network Configuration Protocol (NETCONF) server. This document also includes data node definitions for system identification, time-of-day management, user management, DNS resolver configuration, and some protocol operations for system management.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7317"/>
          <seriesInfo name="DOI" value="10.17487/RFC7317"/>
        </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>
        <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="RFC8530" target="https://www.rfc-editor.org/info/rfc8530" quoteTitle="true" derivedAnchor="RFC8530">
          <front>
            <title>YANG Model for Logical Network Elements</title>
            <author fullname="L. Berger" initials="L." surname="Berger"/>
            <author fullname="C. Hopps" initials="C." surname="Hopps"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <author fullname="D. Bogdanovic" initials="D." surname="Bogdanovic"/>
            <author fullname="X. Liu" initials="X." surname="Liu"/>
            <date month="March" year="2019"/>
            <abstract>
              <t indent="0">This document defines a logical network element (LNE) YANG module that is compliant with the Network Management Datastore Architecture (NMDA). This module can be used to manage the logical resource partitioning that may be present on a network device. Examples of common industry terms for logical resource partitioning are logical systems or logical routers. The YANG model in this document conforms with NMDA as defined in RFC 8342.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8530"/>
          <seriesInfo name="DOI" value="10.17487/RFC8530"/>
        </reference>
        <reference anchor="RFC8792" target="https://www.rfc-editor.org/info/rfc8792" quoteTitle="true" derivedAnchor="RFC8792">
          <front>
            <title>Handling Long Lines in Content of Internet-Drafts and RFCs</title>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <author fullname="E. Auerswald" initials="E." surname="Auerswald"/>
            <author fullname="A. Farrel" initials="A." surname="Farrel"/>
            <author fullname="Q. Wu" initials="Q." surname="Wu"/>
            <date month="June" year="2020"/>
            <abstract>
              <t indent="0">This document defines two strategies for handling long lines in width-bounded text content. One strategy, called the "single backslash" strategy, is based on the historical use of a single backslash ('\') character to indicate where line-folding has occurred, with the continuation occurring with the first character that is not a space character (' ') on the next line. The second strategy, called the "double backslash" strategy, extends the first strategy by adding a second backslash character to identify where the continuation begins and is thereby able to handle cases not supported by the first strategy. Both strategies use a self-describing header enabling automated reconstitution of the original content.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8792"/>
          <seriesInfo name="DOI" value="10.17487/RFC8792"/>
        </reference>
        <reference anchor="RFC9000" target="https://www.rfc-editor.org/info/rfc9000" quoteTitle="true" derivedAnchor="RFC9000">
          <front>
            <title>QUIC: A UDP-Based Multiplexed and Secure Transport</title>
            <author fullname="J. Iyengar" initials="J." role="editor" surname="Iyengar"/>
            <author fullname="M. Thomson" initials="M." role="editor" surname="Thomson"/>
            <date month="May" year="2021"/>
            <abstract>
              <t indent="0">This document defines the core of the QUIC transport protocol. QUIC provides applications with flow-controlled streams for structured communication, low-latency connection establishment, and network path migration. QUIC includes security measures that ensure confidentiality, integrity, and availability in a range of deployment circumstances. Accompanying documents describe the integration of TLS for key negotiation, loss detection, and an exemplary congestion control algorithm.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9000"/>
          <seriesInfo name="DOI" value="10.17487/RFC9000"/>
        </reference>
        <reference anchor="RFC9846" target="https://www.rfc-editor.org/info/rfc9846" quoteTitle="true" derivedAnchor="RFC9846">
          <front>
            <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
            <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
            <date month="July" year="2026"/>
            <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 obsoletes RFC 8446, which specified TLS 1.3. This document obsoletes RFC 5246 (specifying TLS 1.2) and RFCs 5077, 6961, 7627, and 8422, all of which pertain to TLS 1.2 or earlier, and updates RFCs 5705 and 6066. This document also specifies new requirements for TLS 1.2 implementations.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9846"/>
          <seriesInfo name="DOI" value="10.17487/RFC9846"/>
        </reference>
        <reference anchor="RFC9907" target="https://www.rfc-editor.org/info/rfc9907" quoteTitle="true" derivedAnchor="RFC9907">
          <front>
            <title>Guidelines for Authors and Reviewers of Documents Containing YANG Data Models</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Boucadair" initials="M." role="editor" surname="Boucadair"/>
            <author fullname="Q. Wu" initials="Q." surname="Wu"/>
            <date month="March" year="2026"/>
            <abstract>
              <t indent="0">This document provides guidelines for authors and reviewers of specifications containing YANG data models, including IANA-maintained YANG modules. Recommendations and procedures are defined, which are intended to increase interoperability and usability of Network Configuration Protocol (NETCONF) and RESTCONF protocol implementations that utilize YANG modules.</t>
              <t indent="0">This document obsoletes RFC 8407; it also updates RFC 8126 by providing additional guidelines for writing the IANA considerations for RFCs that specify IANA-maintained YANG modules.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="216"/>
          <seriesInfo name="RFC" value="9907"/>
          <seriesInfo name="DOI" value="10.17487/RFC9907"/>
        </reference>
        <reference anchor="TR-531" target="https://opennetworking.org/wp-content/uploads/2018/08/TR-531_UML-YANG_Mapping_Gdls_v1.1-1-1.pdf" quoteTitle="true" derivedAnchor="TR-531">
          <front>
            <title>UML to YANG Mapping Guidelines</title>
            <author>
              <organization showOnFrontPage="true">ONF</organization>
            </author>
            <date year="2018" month="July"/>
          </front>
          <seriesInfo name="ONF" value="TR-531"/>
          <refcontent>Version 1.1</refcontent>
        </reference>
        <reference anchor="TS28.623" target="https://www.3gpp.org/ftp/Specs/archive/28_series/28.623/28623-i02.zip" quoteTitle="true" derivedAnchor="TS28.623">
          <front>
            <title>Telecommunication management; Generic Network Resource Model (NRM) Integration Reference Point (IRP); Solution Set (SS) definitions</title>
            <author>
              <organization showOnFrontPage="true">3GPP</organization>
            </author>
            <date month="September" year="2022"/>
          </front>
          <seriesInfo name="3GPP TS" value="28.623"/>
          <refcontent>Version 18.0.2</refcontent>
        </reference>
        <reference anchor="TS32.156" target="https://www.3gpp.org/ftp/Specs/archive/32_series/32.156/32156-h10.zip" quoteTitle="true" derivedAnchor="TS32.156">
          <front>
            <title>Telecommunication management; Fixed Mobile Convergence (FMC) Model repertoire</title>
            <author>
              <organization showOnFrontPage="true">3GPP</organization>
            </author>
            <date month="June" year="2022"/>
          </front>
          <seriesInfo name="3GPP TS" value="32.156"/>
          <refcontent>Version 17.1.0</refcontent>
        </reference>
        <reference anchor="W3C.XML1.0" target="https://www.w3.org/TR/2008/REC-xml-20081126/" quoteTitle="true" derivedAnchor="W3C.XML1.0">
          <front>
            <title>Extensible Markup Language (XML) 1.0 (Fifth Edition)</title>
            <author initials="T." surname="Bray" fullname="Tim Bray" role="editor"/>
            <author initials="J." surname="Paoli" fullname="Jean Paoli" role="editor"/>
            <author initials="C.M." surname="Sperberg-McQueen" fullname="C. M. Sperberg McQueen" role="editor"/>
            <author initials="E." surname="Maler" fullname="Eve Maler" role="editor"/>
            <author initials="F." surname="Yergeau" fullname="Francois Yergeau" role="editor"/>
            <date day="26" month="November" year="2008"/>
          </front>
          <refcontent>W3C Recommendation</refcontent>
          <annotation>Latest version available at <eref brackets="angle" target="https://www.w3.org/TR/xml/"/>.</annotation>
        </reference>
      </references>
    </references>
    <section anchor="use-cases" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.a">
      <name slugifiedName="name-sample-use-cases">Sample Use Cases</name>
      <section anchor="sec-uc1" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.a.1">
        <name slugifiedName="name-uc1-modeling-of-server-capa">UC1: Modeling of Server Capabilities</name>
        <t indent="0" pn="section-appendix.a.1-1">System capabilities might be represented as an immutable configuration.
   Configurable data nodes might need constraints specified using
   "when", "must", or "path" statements to ensure that configuration is set
   according to the system's capabilities. For example, configurable timer (e.g., for an "interface-timer" or a "bfd-interval-timer") values are dependent on the underlying system timer resource limits.</t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.a.1-2">
          <li pn="section-appendix.a.1-2.1">
            <t indent="0" pn="section-appendix.a.1-2.1.1">A timer might only support the values 1, 5, and 8 seconds, determined by the system capabilities. This is defined in the leaf-list "supported-timer".</t>
          </li>
          <li pn="section-appendix.a.1-2.2">
            <t indent="0" pn="section-appendix.a.1-2.2.1">When the configurable "interface-timer" leaf is set by a client, it should be ensured that one of the supported values is used.  The natural solution would be to make the "interface-timer" a leafref pointing at the "supported-timer".</t>
          </li>
        </ul>
        <t indent="0" pn="section-appendix.a.1-3">However, this is not possible as "supported-timer" must be
   read-only (thus "config false"), while "interface-timer" must be writable
	(thus "config true").  According to the rules of YANG, putting a constraint between "config true" and "config false" data nodes is not allowed (<xref section="9.9" sectionFormat="of" target="RFC7950" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7950#section-9.9" derivedContent="RFC7950"/>).</t>
        <t indent="0" pn="section-appendix.a.1-4">A solution is that the "supported-timer" data node in the YANG
   data model shall be defined as "config true" and shall also be marked with
   the "immutable" annotation making it unchangeable. After this, the
   "interface-timer" shall be defined as a leafref pointing at the
   "supported-timer".</t>
      </section>
      <section anchor="sec-uc2" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.a.2">
        <name slugifiedName="name-uc2-hardware-based-autoconf">UC2: Hardware-Based Autoconfiguration - Interface Example</name>
        <t indent="0" pn="section-appendix.a.2-1"><xref target="RFC8343" format="default" sectionFormat="of" derivedContent="RFC8343"/> defines a YANG data model for the management of network
   interfaces.  When a system-controlled interface is physically present,
   the system creates an interface entry with valid name and type
   values in &lt;system&gt; (if it exists; see <xref target="RFC10016" format="default" sectionFormat="of" derivedContent="RFC10016"/>).</t>
        <t indent="0" pn="section-appendix.a.2-2">The system-generated type value is dependent on, and represents, the hardware
   present; consequently, it cannot be changed by clients.  If a
   client tries to set the type of an interface to a value that can
   never be used by the system, the request will be rejected by the
   server.  The data is modeled as "config true"; thus, it should be annotated
   as immutable.</t>
        <t indent="0" pn="section-appendix.a.2-3">An alternative would be to model the list and these leafs
   as "config false", but that does not work because:</t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-appendix.a.2-4">
          <li pn="section-appendix.a.2-4.1">
            <t indent="0" pn="section-appendix.a.2-4.1.1">The list cannot be marked as "config false" because it needs to contain
  configurable child nodes, e.g., IP address or enabled;</t>
          </li>
          <li pn="section-appendix.a.2-4.2">
            <t indent="0" pn="section-appendix.a.2-4.2.1">The key leaf (name) cannot be marked as "config false" as the list
  itself is "config true";</t>
          </li>
          <li pn="section-appendix.a.2-4.3">
            <t indent="0" pn="section-appendix.a.2-4.3.1">The type cannot be marked "config false" because the type may need to be referenced  to make different configuration nodes
  conditionally available.</t>
          </li>
        </ul>
      </section>
      <section anchor="sec-uc3" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.a.3">
        <name slugifiedName="name-uc3-predefined-administrato">UC3: Predefined Administrator Roles</name>
        <t indent="0" pn="section-appendix.a.3-1">User and group management is fundamental for setting up access
   control rules (see <xref section="2.5" sectionFormat="of" target="RFC8341" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8341#section-2.5" derivedContent="RFC8341"/>).</t>
        <t indent="0" pn="section-appendix.a.3-2">A device may provide a predefined user account (e.g., a system
   administrator that is always available and has full privileges) for
   initial system setup and management of other users/groups.  It is
   possible that a new user/group can be defined and granted particular privileges,
   but the predefined administrator account and its granted access are immutable.</t>
      </section>
      <section anchor="sec-uc4" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.a.4">
        <name slugifiedName="name-uc4-declaring-immutable-sys">UC4: Declaring Immutable System Configuration from the Perspective of an LNE</name>
        <t indent="0" pn="section-appendix.a.4-1">An LNE, as described in <xref target="RFC8530" format="default" sectionFormat="of" derivedContent="RFC8530"/>, is an independently managed virtual
   network device made up of resources allocated to it from its host or
   parent network device.  The host device may allocate some
   resources to an LNE, which, from an LNE's perspective, are provided by
   the system and may not be modifiable.</t>
        <t indent="0" pn="section-appendix.a.4-2">For example, a host may allocate an interface to an LNE with a valid
   MTU value as its management interface, so that the allocated
   interface should then be accessible as the LNE-specific instance of
   the interface model.  The assigned MTU value is system-created and
   immutable from the context of the LNE.</t>
      </section>
    </section>
    <section anchor="examples-of-servers-immutable-behavior" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-examples-of-a-servers-immut">Examples of a Server's Immutable Behavior</name>
      <t indent="0" pn="section-appendix.b-1">This section provides some examples to illustrate the server's behavior with
  the immutable flag. These examples are not intended as recommendations for
  real-world deployments. Long lines within examples are handled in accordance with the line-wrapping specified in <xref target="RFC8792" format="default" sectionFormat="of" derivedContent="RFC8792"/>.</t>
      <t indent="0" pn="section-appendix.b-2">The following fictional module, which imports the "iana-crypt-hash" module <xref target="RFC7317" format="default" sectionFormat="of" derivedContent="RFC7317"/>, is used throughout this section:</t>
      <sourcecode type="yang" markers="false" pn="section-appendix.b-3">
module example-user-group {
  yang-version 1.1;
  namespace "https://example.com/ns/example-user-group";
  prefix ex-urp;

  import iana-crypt-hash {
    prefix ianach;
    reference
      "RFC 7317: A YANG Data Model for System Management,
                 Section 5";
  }

  organization
    "Example, Inc.";

  contact
    "Support at example.com";

  description
    "An example module for basic user and group management.";

  revision "2026-11-16" {
    description
      "Initial revision.";
    reference
      "RFC 10099: YANG Metadata Annotation for the Immutable Flag";
  }

  container user-groups {
    description
      "A container for user and group management.";
    list group {
      key "name";
      description
        "Specifies the list of access user-groups.";
      leaf name {
        type string;
        description
          "Indicates a unique name identifier for the user-group.";
      }
      leaf description {
        type string;
        description
          "Provides a human-readable description of the group.";
      }
      leaf access-level {
        type enumeration {
          enum admin {
            description
              "Administrator access with full privileges.";
          }
          enum power {
            description
              "Power user access with elevated privileges.";
          }
          enum normal {
            description
              "Standard user access with normal privileges.";
          }
          enum guest {
            description
              "Guest access with restricted read-only privileges.";
          }
        }
        description
          "Indicates permission level assigned to the group.";
      }
      list user {
        key "name";
        description
          "A list of users that belong to a group.";
        leaf name {
          type string;
          description
            "Specifies a unique name identifier for the user.";
        }
        leaf password {
          type ianach:crypt-hash;
          description
            "Records a cryptographically hashed user password.";
        }
        leaf full-name {
          type string;
          description
            "Indicates a human-readable full name of the user.";
        }
      }
      leaf-list tag {
        type string;
        ordered-by user;
        description
          "Indicates user-ordered tags for categorizing the
           user-group.";
      }
    }
  }
}
</sourcecode>
      <section anchor="NETCONF-example" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.1">
        <name slugifiedName="name-netconf-example-to-retrieve">NETCONF Example to Retrieve the Immutable Configuration</name>
        <t indent="0" pn="section-appendix.b.1-1"><xref target="NETCONF-with-immutability" format="default" sectionFormat="of" derivedContent="Figure 2"/> illustrates a NETCONF request example (using the Extensible Markup Language (XML) <xref target="W3C.XML1.0" format="default" sectionFormat="of" derivedContent="W3C.XML1.0"/> encoding) to retrieve the "user-groups"
   configuration in &lt;system&gt; with the "with-immutability" parameter and the response that a server might return if it supports this parameter. For illustrative clarity, some annotations that could otherwise be omitted are shown explicitly in the response.</t>
        <figure anchor="NETCONF-with-immutability" align="left" suppress-title="false" pn="figure-2">
          <name slugifiedName="name-a-netconf-example-to-retrie">A NETCONF Example to Retrieve the Immutable Configuration</name>
          <sourcecode type="xml" markers="false" pn="section-appendix.b.1-2.1">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;rpc message-id="101"
     xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;get-data xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-nmda"
            xmlns:sysds="urn:ietf:params:xml:ns:yang:ietf-system-\
                                                          datastore"&gt;
    &lt;datastore&gt;sysds:system&lt;/datastore&gt;
    &lt;subtree-filter&gt;
      &lt;user-groups
          xmlns="https://example.com/ns/example-user-group"/&gt;
    &lt;/subtree-filter&gt;
    &lt;with-immutability/&gt;
  &lt;/get-data&gt;
&lt;/rpc&gt;

&lt;rpc-reply message-id="101"
       xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;data xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-nmda"&gt;
    &lt;user-groups xmlns="https://example.com/ns/example-user-group"
      xmlns:imma="urn:ietf:params:xml:ns:yang:ietf-immutable-\
                                                          annotation"
      imma:immutable="false"&gt;
      &lt;group imma:immutable="true"&gt;
        &lt;name&gt;administrator&lt;/name&gt;
        &lt;description imma:immutable="false"&gt;administrator group&lt;/\
                                                         description&gt;
        &lt;access-level&gt;admin&lt;/access-level&gt;
        &lt;user&gt;
          &lt;name&gt;ex-username-1&lt;/name&gt;
          &lt;password&gt;$5$rounds=10000$mysalt123456789$l4BjA1p/8q.qCYJ.\
                               2pLqjR5mCJf2bP7cLpYWmnC7Hq8&lt;/password&gt;
        &lt;/user&gt;
        &lt;user imma:immutable="false"&gt;
          &lt;name&gt;ex-username-2&lt;/name&gt;
          &lt;password&gt;$1$/h1234q$abcdef1234567890abcdef&lt;/password&gt;
        &lt;/user&gt;
        &lt;tag&gt;system&lt;/tag&gt;
        &lt;tag&gt;non-editable&lt;/tag&gt;
      &lt;/group&gt;
      &lt;group imma:immutable="false"&gt;
        &lt;name&gt;power-users&lt;/name&gt;
        &lt;description&gt;Power user group&lt;/description&gt;
        &lt;access-level&gt;power&lt;/access-level&gt;
        &lt;user&gt;
          &lt;name&gt;ex-username-3&lt;/name&gt;
          &lt;password&gt;$1$/h4567q$abcdef2345678901abcdef&lt;/password&gt;
        &lt;/user&gt;
        &lt;tag&gt;system&lt;/tag&gt;
        &lt;tag&gt;editable&lt;/tag&gt;
      &lt;/group&gt;
    &lt;/user-groups&gt;
  &lt;/data&gt;
&lt;/rpc-reply&gt;
</sourcecode>
        </figure>
      </section>
      <section anchor="RESTCONF-example" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.2">
        <name slugifiedName="name-restconf-example-to-retriev">RESTCONF Example to Retrieve the Immutable Configuration</name>
        <t indent="0" pn="section-appendix.b.2-1"><xref target="RESTCONF-with-immutability" format="default" sectionFormat="of" derivedContent="Figure 3"/> illustrates a RESTCONF request example to retrieve the "user-groups"
  configuration in &lt;system&gt; with the "with-immutability" query parameter and the response a server might return if it supports this query parameter. The JSON representation of the metadata annotations in the response follows the encoding specified in <xref section="5.2" sectionFormat="of" target="RFC7952" format="default" derivedLink="https://rfc-editor.org/rfc/rfc7952#section-5.2" derivedContent="RFC7952"/>. For illustrative clarity, some annotations that could otherwise be omitted are shown explicitly in the response.</t>
        <figure anchor="RESTCONF-with-immutability" align="left" suppress-title="false" pn="figure-3">
          <name slugifiedName="name-a-restconf-example-to-retri">A RESTCONF Example to Retrieve the Immutable Configuration</name>
          <sourcecode type="http-message" markers="false" pn="section-appendix.b.2-2.1">
=============== NOTE: '\' line wrapping per RFC 8792 ================

GET /restconf/ds/ietf-system-datastore:system/example-user-group:\
                               user-groups?with-immutability HTTP/1.1
Host: example.com
Accept: application/yang-data+json


HTTP/1.1 200 OK
Date: Fri, 9 Jan 2026 15:56:30 GMT
Server: example-server
Content-Type: application/yang-data+json
Cache-Control: no-cache
ETag: "a74eefc993a2b"
Last-Modified: Mon, 5 Jan 2026 14:02:14 GMT

{
  "example-user-group:user-groups": {
    "@": {
      "ietf-immutable-annotation:immutable": false
    },
    "group": [
      {
        "@": {
          "ietf-immutable-annotation:immutable": true
        },
        "name": "administrator",
        "description": "administrator group",
        "@description": {
          "ietf-immutable-annotation:immutable": false
        },
        "access-level": "admin",
        "user": [
          {
            "name": "ex-username-1",
            "password": "$5$rounds=10000$mysalt123456789$l4BjA1p/8q.\
                                    qCYJ.2pLqjR5mCJf2bP7cLpYWmnC7Hq8"
          },
          {
            "@": {
              "ietf-immutable-annotation:immutable": false
            },
            "name": "ex-username-2",
            "password": "$1$/h1234q$abcdef1234567890abcdef"
          }
        ],
        "tag": ["system", "non-editable"]
      },
      {
        "@": {
          "ietf-immutable-annotation:immutable": false
        },
        "name": "power-users",
        "description": "Power user group",
        "access-level": "power",
        "user": [
          {
            "name": "ex-username-3",
            "password": "$1$/h4567q$abcdef2345678901abcdef"
          }
        ],
        "tag": ["system", "editable"]
      }
    ]
  }
}
</sourcecode>
        </figure>
      </section>
      <section anchor="inheritance" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.3">
        <name slugifiedName="name-the-inheritance-of-immutabi">The Inheritance of Immutability</name>
        <t indent="0" pn="section-appendix.b.3-1">In the examples in Figures <xref target="NETCONF-with-immutability" format="counter" sectionFormat="of" derivedContent="2"/> and <xref target="RESTCONF-with-immutability" format="counter" sectionFormat="of" derivedContent="3"/>, there are two "group" list entries inside the "user-groups"
container node. The "immutable" metadata annotation for the "user-groups" container
instance is "false", which is also its default value as the top-level element; thus, it can be omitted. The "administrator" list entry is immutable
with the immutability of its descendant nodes "description" and "user" list entry of "ex-username-2" being explicitly toggled.
Other descendant nodes (e.g., "access-level", "ex-username-1" user list entry, and "tag" leaf-list) inside the "administrator" list entry inherit the immutability of the list entry; thus, they are also immutable.</t>
        <t indent="0" pn="section-appendix.b.3-2">The "immutable" metadata annotation
for the "power-users" list entry is "false", which is also the same
value as its parent node (i.e., the "user-groups" container); thus, it can be omitted.
Descendant nodes (e.g., "description", "access-level", "user" list, and "tag" leaf-list) inside the "power-users" group inherit the immutability of the list entry; thus, they are also mutable.</t>
      </section>
      <section anchor="imm-list" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.4">
        <name slugifiedName="name-immutability-of-the-list">Immutability of the "list"</name>
        <t indent="0" pn="section-appendix.b.4-1">In the examples in Figures <xref target="NETCONF-with-immutability" format="counter" sectionFormat="of" derivedContent="2"/> and <xref target="RESTCONF-with-immutability" format="counter" sectionFormat="of" derivedContent="3"/>, the "group" list as a whole inherits immutability from the
 container "user-groups", which is mutable. One of the list entries, named "administrator", is immutable,
 and the other entry, named "power-users", is mutable. The client is able to copy the entire "user-groups"
 container in &lt;running&gt;, add new "group" entries, and modify the values of descendant nodes of the "power-users" list entry,
 but the values of descendant nodes of the "administrator" list entry cannot be overridden with different values except
 for the "description" and "ex-username-2" user list entry nodes, which are explicitly reset to be mutable.
 The client may also subsequently delete any copied "group" entries or the entire
 "user-groups" container, which will not prevent the deleted data from being present in &lt;intended&gt; (if implemented) assuming it
	is still contained in &lt;system&gt;.</t>
        <t indent="0" pn="section-appendix.b.4-2">The "user" list inside the "administrator" group list entry as a whole inherits immutability from the
 list entry, which is immutable. Thus, the client cannot add new user entries inside the "administrator" group.
 One of the user entries, named "ex-username-1", is immutable through inheritance,
 and the other user entry, named "ex-username-2", is explicitly set to be mutable. The client cannot
 modify the "password" parameter or add a "full-name" value for user "ex-username-1"
 but is allowed to update (e.g., modify the "password" value or add a "full-name" value)
 the list entry for user "ex-username-2". The client may copy or subsequently delete either of the two list entries in &lt;running&gt;,
 but there is no way to delete the nodes from &lt;intended&gt; (if implemented).</t>
      </section>
      <section anchor="imm-leaf-list" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.5">
        <name slugifiedName="name-immutability-of-the-leaf-li">Immutability of the "leaf-list"</name>
        <t indent="0" pn="section-appendix.b.5-1">In the examples in Figures <xref target="NETCONF-with-immutability" format="counter" sectionFormat="of" derivedContent="2"/> and <xref target="RESTCONF-with-immutability" format="counter" sectionFormat="of" derivedContent="3"/>, the user-ordered "tag" leaf-list node inside the "administrator" group entry as a whole inherits immutability from the list entry, which is immutable. Thus, the client cannot add, modify, or reorder
entries. The client may copy or subsequently delete either of the two leaf-list entries in &lt;running&gt;,
but there is no way to delete the nodes from &lt;intended&gt; if those entries appear in &lt;system&gt;.</t>
        <t indent="0" pn="section-appendix.b.5-2">The leaf-list node instance inside the "power-users" group entry as a whole inherits
immutability from the list entry, which is mutable. Thus, the client can add or reorder
entries. The client may also copy or subsequently delete either of the two leaf-list entries in &lt;running&gt;,
but there is no way to delete the nodes from &lt;intended&gt; if those entries appear in &lt;system&gt;.</t>
      </section>
      <section anchor="error-responses-to-clients-overriding-immutable-configuration" numbered="true" removeInRFC="false" toc="include" pn="section-appendix.b.6">
        <name slugifiedName="name-error-responses-to-clients-">Error Responses to Clients Overriding the Immutable Configuration</name>
        <t indent="0" pn="section-appendix.b.6-1">This section provides examples of a client's attempts to override immutable configuration and error responses that the server might return. Separate examples are provided for the NETCONF and RESTCONF protocols in Figures <xref target="NETCONF-error" format="counter" sectionFormat="of" derivedContent="4"/> and <xref target="RESTCONF-error" format="counter" sectionFormat="of" derivedContent="5"/>, respectively.</t>
        <figure anchor="NETCONF-error" align="left" suppress-title="false" pn="figure-4">
          <name slugifiedName="name-a-netconf-example-to-overri">A NETCONF Example to Override the Immutable Configuration with an Error Response</name>
          <sourcecode type="xml" markers="false" pn="section-appendix.b.6-2.1">
=============== NOTE: '\' line wrapping per RFC 8792 ================

&lt;rpc message-id="102"
     xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;edit-config&gt;
    &lt;target&gt;
      &lt;running/&gt;
    &lt;/target&gt;
    &lt;config&gt;
      &lt;user-groups xmlns="https://example.com/ns/example-user-group"&gt;
        &lt;group&gt;
          &lt;name&gt;administrator&lt;/name&gt;
          &lt;access-level&gt;guest&lt;/access-level&gt;
        &lt;/group&gt;
      &lt;/user-groups&gt;
    &lt;/config&gt;
  &lt;/edit-config&gt;
&lt;/rpc&gt;

&lt;rpc-reply message-id="102"
       xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"&gt;
  &lt;rpc-error&gt;
    &lt;error-type&gt;application&lt;/error-type&gt;
    &lt;error-tag&gt;invalid-value&lt;/error-tag&gt;
    &lt;error-severity&gt;error&lt;/error-severity&gt;
    &lt;error-path
        xmlns:ex-urp="https://example.com/ns/example-user-group"&gt;
      /ex-urp:user-groups/ex-urp:group[ex-urp:name="administrator"]\
                                                 /ex-urp:access-level
    &lt;/error-path&gt;
    &lt;error-message xml:lang="en"&gt;
      Invalid access-level value because the target node is marked \
                                                         as immutable
    &lt;/error-message&gt;
  &lt;/rpc-error&gt;
&lt;/rpc-reply&gt;
</sourcecode>
        </figure>
        <figure anchor="RESTCONF-error" align="left" suppress-title="false" pn="figure-5">
          <name slugifiedName="name-a-restconf-example-to-overr">A RESTCONF Example to Override the Immutable Configuration with an Error Response</name>
          <sourcecode type="http-message" markers="false" pn="section-appendix.b.6-3.1">
=============== NOTE: '\' line wrapping per RFC 8792 ================

PATCH /restconf/ds/ietf-datastores:running/example-user-group:user-\
                     groups/group=administrator/access-level HTTP/1.1
Host: example.com
Content-Type: application/yang-data+json

{
  "example-user-group:access-level": "guest"
}

HTTP/1.1 400 Bad Request
Content-Type: application/yang-data+json

{
  "ietf-restconf:errors": {
    "error": [
      {
        "error-type": "application",
        "error-tag": "invalid-value",
        "error-severity": "error",
        "error-path": "/example-user-group:user-groups/group[name='\
                                       administrator']/access-level",
        "error-message": "Invalid access-level value because the \
                                  target node is marked as immutable"
      }
    ]
  }
}
</sourcecode>
        </figure>
      </section>
    </section>
    <section numbered="false" anchor="acknowledgments" removeInRFC="false" toc="include" pn="section-appendix.c">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.c-1">Thanks to <contact fullname="Kent Watsen"/>, <contact fullname="Jan Lindblad"/>,
   <contact fullname="Jason Sterne"/>, <contact fullname="Robert Wilton"/>,
   <contact fullname="Andy Bierman"/>, <contact fullname="Juergen Schoenwaelder"/>,
   <contact fullname="Reshad Rahman"/>, <contact fullname="Anthony Somerset"/>,
   <contact fullname="Lou Berger"/>, <contact fullname="Joe Clarke"/>, and
   <contact fullname="Scott Mansfield"/> for reviewing and providing important
   inputs to this document.</t>
      <t indent="0" pn="section-appendix.c-2">Thanks to <contact fullname="Per Andersson"/> for the YANGDOCTORS review.</t>
      <t indent="0" pn="section-appendix.c-3">Thanks to <contact fullname="Mahesh Jethanandani"/> for the AD review.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.d">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author fullname="Qiufang Ma" surname="Ma" initials="Q." role="editor">
        <organization showOnFrontPage="true">Huawei</organization>
        <address>
          <postal>
            <street>101 Software Avenue, Yuhua District</street>
            <city>Nanjing</city>
            <region>Jiangsu</region>
            <code>210012</code>
            <country>China</country>
          </postal>
          <email>maqiufang1@huawei.com</email>
        </address>
      </author>
      <author fullname="Qin Wu" surname="Wu" initials="Q.">
        <organization showOnFrontPage="true">Huawei</organization>
        <address>
          <postal>
            <street>101 Software Avenue, Yuhua District</street>
            <city>Nanjing</city>
            <region>Jiangsu</region>
            <code>210012</code>
            <country>China</country>
          </postal>
          <email>bill.wu@huawei.com</email>
        </address>
      </author>
      <author fullname="Balázs Lengyel" asciiFullname="Balazs Lengyel" surname="Lengyel" initials="B." role="editor">
        <organization showOnFrontPage="true">Ericsson</organization>
        <address>
          <email>balazs.lengyel@ericsson.com</email>
        </address>
      </author>
      <author fullname="Hongwei Li" surname="Li" initials="H.">
        <organization showOnFrontPage="true">HPE</organization>
        <address>
          <email>flycoolman@gmail.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
