<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" category="std" consensus="true" docName="draft-ietf-ospf-yang-29" indexInclude="true" ipr="trust200902" number="9129" prepTime="2022-10-19T16:17:20" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="3" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-ospf-yang-29" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9129" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="OSPF YANG Data Model">YANG Data Model for the OSPF Protocol</title>
    <seriesInfo name="RFC" value="9129" stream="IETF"/>
    <author fullname="Derek Yeung" initials="D" surname="Yeung">
      <organization showOnFrontPage="true">Arrcus, Inc.</organization>
      <address>
        <postal>
          <street>2077 Gateway Place, Suite 400</street>
          <city>San Jose</city>
          <region>CA</region>
          <code>95110</code>
          <country>United States of America</country>
        </postal>
        <email>derek@arrcus.com</email>
      </address>
    </author>
    <author fullname="Yingzhen Qu" initials="Y" surname="Qu">
      <organization showOnFrontPage="true">Futurewei</organization>
      <address>
        <postal>
          <street>2330 Central Expressway</street>
          <city>Santa Clara</city>
          <region>CA</region>
          <code>95050</code>
          <country>United States of America</country>
        </postal>
        <email>yingzhen.qu@futurewei.com</email>
      </address>
    </author>
    <author fullname="Jeffrey Zhang" initials="J" surname="Zhang">
      <organization showOnFrontPage="true">Juniper Networks</organization>
      <address>
        <postal>
          <street>10 Technology Park Drive</street>
          <city>Westford</city>
          <region>MA</region>
          <code>01886</code>
          <country>United States of America</country>
        </postal>
        <email>zzhang@juniper.net</email>
      </address>
    </author>
    <author fullname="Ing-Wher Chen" initials="I." surname="Chen">
      <organization showOnFrontPage="true">The MITRE Corporation</organization>
      <address>
        <email>ingwherchen@mitre.org</email>
      </address>
    </author>
    <author fullname="Acee Lindem" initials="A." surname="Lindem">
      <organization showOnFrontPage="true">Cisco Systems</organization>
      <address>
        <postal>
          <street>301 Midenhall Way</street>
          <city>Cary</city>
          <region>NC</region>
          <code>27513</code>
          <country>United States of America</country>
        </postal>
        <email>acee@cisco.com</email>
      </address>
    </author>
    <date month="10" year="2022"/>
    <area>rtg</area>
    <workgroup>lsr</workgroup>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document defines a YANG data model that can be
      used to configure and manage OSPF. The model is based on
      YANG 1.1 as defined in RFC 7950 and conforms to the
      Network Management Datastore Architecture (NMDA) as described
      in RFC 8342.</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/rfc9129" 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) 2022 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-requirements-language">Requirements Language</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.2">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.2.1"><xref derivedContent="1.2" format="counter" sectionFormat="of" target="section-1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-tree-diagrams">Tree Diagrams</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-design-of-data-model">Design of Data Model</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.2.2">
              <li pn="section-toc.1-1.2.2.1">
                <t indent="0" pn="section-toc.1-1.2.2.1.1"><xref derivedContent="2.1" format="counter" sectionFormat="of" target="section-2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ospf-operational-state">OSPF Operational State</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.2">
                <t indent="0" pn="section-toc.1-1.2.2.2.1"><xref derivedContent="2.2" format="counter" sectionFormat="of" target="section-2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-overview">Overview</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.3">
                <t indent="0" pn="section-toc.1-1.2.2.3.1"><xref derivedContent="2.3" format="counter" sectionFormat="of" target="section-2.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ospfv2-and-ospfv3">OSPFv2 and OSPFv3</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.4">
                <t indent="0" pn="section-toc.1-1.2.2.4.1"><xref derivedContent="2.4" format="counter" sectionFormat="of" target="section-2.4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-optional-features">Optional Features</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.5">
                <t indent="0" pn="section-toc.1-1.2.2.5.1"><xref derivedContent="2.5" format="counter" sectionFormat="of" target="section-2.5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ospf-router-configuration-o">OSPF Router Configuration / Operational State</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.6">
                <t indent="0" pn="section-toc.1-1.2.2.6.1"><xref derivedContent="2.6" format="counter" sectionFormat="of" target="section-2.6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ospf-area-configuration-ope">OSPF Area Configuration / Operational State</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.7">
                <t indent="0" pn="section-toc.1-1.2.2.7.1"><xref derivedContent="2.7" format="counter" sectionFormat="of" target="section-2.7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ospf-interface-configuratio">OSPF Interface Configuration / Operational State</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.8">
                <t indent="0" pn="section-toc.1-1.2.2.8.1"><xref derivedContent="2.8" format="counter" sectionFormat="of" target="section-2.8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ospf-notifications">OSPF Notifications</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.9">
                <t indent="0" pn="section-toc.1-1.2.2.9.1"><xref derivedContent="2.9" format="counter" sectionFormat="of" target="section-2.9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ospf-rpc-operations">OSPF RPC Operations</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-ospf-yang-module">OSPF YANG Module</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-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.5">
            <t indent="0" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.6.2">
              <li pn="section-toc.1-1.6.2.1">
                <t indent="0" pn="section-toc.1-1.6.2.1.1"><xref derivedContent="6.1" format="counter" sectionFormat="of" target="section-6.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.6.2.2">
                <t indent="0" pn="section-toc.1-1.6.2.2.1"><xref derivedContent="6.2" format="counter" sectionFormat="of" target="section-6.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.a"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-contributors">Contributors</xref></t>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.c"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">YANG <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/> is a data
      definition language used to define the contents of a conceptual datastore
      that allows networked devices to be managed using the Network
      Configuration Protocol (NETCONF)
      <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/>, RESTCONF <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>, and other
      network management protocols. Furthermore,
      YANG data models can be used as the basis for implementation of other
      interfaces, such as Command-Line Interfaces (CLIs) and programmatic APIs.</t>
      <t indent="0" pn="section-1-2">This document defines a YANG data model that can be used to configure
    and manage OSPF. It is an augmentation to the core routing data model,
    which is defined in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/> and
    provides the basis for the development of data models for routing
    protocols.  This document fully conforms to the Network Management Datastore Architecture (NMDA)
    <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>. The interface data model is defined in
    <xref target="RFC8343" format="default" sectionFormat="of" derivedContent="RFC8343"/> and is used for referencing
    interfaces from the routing protocol. The data model for key chains
    <xref target="RFC8177" format="default" sectionFormat="of" derivedContent="RFC8177"/> is used for
    OSPF authentication and provides both a reference to configured key chains and an
    enumeration of cryptographic algorithms.</t>
      <t indent="0" pn="section-1-3">Both OSPFv2 <xref target="RFC2328" format="default" sectionFormat="of" derivedContent="RFC2328"/> and OSPFv3
    <xref target="RFC5340" format="default" sectionFormat="of" derivedContent="RFC5340"/> are supported.  In addition to
    the core OSPF protocol, features described in other
    OSPF RFCs are also supported. These include demand circuits
    <xref target="RFC1793" format="default" sectionFormat="of" derivedContent="RFC1793"/>, Traffic Engineering (TE) <xref target="RFC3630" format="default" sectionFormat="of" derivedContent="RFC3630"/>,
    multiple address families <xref target="RFC5838" format="default" sectionFormat="of" derivedContent="RFC5838"/>, graceful restart
    <xref target="RFC3623" format="default" sectionFormat="of" derivedContent="RFC3623"/> <xref target="RFC5187" format="default" sectionFormat="of" derivedContent="RFC5187"/>,
    the Not-So-Stubby Area (NSSA) option <xref target="RFC3101" format="default" sectionFormat="of" derivedContent="RFC3101"/>, and OSPFv2 or OSPFv3 as a Provider Edge to Customer
    Edge (PE-CE) protocol
    <xref target="RFC4577" format="default" sectionFormat="of" derivedContent="RFC4577"/> <xref target="RFC6565" format="default" sectionFormat="of" derivedContent="RFC6565"/>.
    These non-core features are optional in the OSPF data model.</t>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-1.1">
        <name slugifiedName="name-requirements-language">Requirements Language</name>
        <t indent="0" pn="section-1.1-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>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-1.2">
        <name slugifiedName="name-tree-diagrams">Tree Diagrams</name>
        <t indent="0" pn="section-1.2-1">This document uses the graphical representation of data models
        per <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.</t>
      </section>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-design-of-data-model">Design of Data Model</name>
      <t indent="0" pn="section-2-1">Although the basis of OSPF configuration elements like routers,
    areas, and interfaces remains the same, the detailed configuration
    model varies among router vendors.  Differences are observed in various aspects, including in terms of how the protocol instance is tied to the routing domain and how 
  multiple protocol instances are instantiated.</t>
      <t indent="0" pn="section-2-2">The goal of this document is to define a data model that provides a user interface that is common to both OSPFv2 and OSPFv3. There is very little information that is
    designated as "mandatory", providing freedom for vendors to adapt this data model to their
    respective product implementations.</t>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.1">
        <name slugifiedName="name-ospf-operational-state">OSPF Operational State</name>
        <t indent="0" pn="section-2.1-1">The OSPF operational state is included in the same tree as OSPF configuration,
    consistent with the Network Management Datastore Architecture
    <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>. Consequently, only the "routing" container
    in the "ietf-routing" model <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/> is augmented; the "routing-state" container
    is not augmented.</t>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.2">
        <name slugifiedName="name-overview">Overview</name>
        <t indent="0" pn="section-2.2-1">The OSPF YANG module defined in this document has all the common building
   blocks for the OSPF protocol.</t>
        <t indent="0" pn="section-2.2-2">The OSPF YANG module augments the "/routing/control-plane-protocols/control-plane-protocol"
    path defined in the "ietf-routing" module. The "ietf-ospf" model defines a single instance of
    OSPF that may be instantiated as an OSPFv2 or OSPFv3 instance. Multiple instances are
    instantiated as multiple control-plane protocol instances.</t>
        <sourcecode name="" type="yangtree" markers="false" pn="section-2.2-3">
module: ietf-ospf
  augment /rt:routing/rt:control-plane-protocols/
           rt:control-plane-protocol:
    +--rw ospf
          .
          .
       +--rw address-family?       iana-rt-types:address-family
          .
          .
       +--rw areas
       |  +--rw area* [area-id]
       |     +--rw area-id                   area-id-type
       |        .
       |        .
       |     +--rw virtual-links
       |     |  +--rw virtual-link* [transit-area-id router-id]
       |     |     .
       |     |     .
       |     +--rw sham-links {pe-ce-protocol}?
       |     |  +--rw sham-link* [local-id remote-id]
       |     |     .
       |     |     .
       |     +--rw interfaces
       |        +--rw interface* [name]
       |           .
       |           .
       +--rw topologies {multi-topology}?
          +--rw topology* [name]
             .
             .
</sourcecode>
        <t indent="0" pn="section-2.2-4">The "ospf" container includes one OSPF protocol instance.
    The instance includes OSPF router-level configuration and operational
    state. Each OSPF instance maps to a control-plane protocol instance as
    defined in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/>.</t>
        <t indent="0" pn="section-2.2-5">The "areas" and "area/interfaces" containers
    define the OSPF configuration and operational state for OSPF areas
    and interfaces, respectively.</t>
        <t indent="0" pn="section-2.2-6">The "topologies" container defines the OSPF configuration and operational
    state for OSPF topologies when the "multi-topology" feature is supported.</t>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.3">
        <name slugifiedName="name-ospfv2-and-ospfv3">OSPFv2 and OSPFv3</name>
        <t indent="0" pn="section-2.3-1">The data model defined herein supports both OSPFv2 and OSPFv3.</t>
        <t indent="0" pn="section-2.3-2">The "version" field is used to indicate the OSPF version and is
      mandatory.  Based on the configured version, the data model varies
      to accommodate the differences between OSPFv2 and OSPFv3.</t>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.4">
        <name slugifiedName="name-optional-features">Optional Features</name>
        <t indent="0" pn="section-2.4-1">Optional features go beyond the basic OSPF configuration.
      It is the responsibility of each vendor to decide whether to
      support a given feature on a particular device.</t>
        <t indent="0" pn="section-2.4-2">This model defines the following optional features:
        </t>
        <dl newline="false" spacing="normal" indent="3" pn="section-2.4-3">
          <dt pn="section-2.4-3.1">multi-topology:</dt>
          <dd pn="section-2.4-3.2">Support for Multi-Topology (MT) routing
         <xref target="RFC4915" format="default" sectionFormat="of" derivedContent="RFC4915"/>.</dd>
          <dt pn="section-2.4-3.3">multi-area-adj:</dt>
          <dd pn="section-2.4-3.4">Support for OSPF multi-area adjacencies
         <xref target="RFC5185" format="default" sectionFormat="of" derivedContent="RFC5185"/>.</dd>
          <dt pn="section-2.4-3.5">explicit-router-id:</dt>
          <dd pn="section-2.4-3.6">Support for the specification of an explicit per-instance Router ID.</dd>
          <dt pn="section-2.4-3.7">demand-circuit:</dt>
          <dd pn="section-2.4-3.8">Support for OSPF demand circuits
          <xref target="RFC1793" format="default" sectionFormat="of" derivedContent="RFC1793"/>.</dd>
          <dt pn="section-2.4-3.9">mtu-ignore:</dt>
          <dd pn="section-2.4-3.10">Support for the disabling of OSPF Database Description
          packet MTU mismatch checking as specified in <xref target="RFC2328" sectionFormat="of" section="10.6" format="default" derivedLink="https://rfc-editor.org/rfc/rfc2328#section-10.6" derivedContent="RFC2328"/>.</dd>
          <dt pn="section-2.4-3.11">lls:</dt>
          <dd pn="section-2.4-3.12">Support for OSPF Link-Local Signaling (LLS)
          <xref target="RFC5613" format="default" sectionFormat="of" derivedContent="RFC5613"/>.</dd>
          <dt pn="section-2.4-3.13">prefix-suppression:</dt>
          <dd pn="section-2.4-3.14">Support for OSPF prefix advertisement
          suppression <xref target="RFC6860" format="default" sectionFormat="of" derivedContent="RFC6860"/>.</dd>
          <dt pn="section-2.4-3.15">ttl-security:</dt>
          <dd pn="section-2.4-3.16">Support for OSPF Time to Live (TTL) security checking 
          <xref target="RFC5082" format="default" sectionFormat="of" derivedContent="RFC5082"/>.</dd>
          <dt pn="section-2.4-3.17">nsr:</dt>
          <dd pn="section-2.4-3.18">Support for OSPF Non-Stop Routing (NSR). The OSPF NSR feature allows a router with redundant control-plane capability (e.g., dual Route Processor (RP)
         cards) to maintain its state and adjacencies during planned and unplanned
         control-plane processing restarts. It differs from graceful restart or Non-Stop
         Forwarding (NSF) in that no protocol signaling or assistance from adjacent OSPF
         neighbors is required to recover control-plane state.</dd>
          <dt pn="section-2.4-3.19">graceful-restart:</dt>
          <dd pn="section-2.4-3.20">Support for graceful OSPF restart
          <xref target="RFC3623" format="default" sectionFormat="of" derivedContent="RFC3623"/> <xref target="RFC5187" format="default" sectionFormat="of" derivedContent="RFC5187"/>.</dd>
          <dt pn="section-2.4-3.21">auto-cost:</dt>
          <dd pn="section-2.4-3.22">Support for OSPF interface cost calculations according to
         reference bandwidth <xref target="RFC2328" format="default" sectionFormat="of" derivedContent="RFC2328"/>.</dd>
          <dt pn="section-2.4-3.23">max-ecmp:</dt>
          <dd pn="section-2.4-3.24">Support for configuration of the maximum number of
          Equal-Cost Multi-Path (ECMP) paths.</dd>
          <dt pn="section-2.4-3.25">max-lsa:</dt>
          <dd pn="section-2.4-3.26">Support for configuration of the maximum number
          of Link State Advertisements (LSAs)
          the OSPF instance will accept <xref target="RFC1765" format="default" sectionFormat="of" derivedContent="RFC1765"/>.</dd>
          <dt pn="section-2.4-3.27">te-rid:</dt>
          <dd pn="section-2.4-3.28">Support for configuration of the Traffic Engineering (TE)
          Router ID, i.e., the Router Address TLV as described in <xref target="RFC3630" sectionFormat="of" section="2.4.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc3630#section-2.4.1" derivedContent="RFC3630"/> or the Router
          IPv6 Address TLV as
          described in <xref target="RFC5329" sectionFormat="of" section="3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc5329#section-3" derivedContent="RFC5329"/>.</dd>
          <dt pn="section-2.4-3.29">ldp-igp-sync:</dt>
          <dd pn="section-2.4-3.30">Support for LDP IGP synchronization
          <xref target="RFC5443" format="default" sectionFormat="of" derivedContent="RFC5443"/>.</dd>
          <dt pn="section-2.4-3.31">ospfv2-authentication-trailer:</dt>
          <dd pn="section-2.4-3.32">Support for the OSPFv2 authentication
          trailer <xref target="RFC5709" format="default" sectionFormat="of" derivedContent="RFC5709"/>
            <xref target="RFC7474" format="default" sectionFormat="of" derivedContent="RFC7474"/>.</dd>
          <dt pn="section-2.4-3.33">ospfv3-authentication-ipsec:</dt>
          <dd pn="section-2.4-3.34">Support for IPsec for OSPFv3
          authentication <xref target="RFC4552" format="default" sectionFormat="of" derivedContent="RFC4552"/>.</dd>
          <dt pn="section-2.4-3.35">ospfv3-authentication-trailer:</dt>
          <dd pn="section-2.4-3.36">Support for the OSPFv3 authentication
          trailer <xref target="RFC7166" format="default" sectionFormat="of" derivedContent="RFC7166"/>.</dd>
          <dt pn="section-2.4-3.37">fast-reroute:</dt>
          <dd pn="section-2.4-3.38">Support for IP Fast Reroute (IP-FRR)
          <xref target="RFC5714" format="default" sectionFormat="of" derivedContent="RFC5714"/>.</dd>
          <dt pn="section-2.4-3.39">node-flag:</dt>
          <dd pn="section-2.4-3.40">Support for node flags for OSPF prefixes
          <xref target="RFC7684" format="default" sectionFormat="of" derivedContent="RFC7684"/>.</dd>
          <dt pn="section-2.4-3.41">node-tag:</dt>
          <dd pn="section-2.4-3.42">Support for node administrative tags for OSPF instances
          <xref target="RFC7777" format="default" sectionFormat="of" derivedContent="RFC7777"/>.</dd>
          <dt pn="section-2.4-3.43">lfa:</dt>
          <dd pn="section-2.4-3.44">Support for Loop-Free Alternates (LFAs)
          <xref target="RFC5286" format="default" sectionFormat="of" derivedContent="RFC5286"/>.</dd>
          <dt pn="section-2.4-3.45">remote-lfa:</dt>
          <dd pn="section-2.4-3.46">Support for Remote LFAs (R-LFAs)
          <xref target="RFC7490" format="default" sectionFormat="of" derivedContent="RFC7490"/>.</dd>
          <dt pn="section-2.4-3.47">stub-router:</dt>
          <dd pn="section-2.4-3.48">Support for OSPF stub router
          advertisements <xref target="RFC6987" format="default" sectionFormat="of" derivedContent="RFC6987"/>.</dd>
          <dt pn="section-2.4-3.49">pe-ce-protocol:</dt>
          <dd pn="section-2.4-3.50">Support for OSPF as a PE-CE protocol
          <xref target="RFC4577" format="default" sectionFormat="of" derivedContent="RFC4577"/> <xref target="RFC6565" format="default" sectionFormat="of" derivedContent="RFC6565"/>.</dd>
          <dt pn="section-2.4-3.51">ietf-spf-delay:</dt>
          <dd pn="section-2.4-3.52">Support for the IETF Shortest Path First (SPF) delay algorithm
          <xref target="RFC8405" format="default" sectionFormat="of" derivedContent="RFC8405"/>.</dd>
          <dt pn="section-2.4-3.53">bfd:</dt>
          <dd pn="section-2.4-3.54">Support for Bidirectional Forwarding Detection
          (BFD) to detect OSPF neighbor reachability
          <xref target="RFC5880" format="default" sectionFormat="of" derivedContent="RFC5880"/> <xref target="RFC5881" format="default" sectionFormat="of" derivedContent="RFC5881"/>.</dd>
          <dt pn="section-2.4-3.55">hybrid-interface:</dt>
          <dd pn="section-2.4-3.56">Support for OSPF hybrid broadcast and point-to-multipoint
          interfaces <xref target="RFC6845" format="default" sectionFormat="of" derivedContent="RFC6845"/>.</dd>
        </dl>
        <t indent="0" pn="section-2.4-4">It is expected that vendors will support additional
      features through vendor-specific augmentations.</t>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.5">
        <name slugifiedName="name-ospf-router-configuration-o">OSPF Router Configuration / Operational State</name>
        <t indent="0" pn="section-2.5-1">The "ospf" container is the top-level container in this data model.
    It represents an OSPF protocol instance and contains the router-level
    configuration and operational state.
    The operational state includes instance statistics, IETF SPF delay statistics,
    the AS-Scope Link State Database (LSDB), the local RIB, the SPF log, and the LSA log. ("AS" stands for "Autonomous System".)</t>
        <sourcecode name="" type="yangtree" markers="false" pn="section-2.5-2">
module: ietf-ospf
  augment /rt:routing/rt:control-plane-protocols/
           rt:control-plane-protocol:
    +--rw ospf
       .
       .
       +--rw address-family?       iana-rt-types:address-family
       +--rw enabled?              boolean
       +--rw explicit-router-id?   rt-types:router-id
       |                           {explicit-router-id}?
       +--rw preference
       |  +--rw (scope)?
       |     +--:(single-value)
       |     |  +--rw all?          uint8
       |     +--:(multi-values)
       |        +--rw (granularity)?
       |        |  +--:(detail)
       |        |  |  +--rw intra-area?   uint8
       |        |  |  +--rw inter-area?   uint8
       |        |  +--:(coarse)
       |        |     +--rw internal?     uint8
       |        +--rw external?     uint8
       +--rw nsr {nsr}?
       |  +--rw enabled?  boolean
       +--rw graceful-restart {graceful-restart}?
       |  +--rw enabled?                      boolean
       |  +--rw helper-enabled?               boolean
       |  +--rw restart-interval?             uint16
       |  +--rw helper-strict-lsa-checking?   boolean
       +--rw auto-cost {auto-cost}?
       |  +--rw enabled?               boolean
       |  +--rw reference-bandwidth?   uint32
       +--rw spf-control
       |  +--rw paths?            uint16 {max-ecmp}?
       |  +--rw ietf-spf-delay {ietf-spf-delay}?
       |     +--rw initial-delay?   uint32
       |     +--rw short-delay?     uint32
       |     +--rw long-delay?      uint32
       |     +--rw hold-down?       uint32
       |     +--rw time-to-learn?   uint32
       |     +--ro current-state?             enumeration
       |     +--ro remaining-time-to-learn?
       |                   rt-types:timer-value-milliseconds
       |     +--ro remaining-hold-down?
       |                   rt-types:timer-value-milliseconds
       |     +--ro last-event-received?       yang:timestamp
       |     +--ro next-spf-time?             yang:timestamp
       |     +--ro last-spf-time?             yang:timestamp
       +--rw database-control
       |  +--rw max-lsa?   uint32 {max-lsa}?
       +--rw stub-router {stub-router}?
       |  +--rw (trigger)?
       |     +--:(always)
       |        +--rw always!
       +--rw mpls
       |  +--rw te-rid {te-rid}?
       |  |  +--rw ipv4-router-id?   inet:ipv4-address
       |  |  +--rw ipv6-router-id?   inet:ipv6-address
       |  +--rw ldp
       |     +--rw igp-sync?   boolean {ldp-igp-sync}?
       +--rw fast-reroute {fast-reroute}?
       |  +--rw lfa {lfa}?
       +--rw node-tags {node-tag}?
       |  +--rw node-tag* [tag]
       |     +--rw tag      uint32
       +--ro router-id?          rt-types:router-id
       +--ro local-rib
       |  +--ro route* [prefix]
       |     +--ro prefix        inet:ip-prefix
       |     +--ro next-hops
       |     |  +--ro next-hop* []
       |     |     +--ro outgoing-interface?   if:interface-ref
       |     |     +--ro next-hop              inet:ip-address
       |     +--ro metric?       uint32
       |     +--ro route-type?   route-type
       |     +--ro route-tag?    uint32
       +--ro statistics
       |  +--ro discontinuity-time         yang:date-and-time
       |  +--ro originate-new-lsa-count?   yang:counter32
       |  +--ro rx-new-lsas-count?         yang:counter32
       |  +--ro as-scope-lsa-count?        yang:gauge32
       |  +--ro as-scope-lsa-chksum-sum?   uint32
       |  +--ro database
       |  |  +--ro as-scope-lsa-type*
       |  |     +--ro lsa-type?        uint16
       |  |     +--ro lsa-count?       yang:gauge32
       |  |     +--ro lsa-cksum-sum?   uint32
       |  +--ro protected-routes {fast-reroute}?
       |  |  +--ro address-family-stats*
       |  |         [address-family prefix alternate]
       |  |     +--ro address-family
       |  |         iana-rt-types:address-family
       |  |     +--ro prefix                  inet:ip-prefix
       |  |     +--ro alternate               inet:ip-address
       |  |     +--ro alternate-type?         enumeration
       |  |     +--ro best?                   boolean
       |  |     +--ro non-best-reason?        string
       |  |     +--ro protection-available?   bits
       |  |     +--ro alternate-metric-1?     uint32
       |  |     +--ro alternate-metric-2?     uint32
       |  |     +--ro alternate-metric-3?     uint32
       |  +--ro unprotected-routes {fast-reroute}?
       |  |  +--ro address-family-stats* [address-family prefix]
       |  |     +--ro address-family    iana-rt-types:address-family
       |  |     +--ro prefix            inet:ip-prefix
       |  +--ro protection-statistics* [frr-protection-method]
       |     +--ro frr-protection-method    string
       |     +--ro address-family-stats* [address-family]
       |        +--ro address-family
       |             iana-rt-types:address-family
       |        +--ro total-routes?           uint32
       |        +--ro unprotected-routes?     uint32
       |        +--ro protected-routes?       uint32
       |        +--ro linkprotected-routes?   uint32
       |        +--ro nodeprotected-routes?   uint32
       +--ro database
       |  +--ro as-scope-lsa-type* [lsa-type]
       |     +--ro as-scope-lsas
       |        +--ro as-scope-lsa* [lsa-id adv-router]
       |           +--ro lsa-id               union
       |           +--ro adv-router           inet:ipv4-address
       |           +--ro decoded-completed?   boolean
       |           +--ro raw-data?            yang:hex-string
       |           +--ro (version)?
       |              +--:(ospfv2)
       |              |  +--ro ospfv2
       .              .
       .              .
       |              +--:(ospfv3)
       |                 +--ro ospfv3
       .
       .
       +--ro spf-log
       |  +--ro event* [id]
       |     +--ro id                    uint32
       |     +--ro spf-type?             enumeration
       |     +--ro schedule-timestamp?   yang:timestamp
       |     +--ro start-timestamp?      yang:timestamp
       |     +--ro end-timestamp?        yang:timestamp
       |     +--ro trigger-lsa*
       |        +--ro area-id?      area-id-type
       |        +--ro type?         uint16
       |        +--ro lsa-id?       union
       |        +--ro adv-router?   rt-types:router-id
       |        +--ro seq-num?      uint32
       +--ro lsa-log
       |  +--ro event* [id]
       |     +--ro id                    uint32
       |     +--ro lsa
       |     |  +--ro area-id?      area-id-type
       |     |  +--ro type?         uint16
       |     |  +--ro lsa-id?       union
       |     |  +--ro adv-router?   rt-types:router-id
       |     |  +--ro seq-num?      uint32
       |     +--ro received-timestamp?   yang:timestamp
       |     +--ro reason?               identityref
       .
       .
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.6">
        <name slugifiedName="name-ospf-area-configuration-ope">OSPF Area Configuration / Operational State</name>
        <t indent="0" pn="section-2.6-1">The "area" container contains OSPF area configuration and the list
    of interface containers representing all the OSPF interfaces
    in the area.
    The area operational state includes area statistics and the area
    LSDB.</t>
        <sourcecode name="" type="yangtree" markers="false" pn="section-2.6-2">
module: ietf-ospf
  augment /rt:routing/rt:control-plane-protocols/
           rt:control-plane-protocol:
    +--rw ospf
       .
       .
       +--rw areas
       |  +--rw area* [area-id]
       |     +--rw area-id                   area-id-type
       |     +--rw area-type?                identityref
       |     +--rw summary?                  boolean
       |     +--rw default-cost?             ospf-metric
       |     +--rw ranges
       |     |  +--rw range* [prefix]
       |     |     +--rw prefix       inet:ip-prefix
       |     |     +--rw advertise?   boolean
       |     |     +--rw cost?        ospf-metric
       |     +--rw topologies {ospf:multi-topology}?
       |     |  +--rw topology* [name]
       |     |     +--rw name  -&gt; ../../../../../../../../
       |     |                    ../../../rt:ribs/rib/name
       |     |     +--rw summary?        boolean
       |     |     +--rw default-cost?   ospf-metric
       |     |     +--rw ranges
       |     |         +--rw range* [prefix]
       |     |            +--rw prefix       inet:ip-prefix
       |     |            +--rw advertise?   boolean
       |     |            +--rw cost?        ospf-metric
       |     +--ro statistics
       |     |  +--ro discontinuity-time           yang:date-and-time
       |     |  +--ro spf-runs-count?              yang:counter32
       |     |  +--ro abr-count?                   yang:gauge32
       |     |  +--ro asbr-count?                  yang:gauge32
       |     |  +--ro ar-nssa-translator-event-count?
       |     |                                     yang:counter32
       |     |  +--ro area-scope-lsa-count?        yang:gauge32
       |     |  +--ro area-scope-lsa-cksum-sum?    uint32
       |     |  +--ro database
       |     |     +--ro area-scope-lsa-type*
       |     |        +--ro lsa-type?        uint16
       |     |        +--ro lsa-count?       yang:gauge32
       |     |        +--ro lsa-cksum-sum?   uint32
       |     +--ro database
       |     |  +--ro area-scope-lsa-type* [lsa-type]
       |     |     +--ro lsa-type           uint16
       |     |     +--ro area-scope-lsas
       |     |        +--ro area-scope-lsa* [lsa-id adv-router]
       |     |           +--ro lsa-id               union
       .     .           .
       .     .           .
       |     |           +--ro (version)?
       |     |              +--:(ospfv2)
       |     |              |  +--ro ospfv2
       |     |              |     +--ro header
       .     .              .     .
       .     .              .     .
       |     |              |     +--ro body
       |     |              |        +--ro router
       .     .              .        .
       .     .              .        .
       |     |              |        +--ro network
       .     .              .        .
       .     .              .        .
       |     |              |        +--ro summary
       .     .              .        .
       .     .              .        .
       |     |              |        +--ro external
       .     .              .        .
       .     .              .        .
       |     |              |        +--ro opaque
       .     .              .        .
       .     .              .        .
       |     |              +--:(ospfv3)
       |     |                 +--ro ospfv3
       |     |                    +--ro header
       .     .                    .
       .     .                    .
       |     |                    +--ro body
       |     |                       +--ro router
       .     .                       .
       .     .                       .
       |     |                       +--ro network
       .     .                       .
       .     .                       .
       |     |                       +--ro inter-area-prefix
       .     .                       .
       .     .                       .
       |     |                       +--ro inter-area-router
       .     .                       .
       .     .                       .
       |     |                       +--ro as-external
       .     .                       .
       .     .                       .
       |     |                       +--ro nssa
       .     .                       .
       .     .                       .
       |     |                       +--ro link
       .     .                       .
       .     .                       .
       |     |                       +--ro intra-area-prefix
       .     .                       .
       .     .                       .
       |     |                       +--ro router-information
       .     .                       .
       .     .                       .
       |     +--rw virtual-links
       |     |  +--rw virtual-link* [transit-area-id router-id]
       |     |     +--rw transit-area-id       -&gt; ../../../../
       |     |                                    area/area-id
       |     |     +--rw router-id             rt-types:router-id
       |     |     +--rw hello-interval?       uint16
       |     |     +--rw dead-interval?        uint32
       |     |     +--rw retransmit-interval?  uint16
       |     |     +--rw transmit-delay?       uint16
       |     |     +--rw lls?                  boolean {lls}?
       |     |     +--rw ttl-security {ttl-security}?
       |     |     |  +--rw enabled?  boolean
       |     |     |  +--rw hops?     uint8
       |     |     +--rw enabled?              boolean
       |     |     +--rw authentication
       |     |     |  +--rw (auth-type-selection)?
       |     |     |     +--:(ospfv2-auth)
       |     |     |     |  +--rw ospfv2-auth-trailer-rfc?
       |     |     |     |  |       ospfv2-auth-trailer-rfc-version
       |     |     |     |  |        {ospfv2-authentication-trailer}?
       |     |     |     |  +--rw (ospfv2-auth-specification)?
       |     |     |     |     +--:(auth-key-chain) {key-chain}?
       |     |     |     |     |  +--rw ospfv2-key-chain?
       |     |     |     |     |         key-chain:key-chain-ref
       |     |     |     |     +--:(auth-key-explicit)
       |     |     |     |        +--rw ospfv2-key-id?     uint32
       |     |     |     |        +--rw ospfv2-key?        string
       |     |     |     |        +--rw ospfv2-crypto-algorithm?
       |     |     |     |                identityref
       |     |     |     +--:(ospfv3-auth-ipsec)
       |     |     |     |      {ospfv3-authentication-ipsec}?
       |     |     |     |  +--rw sa?                       string
       |     |     |     +--:(ospfv3-auth-trailer)
       |     |     |        |  {ospfv3-authentication-trailer}?
       |     |     |        +--rw (ospfv3-auth-specification)?
       |     |     |           +--:(auth-key-chain) {key-chain}?
       |     |     |           |  +--rw ospfv3-key-chain?
       |     |     |           |          key-chain:key-chain-ref
       |     |     |           +--:(auth-key-explicit)
       |     |     |              +--rw ospfv3-sa-id?        uint16
       |     |     |              +--rw ospfv3-key?          string
       |     |     |              +--rw ospfv3-crypto-algorithm?
       |     |     |                      identityref
       |     |     +--ro cost?              ospf-link-metric
       |     |     +--ro state?             if-state-type
       |     |     +--ro hello-timer?       rt-types:
       |     |     |                         rtimer-value-seconds16
       |     |     +--ro wait-timer?        rt-types:
       |     |     |                         rtimer-value-seconds16
       |     |     +--ro dr-router-id?      rt-types:router-id
       |     |     +--ro dr-ip-addr?        inet:ip-address
       |     |     +--ro bdr-router-id?     rt-types:router-id
       |     |     +--ro bdr-ip-addr?       inet:ip-address
       |     |     +--ro statistics
       |     |     |  +--ro discontinuity-time     yang:date-and-time
       |     |     |  +--ro if-event-count?        yang:counter32
       |     |     |  +--ro link-scope-lsa-count?  yang:gauge32
       |     |     |  +--ro link-scope-lsa-cksum-sum?
       |     |     |                               uint32
       |     |     |  +--ro database
       |     |     |     +--ro link-scope-lsa-type*
       |     |     |        +--ro lsa-type?        uint16
       |     |     |        +--ro lsa-count?       yang:gauge32
       |     |     |        +--ro lsa-cksum-sum?   int32
       |     |     +--ro neighbors
       |     |     |  +--ro neighbor* [neighbor-router-id]
       |     |     |     +--ro neighbor-router-id
       |     |     |                           rt-types:router-id
       |     |     |     +--ro address?        inet:ip-address
       |     |     |     +--ro dr-router-id?   rt-types:router-id
       |     |     |     +--ro dr-ip-addr?     inet:ip-address
       |     |     |     +--ro bdr-router-id?  rt-types:router-id
       |     |     |     +--ro bdr-ip-addr?    inet:ip-address
       |     |     |     +--ro state?          nbr-state-type
       |     |     |     +--ro dead-timer? rt-types:
       |     |     |     |                  rtimer-value-seconds16
       |     |     |     +--ro statistics
       |     |     |        +--ro discontinuity-time
       |     |     |                           yang:date-and-time
       |     |     |        +--ro nbr-event-count?
       |     |     |                           yang:counter32
       |     |     |        +--ro nbr-retrans-qlen?
       |     |     |                           yang:gauge32
       |     |     +--ro database
       |     |        +--ro link-scope-lsa-type* [lsa-type]
       |     |           +--ro lsa-type           uint16
       |     |           +--ro link-scope-lsas
       .     .
       .     .
       |     +--rw sham-links {pe-ce-protocol}?
       |     |  +--rw sham-link* [local-id remote-id]
       |     |     +--rw local-id               inet:ip-address
       |     |     +--rw remote-id              inet:ip-address
       |     |     +--rw hello-interval?        uint16
       |     |     +--rw dead-interval?         uint32
       |     |     +--rw retransmit-interval?   uint16
       |     |     +--rw transmit-delay?        uint16
       |     |     +--rw lls?                   boolean {lls}?
       |     |     +--rw ttl-security {ttl-security}?
       |     |     |  +--rw enabled?  boolean
       |     |     |  +--rw hops?     uint8
       |     |     +--rw enabled?            boolean
       |     |     +--rw authentication
       |     |     |  +--rw (auth-type-selection)?
       |     |     |     +--:(ospfv2-auth)
       |     |     |     |  +--rw ospfv2-auth-trailer-rfc?
       |     |     |     |  |       ospfv2-auth-trailer-rfc-version
       |     |     |     |  |        {ospfv2-authentication-trailer}?
       |     |     |     |  +--rw (ospfv2-auth-specification)?
       |     |     |     |     +--:(auth-key-chain) {key-chain}?
       |     |     |     |     |  +--rw ospfv2-key-chain?
       |     |     |     |     |         key-chain:key-chain-ref
       |     |     |     |     +--:(auth-key-explicit)
       |     |     |     |        +--rw ospfv2-key-id?     uint32
       |     |     |     |        +--rw ospfv2-key?        string
       |     |     |     |        +--rw ospfv2-crypto-algorithm?
       |     |     |     |                identityref
       |     |     |     +--:(ospfv3-auth-ipsec)
       |     |     |     |      {ospfv3-authentication-ipsec}?
       |     |     |     |  +--rw sa?                       string
       |     |     |     +--:(ospfv3-auth-trailer)
       |     |     |        |  {ospfv3-authentication-trailer}?
       |     |     |        +--rw (ospfv3-auth-specification)?
       |     |     |           +--:(auth-key-chain) {key-chain}?
       |     |     |           |  +--rw ospfv3-key-chain?
       |     |     |           |          key-chain:key-chain-ref
       |     |     |           +--:(auth-key-explicit)
       |     |     |              +--rw ospfv3-sa-id?        uint16
       |     |     |              +--rw ospfv3-key?          string
       |     |     |              +--rw ospfv3-crypto-algorithm?
       |     |     |                      identityref
       |     |     +--rw cost?               ospf-link-metric
       |     |     +--rw mtu-ignore?         boolean
       |     |                               {mtu-ignore}?
       |     |     +--rw prefix-suppression? boolean
       |     |                               {prefix-suppression}?
       |     |     +--ro state?              if-state-type
       |     |     +--ro hello-timer?       rt-types:
       |     |     |                         rtimer-value-seconds16
       |     |     +--ro wait-timer?        rt-types:
       |     |     |                         rtimer-value-seconds16
       |     |     +--ro dr-router-id?       rt-types:router-id
       |     |     +--ro dr-ip-addr?         inet:ip-address
       |     |     +--ro bdr-router-id?      rt-types:router-id
       |     |     +--ro bdr-ip-addr?        inet:ip-address
       |     |     +--ro statistics
       |     |     |  +--ro discontinuity-time     yang:date-and-time
       |     |     |  +--ro if-event-count?        yang:counter32
       |     |     |  +--ro link-scope-lsa-count?  yang:gauge32
       |     |     |  +--ro link-scope-lsa-cksum-sum?
       |     |     |                               uint32
       |     |     |  +--ro database
       |     |     |     +--ro link-scope-lsa-type*
       |     |     |        +--ro lsa-type?        uint16
       |     |     |        +--ro lsa-count?       yang:gauge32
       |     |     |        +--ro lsa-cksum-sum?   uint32
       |     |     +--ro neighbors
       |     |     |  +--ro neighbor* [neighbor-router-id]
       |     |     |     +--ro neighbor-router-id
       |     |     |                           rt-types:router-id
       |     |     |     +--ro address?        inet:ip-address
       |     |     |     +--ro dr-router-id?   rt-types:router-id
       |     |     |     +--ro dr-ip-addr?     inet:ip-address
       |     |     |     +--ro bdr-router-id?  rt-types:router-id
       |     |     |     +--ro bdr-ip-addr?    inet:ip-address
       |     |     |     +--ro state?          nbr-state-type
       |     |     |     +--ro cost?           ospf-link-metric
       |     |     |     +--ro dead-timer? rt-types:
       |     |     |     |                  rtimer-value-seconds16
       |     |     |     +--ro statistics
       |     |     |        +--ro discontinuity-time?
       |     |     |                           yang:date-and-time
       |     |     |        +--ro nbr-event-count?
       |     |     |                           yang:counter32
       |     |     |        +--ro nbr-retrans-qlen?
       |     |     |                           yang:gauge32
       |     |     +--ro database
       |     |        +--ro link-scope-lsa-type* [lsa-type]
       |     |           +--ro lsa-type           uint16
       |     |           +--ro link-scope-lsas
       .     .
       .     .
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.7">
        <name slugifiedName="name-ospf-interface-configuratio">OSPF Interface Configuration / Operational State</name>
        <t indent="0" pn="section-2.7-1">The "interface" container contains OSPF interface configuration
       and operational state.
       The interface operational state includes the interface statistics, the list of
       neighbors, and the link-local LSDB.</t>
        <sourcecode name="" type="yangtree" markers="false" pn="section-2.7-2">
module: ietf-ospf
  augment /rt:routing/rt:control-plane-protocols/
           rt:control-plane-protocol:
    +--rw ospf
       .
       .
       +--rw areas
       |  +--rw area* [area-id]
       |     .
       |     .
       |     +--rw interfaces
       |        +--rw interface* [name]
       |           +--rw name                   if:interface-ref
       |           +--rw interface-type?        enumeration
       |           +--rw passive?               boolean
       |           +--rw demand-circuit?        boolean
       |                                        {demand-circuit}?
       |           +--rw priority?              uint8
       |           +--rw multi-areas {multi-area-adj}?
       |           |  +--rw multi-area* [multi-area-id]
       |           |     +--rw multi-area-id      area-id-type
       |           |     +--rw cost?              ospf-link-metric
       |           +--rw static-neighbors
       |           |  +--rw neighbor* [identifier]
       |           |     +--rw identifier       inet:ip-address
       |           |     +--rw cost?            ospf-link-metric
       |           |     +--rw poll-interval?   uint16
       |           |     +--rw priority?        uint8
       |           +--rw node-flag?             boolean
       |                                        {node-flag}?
       |           +--rw bfd {bfd}?
       |           |  +--rw enabled?            boolean
       |           |  +--rw local-multiplier?   multiplier
       |           |  |      {client-base-cfg-parms}?
       |           |  +--rw (interval-config-type)?
       |           |  |      {client-base-cfg-parms}?
       |           |     +--:(tx-rx-intervals)
       |           |     |  +--rw desired-min-tx-interval?  uint32
       |           |     |  +--rw required-min-rx-interval? uint32
       |           |     +--:(single-interval)
       |           |     |   {single-minimum-interval}?
       |           |        +--rw min-interval?             uint32
       |           +--rw fast-reroute {fast-reroute}?
       |           |  +--rw lfa {lfa}?
       |           |     +--rw candidate-enabled?  boolean
       |           |     +--rw enabled?            boolean
       |           |     +--rw remote-lfa {remote-lfa}?
       |           |        +--rw enabled?  boolean
       |           +--rw hello-interval?        uint16
       |           +--rw dead-interval?         uint32
       |           +--rw retransmit-interval?   uint16
       |           +--rw transmit-delay?        uint16
       |           +--rw lls?                   boolean {lls}?
       |           +--rw ttl-security {ttl-security}?
       |           |  +--rw enabled?  boolean
       |           |  +--rw hops?     uint8
       |           +--rw enabled?               boolean
       |           +--rw authentication
       |           |  +--rw (auth-type-selection)?
       |           |     +--:(ospfv2-auth)
       |           |     |  +--rw ospfv2-auth-trailer-rfc?
       |           |     |  |       ospfv2-auth-trailer-rfc-version
       |           |     |  |        {ospfv2-authentication-trailer}?
       |           |     |  +--rw (ospfv2-auth-specification)?
       |           |     |     +--:(auth-key-chain) {key-chain}?
       |           |     |     |  +--rw ospfv2-key-chain?
       |           |     |     |         key-chain:key-chain-ref
       |           |     |     +--:(auth-key-explicit)
       |           |     |        +--rw ospfv2-key-id?     uint32
       |           |     |        +--rw ospfv2-key?        string
       |           |     |        +--rw ospfv2-crypto-algorithm?
       |           |     |                identityref
       |           |     +--:(ospfv3-auth-ipsec)
       |           |     |      {ospfv3-authentication-ipsec}?
       |           |     |  +--rw sa?                       string
       |           |     +--:(ospfv3-auth-trailer)
       |           |        |  {ospfv3-authentication-trailer}?
       |           |        +--rw (ospfv3-auth-specification)?
       |           |           +--:(auth-key-chain) {key-chain}?
       |           |           |  +--rw ospfv3-key-chain?
       |           |           |          key-chain:key-chain-ref
       |           |           +--:(auth-key-explicit)
       |           |              +--rw ospfv3-sa-id?        uint16
       |           |              +--rw ospfv3-key?          string
       |           |              +--rw ospfv3-crypto-algorithm?
       |           |                      identityref
       |           +--rw cost?               ospf-link-metric
       |           +--rw mtu-ignore?         boolean
       |           |                         {mtu-ignore}?
       |           +--rw prefix-suppression? boolean
       |           |                         {prefix-suppression}?
       |           +--ro state?                 if-state-type
       |           +--ro hello-timer?       rt-types:
       |           |                         rtimer-value-seconds16
       |           +--ro wait-timer?        rt-types:
       |           |                         rtimer-value-seconds16
       |           +--ro dr-router-id?       rt-types:router-id
       |           +--ro dr-ip-addr?         inet:ip-address
       |           +--ro bdr-router-id?      rt-types:router-id
       |           +--ro bdr-ip-addr?        inet:ip-address
       |           +--ro statistics
       |           |  +--ro discontinuity-time?    yang:date-and-time
       |           |  +--ro if-event-count?        yang:counter32
       |           |  +--ro link-scope-lsa-count?  yang:gauge32
       |           |  +--ro link-scope-lsa-cksum-sum?
       |           |                               uint32
       |           |  +--ro database
       |           |     +--ro link-scope-lsa-type*
       |           |        +--ro lsa-type?        uint16
       |           |        +--ro lsa-count?       yang:gauge32
       |           |        +--ro lsa-cksum-sum?   int32
       |           +--ro neighbors
       |           |  +--ro neighbor* [neighbor-router-id]
       |           |     +--ro neighbor-router-id
       |           |                           rt-types:router-id
       |           |     +--ro address?        inet:ip-address
       |           |     +--ro dr-router-id?   rt-types:router-id
       |           |     +--ro dr-ip-addr?     inet:ip-address
       |           |     +--ro bdr-router-id?  rt-types:router-id
       |           |     +--ro bdr-ip-addr?    inet:ip-address
       |           |     +--ro state?          nbr-state-type
       |           |     +--ro dead-timer? rt-types:
       |           |     |                  rtimer-value-seconds16
       |           |     +--ro statistics
       |           |        +--ro discontinuity-time?
       |           |                           yang:date-and-time
       |           |        +--ro nbr-event-count?
       |           |                           yang:counter32
       |           |        +--ro nbr-retrans-qlen?
       |           |                           yang:gauge32
       |           +--ro database
       |           .  +--ro link-scope-lsa-type* [lsa-type]
       |           .     +--ro lsa-type           uint16
       |           .     +--ro link-scope-lsas
       .           .
       .           .
       |           +--rw topologies {ospf:multi-topology}?
       |           |  +--rw topology* [name]
       |           |     +--rw name  -&gt; ../../../../../../../../
       |           |                    ../../../rt:ribs/rib/name
       |           |     +--rw cost? ospf-link-metric
       |           +--rw instance-id?           uint8
       .
       .
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.8">
        <name slugifiedName="name-ospf-notifications">OSPF Notifications</name>
        <t indent="0" pn="section-2.8-1">This YANG data model defines a list of notifications that inform YANG
    clients of important events detected during protocol operation.  The
    defined notifications cover the common set of traps from the OSPFv2 MIB
    <xref target="RFC4750" format="default" sectionFormat="of" derivedContent="RFC4750"/> and OSPFv3 MIB <xref target="RFC5643" format="default" sectionFormat="of" derivedContent="RFC5643"/>.</t>
        <sourcecode name="" type="yangtree" markers="false" pn="section-2.8-2">
  notifications:
    +---n if-state-change
    |  +--ro routing-protocol-name?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol/name
    |  +--ro address-family?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol[rt:name=current()/../
    |  +         routing-protocol-name]/ospf/address-family
    |  +--ro (if-link-type-selection)?
    |  |  +--:(interface)
    |  |  |  +--ro interface
    |  |  |     +--ro interface?   if:interface-ref
    |  |  +--:(virtual-link)
    |  |  |  +--ro virtual-link
    |  |  |     +--ro transit-area-id?      area-id-type
    |  |  |     +--ro neighbor-router-id?   rt-types:router-id
    |  |  +--:(sham-link)
    |  |     +--ro sham-link
    |  |        +--ro area-id?          area-id-type
    |  |        +--ro local-ip-addr?    inet:ip-address
    |  |        +--ro remote-ip-addr?   inet:ip-address
    |  +--ro state?                   if-state-type
    +---n if-config-error
    |  +--ro routing-protocol-name?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol/name
    |  +--ro address-family?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol[rt:name=current()/../
    |  +         routing-protocol-name]/ospf/address-family
    |  +--ro (if-link-type-selection)?
    |  |  +--:(interface)
    |  |  |  +--ro interface
    |  |  |     +--ro interface?   if:interface-ref
    |  |  +--:(virtual-link)
    |  |  |  +--ro virtual-link
    |  |  |     +--ro transit-area-id?      area-id-type
    |  |  |     +--ro neighbor-router-id?   rt-types:router-id
    |  |  +--:(sham-link)
    |  |     +--ro sham-link
    |  |        +--ro area-id?          area-id-type
    |  |        +--ro local-ip-addr?    inet:ip-address
    |  |        +--ro remote-ip-addr?   inet:ip-address
    |  +--ro packet-source?           yang:dotted-quad
    |  +--ro packet-type?             packet-type
    |  +--ro error?                   enumeration
    +---n nbr-state-change
    |  +--ro routing-protocol-name?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol/name
    |  +--ro address-family?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol[rt:name=current()/../
    |  +         routing-protocol-name]/ospf/address-family
    |  +--ro (if-link-type-selection)?
    |  |  +--:(interface)
    |  |  |  +--ro interface
    |  |  |     +--ro interface?   if:interface-ref
    |  |  +--:(virtual-link)
    |  |  |  +--ro virtual-link
    |  |  |     +--ro transit-area-id?      area-id-type
    |  |  |     +--ro neighbor-router-id?   rt-types:router-id
    |  |  +--:(sham-link)
    |  |     +--ro sham-link
    |  |        +--ro area-id?          area-id-type
    |  |        +--ro local-ip-addr?    inet:ip-address
    |  |        +--ro remote-ip-addr?   inet:ip-address
    |  +--ro neighbor-router-id?      rt-types:router-id
    |  +--ro neighbor-ip-addr?        yang:dotted-quad
    |  +--ro state?                   nbr-state-type
    +---n nbr-restart-helper-status-change
    |  +--ro routing-protocol-name?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol/name
    |  +--ro address-family?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol[rt:name=current()/../
    |  +         routing-protocol-name]/ospf/address-family
    |  +--ro (if-link-type-selection)?
    |  |  +--:(interface)
    |  |  |  +--ro interface
    |  |  |     +--ro interface?   if:interface-ref
    |  |  +--:(virtual-link)
    |  |  |  +--ro virtual-link
    |  |  |     +--ro transit-area-id?      area-id-type
    |  |  |     +--ro neighbor-router-id?   rt-types:router-id
    |  |  +--:(sham-link)
    |  |     +--ro sham-link
    |  |        +--ro area-id?          area-id-type
    |  |        +--ro local-ip-addr?    inet:ip-address
    |  |        +--ro remote-ip-addr?   inet:ip-address
    |  +--ro neighbor-router-id?      rt-types:router-id
    |  +--ro neighbor-ip-addr?        yang:dotted-quad
    |  +--ro status?                  restart-helper-status-type
    |  +--ro age?                     rt-types:timer-value-seconds16
    |  +--ro exit-reason?             restart-exit-reason-type
    +---n if-rx-bad-packet
    |  +--ro routing-protocol-name?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol/name
    |  +--ro address-family?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol[rt:name=current()/../
    |  +         routing-protocol-name]/ospf/address-family
    |  +--ro (if-link-type-selection)?
    |  |  +--:(interface)
    |  |  |  +--ro interface
    |  |  |     +--ro interface?   if:interface-ref
    |  |  +--:(virtual-link)
    |  |  |  +--ro virtual-link
    |  |  |     +--ro transit-area-id?      area-id-type
    |  |  |     +--ro neighbor-router-id?   rt-types:router-id
    |  |  +--:(sham-link)
    |  |     +--ro sham-link
    |  |        +--ro area-id?          area-id-type
    |  |        +--ro local-ip-addr?    inet:ip-address
    |  |        +--ro remote-ip-addr?   inet:ip-address
    |  +--ro packet-source?           yang:dotted-quad
    |  +--ro packet-type?             packet-type
    +---n lsdb-approaching-overflow
    |  +--ro routing-protocol-name?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol/name
    |  +--ro address-family?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol[rt:name=current()/../
    |  +         routing-protocol-name]/ospf/address-family
    |  +--ro ext-lsdb-limit?          uint32
    +---n lsdb-overflow
    |  +--ro routing-protocol-name?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol/name
    |  +--ro address-family?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol[rt:name=current()/../
    |  +         routing-protocol-name]/ospf/address-family
    |  +--ro ext-lsdb-limit?          uint32
    +---n nssa-translator-status-change
    |  +--ro routing-protocol-name?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol/name
    |  +--ro address-family?
    |  +     -&gt; /rt:routing/control-plane-protocols/
    |  +         control-plane-protocol[rt:name=current()/../
    |  +         routing-protocol-name]/ospf/address-family
    |  +--ro area-id?                 area-id-type
    |  +--ro status?                  nssa-translator-state-type
    +---n restart-status-change
       +--ro routing-protocol-name?
       +     -&gt; /rt:routing/control-plane-protocols/
       +         control-plane-protocol/name
       +--ro address-family?
       +     -&gt; /rt:routing/control-plane-protocols/
       +         control-plane-protocol[rt:name=current()/../
       +         routing-protocol-name]/ospf/address-family
       +--ro status?                  restart-status-type
       +--ro restart-interval?        uint16
       +--ro exit-reason?             restart-exit-reason-type
</sourcecode>
      </section>
      <section numbered="true" toc="include" removeInRFC="false" pn="section-2.9">
        <name slugifiedName="name-ospf-rpc-operations">OSPF RPC Operations</name>
        <t indent="0" pn="section-2.9-1">The "ietf-ospf" module defines two RPC operations:
        </t>
        <dl newline="false" spacing="normal" indent="3" pn="section-2.9-2">
          <dt pn="section-2.9-2.1">clear-database:</dt>
          <dd pn="section-2.9-2.2">Resets the contents of a particular OSPF
         LSDB, forces neighbor adjacencies to the 'DOWN' state, and reoriginates self-originated LSAs.</dd>
          <dt pn="section-2.9-2.3">clear-neighbor:</dt>
          <dd pn="section-2.9-2.4">Resets a particular OSPF neighbor or group of neighbors associated
         with an OSPF interface.</dd>
        </dl>
        <sourcecode name="" type="yangtree" markers="false" pn="section-2.9-3">
  rpcs:
    +---x clear-neighbor
    |  +---w input
    |     +---w routing-protocol-name
    |     +     -&gt; /rt:routing/control-plane-protocols/
    |     +         control-plane-protocol/name
    |     +---w interface?               if:interface-ref
    +---x clear-database
       +---w input
          +---w routing-protocol-name
                -&gt; /rt:routing/control-plane-protocols/
                    control-plane-protocol/name
</sourcecode>
      </section>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-ospf-yang-module">OSPF YANG Module</name>
      <t indent="0" pn="section-3-1">The following RFCs are referenced in the "ietf-ospf" YANG module:
      <xref target="RFC0905" format="default" sectionFormat="of" derivedContent="RFC0905"/>,
      <xref target="RFC1765" format="default" sectionFormat="of" derivedContent="RFC1765"/>, <xref target="RFC1793" format="default" sectionFormat="of" derivedContent="RFC1793"/>,
      <xref target="RFC2328" format="default" sectionFormat="of" derivedContent="RFC2328"/>, <xref target="RFC3101" format="default" sectionFormat="of" derivedContent="RFC3101"/>, 
      <xref target="RFC3623" format="default" sectionFormat="of" derivedContent="RFC3623"/>, <xref target="RFC3630" format="default" sectionFormat="of" derivedContent="RFC3630"/>, 
      <xref target="RFC4552" format="default" sectionFormat="of" derivedContent="RFC4552"/>, <xref target="RFC4576" format="default" sectionFormat="of" derivedContent="RFC4576"/>,
      <xref target="RFC4577" format="default" sectionFormat="of" derivedContent="RFC4577"/>, <xref target="RFC4915" format="default" sectionFormat="of" derivedContent="RFC4915"/>, 
      <xref target="RFC4973" format="default" sectionFormat="of" derivedContent="RFC4973"/>,
      <xref target="RFC5082" format="default" sectionFormat="of" derivedContent="RFC5082"/>, <xref target="RFC5185" format="default" sectionFormat="of" derivedContent="RFC5185"/>, 
      <xref target="RFC5187" format="default" sectionFormat="of" derivedContent="RFC5187"/>, <xref target="RFC5250" format="default" sectionFormat="of" derivedContent="RFC5250"/>, 
      <xref target="RFC5286" format="default" sectionFormat="of" derivedContent="RFC5286"/>, 
      <xref target="RFC5309" format="default" sectionFormat="of" derivedContent="RFC5309"/>, <xref target="RFC5329" format="default" sectionFormat="of" derivedContent="RFC5329"/>, 
      <xref target="RFC5340" format="default" sectionFormat="of" derivedContent="RFC5340"/>,
      <xref target="RFC5443" format="default" sectionFormat="of" derivedContent="RFC5443"/>, <xref target="RFC5613" format="default" sectionFormat="of" derivedContent="RFC5613"/>, 
      <xref target="RFC5642" format="default" sectionFormat="of" derivedContent="RFC5642"/>,
      <xref target="RFC5709" format="default" sectionFormat="of" derivedContent="RFC5709"/>, <xref target="RFC5714" format="default" sectionFormat="of" derivedContent="RFC5714"/>, 
      <xref target="RFC5838" format="default" sectionFormat="of" derivedContent="RFC5838"/>, 
      <xref target="RFC5880" format="default" sectionFormat="of" derivedContent="RFC5880"/>, <xref target="RFC5881" format="default" sectionFormat="of" derivedContent="RFC5881"/>,
      <xref target="RFC6565" format="default" sectionFormat="of" derivedContent="RFC6565"/>, <xref target="RFC6845" format="default" sectionFormat="of" derivedContent="RFC6845"/>,
      <xref target="RFC6860" format="default" sectionFormat="of" derivedContent="RFC6860"/>, 
      <xref target="RFC6987" format="default" sectionFormat="of" derivedContent="RFC6987"/>, <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/>,
      <xref target="RFC7166" format="default" sectionFormat="of" derivedContent="RFC7166"/>, <xref target="RFC7474" format="default" sectionFormat="of" derivedContent="RFC7474"/>, 
      <xref target="RFC7490" format="default" sectionFormat="of" derivedContent="RFC7490"/>, <xref target="RFC7684" format="default" sectionFormat="of" derivedContent="RFC7684"/>, 
      <xref target="RFC7770" format="default" sectionFormat="of" derivedContent="RFC7770"/>,
      <xref target="RFC7777" format="default" sectionFormat="of" derivedContent="RFC7777"/>, <xref target="RFC7884" format="default" sectionFormat="of" derivedContent="RFC7884"/>,
      <xref target="RFC8177" format="default" sectionFormat="of" derivedContent="RFC8177"/>, <xref target="RFC8294" format="default" sectionFormat="of" derivedContent="RFC8294"/>,
      <xref target="RFC8343" format="default" sectionFormat="of" derivedContent="RFC8343"/>, <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/>,
      <xref target="RFC8405" format="default" sectionFormat="of" derivedContent="RFC8405"/>, <xref target="RFC8476" format="default" sectionFormat="of" derivedContent="RFC8476"/>,
      and <xref target="RFC9314" format="default" sectionFormat="of" derivedContent="RFC9314"/>.</t>
      <sourcecode name="ietf-ospf@2022-10-19.yang" type="yang" markers="true" pn="section-3-2">
module ietf-ospf {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-ospf";

  prefix ospf;

  import ietf-inet-types {
    prefix inet;
    reference
      "RFC 6991: Common YANG Data Types";
  }

  import ietf-yang-types {
    prefix yang;
    reference
      "RFC 6991: Common YANG Data Types";
  }

  import ietf-interfaces {
    prefix if;
    reference
      "RFC 8343: A YANG Data Model for Interface Management";
  }

  import ietf-routing-types {
    prefix rt-types;
    reference
      "RFC 8294: Common YANG Data Types for the Routing Area";
  }

  import iana-routing-types {
    prefix iana-rt-types;
    reference
      "RFC 8294: Common YANG Data Types for the Routing Area";
  }

  import ietf-routing {
    prefix rt;
    reference
      "RFC 8349: A YANG Data Model for Routing Management
       (NMDA Version)";
  }

  import ietf-key-chain {
    prefix key-chain;
    reference
      "RFC 8177: YANG Data Model for Key Chains";
  }

  import ietf-bfd-types {
    prefix bfd-types;
    reference
      "RFC 9314: YANG Data Model for Bidirectional Forwarding
       Detection (BFD)";
  }

  organization
    "IETF Link State Routing (lsr) Working Group";

  contact
    "WG Web:   &lt;https://datatracker.ietf.org/wg/lsr/&gt;
     WG List:  &lt;mailto:lsr@ietf.org&gt;

     Editor:   Derek Yeung
               &lt;mailto:derek@arrcus.com&gt;
     Author:   Acee Lindem
               &lt;mailto:acee@cisco.com&gt;
     Author:   Yingzhen Qu
               &lt;mailto:yingzhen.qu@futurewei.com&gt;
     Author:   Jeffrey Zhang
               &lt;mailto:zzhang@juniper.net&gt;
     Author:   Ing-Wher Chen
               &lt;mailto:ingwherchen@mitre.org&gt;";

  description
    "This YANG module defines the generic configuration and
     operational state for the OSPF protocol common to all
     vendor implementations.  It is intended that the module
     will be extended by vendors to define vendor-specific
     OSPF configuration parameters and policies --
     for example, route maps or route policies.

     This YANG data model conforms to the Network Management
     Datastore Architecture (NMDA) as described in RFC 8342.

     The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
     NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
     'MAY', and 'OPTIONAL' in this document are to be interpreted as
     described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
     they appear in all capitals, as shown here.

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

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

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

  revision 2022-10-19 {
    description
      "Initial revision.";
    reference
      "RFC 9129: YANG Data Model for the OSPF Protocol";
  }

  feature multi-topology {
    description
      "Support for Multi-Topology (MT) routing.";
    reference
      "RFC 4915: Multi-Topology (MT) Routing in OSPF";
  }

  feature multi-area-adj {
    description
      "Support for OSPF multi-area adjacencies as described in
       RFC 5185.";
    reference
      "RFC 5185: OSPF Multi-Area Adjacency";
  }

  feature explicit-router-id {
    description
      "Sets the Router ID per instance explicitly.";
  }

  feature demand-circuit {
    description
      "Support for OSPF demand circuits as defined in RFC 1793.";
    reference
      "RFC 1793: Extending OSPF to Support Demand Circuits";
  }

  feature mtu-ignore {
    description
      "Disable OSPF Database Description packet MTU
       mismatch checking as specified in the OSPFv2
       protocol specification (RFC 2328).  This mismatch checking
       also applies to OSPFv3 (RFC 5340).";
    reference
      "RFC 2328: OSPF Version 2, Section 10.6
       RFC 5340: OSPF for IPv6";
  }

  feature lls {
    description
      "OSPF link-local signaling (LLS) as defined in RFC 5613.";
    reference
      "RFC 5613: OSPF Link-Local Signaling";
  }

  feature prefix-suppression {
    description
      "OSPF prefix suppression support as described in RFC 6860.";
    reference
      "RFC 6860: Hiding Transit-Only Networks in OSPF";
  }

  feature ttl-security {
    description
      "Support for OSPF Time to Live (TTL) security checking.";
    reference
      "RFC 5082: The Generalized TTL Security Mechanism (GTSM)";
  }

  feature nsr {
    description
      "Non-Stop-Routing (NSR) support.  The OSPF NSR feature
       allows a router with redundant control-plane capability
       (e.g., dual Route Processor (RP) cards) to maintain its
       state and adjacencies during planned and unplanned
       OSPF instance restarts.  It differs from graceful restart
       or Non-Stop Forwarding (NSF) in that no protocol signaling
       or assistance from adjacent OSPF neighbors is required to
       recover control-plane state.";
  }

  feature graceful-restart {
    description
      "Graceful OSPF restart as defined in RFCs 3623 and 5187.";
    reference
      "RFC 3623: Graceful OSPF Restart
       RFC 5187: OSPFv3 Graceful Restart";
  }

  feature auto-cost {
    description
      "Calculates the OSPF interface cost according to
       reference bandwidth.";
    reference
      "RFC 2328: OSPF Version 2";
  }

  feature max-ecmp {
    description
      "Sets the maximum number of ECMP paths.";
  }

  feature max-lsa {
    description
      "Sets the maximum number of Link State Advertisements (LSAs)
       the OSPF instance will accept.";
    reference
      "RFC 1765: OSPF Database Overflow";
  }

  feature te-rid {
    description
      "Support for configuration of the Traffic Engineering (TE)
       Router ID, i.e., the Router Address TLV as described in
       Section 2.4.1 of RFC 3630 or the Router IPv6 Address TLV
       as described in Section 3 of RFC 5329.";
    reference
      "RFC 3630: Traffic Engineering (TE) Extensions to
       OSPF Version 2, Section 2.4.1
       RFC 5329: Traffic Engineering Extensions to OSPF Version 3,
       Section 3";
  }

  feature ldp-igp-sync {
    description
      "LDP IGP synchronization.";
    reference
      "RFC 5443: LDP IGP Synchronization";
  }

  feature ospfv2-authentication-trailer {
    description
      "Support for the OSPFv2 authentication trailer.";
    reference
      "RFC 5709: OSPFv2 HMAC-SHA Cryptographic Authentication
       RFC 7474: Security Extension for OSPFv2 When
       Using Manual Key Management";
  }

  feature ospfv3-authentication-ipsec {
    description
      "Support for IPsec for OSPFv3 authentication.";
    reference
      "RFC 4552: Authentication/Confidentiality for OSPFv3";
  }

  feature ospfv3-authentication-trailer {
    description
      "Support for the OSPFv3 authentication trailer.";
    reference
      "RFC 7166: Supporting Authentication Trailer for OSPFv3";
  }

  feature fast-reroute {
    description
      "Support for IP Fast Reroute (IP-FRR).";
    reference
      "RFC 5714: IP Fast Reroute Framework";
  }

  feature key-chain {
    description
      "Support of key chains for authentication.";
    reference
      "RFC 8177: YANG Data Model for Key Chains";
  }

  feature node-flag {
    description
      "Support for node flags for OSPF prefixes.";
    reference
      "RFC 7684: OSPFv2 Prefix/Link Attribute Advertisement";
  }

  feature node-tag {
    description
      "Support for node administrative tags for OSPF routing
       instances.";
    reference
      "RFC 7777: Advertising Node Administrative Tags in OSPF";
  }

  feature lfa {
    description
      "Support for Loop-Free Alternates (LFAs).";
    reference
      "RFC 5286: Basic Specification for IP Fast Reroute:
       Loop-Free Alternates";
  }

  feature remote-lfa {
    description
      "Support for Remote LFAs (R-LFAs).";
    reference
      "RFC 7490: Remote Loop-Free Alternate (LFA) Fast Reroute
       (FRR)";
  }

  feature stub-router {
    description
      "Support for OSPF stub router advertisement as defined in
       RFC 6987.";
    reference
      "RFC 6987: OSPF Stub Router Advertisement";
  }

  feature pe-ce-protocol {
    description
      "Support for OSPF as a Provider Edge to Customer Edge (PE-CE)
       protocol.";
    reference
      "RFC 4577: OSPF as the Provider/Customer Edge Protocol
       for BGP/MPLS IP Virtual Private Networks (VPNs)
       RFC 6565: OSPFv3 as a Provider Edge to Customer Edge (PE-CE)
       Routing Protocol";
  }

  feature ietf-spf-delay {
    description
      "Support for the IETF Shortest Path First (SPF) delay
       algorithm.";
    reference
      "RFC 8405: Shortest Path First (SPF) Back-Off Delay Algorithm
       for Link-State IGPs";
  }

  feature bfd {
    description
      "Support for BFD to detect OSPF neighbor reachability.";
    reference
      "RFC 5880: Bidirectional Forwarding Detection (BFD)
       RFC 5881: Bidirectional Forwarding Detection
       (BFD) for IPv4 and IPv6 (Single Hop)";
  }

  feature hybrid-interface {
    description
      "Support for the OSPF hybrid interface type.";
    reference
      "RFC 6845: OSPF Hybrid Broadcast and
       Point-to-Multipoint Interface Type";
  }

  identity ospf {
    base rt:routing-protocol;
    description
      "Any OSPF protocol version.";
  }

  identity ospfv2 {
    base ospf;
    description
      "OSPFv2 protocol.";
  }

  identity ospfv3 {
    base ospf;
    description
      "OSPFv3 protocol.";
  }

  identity area-type {
    description
      "Base identity for an OSPF area type.";
  }

  identity normal-area {
    base area-type;
    description
      "OSPF normal area.";
  }

  identity stub-nssa-area {
    base area-type;
    description
      "OSPF stub area or Not-So-Stubby Area (NSSA).";
  }

  identity stub-area {
    base stub-nssa-area;
    description
      "OSPF stub area.";
  }

  identity nssa-area {
    base stub-nssa-area;
    description
      "OSPF NSSA.";
    reference
      "RFC 3101: The OSPF Not-So-Stubby Area (NSSA) Option";
  }

  identity ospf-lsa-type {
    description
      "Base identity for OSPFv2 and OSPFv3
       Link State Advertisement (LSA) types.";
  }

  identity ospfv2-lsa-type {
    base ospf-lsa-type;
    description
      "OSPFv2 LSA types.";
  }

  identity ospfv2-router-lsa {
    base ospfv2-lsa-type;
    description
      "OSPFv2 Router-LSA - Type 1.";
  }

  identity ospfv2-network-lsa {
    base ospfv2-lsa-type;
    description
      "OSPFv2 Network-LSA - Type 2.";
  }

  identity ospfv2-summary-lsa-type {
    base ospfv2-lsa-type;
    description
      "OSPFv2 summary LSA types.";
  }

  identity ospfv2-network-summary-lsa {
    base ospfv2-summary-lsa-type;
    description
      "OSPFv2 Network summary LSA - Type 3.";
  }

  identity ospfv2-asbr-summary-lsa {
    base ospfv2-summary-lsa-type;
    description
      "OSPFv2 Autonomous System Boundary Router (ASBR) summary LSA -
       Type 4.";
  }

  identity ospfv2-external-lsa-type {
    base ospfv2-lsa-type;
    description
      "OSPFv2 External-LSA types.";
  }

  identity ospfv2-as-external-lsa {
    base ospfv2-external-lsa-type;
    description
      "OSPFv2 AS-External-LSA - Type 5.";
  }

  identity ospfv2-nssa-lsa {
    base ospfv2-external-lsa-type;
    description
      "OSPFv2 NSSA-LSA - Type 7.";
  }

  identity ospfv2-opaque-lsa-type {
    base ospfv2-lsa-type;
    description
      "OSPFv2 Opaque-LSA types.";
    reference
      "RFC 5250: The OSPF Opaque LSA Option";
  }

  identity ospfv2-link-scope-opaque-lsa {
    base ospfv2-opaque-lsa-type;
    description
      "OSPFv2 Link-Scope Opaque-LSA - Type 9.";
  }

  identity ospfv2-area-scope-opaque-lsa {
    base ospfv2-opaque-lsa-type;
    description
      "OSPFv2 Area-Scope Opaque-LSA - Type 10.";
  }

  identity ospfv2-as-scope-opaque-lsa {
    base ospfv2-opaque-lsa-type;
    description
      "OSPFv2 AS-Scope Opaque-LSA - Type 11.";
  }

  identity ospfv2-unknown-lsa-type {
    base ospfv2-lsa-type;
    description
      "OSPFv2 unknown LSA type.";
  }

  identity ospfv3-lsa-type {
    base ospf-lsa-type;
    description
      "OSPFv3 LSA types.";
    reference
      "RFC 5340: OSPF for IPv6";
  }

  identity ospfv3-router-lsa {
    base ospfv3-lsa-type;
    description
      "OSPFv3 Router-LSA - Type 0x2001.";
  }

  identity ospfv3-network-lsa {
    base ospfv3-lsa-type;
    description
      "OSPFv3 Network-LSA - Type 0x2002.";
  }

  identity ospfv3-summary-lsa-type {
    base ospfv3-lsa-type;
    description
      "OSPFv3 summary LSA types.";
  }

  identity ospfv3-inter-area-prefix-lsa {
    base ospfv3-summary-lsa-type;
    description
      "OSPFv3 Inter-Area-Prefix-LSA - Type 0x2003.";
  }

  identity ospfv3-inter-area-router-lsa {
    base ospfv3-summary-lsa-type;
    description
      "OSPFv3 Inter-Area-Router-LSA - Type 0x2004.";
  }

  identity ospfv3-external-lsa-type {
    base ospfv3-lsa-type;
    description
      "OSPFv3 External-LSA types.";
  }

  identity ospfv3-as-external-lsa {
    base ospfv3-external-lsa-type;
    description
      "OSPFv3 AS-External-LSA - Type 0x4005.";
  }

  identity ospfv3-nssa-lsa {
    base ospfv3-external-lsa-type;
    description
      "OSPFv3 NSSA-LSA - Type 0x2007.";
  }

  identity ospfv3-link-lsa {
    base ospfv3-lsa-type;
    description
      "OSPFv3 Link-LSA - Type 0x0008.";
  }

  identity ospfv3-intra-area-prefix-lsa {
    base ospfv3-lsa-type;
    description
      "OSPFv3 Intra-Area-Prefix-LSA - Type 0x2009.";
  }

  identity ospfv3-router-information-lsa {
    base ospfv3-lsa-type;
    description
      "OSPFv3 Router-Information-LSA - Types 0x800C,
       0xA00C, and 0xC00C.";
  }

  identity ospfv3-unknown-lsa-type {
    base ospfv3-lsa-type;
    description
      "OSPFv3 unknown LSA type.";
  }

  identity lsa-log-reason {
    description
      "Base identity for an LSA log reason.";
  }

  identity lsa-refresh {
    base lsa-log-reason;
    description
      "Identity used when an LSA is logged
       as a result of receiving a refresh LSA.";
  }

  identity lsa-content-change {
    base lsa-log-reason;
    description
      "Identity used when an LSA is logged
       as a result of a change in the contents
       of the LSA.";
  }

  identity lsa-purge {
    base lsa-log-reason;
    description
      "Identity used when an LSA is logged
       as a result of being purged.";
  }

  identity informational-capability {
    description
      "Base identity for router informational capabilities.";
  }

  identity graceful-restart {
    base informational-capability;
    description
      "When set, the router is capable of restarting
       gracefully.";
    reference
      "RFC 3623: Graceful OSPF Restart
       RFC 5187: OSPFv3 Graceful Restart";
  }

  identity graceful-restart-helper {
    base informational-capability;
    description
      "When set, the router is capable of acting as
       a graceful restart helper.";
    reference
      "RFC 3623: Graceful OSPF Restart
       RFC 5187: OSPFv3 Graceful Restart";
  }

  identity stub-router {
    base informational-capability;
    description
      "When set, the router is capable of acting as
       an OSPF stub router.";
    reference
      "RFC 6987: OSPF Stub Router Advertisement";
  }

  identity traffic-engineering {
    base informational-capability;
    description
      "When set, the router is capable of OSPF TE.";
    reference
      "RFC 3630: Traffic Engineering (TE) Extensions to
       OSPF Version 2
       RFC 5329: Traffic Engineering Extensions to OSPF Version 3";
  }

  identity p2p-over-lan {
    base informational-capability;
    description
      "When set, the router is capable of OSPF point-to-point
       over a LAN.";
    reference
      "RFC 5309: Point-to-Point Operation over LAN in Link State
       Routing Protocols";
  }

  identity experimental-te {
    base informational-capability;
    description
      "When set, the router is capable of OSPF experimental TE.";
    reference
      "RFC 4973: OSPF-xTE: Experimental Extension to OSPF for
       Traffic Engineering";
  }

  identity router-lsa-bit {
    description
      "Base identity for Router-LSA bits.";
  }

  identity vlink-end-bit {
    base router-lsa-bit;
    description
      "V-bit.  When set, the router is an endpoint of one or
       more virtual links.";
  }

  identity asbr-bit {
    base router-lsa-bit;
    description
      "E-bit.  When set, the router is an Autonomous System
       Boundary Router (ASBR).";
  }

  identity abr-bit {
    base router-lsa-bit;
    description
      "B-bit.  When set, the router is an Area Border
       Router (ABR).";
  }

  identity nssa-bit {
    base router-lsa-bit;
    description
      "Nt-bit.  When set, the router is an NSSA border router
       that is unconditionally translating NSSA-LSAs into
       AS-External-LSAs.";
  }

  identity ospfv3-lsa-option {
    description
      "Base identity for OSPF LSA Options.";
  }

  identity af-bit {
    base ospfv3-lsa-option;
    description
      "AF-bit.  When set, the router supports OSPFv3 Address
       Families (AFs) as described in RFC 5838.";
    reference
      "RFC 5838: Support of Address Families in OSPFv3";
  }

  identity dc-bit {
    base ospfv3-lsa-option;
    description
      "DC-bit.  When set, the router supports demand circuits.";
  }

  identity r-bit {
    base ospfv3-lsa-option;
    description
      "R-bit.  When set, the originator is an active router.";
  }

  identity n-bit {
    base ospfv3-lsa-option;
    description
      "N-bit.  When set, the router is attached to an NSSA.";
  }

  identity e-bit {
    base ospfv3-lsa-option;
    description
      "E-bit.  This bit describes the way AS-External-LSAs
       are flooded.";
  }

  identity v6-bit {
    base ospfv3-lsa-option;
    description
      "V6-bit.  If clear, the router/link should be excluded
       from IPv6 routing calculations.";
  }

  identity ospfv3-prefix-option {
    description
      "Base identity for OSPFv3 prefix options.";
  }

  identity nu-bit {
    base ospfv3-prefix-option;
    description
      "NU-bit.  When set, the prefix should be excluded
       from IPv6 unicast calculations.";
  }

  identity la-bit {
    base ospfv3-prefix-option;
    description
      "LA-bit.  When set, the prefix is actually an IPv6
       interface address of the advertising router.";
  }

  identity p-bit {
    base ospfv3-prefix-option;
    description
      "P-bit.  When set, the NSSA prefix should be
       translated to an AS-External-LSA and advertised
       by the translating NSSA border router.";
  }

  identity dn-bit {
    base ospfv3-prefix-option;
    description
      "DN-bit.  When set, the Inter-Area-Prefix-LSA or
       AS-External-LSA prefix has been advertised as an
       L3VPN prefix.";
  }

  identity ospfv2-lsa-option {
    description
      "Base identity for OSPFv2 LSA Options.";
  }

  identity mt-bit {
    base ospfv2-lsa-option;
    description
      "MT-bit.  When set, the router supports multi-topology as
       described in RFC 4915.";
    reference
      "RFC 4915: Multi-Topology (MT) Routing in OSPF";
  }

  identity v2-dc-bit {
    base ospfv2-lsa-option;
    description
      "DC-bit.  When set, the router supports demand circuits.";
  }

  identity v2-p-bit {
    base ospfv2-lsa-option;
    description
      "P-bit.  Only used in type-7 LSAs.  When set, an NSSA
       border router should translate the type-7 LSA
       to a type-5 LSA.";
  }

  identity mc-bit {
    base ospfv2-lsa-option;
    description
      "MC-bit.  When set, the router supports
       Multicast Extensions to OSPF (MOSPF).";
  }

  identity v2-e-bit {
    base ospfv2-lsa-option;
    description
      "E-bit.  This bit describes the way AS-External-LSAs
       are flooded.";
  }

  identity o-bit {
    base ospfv2-lsa-option;
    description
      "O-bit.  When set, the router is opaque capable as described
       in RFC 5250.";
    reference
      "RFC 5250: The OSPF Opaque LSA Option";
  }

  identity v2-dn-bit {
    base ospfv2-lsa-option;
    description
      "DN-bit.  When a type 3, type 5, or type 7 LSA is sent from a
       PE to a CE, the DN-bit must be set.  See RFC 4576.";
    reference
      "RFC 4576: Using a Link State Advertisement (LSA) Options Bit
       to Prevent Looping in BGP/MPLS IP Virtual Private Networks
       (VPNs)";
  }

  identity ospfv2-extended-prefix-flag {
    description
      "Base identity for the Extended Prefix TLV flag.";
  }

  identity a-flag {
    base ospfv2-extended-prefix-flag;
    description
      "Attach flag.  When set, it indicates that the prefix
       corresponds to a route that is directly connected to
       the advertising router.";
  }

  identity node-flag {
    base ospfv2-extended-prefix-flag;
    description
      "Node flag.  When set, it indicates that the prefix is
       used to represent the advertising node, e.g., a loopback
       address.";
  }

  typedef ospf-metric {
    type uint32 {
      range "0 .. 16777215";
    }
    description
      "OSPF metric.  24-bit unsigned integer.";
  }

  typedef ospf-link-metric {
    type uint16 {
      range "0 .. 65535";
    }
    description
      "OSPF link metric.  16-bit unsigned integer.";
  }

  typedef opaque-id {
    type uint32 {
      range "0 .. 16777215";
    }
    description
      "Opaque-LSA ID.  24-bit unsigned integer.";
  }

  typedef area-id-type {
    type yang:dotted-quad;
    description
      "Area ID type.";
  }

  typedef route-type {
    type enumeration {
      enum intra-area {
        description
          "OSPF intra-area route.";
      }
      enum inter-area {
        description
          "OSPF inter-area route.";
      }
      enum external-1 {
        description
          "OSPF type 1 external route.";
      }
      enum external-2 {
        description
          "OSPF type 2 external route.";
      }
      enum nssa-1 {
        description
          "OSPF type 1 NSSA route.";
      }
      enum nssa-2 {
        description
          "OSPF type 2 NSSA route.";
      }
    }
    description
      "OSPF route type.";
  }

  typedef if-state-type {
    type enumeration {
      enum down {
        value 1;
        description
          "Interface is in the 'Down' state.";
      }
      enum loopback {
        value 2;
        description
          "Interface is in the 'Loopback' state.";
      }
      enum waiting {
        value 3;
        description
          "Interface is in the 'Waiting' state.";
      }
      enum point-to-point {
        value 4;
        description
          "Interface is in the 'Point-to-point' state.";
      }
      enum dr {
        value 5;
        description
          "Interface is in the 'DR' (Designated Router) state.";
      }
      enum bdr {
        value 6;
        description
          "Interface is in the 'Backup' (Backup Designated Router
           (BDR)) state.";
      }
      enum dr-other {
        value 7;
        description
          "Interface is in the 'DR Other' state.";
      }
    }
    description
      "OSPF interface state type.";
    reference
      "RFC 2328: OSPF Version 2";
  }

  typedef router-link-type {
    type enumeration {
      enum point-to-point-link {
        value 1;
        description
          "Point-to-point link to another router.";
      }
      enum transit-network-link {
        value 2;
        description
          "Link to a transit network, identified by the DR.";
      }
      enum stub-network-link {
        value 3;
        description
          "Link to a stub network, identified by the subnet.";
      }
      enum virtual-link {
        value 4;
        description
          "Virtual link across a transit area.";
      }
    }
    description
      "OSPF router link type.";
  }

  typedef nbr-state-type {
    type enumeration {
      enum down {
        value 1;
        description
          "Neighbor is in the 'Down' state.";
      }
      enum attempt {
        value 2;
        description
          "Neighbor is in the 'Attempt' state.";
      }
      enum init {
        value 3;
        description
          "Neighbor is in the 'Init' state.";
      }
      enum 2-way {
        value 4;
        description
          "Neighbor is in the '2-Way' state.";
      }
      enum exstart {
        value 5;
        description
          "Neighbor is in the 'ExStart' (exchange start) state.";
      }
      enum exchange {
        value 6;
        description
          "Neighbor is in the 'Exchange' state.";
      }
      enum loading {
        value 7;
        description
          "Neighbor is in the 'Loading' state.";
      }
      enum full {
        value 8;
        description
          "Neighbor is in the 'Full' state.";
      }
    }
    description
      "OSPF neighbor state type.";
    reference
      "RFC 2328: OSPF Version 2";
  }

  typedef restart-helper-status-type {
    type enumeration {
      enum not-helping {
        value 1;
        description
          "Restart helper status of 'not-helping'.";
      }
      enum helping {
        value 2;
        description
          "Restart helper status of 'helping'.";
      }
    }
    description
      "Restart helper status type.";
  }

  typedef restart-exit-reason-type {
    type enumeration {
      enum none {
        value 1;
        description
          "Restart not attempted.";
      }
      enum in-progress {
        value 2;
        description
          "Restart in progress.";
      }
      enum completed {
        value 3;
        description
          "Restart successfully completed.";
      }
      enum timed-out {
        value 4;
        description
          "Restart timed out.";
      }
      enum topology-changed {
        value 5;
        description
          "Restart aborted due to a topology change.";
      }
    }
    description
      "Describes the outcome of the last graceful restart attempt.
       The local router is being restarted or acting as a helper.";
  }

  typedef packet-type {
    type enumeration {
      enum hello {
        value 1;
        description
          "OSPF Hello packet.";
      }
      enum database-description {
        value 2;
        description
          "OSPF Database Description packet.";
      }
      enum link-state-request {
        value 3;
        description
          "OSPF Link State Request packet.";
      }
      enum link-state-update {
        value 4;
        description
          "OSPF Link State Update packet.";
      }
      enum link-state-ack {
        value 5;
        description
          "OSPF Link State Acknowledgment packet.";
      }
    }
    description
      "OSPF packet type.";
  }

  typedef nssa-translator-state-type {
    type enumeration {
      enum enabled {
        value 1;
        description
          "NSSATranslatorState is 'enabled'.";
      }
      enum elected {
        value 2;
        description
          "NSSATranslatorState is 'elected'.";
      }
      enum disabled {
        value 3;
        description
          "NSSATranslatorState is 'disabled'.";
      }
    }
    description
      "OSPF NSSA translator state type.";
    reference
      "RFC 3101: The OSPF Not-So-Stubby Area (NSSA) Option";
  }

  typedef restart-status-type {
    type enumeration {
      enum not-restarting {
        value 1;
        description
          "The router is not restarting.";
      }
      enum planned-restart {
        value 2;
        description
          "The router is going through a planned restart.";
      }
      enum unplanned-restart {
        value 3;
        description
          "The router is going through an unplanned restart.";
      }
    }
    description
      "OSPF graceful restart status type.";
  }

  typedef fletcher-checksum16-type {
    type string {
      pattern '(0x)?[0-9a-fA-F]{4}';
    }
    description
      "Fletcher 16-bit checksum in hex-string format 0xXXXX.";
    reference
      "RFC 905: ISO Transport Protocol Specification ISO DP 8073";
  }

  typedef ospfv2-auth-trailer-rfc-version {
    type enumeration {
      enum rfc5709 {
        description
          "Support for the OSPF authentication trailer as
           described in RFC 5709.";
        reference
          "RFC 5709: OSPFv2 HMAC-SHA Cryptographic Authentication";
      }
      enum rfc7474 {
        description
          "Support for the OSPF authentication trailer as
           described in RFC 7474.";
        reference
          "RFC 7474: Security Extension for OSPFv2
           When Using Manual Key Management";
      }
    }
    description
      "OSPFv2 authentication trailer support.";
  }

  grouping tlv {
    description
      "Type-Length-Value (TLV).";
    leaf type {
      type uint16;
      description
        "TLV type.";
    }
    leaf length {
      type uint16;
      description
        "TLV length (octets).";
    }
    leaf value {
      type yang:hex-string;
      description
        "TLV value.";
    }
  }

  grouping unknown-tlvs {
    description
      "Grouping used for unknown TLVs or unknown sub-TLVs.";
    container unknown-tlvs {
      description
        "All unknown TLVs.";
      list unknown-tlv {
        description
          "Unknown TLV.";
        uses tlv;
      }
    }
  }

  grouping node-tag-tlv {
    description
      "OSPF Node Admin Tag TLV grouping.";
    list node-tag {
      leaf tag {
        type uint32;
        description
          "Value of the node administrative tag.";
      }
      description
        "List of tags.";
    }
  }

  grouping router-capabilities-tlv {
    description
      "Grouping for OSPF router capabilities TLV types.";
    reference
      "RFC 7770: Extensions to OSPF for Advertising Optional
       Router Capabilities";
    container router-informational-capabilities {
      leaf-list informational-capabilities {
        type identityref {
          base informational-capability;
        }
        description
          "List of informational capabilities.  This list will
           contain the identities for the informational
           capabilities supported by the router.";
      }
      description
        "OSPF Router Informational Flag definitions.";
    }
    list informational-capabilities-flags {
      leaf informational-flag {
        type uint32;
        description
          "Individual informational capability flag.";
      }
      description
        "List of informational capability flags.  This will
         return all the 32-bit informational flags, irrespective
         of whether or not they are known to the device.";
    }
    list functional-capabilities {
      leaf functional-flag {
        type uint32;
        description
          "Individual functional capability flag.";
      }
      description
        "List of functional capability flags.  This will
         return all the 32-bit functional flags, irrespective
         of whether or not they are known to the device.";
    }
  }

  grouping dynamic-hostname-tlv {
    description
      "Dynamic Hostname TLV.";
    reference
      "RFC 5642: Dynamic Hostname Exchange Mechanism for OSPF";
    leaf hostname {
      type string {
        length "1..255";
      }
      description
        "Dynamic hostname.";
    }
  }

  grouping sbfd-discriminator-tlv {
    description
      "S-BFD Discriminator TLV.";
    reference
      "RFC 7884: OSPF Extensions to Advertise Seamless Bidirectional
       Forwarding Detection (S-BFD) Target Discriminators";
    list sbfd-discriminators {
      leaf sbfd-discriminator {
        type uint32;
        description
          "Individual S-BFD Discriminator.";
      }
      description
        "List of S-BFD Discriminators.";
    }
  }

  grouping maximum-sid-depth-tlv {
    description
      "Node MSD TLV (TLV for Maximum SID Depth).";
    reference
      "RFC 8476: Signaling Maximum SID Depth (MSD) Using OSPF";
    list msd-type {
      leaf msd-type {
        type uint8;
        description
          "Maximum SID Depth (MSD) type.";
      }
      leaf msd-value {
        type uint8;
        description
          "MSD value for the type.";
      }
      description
        "List of MSD tuples.";
    }
  }

  grouping ospf-router-lsa-bits {
    container router-bits {
      leaf-list rtr-lsa-bits {
        type identityref {
          base router-lsa-bit;
        }
        description
          "List of Router-LSA bits.  This list will contain
           identities for the bits; these identities are set
           in the Router-LSA bits.";
      }
      description
        "Router-LSA bits.";
    }
    description
      "Router-LSA bits.  Currently common to both OSPFv2 and
       OSPFv3 but may diverge with future augmentations.";
  }

  grouping ospfv2-router-link {
    description
      "OSPFv2 router link.";
    leaf link-id {
      type union {
        type inet:ipv4-address;
        type yang:dotted-quad;
      }
      description
        "Router-LSA Link ID.";
    }
    leaf link-data {
      type union {
        type inet:ipv4-address;
        type uint32;
      }
      description
        "Router-LSA link data.";
    }
    leaf type {
      type router-link-type;
      description
        "Router-LSA link type.";
    }
  }

  grouping ospfv2-lsa-body {
    description
      "OSPFv2 LSA body.";
    container router {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv2-router-lsa')" {
        description
          "Only applies to Router-LSAs.";
      }
      description
        "Router-LSA.";
      uses ospf-router-lsa-bits;
      leaf num-of-links {
        type uint16;
        description
          "Number of links in the Router-LSA.";
      }
      container links {
        description
          "All router links.";
        list link {
          description
            "Router-LSA link.";
          uses ospfv2-router-link;
          container topologies {
            description
              "All topologies for the link.";
            list topology {
              description
                "Topology-specific information.";
              leaf mt-id {
                type uint8;
                description
                  "The MT-ID for the topology enabled on the link.";
              }
              leaf metric {
                type uint16;
                description
                  "Metric for the topology.";
              }
            }
          }
        }
      }
    }
    container network {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv2-network-lsa')" {
        description
          "Only applies to Network-LSAs.";
      }
      description
        "Network-LSA.";
      leaf network-mask {
        type yang:dotted-quad;
        description
          "The IP address mask for the network.";
      }
      container attached-routers {
        description
          "All attached routers.";
        leaf-list attached-router {
          type inet:ipv4-address;
          description
            "List of the routers attached to the network.";
        }
      }
    }
    container summary {
      when "derived-from(../../header/type, "
         + "'ospfv2-summary-lsa-type')" {
        description
          "Only applies to summary LSAs.";
      }
      description
        "Summary LSA.";
      leaf network-mask {
        type inet:ipv4-address;
        description
          "The IP address mask for the network.";
      }
      container topologies {
        description
          "All topologies for the summary LSA.";
        list topology {
          description
            "Topology-specific information.";
          leaf mt-id {
            type uint8;
            description
              "The MT-ID for the topology enabled for the summary.";
          }
          leaf metric {
            type ospf-metric;
            description
              "Metric for the topology.";
          }
        }
      }
    }
    container external {
      when "derived-from(../../header/type, "
         + "'ospfv2-external-lsa-type')" {
        description
          "Only applies to AS-External-LSAs and NSSA-LSAs.";
      }
      description
        "External-LSA.";
      leaf network-mask {
        type inet:ipv4-address;
        description
          "The IP address mask for the network.";
      }
      container topologies {
        description
          "All topologies for the External-LSA.";
        list topology {
          description
            "Topology-specific information.";
          leaf mt-id {
            type uint8;
            description
              "The MT-ID for the topology enabled for the
               external or NSSA prefix.";
          }
          leaf flags {
            type bits {
              bit E {
                description
                  "When set, the metric specified is a Type 2
                   external metric.";
              }
            }
            description
              "Topology flags.";
          }
          leaf metric {
            type ospf-metric;
            description
              "Metric for the topology.";
          }
          leaf forwarding-address {
            type inet:ipv4-address;
            description
              "IPv4 Forwarding address.";
          }
          leaf external-route-tag {
            type uint32;
            description
              "Route tag for the topology.";
          }
        }
      }
    }
    container opaque {
      when "derived-from(../../header/type, "
         + "'ospfv2-opaque-lsa-type')" {
        description
          "Only applies to Opaque-LSAs.";
      }
      description
        "Opaque-LSA.";

      container ri-opaque {
        description
          "OSPF Router-Information-Opaque-LSA.";
        reference
          "RFC 7770: Extensions to OSPF for Advertising Optional
           Router Capabilities";

        container router-capabilities-tlv {
          description
            "Informational and functional router capabilities.";
          uses router-capabilities-tlv;
        }

        container node-tag-tlvs {
          description
            "All Node Admin Tag TLVs.";
          list node-tag-tlv {
            description
              "Node Admin Tag TLV.";
            uses node-tag-tlv;
          }
        }

        container dynamic-hostname-tlv {
          description
            "OSPF Dynamic Hostname TLV.";
          uses dynamic-hostname-tlv;
        }

        container sbfd-discriminator-tlv {
          description
            "OSPF S-BFD Discriminator TLV.";
          uses sbfd-discriminator-tlv;
        }

        container maximum-sid-depth-tlv {
          description
            "OSPF Node MSD TLV.";
          uses maximum-sid-depth-tlv;
        }
        uses unknown-tlvs;
      }

      container te-opaque {
        description
          "OSPFv2 TE Opaque-LSA.";
        reference
          "RFC 3630: Traffic Engineering (TE) Extensions to
           OSPF Version 2";

        container router-address-tlv {
          description
            "Router address TLV.";
          leaf router-address {
            type inet:ipv4-address;
            description
              "Router address.";
          }
        }

        container link-tlv {
          description
            "Describes a single link.  It is constructed
             from a set of sub-TLVs.";
          leaf link-type {
            type router-link-type;
            mandatory true;
            description
              "Link type.";
          }
          leaf link-id {
            type union {
              type inet:ipv4-address;
              type yang:dotted-quad;
            }
            mandatory true;
            description
              "Link ID.";
          }
          container local-if-ipv4-addrs {
            description
              "All local interface IPv4 addresses.";
            leaf-list local-if-ipv4-addr {
              type inet:ipv4-address;
              description
                "List of local interface IPv4 addresses.";
            }
          }
          container remote-if-ipv4-addrs {
            description
              "All remote interface IPv4 addresses.";
            leaf-list remote-if-ipv4-addr {
              type inet:ipv4-address;
              description
                "List of remote interface IPv4 addresses.";
            }
          }
          leaf te-metric {
            type uint32;
            description
              "TE metric.";
          }
          leaf max-bandwidth {
            type rt-types:bandwidth-ieee-float32;
            description
              "Maximum bandwidth.";
          }
          leaf max-reservable-bandwidth {
            type rt-types:bandwidth-ieee-float32;
            description
              "Maximum reservable bandwidth.";
          }
          container unreserved-bandwidths {
            description
              "All unreserved bandwidths.";
            list unreserved-bandwidth {
              leaf priority {
                type uint8 {
                  range "0 .. 7";
                }
                description
                  "Priority from 0 to 7.";
              }
              leaf unreserved-bandwidth {
                type rt-types:bandwidth-ieee-float32;
                description
                  "Unreserved bandwidth.";
              }
              description
                "List of unreserved bandwidths for different
                 priorities.";
            }
          }
          leaf admin-group {
            type uint32;
            description
              "Administrative Group / Resource Class/Color.";
          }
          uses unknown-tlvs;
        }
      }

      container extended-prefix-opaque {
        description
          "All Extended Prefix TLVs in the LSA.";
        list extended-prefix-tlv {
          description
            "Extended Prefix TLV.";
          leaf route-type {
            type enumeration {
              enum unspecified {
                value 0;
                description
                  "Unspecified.";
              }
              enum intra-area {
                value 1;
                description
                  "OSPF intra-area route.";
              }
              enum inter-area {
                value 3;
                description
                  "OSPF inter-area route.";
              }
              enum external {
                value 5;
                description
                  "OSPF external route.";
              }
              enum nssa {
                value 7;
                description
                  "OSPF NSSA external route.";
              }
            }
            description
              "Route type.";
          }
          container flags {
            leaf-list extended-prefix-flags {
              type identityref {
                base ospfv2-extended-prefix-flag;
              }
              description
                "List of Extended Prefix TLV flags.  This list will
                 contain identities for the prefix flags; these
                 identities are set in the extended prefix flags.";
            }
            description
              "Prefix flags.";
          }
          leaf prefix {
            type inet:ip-prefix;
            description
              "Address prefix.";
          }
          uses unknown-tlvs;
        }
      }

      container extended-link-opaque {
        description
          "All Extended Link TLVs in the LSA.";
        reference
          "RFC 7684: OSPFv2 Prefix/Link Attribute Advertisement";
        container extended-link-tlv {
          description
            "Extended Link TLV.";
          uses ospfv2-router-link;
          container maximum-sid-depth-tlv {
            description
              "OSPF Node MSD TLV.";
            uses maximum-sid-depth-tlv;
          }
          uses unknown-tlvs;
        }
      }
    }
  }

  grouping ospfv3-lsa-options {
    description
      "OSPFv3 LSA Options.";
    container lsa-options {
      leaf-list lsa-options {
        type identityref {
          base ospfv3-lsa-option;
        }
        description
          "List of OSPFv3 LSA Options.  This list will contain
           the identities for the OSPFv3 LSA Options that are
           set for the LSA.";
      }
      description
        "OSPFv3 LSA Options.";
    }
  }

  grouping ospfv3-lsa-prefix {
    description
      "OSPFv3 LSA prefix.";

    leaf prefix {
      type inet:ip-prefix;
      description
        "LSA prefix.";
    }
    container prefix-options {
      leaf-list prefix-options {
        type identityref {
          base ospfv3-prefix-option;
        }
        description
          "List of OSPFv3 prefix Options.  This list will
           contain the identities for the OSPFv3 options
           that are set for the OSPFv3 prefix.";
      }
      description
        "Prefix options.";
    }
  }

  grouping ospfv3-lsa-external {
    description
      "AS-External-LSA or NSSA-LSA.";
    leaf metric {
      type ospf-metric;
      description
        "AS-External-LSA or NSSA-LSA Metric.";
    }
    leaf flags {
      type bits {
        bit E {
          description
            "When set, the metric specified is a Type 2
             external metric.";
        }
        bit F {
          description
            "When set, a forwarding address is included
             in the LSA.";
        }
        bit T {
          description
            "When set, an external route tag is included
             in the LSA.";
        }
      }
      description
        "AS-External-LSA or NSSA-LSA flags.";
    }

    leaf referenced-ls-type {
      type identityref {
        base ospfv3-lsa-type;
      }
      description
        "Referenced Link State (LS) Type.";
      reference
        "RFC 5340: OSPF for IPv6";
    }
    leaf unknown-referenced-ls-type {
      type uint16;
      description
        "Value for an unknown Referenced LS Type.";
    }

    uses ospfv3-lsa-prefix;

    leaf forwarding-address {
      type inet:ipv6-address;
      description
        "IPv6 Forwarding address.";
    }

    leaf external-route-tag {
      type uint32;
      description
        "Route tag.";
    }
    leaf referenced-link-state-id {
      type uint32;
      description
        "Referenced Link State ID.";
      reference
        "RFC 5340: OSPF for IPv6";
    }
  }

  grouping ospfv3-lsa-body {
    description
      "OSPFv3 LSA body.";
    container router {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv3-router-lsa')" {
        description
          "Only applies to Router-LSAs.";
      }
      description
        "Router-LSA.";
      uses ospf-router-lsa-bits;
      uses ospfv3-lsa-options;

      container links {
        description
          "All router links.";
        list link {
          description
            "Router-LSA link.";
          leaf interface-id {
            type uint32;
            description
              "Interface ID for the link.";
          }
          leaf neighbor-interface-id {
            type uint32;
            description
              "Neighbor's Interface ID for the link.";
          }
          leaf neighbor-router-id {
            type rt-types:router-id;
            description
              "Neighbor's Router ID for the link.";
          }
          leaf type {
            type router-link-type;
            description
              "Link type: 1 - Point-to-Point Link
                          2 - Transit Network Link
                          3 - Reserved for OSPFv3 Links
                          4 - Virtual Link.";
          }
          leaf metric {
            type uint16;
            description
              "Link metric.";
          }
        }
      }
    }
    container network {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv3-network-lsa')" {
        description
          "Only applies to Network-LSAs.";
      }
      description
        "Network-LSA.";

      uses ospfv3-lsa-options;

      container attached-routers {
        description
          "All attached routers.";
        leaf-list attached-router {
          type rt-types:router-id;
          description
            "List of the routers attached to the network.";
        }
      }
    }
    container inter-area-prefix {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv3-inter-area-prefix-lsa')" {
        description
          "Only applies to Inter-Area-Prefix-LSAs.";
      }
      leaf metric {
        type ospf-metric;
        description
          "Inter-Area Prefix metric.";
      }
      uses ospfv3-lsa-prefix;
      description
        "Prefix-LSA.";
    }
    container inter-area-router {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv3-inter-area-router-lsa')" {
        description
          "Only applies to Inter-Area-Router-LSAs.";
      }
      uses ospfv3-lsa-options;
      leaf metric {
        type ospf-metric;
        description
          "Autonomous System Boundary Router (ASBR) metric.";
      }
      leaf destination-router-id {
        type rt-types:router-id;
        description
          "The Router ID of the ASBR described by the LSA.";
      }
      description
        "Inter-Area-Router-LSA.";
    }
    container as-external {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv3-as-external-lsa')" {
        description
          "Only applies to AS-External-LSAs.";
      }

      uses ospfv3-lsa-external;

      description
        "AS-External-LSA.";
    }
    container nssa {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv3-nssa-lsa')" {
        description
          "Only applies to NSSA-LSAs.";
      }
      uses ospfv3-lsa-external;

      description
        "NSSA-LSA.";
    }
    container link {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv3-link-lsa')" {
        description
          "Only applies to Link-LSAs.";
      }
      leaf rtr-priority {
        type uint8;
        description
          "Router priority for DR election.  A router with a
           higher priority will be preferred in the election.
           A value of 0 indicates that the router is not eligible
           to become the DR or BDR.";
      }
      uses ospfv3-lsa-options;

      leaf link-local-interface-address {
        type inet:ipv6-address;
        description
          "The originating router's link-local
           interface address for the link.";
      }

      leaf num-of-prefixes {
        type uint32;
        description
          "Number of prefixes.";
      }

      container prefixes {
        description
          "All prefixes for the link.";
        list prefix {
          description
            "List of prefixes associated with the link.";
          uses ospfv3-lsa-prefix;
        }
      }
      description
        "Link-LSA.";
    }
    container intra-area-prefix {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv3-intra-area-prefix-lsa')" {
        description
          "Only applies to Intra-Area-Prefix-LSAs.";
      }
      description
        "Intra-Area-Prefix-LSA.";

      leaf referenced-ls-type {
        type identityref {
          base ospfv3-lsa-type;
        }
        description
          "Referenced LS Type.";
      }
      leaf unknown-referenced-ls-type {
        type uint16;
        description
          "Value for an unknown Referenced LS Type.";
      }
      leaf referenced-link-state-id {
        type uint32;
        description
          "Referenced Link State ID.";
      }
      leaf referenced-adv-router {
        type rt-types:router-id;
        description
          "Referenced Advertising Router.";
        reference
          "RFC 5340: OSPF for IPv6";
      }

      leaf num-of-prefixes {
        type uint16;
        description
          "Number of prefixes.";
      }
      container prefixes {
        description
          "All prefixes in this LSA.";
        list prefix {
          description
            "List of prefixes in this LSA.";
          uses ospfv3-lsa-prefix;
          leaf metric {
            type uint16;
            description
              "Prefix metric.";
          }
        }
      }
    }
    container router-information {
      when "derived-from-or-self(../../header/type, "
         + "'ospfv3-router-information-lsa')" {
        description
          "Only applies to Router-Information-LSAs (RFC 7770).";
        reference
          "RFC 7770: Extensions to OSPF for Advertising Optional
           Router Capabilities";
      }
      container router-capabilities-tlv {
        description
          "Informational and functional router capabilities.";
        uses router-capabilities-tlv;
      }
      container node-tag-tlvs {
        description
          "All Node Admin Tag TLVs.";
        list node-tag-tlv {
          description
            "Node Admin Tag TLV.";
          uses node-tag-tlv;
        }
      }
      container dynamic-hostname-tlv {
        description
          "OSPF Dynamic Hostname TLV.";
        uses dynamic-hostname-tlv;
      }

      container sbfd-discriminator-tlv {
        description
          "OSPF S-BFD Discriminator TLV.";
        uses sbfd-discriminator-tlv;
      }

      description
        "Router-Information-LSA.";
      reference
        "RFC 7770: Extensions to OSPF for Advertising Optional
         Router Capabilities";
    }
  }

  grouping lsa-header {
    description
      "Common LSA for OSPFv2 and OSPFv3.";
    leaf age {
      type uint16;
      mandatory true;
      description
        "LSA age.";
    }
    leaf type {
      type identityref {
        base ospf-lsa-type;
      }
      mandatory true;
      description
        "LSA type.";
    }
    leaf adv-router {
      type rt-types:router-id;
      mandatory true;
      description
        "LSA advertising router.";
    }
    leaf seq-num {
      type uint32;
      mandatory true;
      description
        "LSA sequence number.";
    }
    leaf checksum {
      type fletcher-checksum16-type;
      mandatory true;
      description
        "LSA checksum.";
    }
    leaf length {
      type uint16;
      mandatory true;
      description
        "LSA length, including the header.";
    }
  }

  grouping ospfv2-lsa {
    description
      "OSPFv2 LSA.  LSAs are uniquely identified by
       the &lt;LSA Type, Link State ID, Advertising Router&gt;
       tuple, with the sequence number differentiating the
       LSA instances.";
    container header {
      must "(derived-from(type, "
         + "'ospfv2-opaque-lsa-type') and "
         + "opaque-id and opaque-type) or "
         + "(not(derived-from(type, "
         + "'ospfv2-opaque-lsa-type')) "
         + "and not(opaque-id) and not(opaque-type))" {
        description
          "The opaque-type and the opaque-id only apply to
           Opaque-LSAs.";
      }
      description
        "Decoded OSPFv2 LSA header data.";

      container lsa-options {
        leaf-list lsa-options {
          type identityref {
            base ospfv2-lsa-option;
          }
          description
            "List of LSA Options.  This list will contain the
             identities for the OSPFv2 LSA Options that are set.";
        }
        description
          "LSA Options.";
      }

      leaf lsa-id {
        type yang:dotted-quad;
        mandatory true;
        description
          "Link State ID.";
      }

      leaf opaque-type {
        type uint8;
        description
          "Opaque-LSA type.";
      }

      leaf opaque-id {
        type opaque-id;
        description
          "Opaque-LSA ID.";
      }

      uses lsa-header;
    }
    container body {
      description
        "Decoded OSPFv2 LSA body data.";
      uses ospfv2-lsa-body;
    }
  }

  grouping ospfv3-lsa {
    description
      "Decoded OSPFv3 LSA.";
    container header {
      description
        "Decoded OSPFv3 LSA header data.";
      leaf lsa-id {
        type uint32;
        mandatory true;
        description
          "OSPFv3 LSA ID.";
      }
      uses lsa-header;
    }
    container body {
      description
        "Decoded OSPF LSA body data.";
      uses ospfv3-lsa-body;
    }
  }
  grouping lsa-common {
    description
      "Common fields for OSPF LSA representation.";
    leaf decode-completed {
      type boolean;
      description
        "The OSPF LSA body was successfully decoded, except for
         unknown TLVs.  Unknown LSA types and OSPFv2 unknown
         Opaque-LSA types are not decoded.  Additionally,
         malformed LSAs are generally not accepted and will
         not be in the Link State Database (LSDB).";
    }
    leaf raw-data {
      type yang:hex-string;
      description
        "The hexadecimal representation of the complete LSA as
         received or originated, in network byte order.";
    }
  }

  grouping lsa {
    description
      "OSPF LSA.";
    uses lsa-common;
    choice version {
      description
        "OSPFv2 or OSPFv3 LSA body.";
      container ospfv2 {
        description
          "OSPFv2 LSA.";
        uses ospfv2-lsa;
      }
      container ospfv3 {
        description
          "OSPFv3 LSA.";
        uses ospfv3-lsa;
      }
    }
  }

  grouping lsa-key {
    description
      "OSPF LSA key.  The database key for each LSA of a given
       type in the LSDB.";
    leaf lsa-id {
      type union {
        type yang:dotted-quad;
        type uint32;
      }
      description
        "Link State ID.";
    }
    leaf adv-router {
      type rt-types:router-id;
      description
        "Advertising router.";
    }
  }

  grouping instance-stat {
    description
      "Per-instance statistics.";
    leaf discontinuity-time {
      type yang:date-and-time;
      description
        "The time of the most recent occasion at which any one or
         more of this OSPF instance's counters suffered a
         discontinuity.  If no such discontinuities have occurred
         since the OSPF instance was last reinitialized, then
         this node contains the time the OSPF instance was
         reinitialized, which normally occurs when it was
         created.";
    }
    leaf originate-new-lsa-count {
      type yang:counter32;
      description
        "The number of new LSAs originated.  Discontinuities in the
         value of this counter can occur when the OSPF instance is
         reinitialized.";
    }
    leaf rx-new-lsas-count {
      type yang:counter32;
      description
        "The number of new LSAs received.  Discontinuities in the
         value of this counter can occur when the OSPF instance is
         reinitialized.";
    }
    leaf as-scope-lsa-count {
      type yang:gauge32;
      description
        "The number of AS-Scope LSAs.";
    }
    leaf as-scope-lsa-chksum-sum {
      type uint32;
      description
        "The modulo 2^32 sum of the LSA checksums
         for AS-Scope LSAs.  The value should be treated as
         unsigned when comparing two sums of checksums.  While
         differing checksums indicate a different combination
         of LSAs, equivalent checksums don't guarantee that the
         LSAs are the same, given that multiple combinations of
         LSAs can result in the same checksum.";
    }
    container database {
      description
        "Container for per-AS-Scope LSA statistics.";
      list as-scope-lsa-type {
        description
          "List of AS-Scope LSA statistics.";
        leaf lsa-type {
          type uint16;
          description
            "AS-Scope LSA type.";
        }
        leaf lsa-count {
          type yang:gauge32;
          description
            "The number of LSAs of this LSA type.";
        }
        leaf lsa-cksum-sum {
          type uint32;
          description
            "The modulo 2^32 sum of the LSA checksums
             for LSAs of this type.  The value should be
             treated as unsigned when comparing two sums of
             checksums.  While differing checksums indicate a
             different combination of LSAs, equivalent checksums
             don't guarantee that the LSAs are the same, given that
             multiple combinations of LSAs can result in the same
             checksum.";
        }
      }
    }
    uses instance-fast-reroute-state;
  }

  grouping area-stat {
    description
      "Per-area statistics.";
    leaf discontinuity-time {
      type yang:date-and-time;
      description
        "The time of the most recent occasion at which any one or
         more of this OSPF area's counters suffered a
         discontinuity.  If no such discontinuities have occurred
         since the OSPF area was last reinitialized, then
         this node contains the time the OSPF area was
         reinitialized, which normally occurs when it was
         created.";
    }
    leaf spf-runs-count {
      type yang:counter32;
      description
        "The number of times the intra-area SPF has run.
         Discontinuities in the value of this counter can occur
         when the OSPF area is reinitialized.";
    }
    leaf abr-count {
      type yang:gauge32;
      description
        "The total number of Area Border Routers (ABRs)
         reachable within this area.";
    }
    leaf asbr-count {
      type yang:gauge32;
      description
        "The total number of AS Boundary Routers (ASBRs)
         reachable within this area.";
    }
    leaf ar-nssa-translator-event-count {
      type yang:counter32;
      description
        "The number of NSSA translator-state changes.
         Discontinuities in the value of this counter can occur
         when the OSPF area is reinitialized.";
    }
    leaf area-scope-lsa-count {
      type yang:gauge32;
      description
        "The number of area-scope LSAs in the area.";
    }
    leaf area-scope-lsa-cksum-sum {
      type uint32;
      description
        "The modulo 2^32 sum of the LSA checksums
         for area-scope LSAs.  The value should be treated as
         unsigned when comparing two sums of checksums.  While
         differing checksums indicate a different combination
         of LSAs, equivalent checksums don't guarantee that the
         LSAs are the same, given that multiple combinations of
         LSAs can result in the same checksum.";
    }
    container database {
      description
        "Container for area-scope LSA type statistics.";
      list area-scope-lsa-type {
        description
          "List of area-scope LSA statistics.";
        leaf lsa-type {
          type uint16;
          description
            "Area-scope LSA type.";
        }
        leaf lsa-count {
          type yang:gauge32;
          description
            "The number of LSAs of this LSA type.";
        }
        leaf lsa-cksum-sum {
          type uint32;
          description
            "The modulo 2^32 sum of the LSA checksums
             for LSAs of this type.  The value should be
             treated as unsigned when comparing two sums of
             checksums.  While differing checksums indicate a
             different combination of LSAs, equivalent checksums
             don't guarantee that the LSAs are the same, given that
             multiple combinations of LSAs can result in the same
             checksum.";
        }
      }
    }
  }

  grouping interface-stat {
    description
      "Per-interface statistics.";
    leaf discontinuity-time {
      type yang:date-and-time;
      description
        "The time of the most recent occasion at which any one or
         more of this OSPF interface's counters suffered a
         discontinuity.  If no such discontinuities have occurred
         since the OSPF interface was last reinitialized, then
         this node contains the time the OSPF interface was
         reinitialized, which normally occurs when it was
         created.";
    }
    leaf if-event-count {
      type yang:counter32;
      description
        "The number of times this interface has changed its
         state or an error has occurred.  Discontinuities in the
         value of this counter can occur when the OSPF interface
         is reinitialized.";
    }
    leaf link-scope-lsa-count {
      type yang:gauge32;
      description
        "The number of link-scope LSAs.";
    }
    leaf link-scope-lsa-cksum-sum {
      type uint32;
      description
        "The modulo 2^32 sum of the LSA checksums
         for link-scope LSAs.  The value should be treated as
         unsigned when comparing two sums of checksums.  While
         differing checksums indicate a different combination
         of LSAs, equivalent checksums don't guarantee that the
         LSAs are the same, given that multiple combinations of
         LSAs can result in the same checksum.";
    }
    container database {
      description
        "Container for link-scope LSA type statistics.";
      list link-scope-lsa-type {
        description
          "List of link-scope LSA statistics.";
        leaf lsa-type {
          type uint16;
          description
            "Link-scope LSA type.";
        }
        leaf lsa-count {
          type yang:gauge32;
          description
            "The number of LSAs of this LSA type.";
        }
        leaf lsa-cksum-sum {
          type uint32;
          description
            "The modulo 2^32 sum of the LSA checksums
             for LSAs of this type.  The value should be
             treated as unsigned when comparing two sums of
             checksums.  While differing checksums indicate a
             different combination of LSAs, equivalent checksums
             don't guarantee that the LSAs are the same, given that
             multiple combinations of LSAs can result in the same
             checksum.";
        }
      }
    }
  }

  grouping neighbor-stat {
    description
      "Per-neighbor statistics.";
    leaf discontinuity-time {
      type yang:date-and-time;
      description
        "The time of the most recent occasion at which any one or
         more of this OSPF neighbor's counters suffered a
         discontinuity.  If no such discontinuities have occurred
         since the OSPF neighbor was last reinitialized, then
         this node contains the time the OSPF neighbor was
         reinitialized, which normally occurs when the neighbor
         is dynamically discovered and created.";
    }
    leaf nbr-event-count {
      type yang:counter32;
      description
        "The number of times this neighbor has changed
         state or an error has occurred.  Discontinuities in the
         value of this counter can occur when the OSPF neighbor
         is reinitialized.";
    }
    leaf nbr-retrans-qlen {
      type yang:gauge32;
      description
        "The current length of the retransmission queue.";
    }
  }

  grouping instance-fast-reroute-config {
    description
      "This group defines the global configuration of
       IP Fast Reroute (IP-FRR).";
    container fast-reroute {
      if-feature "fast-reroute";
      description
        "This container may be augmented with global
         parameters for IP-FRR.";
      container lfa {
        if-feature "lfa";
        description
          "This container may be augmented with
           global parameters for Loop-Free Alternates (LFAs).
           Container creation has no effect on LFA activation.";
      }
    }
  }

  grouping instance-fast-reroute-state {
    description
      "IP-FRR state data grouping.";

    container protected-routes {
      if-feature "fast-reroute";
      config false;
      description
        "Instance protection statistics.";

      list address-family-stats {
        key "address-family prefix alternate";
        description
          "Per-Address-Family (AF) protected prefix information.";

        leaf address-family {
          type iana-rt-types:address-family;
          description
            "Address family.";
        }
        leaf prefix {
          type inet:ip-prefix;
          description
            "Protected prefix.";
        }
        leaf alternate {
          type inet:ip-address;
          description
            "Alternate next hop for the prefix.";
        }
        leaf alternate-type {
          type enumeration {
            enum equal-cost {
              description
                "ECMP-based alternate.";
            }
            enum lfa {
              description
                "LFA-based alternate.";
            }
            enum remote-lfa {
              description
                "Remote-LFA-based alternate.";
            }
            enum tunnel {
              description
                "Tunnel-based alternate (like RSVP-TE or GRE).";
            }
            enum ti-lfa {
              description
                "An alternate based on Topology-Independent
                 Loop-Free Alternate (TI-LFA).";
            }
            enum mrt {
              description
                "An alternate based on Maximally Redundant Trees
                 (MRTs).";
            }
            enum other {
              description
                "Unknown alternate type.";
            }
          }
          description
            "Type of alternate.";
        }
        leaf best {
          type boolean;
          description
            "Indicates that this alternate is preferred.";
        }
        leaf non-best-reason {
          type string {
            length "1..255";
          }
          description
            "Information field used to describe why the alternate
             is not the best choice.";
        }
        leaf protection-available {
          type bits {
            bit node-protect {
              position 0;
              description
                "Node protection available.";
            }
            bit link-protect {
              position 1;
              description
                "Link protection available.";
            }
            bit srlg-protect {
              position 2;
              description
                "Shared Risk Link Group (SRLG) protection
                 available.";
            }
            bit downstream-protect {
              position 3;
              description
                "Downstream protection available.";
            }
            bit other {
              position 4;
              description
                "Other protection available.";
            }
          }
          description
            "Protection provided by the alternate.";
        }
        leaf alternate-metric-1 {
          type uint32;
          description
            "Metric from the Point of Local Repair (PLR) to
             the destination through the alternate path.";
        }
        leaf alternate-metric-2 {
          type uint32;
          description
            "Metric from the PLR to the alternate node.";
        }
        leaf alternate-metric-3 {
          type uint32;
          description
            "Metric from the alternate node to the destination.";
        }
      }
    }

    container unprotected-routes {
      if-feature "fast-reroute";
      config false;
      description
        "List of prefixes that are not protected.";

      list address-family-stats {
        key "address-family prefix";
        description
          "Per-AF unprotected prefix statistics.";

        leaf address-family {
          type iana-rt-types:address-family;
          description
            "Address family.";
        }
        leaf prefix {
          type inet:ip-prefix;
          description
            "Unprotected prefix.";
        }
      }
    }

    list protection-statistics {
      key "frr-protection-method";
      config false;
      description
        "List of protection method statistics.";

      leaf frr-protection-method {
        type string;
        description
          "Protection method used.";
      }
      list address-family-stats {
        key "address-family";
        description
          "Per-AF protection statistics.";

        leaf address-family {
          type iana-rt-types:address-family;
          description
            "Address family.";
        }
        leaf total-routes {
          type uint32;
          description
            "Total prefixes.";
        }
        leaf unprotected-routes {
          type uint32;
          description
            "Total prefixes that are not protected.";
        }
        leaf protected-routes {
          type uint32;
          description
            "Total prefixes that are protected.";
        }
        leaf linkprotected-routes {
          type uint32;
          description
            "Total prefixes that are link protected.";
        }
        leaf nodeprotected-routes {
          type uint32;
          description
            "Total prefixes that are node protected.";
        }
      }
    }
  }

  grouping interface-fast-reroute-config {
    description
      "This group defines interface configuration of IP-FRR.";
    container fast-reroute {
      if-feature "fast-reroute";
      container lfa {
        if-feature "lfa";
        leaf candidate-enabled {
          type boolean;
          default "true";
          description
            "Enables the interface to be used as a backup.";
        }
        leaf enabled {
          type boolean;
          default "false";
          description
            "Activates an LFA.  Per-prefix LFA computation
             is assumed.";
        }
        container remote-lfa {
          if-feature "remote-lfa";
          leaf enabled {
            type boolean;
            default "false";
            description
              "Activates a Remote LFA (R-LFA).";
          }
          description
            "R-LFA configuration.";
        }
        description
          "LFA configuration.";
      }
      description
        "Interface IP-FRR configuration.";
    }
  }

  grouping interface-physical-link-config {
    description
      "Interface cost configuration that only applies to
       physical interfaces (non-virtual) and sham links.";
    leaf cost {
      type ospf-link-metric;
      description
        "Interface's cost.";
    }
    leaf mtu-ignore {
      if-feature "mtu-ignore";
      type boolean;
      description
        "Enables/disables bypassing the MTU mismatch check in
         Database Description packets as specified in Section 10.6
         of RFC 2328.";
      reference
        "RFC 2328: OSPF Version 2, Section 10.6";
    }
    leaf prefix-suppression {
      if-feature "prefix-suppression";
      type boolean;
      description
        "Suppresses advertisement of the prefixes associated
         with the interface.";
    }
  }

  grouping interface-common-config {
    description
      "Common configuration for all types of interfaces,
       including virtual links and sham links.";

    leaf hello-interval {
      type uint16;
      units "seconds";
      description
        "Interval between Hello packets (seconds).  It must
         be the same for all routers on the same network.
         Different networks, implementations, and deployments
         will use different Hello intervals.  A sample value
         for a LAN network would be 10 seconds.";
      reference
        "RFC 2328: OSPF Version 2, Appendix C.3";
    }

    leaf dead-interval {
      type uint16;
      units "seconds";
      must '../dead-interval &gt; ../hello-interval' {
        error-message "The dead interval must be "
                    + "larger than the Hello interval";
        description
          "The value must be greater than 'hello-interval'.";
      }
      description
        "Interval after which a neighbor is declared down
         (seconds) if Hello packets are not received.  It is
         typically 3 or 4 times the 'hello-interval' period.
         A typical value for LAN networks is 40 seconds.";
      reference
        "RFC 2328: OSPF Version 2, Appendix C.3";
    }

    leaf retransmit-interval {
      type uint16 {
        range "1..3600";
      }
      units "seconds";
      description
        "Interval between retransmitting unacknowledged Link
         State Advertisements (LSAs) (seconds).  This should
         be well over the round-trip transmit delay for
         any two routers on the network.  A sample value
         would be 5 seconds.";
      reference
        "RFC 2328: OSPF Version 2, Appendix C.3";
    }

    leaf transmit-delay {
      type uint16;
      units "seconds";
      description
        "Estimated time needed to transmit Link State Update
         (LSU) packets on the interface (seconds).  LSAs have
         their age incremented by this amount when advertised
         on the interface.  A sample value would be 1 second.";
      reference
        "RFC 2328: OSPF Version 2, Appendix C.3";
    }

    leaf lls {
      if-feature "lls";
      type boolean;
      description
        "Enables/disables link-local signaling (LLS) support.";
    }

    container ttl-security {
      if-feature "ttl-security";
      description
        "Time to Live (TTL) security checking.";
      leaf enabled {
        type boolean;
        description
          "Enables/disables TTL security checking.";
      }
      leaf hops {
        type uint8 {
          range "1..254";
        }
        default "1";
        description
          "Maximum number of hops that an OSPF packet may
           have traversed before reception.";
      }
    }
    leaf enabled {
      type boolean;
      default "true";
      description
        "Enables/disables the OSPF protocol on the interface.";
    }

    container authentication {
      description
        "Authentication configuration.";
      choice auth-type-selection {
        description
          "Options for OSPFv2/OSPFv3 authentication
           configuration.";
        case ospfv2-auth {
          when "derived-from-or-self(../../../../../../rt:type, "
             + "'ospfv2')" {
            description
              "Applied to OSPFv2 only.";
          }
          leaf ospfv2-auth-trailer-rfc {
            if-feature "ospfv2-authentication-trailer";
            type ospfv2-auth-trailer-rfc-version;
            description
              "Version of OSPFv2 authentication trailer support.
               See RFCs 5709 and 7474.";
            reference
              "RFC 5709: OSPFv2 HMAC-SHA Cryptographic Authentication
               RFC 7474: Security Extension for OSPFv2 When Using
               Manual Key Management";
          }
          choice ospfv2-auth-specification {
            description
              "Key chain or explicit key parameter specification.";
            case auth-key-chain {
              if-feature "key-chain";
              leaf ospfv2-key-chain {
                type key-chain:key-chain-ref;
                description
                  "Name of the key chain.";
              }
            }
            case auth-key-explicit {
              leaf ospfv2-key-id {
                type uint32;
                description
                  "Key identifier.";
              }
              leaf ospfv2-key {
                type string;
                description
                  "OSPFv2 authentication key.  The
                   length of the key may be dependent on the
                   cryptographic algorithm.";
              }
              leaf ospfv2-crypto-algorithm {
                type identityref {
                  base key-chain:crypto-algorithm;
                }
                description
                  "Cryptographic algorithm associated with the key.";
              }
            }
          }
        }
        case ospfv3-auth-ipsec {
          when "derived-from-or-self(../../../../../../rt:type, "
             + "'ospfv3')" {
            description
              "Applied to OSPFv3 only.";
          }
          if-feature "ospfv3-authentication-ipsec";
          leaf sa {
            type string;
            description
              "Name of the Security Association (SA).";
          }
        }
        case ospfv3-auth-trailer {
          when "derived-from-or-self(../../../../../../rt:type, "
             + "'ospfv3')" {
            description
              "Applied to OSPFv3 only.";
          }
          if-feature "ospfv3-authentication-trailer";
          choice ospfv3-auth-specification {
            description
              "Key chain or explicit key parameter specification.";
            case auth-key-chain {
              if-feature "key-chain";
              leaf ospfv3-key-chain {
                type key-chain:key-chain-ref;
                description
                  "Name of the key chain.";
              }
            }
            case auth-key-explicit {
              leaf ospfv3-sa-id {
                type uint16;
                description
                  "Security Association (SA) Identifier.";
              }
              leaf ospfv3-key {
                type string;
                description
                  "OSPFv3 authentication key.  The
                   length of the key may be dependent on the
                   cryptographic algorithm.";
              }
              leaf ospfv3-crypto-algorithm {
                type identityref {
                  base key-chain:crypto-algorithm;
                }
                description
                  "Cryptographic algorithm associated with the key.";
              }
            }
          }
        }
      }
    }
  }

  grouping interface-config {
    description
      "Configuration for normal OSPF interfaces (not virtual
       or sham interfaces).";

    leaf interface-type {
      type enumeration {
        enum broadcast {
          description
            "Specifies an OSPF broadcast multi-access network.";
        }
        enum non-broadcast {
          description
            "Specifies an OSPF Non-Broadcast Multi-Access
             (NBMA) network.";
        }
        enum point-to-multipoint {
          description
            "Specifies an OSPF point-to-multipoint network.";
        }
        enum point-to-point {
          description
            "Specifies an OSPF point-to-point network.";
        }
        enum hybrid {
          if-feature "hybrid-interface";
          description
            "Specifies an OSPF hybrid broadcast /
             point-to-multipoint network.";
        }
      }
      description
        "Interface type.";
    }

    leaf passive {
      type boolean;
      description
        "Enables/disables a passive interface.  A passive
         interface's prefix will be advertised, but no neighbor
         adjacencies will be formed on the interface.";
    }

    leaf demand-circuit {
      if-feature "demand-circuit";
      type boolean;
      description
        "Enables/disables a demand circuit.";
    }

    leaf priority {
      type uint8;
      description
        "Configures OSPF router priority.  In a multi-access
         network, this value is for Designated Router (DR) election.
         The priority is ignored on other interface types.  A router
         with a higher priority will be preferred in the election.
         A value of 0 indicates that the router is not eligible to
         become the DR or Backup DR (BDR).";
    }

    container multi-areas {
      if-feature "multi-area-adj";
      description
        "Container for multi-area configuration.";
      list multi-area {
        key "multi-area-id";
        description
          "Configures an OSPF multi-area adjacency.";
        leaf multi-area-id {
          type area-id-type;
          description
            "Multi-area adjacency area ID.";
        }
        leaf cost {
          type ospf-link-metric;
          description
            "Interface cost for a multi-area adjacency.";
        }
      }
    }

    container static-neighbors {
      description
        "Statically configured neighbors.";

      list neighbor {
        key "identifier";
        description
          "Specifies a static OSPF neighbor.";

        leaf identifier {
          type inet:ip-address;
          description
            "Neighbor's Router ID, IPv4 address, or IPv6 address.";
        }

        leaf cost {
          type ospf-link-metric;
          description
            "Interface cost.  Different implementations have
             different default costs, with some defaulting to a
             cost inversely proportional to the interface speed.
             Others will default to 1, equating the cost to a
             hop count.";
        }
        leaf poll-interval {
          type uint16;
          units "seconds";
          description
            "Neighbor's poll interval (seconds) for sending OSPF
             Hello packets to discover the neighbor on NBMA
             networks.  This interval dictates the granularity for
             discovery of new neighbors.  A sample would be
             120 seconds (2 minutes) for a legacy Packet Data
             Network (PDN) X.25 network.";
          reference
            "RFC 2328: OSPF Version 2, Appendix C.5";
        }
        leaf priority {
          type uint8;
          description
            "Neighbor's priority for DR election.  A router with a
             higher priority will be preferred in the election.
             A value of 0 indicates that the router is not
             eligible to become the DR or BDR.";
        }
      }
    }

    leaf node-flag {
      if-feature "node-flag";
      type boolean;
      default "false";
      description
        "Sets the prefix as identifying the advertising router.";
      reference
        "RFC 7684: OSPFv2 Prefix/Link Attribute Advertisement";
    }

    container bfd {
      if-feature "bfd";
      description
        "BFD interface configuration.";
      uses bfd-types:client-cfg-parms;
      reference
        "RFC 5880: Bidirectional Forwarding Detection (BFD)
         RFC 5881: Bidirectional Forwarding Detection
         (BFD) for IPv4 and IPv6 (Single Hop)
         RFC 9314: YANG Data Model for Bidirectional Forwarding
         Detection (BFD)";
    }

    uses interface-fast-reroute-config;
    uses interface-common-config;
    uses interface-physical-link-config;
  }

  grouping neighbor-state {
    description
      "OSPF neighbor operational state.";

    leaf address {
      type inet:ip-address;
      config false;
      description
        "Neighbor's address.";
    }
    leaf dr-router-id {
      type rt-types:router-id;
      config false;
      description
        "Neighbor's DR Router ID.";
    }

    leaf dr-ip-addr {
      type inet:ip-address;
      config false;
      description
        "Neighbor's DR IP address.";
    }

    leaf bdr-router-id {
      type rt-types:router-id;
      config false;
      description
        "Neighbor's BDR Router ID.";
    }

    leaf bdr-ip-addr {
      type inet:ip-address;
      config false;
      description
        "Neighbor's BDR IP address.";
    }
    leaf state {
      type nbr-state-type;
      config false;
      description
        "OSPF neighbor state.";
    }
    leaf cost {
      type ospf-link-metric;
      config false;
      description
        "Cost to reach the neighbor for point-to-multipoint
         and Hybrid networks.";
    }
    leaf dead-timer {
      type rt-types:timer-value-seconds16;
      config false;
      description
        "This timer tracks the remaining time before
         the neighbor is declared dead.";
    }
    container statistics {
      config false;
      description
        "Per-neighbor statistics.";
      uses neighbor-stat;
    }
  }

  grouping interface-common-state {
    description
      "OSPF interface common operational state.";
    reference
      "RFC 2328: OSPF Version 2, Section 9";

    leaf state {
      type if-state-type;
      config false;
      description
        "Interface state.";
    }

    leaf hello-timer {
      type rt-types:timer-value-seconds16;
      config false;
      description
        "This timer tracks the remaining time before the
         next Hello packet is sent on the interface.";
    }

    leaf wait-timer {
      type rt-types:timer-value-seconds16;
      config false;
      description
        "This timer tracks the remaining time before
         the interface exits the 'Waiting' state.";
    }

    leaf dr-router-id {
      type rt-types:router-id;
      config false;
      description
        "DR Router ID.";
    }

    leaf dr-ip-addr {
      type inet:ip-address;
      config false;
      description
        "DR IP address.";
    }

    leaf bdr-router-id {
      type rt-types:router-id;
      config false;
      description
        "BDR Router ID.";
    }

    leaf bdr-ip-addr {
      type inet:ip-address;
      config false;
      description
        "BDR IP address.";
    }

    container statistics {
      config false;
      description
        "Per-interface statistics.";
      uses interface-stat;
    }

    container neighbors {
      config false;
      description
        "All neighbors for the interface.";
      list neighbor {
        key "neighbor-router-id";
        description
          "List of interface OSPF neighbors.";
        leaf neighbor-router-id {
          type rt-types:router-id;
          description
            "Neighbor's Router ID.";
        }
        uses neighbor-state;
      }
    }
    container database {
      config false;
      description
        "Link-scope LSDB.";
      list link-scope-lsa-type {
        key "lsa-type";
        description
          "List of OSPF link-scope LSAs.";
        leaf lsa-type {
          type uint16;
          description
            "OSPF link-scope LSA type.";
        }
        container link-scope-lsas {
          description
            "All link-scope LSAs of this LSA type.";
          list link-scope-lsa {
            key "lsa-id adv-router";
            description
              "List of OSPF link-scope LSAs.";
            uses lsa-key;
            uses lsa {
              refine "version/ospfv2/ospfv2" {
                must "derived-from-or-self( "
                   + "../../../../../../../../../../"
                   + "rt:type, 'ospfv2')" {
                  description
                    "OSPFv2 LSA.";
                }
              }
              refine "version/ospfv3/ospfv3" {
                must "derived-from-or-self( "
                   + "../../../../../../../../../../"
                   + "rt:type, 'ospfv3')" {
                  description
                    "OSPFv3 LSA.";
                }
              }
            }
          }
        }
      }
    }
  }

  grouping interface-state {
    description
      "OSPF interface operational state.";
    reference
      "RFC 2328: OSPF Version 2, Section 9";

    uses interface-common-state;
  }

  grouping virtual-link-config {
    description
      "OSPF virtual link configuration state.";

    uses interface-common-config;
  }

  grouping virtual-link-state {
    description
      "OSPF virtual link operational state.";

    leaf cost {
      type ospf-link-metric;
      config false;
      description
        "Virtual link interface's cost.";
    }
    uses interface-common-state;
  }

  grouping sham-link-config {
    description
      "OSPF sham link configuration state.";

    uses interface-common-config;
    uses interface-physical-link-config;
  }

  grouping sham-link-state {
    description
      "OSPF sham link operational state.";
    uses interface-common-state;
  }

  grouping address-family-area-config {
    description
      "OSPF address-family-specific area configuration state.";

    container ranges {
      description
        "Container for summary ranges.";

      list range {
        key "prefix";
        description
          "Summarizes routes matching the address/mask.
           Applicable to Area Border Routers (ABRs) only.";
        leaf prefix {
          type inet:ip-prefix;
          description
            "IPv4 or IPv6 prefix.";
        }
        leaf advertise {
          type boolean;
          description
            "Advertise or hide.";
        }
        leaf cost {
          type ospf-metric;
          description
            "Advertised cost of a summary route.";
        }
      }
    }
  }

  grouping area-common-config {
    description
      "OSPF area common configuration state.";

    leaf summary {
      when "derived-from(../area-type,'stub-nssa-area')" {
        description
          "Summary advertisement into the stub area or NSSA.";
      }
      type boolean;
      description
        "Enables/disables summary advertisement into the stub
         area or NSSA.";
    }
    leaf default-cost {
      when "derived-from(../area-type,'stub-nssa-area')" {
        description
          "Cost for the LSA default route advertised into the
           stub area or NSSA.";
      }
      type ospf-metric;
      description
        "Sets the summary default route cost for a stub area
         or NSSA.";
    }
  }

  grouping area-config {
    description
      "OSPF area configuration state.";

    leaf area-type {
      type identityref {
        base area-type;
      }
      default "normal-area";
      description
        "Area type.";
    }

    uses area-common-config;
    uses address-family-area-config;
  }

  grouping area-state {
    description
      "OSPF area operational state.";

    container statistics {
      config false;
      description
        "Per-area statistics.";
      uses area-stat;
    }

    container database {
      config false;
      description
        "Area-scope LSDB.";
      list area-scope-lsa-type {
        key "lsa-type";
        description
          "List of OSPF area-scope LSAs.";
        leaf lsa-type {
          type uint16;
          description
            "OSPF area-scope LSA type.";
        }
        container area-scope-lsas {
          description
            "All area-scope LSAs.";
          list area-scope-lsa {
            key "lsa-id adv-router";
            description
              "List of OSPF area-scope LSAs.";
            uses lsa-key;
            uses lsa {
              refine "version/ospfv2/ospfv2" {
                must "derived-from-or-self( "
                   + "../../../../../../../../"
                   + "rt:type, 'ospfv2')" {
                  description
                    "OSPFv2 LSA.";
                }
              }
              refine "version/ospfv3/ospfv3" {
                must "derived-from-or-self( "
                   + "../../../../../../../../"
                   + "rt:type, 'ospfv3')" {
                  description
                    "OSPFv3 LSA.";
                }
              }
            }
          }
        }
      }
    }
  }

  grouping local-rib {
    description
      "Local RIB.  RIB for routes computed by the local
       OSPF routing instance.";
    container local-rib {
      config false;
      description
        "Local RIB.";
      list route {
        key "prefix";
        description
          "OSPF instance's Local Routes.";
        leaf prefix {
          type inet:ip-prefix;
          description
            "Destination prefix.";
        }
        container next-hops {
          description
            "Next hops for the route.";
          list next-hop {
            description
              "List of next hops for the route.";
            leaf outgoing-interface {
              type if:interface-ref;
              description
                "Name of the outgoing interface.";
            }
            leaf next-hop {
              type inet:ip-address;
              description
                "Address of the next hop.";
            }
          }
        }
        leaf metric {
          type uint32;
          description
            "Metric for this route.";
        }
        leaf route-type {
          type route-type;
          description
            "Route type for this route.";
        }
        leaf route-tag {
          type uint32;
          description
            "Route tag for this route.";
        }
      }
    }
  }

  grouping ietf-spf-delay {
    leaf initial-delay {
      type uint32;
      units "milliseconds";
      default "50";
      description
        "Delay used while in the 'QUIET' state (milliseconds).";
    }
    leaf short-delay {
      type uint32;
      units "milliseconds";
      default "200";
      description
        "Delay used while in the 'SHORT_WAIT' state (milliseconds).";
    }
    leaf long-delay {
      type uint32;
      units "milliseconds";
      default "5000";
      description
        "Delay used while in the 'LONG_WAIT' state (milliseconds).";
    }
    leaf hold-down {
      type uint32;
      units "milliseconds";
      default "10000";
      description
        "This timer value defines the period without any changes
         for the IGP to be considered stable (milliseconds).";
    }
    leaf time-to-learn {
      type uint32;
      units "milliseconds";
      default "500";
      description
        "Duration used to learn all the IGP events
         related to a single network event (milliseconds).";
    }
    leaf current-state {
      type enumeration {
        enum quiet {
          description
            "'QUIET' state.";
        }
        enum short-wait {
          description
            "'SHORT_WAIT' state.";
        }
        enum long-wait {
          description
            "'LONG_WAIT' state.";
        }
      }
      config false;
      description
        "Current SPF back-off algorithm state.";
    }
    leaf remaining-time-to-learn {
      type rt-types:timer-value-milliseconds;
      config false;
      description
        "Remaining time until the time-to-learn timer fires.";
    }
    leaf remaining-hold-down {
      type rt-types:timer-value-milliseconds;
      config false;
      description
        "Remaining time until the hold-down timer fires.";
    }
    leaf last-event-received {
      type yang:timestamp;
      config false;
      description
        "Time of the last SPF triggering event.";
    }
    leaf next-spf-time {
      type yang:timestamp;
      config false;
      description
        "Time when the next SPF has been scheduled.";
    }
    leaf last-spf-time {
      type yang:timestamp;
      config false;
      description
        "Time of the last SPF computation.";
    }
    description
      "Grouping for IETF SPF delay configuration and state.";
    reference
      "RFC 8405: Shortest Path First (SPF) Back-Off Delay Algorithm
       for Link-State IGPs";
  }

  grouping node-tag-config {
    description
      "OSPF node tag configuration state.";
    container node-tags {
      if-feature "node-tag";
      list node-tag {
        key "tag";
        leaf tag {
          type uint32;
          description
            "Node tag value.";
        }
        description
          "List of node tags.";
      }
      description
        "Container for node administrative tags.";
    }
  }

  grouping instance-config {
    description
      "OSPF instance configuration state.";

    leaf enabled {
      type boolean;
      default "true";
      description
        "Enables/disables the protocol.";
    }

    leaf explicit-router-id {
      if-feature "explicit-router-id";
      type rt-types:router-id;
      description
        "Defined in RFC 2328.  A 32-bit number
         that uniquely identifies the router.";
      reference
        "RFC 2328: OSPF Version 2";
    }

    container preference {
      description
        "Route preference configuration.  In many
         implementations, preference is referred to as
         administrative distance.";
      reference
        "RFC 8349: A YANG Data Model for Routing Management
         (NMDA Version)";
      choice scope {
        description
          "Options for expressing preference
           as single or multiple values.";
        case single-value {
          leaf all {
            type uint8;
            description
              "Preference for intra-area, inter-area, and
               external routes.";
          }
        }
        case multi-values {
          choice granularity {
            description
              "Options for expressing preference
               for intra-area and inter-area routes.";
            case detail {
              leaf intra-area {
                type uint8;
                description
                  "Preference for intra-area routes.";
              }
              leaf inter-area {
                type uint8;
                description
                  "Preference for inter-area routes.";
              }
            }
            case coarse {
              leaf internal {
                type uint8;
                description
                  "Preference for both intra-area and
                   inter-area routes.";
              }
            }
          }
          leaf external {
            type uint8;
            description
              "Preference for AS external and NSSA routes.";
          }
        }
      }
    }

    container nsr {
      if-feature "nsr";
      description
        "Non-Stop Routing (NSR) configuration state.";
      leaf enabled {
        type boolean;
        description
          "Enables/disables NSR.";
      }
    }

    container graceful-restart {
      if-feature "graceful-restart";
      description
        "Graceful restart configuration state.";
      reference
        "RFC 3623: Graceful OSPF Restart
         RFC 5187: OSPFv3 Graceful Restart";
      leaf enabled {
        type boolean;
        description
          "Enables/disables graceful restart as defined in RFC 3623
           for OSPFv2 and RFC 5187 for OSPFv3.";
      }
      leaf helper-enabled {
        type boolean;
        description
          "Enables graceful restart helper support for restarting
           routers (Section 3 of RFC 3623).";
        reference
          "RFC 3623: Graceful OSPF Restart, Section 3";
      }
      leaf restart-interval {
        type uint16 {
          range "1..1800";
        }
        units "seconds";
        default "120";
        description
          "Interval during which to attempt graceful restart prior
           to failing (seconds) (Appendix B.1 of RFC 3623).";
        reference
          "RFC 3623: Graceful OSPF Restart, Appendix B.1";
      }
      leaf helper-strict-lsa-checking {
        type boolean;
        description
          "Terminates graceful restart when an LSA topology change
           is detected (Appendix B.2 of RFC 3623).";
        reference
          "RFC 3623: Graceful OSPF Restart, Appendix B.2";
      }
    }

    container auto-cost {
      if-feature "auto-cost";
      description
        "Interface auto-cost configuration state.";
      leaf enabled {
        type boolean;
        description
          "Enables/disables interface auto-cost.";
      }
      leaf reference-bandwidth {
        when "../enabled = 'true'" {
          description
            "Only when auto-cost is enabled.";
        }
        type uint32 {
          range "1..4294967";
        }
        units "Mbits";
        description
          "Configures reference bandwidth used to automatically
           determine interface cost (Mbits).  The cost is the
           reference bandwidth divided by the interface speed,
           with 1 being the minimum cost.";
      }
    }

    container spf-control {
      leaf paths {
        if-feature "max-ecmp";
        type uint16 {
          range "1..65535";
        }
        description
          "Maximum number of Equal-Cost Multi-Path (ECMP) paths.";
      }
      container ietf-spf-delay {
        if-feature "ietf-spf-delay";
        uses ietf-spf-delay;
        description
          "IETF SPF delay algorithm configuration.";
      }
      description
        "SPF calculation control.";
    }

    container database-control {
      leaf max-lsa {
        if-feature "max-lsa";
        type uint32 {
          range "1..4294967294";
        }
        description
          "Maximum number of OSPF LSAs the router will accept.";
      }
      description
        "Database maintenance control.";
    }

    container stub-router {
      if-feature "stub-router";
      description
        "Sets the maximum metric configuration.";

      choice trigger {
        description
          "Specific triggers that will enable stub router state.";
        container always {
          presence "Enables unconditional stub router support";
          description
            "Unconditional stub router state (advertises
             transit links with 'MaxLinkMetric').";
          reference
            "RFC 6987: OSPF Stub Router Advertisement";
        }
      }
    }

    container mpls {
      description
        "OSPF MPLS configuration state.";
      container te-rid {
        if-feature "te-rid";
        description
          "Stable OSPF Router IP address used for TE.";
        leaf ipv4-router-id {
          type inet:ipv4-address;
          description
            "Explicitly configures a TE IPv4 Router ID.";
        }
        leaf ipv6-router-id {
          type inet:ipv6-address;
          description
            "Explicitly configures a TE IPv6 Router ID.";
        }
      }
      container ldp {
        description
          "OSPF MPLS LDP configuration state.";
        leaf igp-sync {
          if-feature "ldp-igp-sync";
          type boolean;
          description
            "Enables LDP IGP synchronization.";
        }
      }
    }
    uses instance-fast-reroute-config;
    uses node-tag-config;
  }

  grouping instance-state {
    description
      "OSPF instance operational state.";

    leaf router-id {
      type rt-types:router-id;
      config false;
      description
        "Defined in RFC 2328.  A 32-bit number
         that uniquely identifies the router.";
      reference
        "RFC 2328: OSPF Version 2";
    }

    uses local-rib;

    container statistics {
      config false;
      description
        "Per-instance statistics.";
      uses instance-stat;
    }

    container database {
      config false;
      description
        "AS-Scope LSDB.";
      list as-scope-lsa-type {
        key "lsa-type";
        description
          "List of OSPF AS-Scope LSAs.";
        leaf lsa-type {
          type uint16;
          description
            "OSPF AS-Scope LSA type.";
        }
        container as-scope-lsas {
          description
            "All AS-Scope LSAs of this LSA type.";
          list as-scope-lsa {
            key "lsa-id adv-router";
            description
              "List of OSPF AS-Scope LSAs.";
            uses lsa-key;
            uses lsa {
              refine "version/ospfv2/ospfv2" {
                must "derived-from-or-self( "
                   + "../../../../../../"
                   + "rt:type, 'ospfv2')" {
                  description
                    "OSPFv2 LSA.";
                }
              }
              refine "version/ospfv3/ospfv3" {
                must "derived-from-or-self( "
                   + "../../../../../../"
                   + "rt:type, 'ospfv3')" {
                  description
                    "OSPFv3 LSA.";
                }
              }
            }
          }
        }
      }
    }
    uses spf-log;
    uses lsa-log;
  }

  grouping multi-topology-area-common-config {
    description
      "OSPF multi-topology area common configuration state.";
    leaf summary {
      when "derived-from(../../../area-type, 'stub-nssa-area')" {
        description
          "Summary advertisement into the stub area or NSSA.";
      }
      type boolean;
      description
        "Enables/disables a summary advertisement into the
         topology in the stub area or NSSA.";
    }
    leaf default-cost {
      when "derived-from(../../../area-type, 'stub-nssa-area')" {
        description
          "Cost for the LSA default route advertised into the
           topology in the stub area or NSSA.";
      }
      type ospf-metric;
      description
        "Sets the summary default route cost for a
         stub area or NSSA.";
    }
  }

  grouping multi-topology-area-config {
    description
      "OSPF multi-topology area configuration state.";

    uses multi-topology-area-common-config;
    uses address-family-area-config;
  }

  grouping multi-topology-state {
    description
      "OSPF multi-topology operational state.";

    uses local-rib;
  }

  grouping multi-topology-interface-config {
    description
      "OSPF multi-topology configuration state.";

    leaf cost {
      type ospf-link-metric;
      description
        "Interface cost for this topology.";
    }
  }

  grouping ospfv3-interface-config {
    description
      "OSPFv3 interface-specific configuration state.";

    leaf instance-id {
      type uint8;
      default "0";
      description
        "OSPFv3 instance ID.";
    }
  }

  grouping ospfv3-interface-state {
    description
      "OSPFv3 interface-specific operational state.";

    leaf interface-id {
      type uint32;
      config false;
      description
        "OSPFv3 interface ID.";
    }
  }

  grouping lsa-identifiers {
    description
      "The parameters that uniquely identify an LSA.";
    leaf area-id {
      type area-id-type;
      description
        "Area ID.";
    }
    leaf type {
      type uint16;
      description
        "LSA type.";
    }
    leaf lsa-id {
      type union {
        type inet:ipv4-address;
        type yang:dotted-quad;
      }
      description
        "Link State ID.";
    }
    leaf adv-router {
      type rt-types:router-id;
      description
        "LSA advertising router.";
    }
    leaf seq-num {
      type uint32;
      description
        "LSA sequence number.";
    }
  }

  grouping spf-log {
    description
      "Grouping for the SPF log.";
    container spf-log {
      config false;
      description
        "This container lists the SPF log entries.";
      list event {
        key "id";
        description
          "List of SPF log entries represented
           as a wrapping buffer in chronological
           order, with the oldest entry returned
           first.";
        leaf id {
          type uint32;
          description
            "Event identifier.  A purely internal value.";
        }
        leaf spf-type {
          type enumeration {
            enum full {
              description
                "The SPF computation was for a full SPF.";
            }
            enum intra {
              description
                "The SPF computation was only for intra-area
                 routes.";
            }
            enum inter {
              description
                "The SPF computation was only for inter-area
                 summary routes.";
            }
            enum external {
              description
                "The SPF computation was only for AS external
                 and NSSA routes.";
            }
          }
          description
            "The SPF computation type for the SPF log entry.";
        }
        leaf schedule-timestamp {
          type yang:timestamp;
          description
            "This is the timestamp when the computation was
             scheduled.";
        }
        leaf start-timestamp {
          type yang:timestamp;
          description
            "This is the timestamp when the computation was
             started.";
        }
        leaf end-timestamp {
          type yang:timestamp;
          description
            "This is the timestamp when the computation was
             completed.";
        }
        list trigger-lsa {
          description
            "The list of LSAs that triggered the computation.";
          uses lsa-identifiers;
        }
      }
    }
  }

  grouping lsa-log {
    description
      "Grouping for the LSA log.";
    container lsa-log {
      config false;
      description
        "This container lists the LSA log entries.
         Local LSA modifications are also included
         in the list.";
      list event {
        key "id";
        description
          "List of LSA log entries represented
           as a wrapping buffer in chronological order,
           with the oldest entry returned first.";
        leaf id {
          type uint32;
          description
            "Event identifier.  A purely internal value.";
        }
        container lsa {
          description
            "This container describes the LSA that was logged.";
          uses lsa-identifiers;
        }
        leaf received-timestamp {
          type yang:timestamp;
          description
            "This is the timestamp when the LSA was received.
             In the case of a local LSA update, the timestamp
             refers to the LSA origination time.";
        }
        leaf reason {
          type identityref {
            base lsa-log-reason;
          }
          description
            "Reason for the LSA log entry.";
        }
      }
    }
  }

  augment "/rt:routing/rt:control-plane-protocols/"
        + "rt:control-plane-protocol" {
    when "derived-from(rt:type, 'ospf')" {
      description
        "This augmentation is only valid for a routing protocol
         instance of OSPF (type 'ospfv2' or 'ospfv3').";
    }
    description
      "OSPF protocol 'ietf-routing' module 'control-plane-protocol'
       augmentation.";

    container ospf {
      description
        "OSPF protocol instance.";

      leaf address-family {
        when "derived-from-or-self(../../rt:type, 'ospfv3')" {
          description
            "Only applicable to OSPFv3.";
        }
        type iana-rt-types:address-family;
        description
          "Address family of the instance.";
      }

      uses instance-config;
      uses instance-state;

      container areas {
        description
          "All OSPF areas.";
        list area {
          key "area-id";
          description
            "List of OSPF areas.";
          leaf area-id {
            type area-id-type;
            description
              "Area ID.";
          }

          uses area-config;
          uses area-state;

          container virtual-links {
            when "derived-from-or-self(../area-type, 'normal-area') "
               + "and ../area-id = '0.0.0.0'" {
              description
                "Virtual links must be in a backbone area.";
            }
            description
              "All virtual links.";
            list virtual-link {
              key "transit-area-id router-id";
              description
                "OSPF virtual link.";
              leaf transit-area-id {
                type leafref {
                  path "../../../../area/area-id";
                }
                must "derived-from-or-self("
                   + "../../../../area[area-id=current()]"
                   + "/area-type, 'normal-area') and "
                   + "../../../../area[area-id=current()]"
                   + "/area-id != '0.0.0.0'" {
                  error-message "The virtual link transit area must "
                              + "not be the backbone area.";
                  description
                    "The virtual link transit area must not be the
                     backbone area (0.0.0.0).";
                }
                description
                  "Virtual link transit area ID.";
              }
              leaf router-id {
                type rt-types:router-id;
                description
                  "Virtual link remote endpoint Router ID.";
              }

              uses virtual-link-config;
              uses virtual-link-state;
            }
          }
          container sham-links {
            if-feature "pe-ce-protocol";
            description
              "All sham links.";
            list sham-link {
              key "local-id remote-id";
              description
                "OSPF sham link.";
              leaf local-id {
                type inet:ip-address;
                description
                  "Address of the local sham link endpoint.";
              }
              leaf remote-id {
                type inet:ip-address;
                description
                  "Address of the remote sham link endpoint.";
              }
              uses sham-link-config;
              uses sham-link-state;
            }
          }
          container interfaces {
            description
              "All OSPF interfaces.";
            list interface {
              key "name";
              description
                "List of OSPF interfaces.";
              leaf name {
                type if:interface-ref;
                description
                  "Interface name reference.";
              }
              uses interface-config;
              uses interface-state;
            }
          }
        }
      }
    }
  }

  augment "/rt:routing/rt:control-plane-protocols/"
        + "rt:control-plane-protocol/ospf" {
    when "derived-from(../rt:type, 'ospf')" {
      description
        "This augmentation is only valid for OSPF
         (type 'ospfv2' or 'ospfv3').";
    }
    if-feature "multi-topology";
    description
      "OSPF multi-topology instance configuration
       state augmentation.";
    container topologies {
      description
        "All topologies.";
      list topology {
        key "name";
        description
          "OSPF topology.  The OSPF topology address family
           must coincide with the routing instance's
           address family.";
        leaf name {
          type leafref {
            path "../../../../../../rt:ribs/rt:rib/rt:name";
          }
          description
            "RIB name corresponding to the OSPF topology.";
        }

        uses multi-topology-state;
      }
    }
  }

  augment "/rt:routing/rt:control-plane-protocols/"
        + "rt:control-plane-protocol/ospf/"
        + "areas/area" {
    when "derived-from-or-self(../../../rt:type, "
       + "'ospfv2')" {
      description
        "This augmentation is only valid for OSPFv2.";
    }
    if-feature "multi-topology";
    description
      "OSPF multi-topology area configuration state
       augmentation.";
    container topologies {
      description
        "All topologies for the area.";
      list topology {
        key "name";
        description
          "OSPF area topology.";
        leaf name {
          type leafref {
            path "../../../../../../../../"
               + "rt:ribs/rt:rib/rt:name";
          }
          description
            "Single topology enabled for this area.";
        }

        uses multi-topology-area-config;
      }
    }
  }

  augment "/rt:routing/rt:control-plane-protocols/"
        + "rt:control-plane-protocol/ospf/"
        + "areas/area/interfaces/interface" {
    when "derived-from-or-self(../../../../../rt:type, "
       + "'ospfv2')" {
      description
        "This augmentation is only valid for OSPFv2.";
    }
    if-feature "multi-topology";
    description
      "OSPF multi-topology interface configuration state
       augmentation.";
    container topologies {
      description
        "All topologies for the interface.";
      list topology {
        key "name";
        description
          "OSPF interface topology.";
        leaf name {
          type leafref {
            path "../../../../../../../../../../"
               + "rt:ribs/rt:rib/rt:name";
          }
          description
            "Single topology enabled on this interface.";
        }

        uses multi-topology-interface-config;
      }
    }
  }

  augment "/rt:routing/rt:control-plane-protocols/"
        + "rt:control-plane-protocol/ospf/"
        + "areas/area/interfaces/interface" {
    when "derived-from-or-self(../../../../../rt:type, "
       + "'ospfv3')" {
      description
        "This augmentation is only valid for OSPFv3.";
    }
    description
      "OSPFv3 interface-specific configuration state
       augmentation.";
    uses ospfv3-interface-config;
    uses ospfv3-interface-state;
  }

  grouping route-content {
    description
      "This grouping defines OSPF-specific route attributes.";
    leaf metric {
      type uint32;
      description
        "OSPF route metric.";
    }
    leaf tag {
      type uint32;
      default "0";
      description
        "OSPF route tag.";
    }
    leaf route-type {
      type route-type;
      description
        "OSPF route type.";
    }
  }

  augment "/rt:routing/rt:ribs/rt:rib/rt:routes/rt:route" {
    when "derived-from(rt:source-protocol, 'ospf')" {
      description
        "This augmentation is only valid for routes whose
         source protocol is OSPF.";
    }
    description
      "OSPF-specific route attributes.";
    uses route-content;
  }

  /*
   * RPCs
   */

  rpc clear-neighbor {
    description
      "This RPC request clears a particular set of OSPF neighbors.
       If the operation fails for an OSPF-internal reason, then
       'error-tag' and 'error-app-tag' should be set to values
       indicating the error.";
    input {
      leaf routing-protocol-name {
        type leafref {
          path "/rt:routing/rt:control-plane-protocols/"
             + "rt:control-plane-protocol/rt:name";
        }
        mandatory true;
        description
          "OSPF protocol instance for which information for neighbors
           is to be cleared.

           If the referenced OSPF instance doesn't exist, then
           this operation SHALL fail with an 'error-tag' setting of
           'data-missing' and an 'error-app-tag' setting of
           'routing-protocol-instance-not-found'.";
      }

      leaf interface {
        type if:interface-ref;
        description
          "Name of the OSPF interface for which neighbors are to
           be cleared.

           If the referenced OSPF interface doesn't exist, then
           this operation SHALL fail with an 'error-tag' setting
           of 'data-missing' and an 'error-app-tag' setting of
           'ospf-interface-not-found'.";
      }
    }
  }

  rpc clear-database {
    description
      "This RPC request clears a particular OSPF Link State
       Database.  Additionally, all neighbor adjacencies will
       be forced to the DOWN state and self-originated LSAs
       will be reoriginated.  If the operation fails for an
       OSPF-internal reason, then 'error-tag' and 'error-app-tag'
       should be set to values indicating the error.";
    input {
      leaf routing-protocol-name {
        type leafref {
          path "/rt:routing/rt:control-plane-protocols/"
             + "rt:control-plane-protocol/rt:name";
        }
        mandatory true;
        description
          "OSPF protocol instance whose LSDB is to be cleared.

           If the referenced OSPF instance doesn't exist, then
           this operation SHALL fail with an 'error-tag' setting of
           'data-missing' and an 'error-app-tag' setting of
           'routing-protocol-instance-not-found'.";
      }
    }
  }

  /*
   * Notifications
   */

  grouping notification-instance-hdr {
    description
      "This grouping describes common instance-specific
       data for OSPF notifications.";

    leaf routing-protocol-name {
      type leafref {
        path "/rt:routing/rt:control-plane-protocols/"
           + "rt:control-plane-protocol/rt:name";
      }
      must "derived-from( "
         + "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol[rt:name=current()]/"
         + "rt:type, 'ospf')";
      description
        "Name of the OSPF routing protocol instance.";
    }

    leaf address-family {
      type leafref {
        path "/rt:routing/"
           + "rt:control-plane-protocols/rt:control-plane-protocol"
           + "[rt:name=current()/../routing-protocol-name]/"
           + "ospf/address-family";
      }
      description
        "Address family of the OSPF instance.";
    }
  }

  grouping notification-interface {
    description
      "This grouping provides interface information
       for OSPF interface-specific notifications.";

    choice if-link-type-selection {
      description
        "Options for link types.";
      container interface {
        description
          "Normal interface.";
        leaf interface {
          type if:interface-ref;
          description
            "Interface.";
        }
      }
      container virtual-link {
        description
          "Virtual link.";
        leaf transit-area-id {
          type area-id-type;
          description
            "Area ID.";
        }
        leaf neighbor-router-id {
          type rt-types:router-id;
          description
            "Neighbor's Router ID.";
        }
      }
      container sham-link {
        description
          "Sham link.";
        leaf area-id {
          type area-id-type;
          description
            "Area ID.";
        }
        leaf local-ip-addr {
          type inet:ip-address;
          description
            "Sham link's local address.";
        }
        leaf remote-ip-addr {
          type inet:ip-address;
          description
            "Sham link's remote address.";
        }
      }
    }
  }

  grouping notification-neighbor {
    description
      "This grouping provides the neighbor information
       for neighbor-specific notifications.";

    leaf neighbor-router-id {
      type rt-types:router-id;
      description
        "Neighbor's Router ID.";
    }

    leaf neighbor-ip-addr {
      type inet:ip-address;
      description
        "Neighbor's address.";
    }
  }

  notification if-state-change {
    uses notification-instance-hdr;
    uses notification-interface;

    leaf state {
      type if-state-type;
      description
        "Interface state.";
    }
    description
      "This notification is sent when an interface
       state change is detected.";
  }

  notification if-config-error {
    uses notification-instance-hdr;
    uses notification-interface;

    leaf packet-source {
      type inet:ip-address;
      description
        "Source address.";
    }

    leaf packet-type {
      type packet-type;
      description
        "OSPF packet type.";
    }

    leaf error {
      type enumeration {
        enum bad-version {
          description
            "Bad version.";
        }
        enum area-mismatch {
          description
            "Area mismatch.";
        }
        enum unknown-nbma-nbr {
          description
            "Unknown NBMA neighbor.";
        }
        enum unknown-virtual-nbr {
          description
            "Unknown virtual link neighbor.";
        }
        enum auth-type-mismatch {
          description
            "Authentication type mismatch.";
        }
        enum auth-failure {
          description
            "Authentication failure.";
        }
        enum net-mask-mismatch {
          description
            "Network mask mismatch.";
        }
        enum hello-interval-mismatch {
          description
            "Hello interval mismatch.";
        }
        enum dead-interval-mismatch {
          description
            "Dead interval mismatch.";
        }
        enum option-mismatch {
          description
            "Option mismatch.";
        }
        enum mtu-mismatch {
          description
            "MTU mismatch.";
        }
        enum duplicate-router-id {
          description
            "Duplicate Router ID.";
        }
        enum no-error {
          description
            "No error.";
        }
      }
      description
        "Error codes.";
    }
    description
      "This notification is sent when a packet is received indicating
       an interface configuration error on the sending OSPF router.";
  }

  notification nbr-state-change {
    uses notification-instance-hdr;
    uses notification-interface;
    uses notification-neighbor;

    leaf state {
      type nbr-state-type;
      description
        "Neighbor state.";
    }

    description
      "This notification is sent when a neighbor
       state change is detected.";
  }

  notification nbr-restart-helper-status-change {
    uses notification-instance-hdr;
    uses notification-interface;
    uses notification-neighbor;

    leaf status {
      type restart-helper-status-type;
      description
        "Restart helper status.";
    }

    leaf age {
      type rt-types:timer-value-seconds16;
      description
        "Remaining time in the current OSPF graceful restart
         interval when the router is acting as a restart
         helper for the neighbor.";
    }

    leaf exit-reason {
      type restart-exit-reason-type;
      description
        "Restart helper exit reason.";
    }
    description
      "This notification is sent when a neighbor restart
       helper status change is detected.";
  }

  notification if-rx-bad-packet {
    uses notification-instance-hdr;
    uses notification-interface;

    leaf packet-source {
      type inet:ip-address;
      description
        "Source address.";
    }

    leaf packet-type {
      type packet-type;
      description
        "OSPF packet type.";
    }

    description
      "This notification is sent when an OSPF packet that
       cannot be parsed is received on an OSPF interface.";
  }

  notification lsdb-approaching-overflow {
    uses notification-instance-hdr;

    leaf ext-lsdb-limit {
      type uint32;
      description
        "The maximum number of non-default AS-External-LSA
         entries that can be stored in the LSDB.";
    }

    description
      "This notification is sent when the number of LSAs
       in the router's LSDB has exceeded ninety percent of the
       AS-External-LSA limit ('ext-lsdb-limit').";
  }

  notification lsdb-overflow {
    uses notification-instance-hdr;

    leaf ext-lsdb-limit {
      type uint32;
      description
        "The maximum number of non-default AS-External-LSA
         entries that can be stored in the LSDB.";
    }

    description
      "This notification is sent when the number of LSAs
       in the router's LSDB has exceeded the AS-External-LSA limit
       ('ext-lsdb-limit').";
  }

  notification nssa-translator-status-change {
    uses notification-instance-hdr;

    leaf area-id {
      type area-id-type;
      description
        "Area ID.";
    }

    leaf status {
      type nssa-translator-state-type;
      description
        "NSSA translator status.";
    }

    description
      "This notification is sent when there is a change
       in the router's role in translating OSPF NSSA-LSAs
       to OSPF AS-External-LSAs.";
  }

  notification restart-status-change {
    uses notification-instance-hdr;

    leaf status {
      type restart-status-type;
      description
        "Restart status.";
    }

    leaf restart-interval {
      type uint16 {
        range "1..1800";
      }
      units "seconds";
      default "120";
      description
        "Restart interval.";
    }

    leaf exit-reason {
      type restart-exit-reason-type;
      description
        "Restart exit reason.";
    }

    description
      "This notification is sent when the graceful restart
       state for the router has changed.";
  }
}
</sourcecode>
    </section>
    <section anchor="Security" numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-4-1">The YANG module specified in this document defines a schema for data
that is designed to be accessed via network management protocols such
as NETCONF <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> or RESTCONF <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>.
The lowest NETCONF layer is the secure transport layer, and the
mandatory-to-implement secure transport is Secure Shell (SSH)
<xref target="RFC6242" format="default" sectionFormat="of" derivedContent="RFC6242"/>. The lowest RESTCONF layer is HTTPS, and the
mandatory-to-implement secure transport is TLS <xref target="RFC8446" format="default" sectionFormat="of" derivedContent="RFC8446"/>.</t>
      <t indent="0" pn="section-4-2">The Network Configuration Access Control Model (NACM) <xref target="RFC8341" format="default" sectionFormat="of" derivedContent="RFC8341"/>
provides the means to restrict access for particular NETCONF or RESTCONF users
to a preconfigured subset of all available NETCONF or RESTCONF protocol
operations and content.</t>
      <t indent="0" pn="section-4-3">There are a number of data nodes defined in this YANG module that are
writable/creatable/deletable (i.e., config true, which is the default). These
data nodes may be considered sensitive or vulnerable in some network
environments. Write operations (e.g., edit-config) to these data nodes without
proper protection can have a negative effect on network operations. These are
the subtrees and data nodes and their sensitivity/vulnerability:</t>
      <ul empty="true" spacing="normal" bare="false" indent="3" pn="section-4-4">
        <li pn="section-4-4.1">/ospf</li>
        <li pn="section-4-4.2">/ospf/areas/</li>
        <li pn="section-4-4.3">/ospf/areas/area[area-id]</li>
        <li pn="section-4-4.4">/ospf/virtual-links/</li>
        <li pn="section-4-4.5">/ospf/virtual-links/virtual-link[transit-area-id router-id]</li>
        <li pn="section-4-4.6">/ospf/areas/area[area-id]/interfaces</li>
        <li pn="section-4-4.7">/ospf/areas/area[area-id]/interfaces/interface[name]</li>
        <li pn="section-4-4.8">/ospf/area/area[area-id]/sham-links</li>
        <li pn="section-4-4.9">/ospf/area/area[area-id]/sham-links/sham-link[local-id remote-id]</li>
      </ul>
      <t indent="0" pn="section-4-5">Writable data nodes represent the configuration of each instance, area, virtual link, sham link, and interface, and they correspond to the schema nodes listed above.</t>
      <t indent="0" pn="section-4-6">For OSPF, the ability to modify OSPF configuration will allow the entire OSPF domain
      to be compromised, including peering with unauthorized routers to
      misroute traffic or mount a massive Denial-of-Service (DoS) attack. For example,
      adding OSPF on any unprotected interface could allow an OSPF adjacency to be
      formed with an unauthorized and malicious neighbor. Once an adjacency is formed,
      traffic could be hijacked. As a simpler example, a DoS attack could
      be mounted by changing the cost of an OSPF interface to be asymmetric such that a
      hard routing loop ensues. In general, unauthorized modification of most OSPF features
      will pose their own set of security risks.  The Security Considerations  sections in the
      respective reference RFCs should be consulted.</t>
      <t indent="0" pn="section-4-7">Some of the readable data nodes in this YANG module may be considered
sensitive or vulnerable in some network environments. It is thus important to
control read access (e.g., via get, get-config, or notification) to these data
nodes. These are the subtrees and data nodes and their
sensitivity/vulnerability:</t>
      <ul empty="true" spacing="normal" bare="false" indent="3" pn="section-4-8">
        <li pn="section-4-8.1">/ospf/database</li>
        <li pn="section-4-8.2">/ospf/areas/area[area-id]/database</li>
        <li pn="section-4-8.3">/ospf/virtual-links/virtual-link[transit-area-id router-id]/database</li>
        <li pn="section-4-8.4">/ospf/areas/area[area-id]/interfaces/interface[name]/database</li>
        <li pn="section-4-8.5">/ospf/area/area[area-id]/sham-links/sham-link[local-id remote-id]/database</li>
      </ul>
      <t indent="0" pn="section-4-9">Exposure of the Link State Database (LSDB) will in turn
      expose the detailed topology of the network. There is a separate LSDB for each instance, area, virtual link, sham link, and interface. These
      correspond to the schema nodes listed above.</t>
      <t indent="0" pn="section-4-10">Exposure of the LSDB includes information beyond the scope of the
      OSPF router. This may be undesirable, since exposure may facilitate other attacks.
      Additionally, in the case of an area LSDB, the complete IP network topology and,
      if deployed, the TE topology of the OSPF area can be
      reconstructed. Network operators may consider their topologies to be sensitive
      confidential data.</t>
      <t indent="0" pn="section-4-11">For OSPF authentication, configuration is supported via the specification
       of key chains <xref target="RFC8177" format="default" sectionFormat="of" derivedContent="RFC8177"/> or the direct specification of a
       key and an authentication algorithm. Hence, authentication configuration
       using the "auth-key-chain" case in the "ospfv2-auth-specification" or "ospfv3-auth-specification" container
       inherits the security considerations of <xref target="RFC8177" format="default" sectionFormat="of" derivedContent="RFC8177"/>. This
       includes considerations with respect to the local storage and
       handling of authentication keys.</t>
      <t indent="0" pn="section-4-12">Additionally, local specification of OSPF authentication keys and
       the associated authentication algorithm is supported for legacy
       implementations that do not support key chains <xref target="RFC8177" format="default" sectionFormat="of" derivedContent="RFC8177"/>.
       It is <bcp14>RECOMMENDED</bcp14> that implementations migrate to key
       chains because of (1) seamless support of key and algorithm rollover, (2) specification of a hexadecimal key, which affords more key entropy, and (3) encryption of keys using the Advanced Encryption Standard (AES) Key Wrap
       with Padding algorithm <xref target="RFC5649" format="default" sectionFormat="of" derivedContent="RFC5649"/>.</t>
      <t indent="0" pn="section-4-13">Some of the RPC operations in this YANG module may be considered sensitive or vulnerable in some network environments. It is thus important to control
access to these operations. These are the operations and their
sensitivity/vulnerability:</t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-4-14">
        <li pn="section-4-14.1">The OSPF YANG module supports the "clear-neighbor"
      and "clear-database" RPCs. If access to either of these RPCs is compromised, temporary network outages can be employed to mount DoS attacks as a result.</li>
      </ul>
      <t indent="0" pn="section-4-15">The actual authentication key data (whether locally specified or part of a
      key chain) is sensitive and needs to be kept secret from unauthorized
      parties; compromise of the key data would allow an attacker to forge OSPF
      traffic that would be accepted as authentic, potentially compromising the
      entire OSPF domain.</t>
    </section>
    <section numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t indent="0" pn="section-5-1">This document registers a URI in the "IETF XML Registry"
     <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>.  Following the format in <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>,
     the following registration has been made:
      </t>
      <dl newline="false" spacing="compact" indent="3" pn="section-5-2">
        <dt pn="section-5-2.1">URI:</dt>
        <dd pn="section-5-2.2">urn:ietf:params:xml:ns:yang:ietf-ospf</dd>
        <dt pn="section-5-2.3">Registrant Contact:</dt>
        <dd pn="section-5-2.4">The IESG.</dd>
        <dt pn="section-5-2.5">XML:</dt>
        <dd pn="section-5-2.6">N/A; the requested URI is an XML namespace.</dd>
      </dl>
      <t indent="0" pn="section-5-3">This document registers a YANG module in the "YANG Module Names"
     registry <xref target="RFC6020" format="default" sectionFormat="of" derivedContent="RFC6020"/>.
      </t>
      <dl newline="false" spacing="compact" indent="3" pn="section-5-4">
        <dt pn="section-5-4.1">Name:</dt>
        <dd pn="section-5-4.2">ietf-ospf</dd>
        <dt pn="section-5-4.3">Namespace:</dt>
        <dd pn="section-5-4.4">urn:ietf:params:xml:ns:yang:ietf-ospf</dd>
        <dt pn="section-5-4.5">Prefix:</dt>
        <dd pn="section-5-4.6">ospf</dd>
        <dt pn="section-5-4.7">Reference:</dt>
        <dd pn="section-5-4.8">RFC 9129</dd>
      </dl>
    </section>
  </middle>
  <back>
    <references pn="section-6">
      <name slugifiedName="name-references">References</name>
      <references pn="section-6.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC1765" target="https://www.rfc-editor.org/info/rfc1765" quoteTitle="true" derivedAnchor="RFC1765">
          <front>
            <title>OSPF Database Overflow</title>
            <author fullname="J. Moy" initials="J." surname="Moy"/>
            <date month="March" year="1995"/>
            <abstract>
              <t indent="0">This memo details a way of gracefully handling unanticipated database overflows.  This memo defines an Experimental Protocol for the Internet community.  This memo does not specify an Internet standard of any kind.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="1765"/>
          <seriesInfo name="DOI" value="10.17487/RFC1765"/>
        </reference>
        <reference anchor="RFC1793" target="https://www.rfc-editor.org/info/rfc1793" quoteTitle="true" derivedAnchor="RFC1793">
          <front>
            <title>Extending OSPF to Support Demand Circuits</title>
            <author fullname="J. Moy" initials="J." surname="Moy"/>
            <date month="April" year="1995"/>
            <abstract>
              <t indent="0">This memo defines enhancements to the OSPF protocol that allow efficient operation over "demand circuits". [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="1793"/>
          <seriesInfo name="DOI" value="10.17487/RFC1793"/>
        </reference>
        <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="RFC2328" target="https://www.rfc-editor.org/info/rfc2328" quoteTitle="true" derivedAnchor="RFC2328">
          <front>
            <title>OSPF Version 2</title>
            <author fullname="J. Moy" initials="J." surname="Moy"/>
            <date month="April" year="1998"/>
            <abstract>
              <t indent="0">This memo documents version 2 of the OSPF protocol.  OSPF is a link- state routing protocol. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="54"/>
          <seriesInfo name="RFC" value="2328"/>
          <seriesInfo name="DOI" value="10.17487/RFC2328"/>
        </reference>
        <reference anchor="RFC3101" target="https://www.rfc-editor.org/info/rfc3101" quoteTitle="true" derivedAnchor="RFC3101">
          <front>
            <title>The OSPF Not-So-Stubby Area (NSSA) Option</title>
            <author fullname="P. Murphy" initials="P." surname="Murphy"/>
            <date month="January" year="2003"/>
            <abstract>
              <t indent="0">This memo documents an optional type of Open Shortest Path First (OSPF) area that is somewhat humorously referred to as a "not-so-stubby" area (or NSSA).  NSSAs are similar to the existing OSPF stub area configuration option but have the additional capability of importing AS external routes in a limited fashion.  The OSPF NSSA Option was originally defined in RFC 1587.  The functional differences between this memo and RFC 1587 are explained in Appendix F.  All differences, while expanding capability, are backward-compatible in nature.  Implementations of this memo and of RFC 1587 will interoperate. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="3101"/>
          <seriesInfo name="DOI" value="10.17487/RFC3101"/>
        </reference>
        <reference anchor="RFC3623" target="https://www.rfc-editor.org/info/rfc3623" quoteTitle="true" derivedAnchor="RFC3623">
          <front>
            <title>Graceful OSPF Restart</title>
            <author fullname="J. Moy" initials="J." surname="Moy"/>
            <author fullname="P. Pillay-Esnault" initials="P." surname="Pillay-Esnault"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <date month="November" year="2003"/>
            <abstract>
              <t indent="0">This memo documents an enhancement to the OSPF routing protocol, whereby an OSPF router can stay on the forwarding path even as its OSPF software is restarted.  This is called "graceful restart" or "non-stop forwarding".  A restarting router may not be capable of adjusting its forwarding in a timely manner when the network topology changes.  In order to avoid the possible resulting routing loops, the procedure in this memo automatically reverts to a normal OSPF restart when such a topology change is detected, or when one or more of the restarting router's neighbors do not support the enhancements in this memo.  Proper network operation during a graceful restart makes assumptions upon the operating environment of the restarting router; these assumptions are also documented.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="3623"/>
          <seriesInfo name="DOI" value="10.17487/RFC3623"/>
        </reference>
        <reference anchor="RFC3630" target="https://www.rfc-editor.org/info/rfc3630" quoteTitle="true" derivedAnchor="RFC3630">
          <front>
            <title>Traffic Engineering (TE) Extensions to OSPF Version 2</title>
            <author fullname="D. Katz" initials="D." surname="Katz"/>
            <author fullname="K. Kompella" initials="K." surname="Kompella"/>
            <author fullname="D. Yeung" initials="D." surname="Yeung"/>
            <date month="September" year="2003"/>
            <abstract>
              <t indent="0">This document describes extensions to the OSPF protocol version 2 to support intra-area Traffic Engineering (TE), using Opaque Link State Advertisements.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="3630"/>
          <seriesInfo name="DOI" value="10.17487/RFC3630"/>
        </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="RFC4552" target="https://www.rfc-editor.org/info/rfc4552" quoteTitle="true" derivedAnchor="RFC4552">
          <front>
            <title>Authentication/Confidentiality for OSPFv3</title>
            <author fullname="M. Gupta" initials="M." surname="Gupta"/>
            <author fullname="N. Melam" initials="N." surname="Melam"/>
            <date month="June" year="2006"/>
            <abstract>
              <t indent="0">This document describes means and mechanisms to provide authentication/confidentiality to OSPFv3 using an IPv6 Authentication Header/Encapsulating Security Payload (AH/ESP) extension header. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4552"/>
          <seriesInfo name="DOI" value="10.17487/RFC4552"/>
        </reference>
        <reference anchor="RFC4576" target="https://www.rfc-editor.org/info/rfc4576" quoteTitle="true" derivedAnchor="RFC4576">
          <front>
            <title>Using a Link State Advertisement (LSA) Options Bit to Prevent Looping in BGP/MPLS IP Virtual Private Networks (VPNs)</title>
            <author fullname="E. Rosen" initials="E." surname="Rosen"/>
            <author fullname="P. Psenak" initials="P." surname="Psenak"/>
            <author fullname="P. Pillay-Esnault" initials="P." surname="Pillay-Esnault"/>
            <date month="June" year="2006"/>
            <abstract>
              <t indent="0">This document specifies a procedure that deals with a particular issue that may arise when a Service Provider (SP) provides "BGP/MPLS IP VPN" service to a customer and the customer uses OSPFv2 to advertise its routes to the SP.  In this situation, a Customer Edge (CE) Router and a Provider Edge (PE) Router are OSPF peers, and customer routes are sent via OSPFv2 from the CE to the PE.  The customer routes are converted into BGP routes, and BGP carries them across the backbone to other PE routers.  The routes are then converted back to OSPF routes sent via OSPF to other CE routers.  As a result of this conversion, some of the information needed to prevent loops may be lost.  A procedure is needed to ensure that once a route is sent from a PE to a CE, the route will be ignored by any PE that receives it back from a CE.  This document specifies the necessary procedure, using one of the options bits in the LSA (Link State Advertisements) to indicate that an LSA has already been forwarded by a PE and should be ignored by any other PEs that see it. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4576"/>
          <seriesInfo name="DOI" value="10.17487/RFC4576"/>
        </reference>
        <reference anchor="RFC4577" target="https://www.rfc-editor.org/info/rfc4577" quoteTitle="true" derivedAnchor="RFC4577">
          <front>
            <title>OSPF as the Provider/Customer Edge Protocol for BGP/MPLS IP Virtual Private Networks (VPNs)</title>
            <author fullname="E. Rosen" initials="E." surname="Rosen"/>
            <author fullname="P. Psenak" initials="P." surname="Psenak"/>
            <author fullname="P. Pillay-Esnault" initials="P." surname="Pillay-Esnault"/>
            <date month="June" year="2006"/>
            <abstract>
              <t indent="0">Many Service Providers offer Virtual Private Network (VPN) services to their customers, using a technique in which customer edge routers (CE routers) are routing peers of provider edge routers (PE routers). The Border Gateway Protocol (BGP) is used to distribute the customer's routes across the provider's IP backbone network, and Multiprotocol Label Switching (MPLS) is used to tunnel customer packets across the provider's backbone. This is known as a "BGP/MPLS IP VPN". The base specification for BGP/MPLS IP VPNs presumes that the routing protocol on the interface between a PE router and a CE router is BGP. This document extends that specification by allowing the routing protocol on the PE/CE interface to be the Open Shortest Path First (OSPF) protocol.</t>
              <t indent="0">This document updates RFC 4364. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4577"/>
          <seriesInfo name="DOI" value="10.17487/RFC4577"/>
        </reference>
        <reference anchor="RFC4915" target="https://www.rfc-editor.org/info/rfc4915" quoteTitle="true" derivedAnchor="RFC4915">
          <front>
            <title>Multi-Topology (MT) Routing in OSPF</title>
            <author fullname="P. Psenak" initials="P." surname="Psenak"/>
            <author fullname="S. Mirtorabi" initials="S." surname="Mirtorabi"/>
            <author fullname="A. Roy" initials="A." surname="Roy"/>
            <author fullname="L. Nguyen" initials="L." surname="Nguyen"/>
            <author fullname="P. Pillay-Esnault" initials="P." surname="Pillay-Esnault"/>
            <date month="June" year="2007"/>
            <abstract>
              <t indent="0">This document describes an extension to Open Shortest Path First (OSPF) in order to define independent IP topologies called Multi- Topologies (MTs). The Multi-Topologies extension can be used for computing different paths for unicast traffic, multicast traffic, different classes of service based on flexible criteria, or an in- band network management topology.</t>
              <t indent="0">An optional extension to exclude selected links from the default topology is also described. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4915"/>
          <seriesInfo name="DOI" value="10.17487/RFC4915"/>
        </reference>
        <reference anchor="RFC4973" target="https://www.rfc-editor.org/info/rfc4973" quoteTitle="true" derivedAnchor="RFC4973">
          <front>
            <title>OSPF-xTE: Experimental Extension to OSPF for Traffic Engineering</title>
            <author fullname="P. Srisuresh" initials="P." surname="Srisuresh"/>
            <author fullname="P. Joseph" initials="P." surname="Joseph"/>
            <date month="July" year="2007"/>
            <abstract>
              <t indent="0">This document defines OSPF-xTE, an experimental traffic engineering (TE) extension to the link-state routing protocol OSPF.  OSPF-xTE defines new TE Link State Advertisements (LSAs) to disseminate TE metrics within an autonomous System (AS), which may consist of multiple areas.  When an AS consists of TE and non-TE nodes, OSPF-xTE ensures that non-TE nodes in the AS are unaffected by the TE LSAs.  OSPF-xTE generates a stand-alone TE Link State Database (TE-LSDB), distinct from the native OSPF LSDB, for computation of TE circuit paths.  OSPF-xTE is versatile and extendible to non-packet networks such as Synchronous Optical Network (SONET) / Time Division Multiplexing (TDM) and optical networks.  This memo defines an Experimental Protocol for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4973"/>
          <seriesInfo name="DOI" value="10.17487/RFC4973"/>
        </reference>
        <reference anchor="RFC5082" target="https://www.rfc-editor.org/info/rfc5082" quoteTitle="true" derivedAnchor="RFC5082">
          <front>
            <title>The Generalized TTL Security Mechanism (GTSM)</title>
            <author fullname="V. Gill" initials="V." surname="Gill"/>
            <author fullname="J. Heasley" initials="J." surname="Heasley"/>
            <author fullname="D. Meyer" initials="D." surname="Meyer"/>
            <author fullname="P. Savola" initials="P." role="editor" surname="Savola"/>
            <author fullname="C. Pignataro" initials="C." surname="Pignataro"/>
            <date month="October" year="2007"/>
            <abstract>
              <t indent="0">The use of a packet's Time to Live (TTL) (IPv4) or Hop Limit (IPv6) to verify whether the packet was originated by an adjacent node on a connected link has been used in many recent protocols.  This document generalizes this technique.  This document obsoletes Experimental RFC 3682. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5082"/>
          <seriesInfo name="DOI" value="10.17487/RFC5082"/>
        </reference>
        <reference anchor="RFC5185" target="https://www.rfc-editor.org/info/rfc5185" quoteTitle="true" derivedAnchor="RFC5185">
          <front>
            <title>OSPF Multi-Area Adjacency</title>
            <author fullname="S. Mirtorabi" initials="S." surname="Mirtorabi"/>
            <author fullname="P. Psenak" initials="P." surname="Psenak"/>
            <author fullname="A. Lindem" initials="A." role="editor" surname="Lindem"/>
            <author fullname="A. Oswal" initials="A." surname="Oswal"/>
            <date month="May" year="2008"/>
            <abstract>
              <t indent="0">This document describes an extension to the Open Shortest Path First (OSPF) protocol to allow a single physical link to be shared by multiple areas.  This is necessary to allow the link to be considered an intra-area link in multiple areas.  This would create an intra- area path in each of the corresponding areas sharing the same link. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5185"/>
          <seriesInfo name="DOI" value="10.17487/RFC5185"/>
        </reference>
        <reference anchor="RFC5187" target="https://www.rfc-editor.org/info/rfc5187" quoteTitle="true" derivedAnchor="RFC5187">
          <front>
            <title>OSPFv3 Graceful Restart</title>
            <author fullname="P. Pillay-Esnault" initials="P." surname="Pillay-Esnault"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <date month="June" year="2008"/>
            <abstract>
              <t indent="0">This document describes the OSPFv3 graceful restart.  The OSPFv3 graceful restart is identical to that of OSPFv2 except for the differences described in this document.  These differences include the format of the grace Link State Advertisements (LSAs) and other considerations. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5187"/>
          <seriesInfo name="DOI" value="10.17487/RFC5187"/>
        </reference>
        <reference anchor="RFC5250" target="https://www.rfc-editor.org/info/rfc5250" quoteTitle="true" derivedAnchor="RFC5250">
          <front>
            <title>The OSPF Opaque LSA Option</title>
            <author fullname="L. Berger" initials="L." surname="Berger"/>
            <author fullname="I. Bryskin" initials="I." surname="Bryskin"/>
            <author fullname="A. Zinin" initials="A." surname="Zinin"/>
            <author fullname="R. Coltun" initials="R." surname="Coltun"/>
            <date month="July" year="2008"/>
            <abstract>
              <t indent="0">This document defines enhancements to the OSPF protocol to support a new class of link state advertisements (LSAs) called Opaque LSAs. Opaque LSAs provide a generalized mechanism to allow for the future extensibility of OSPF. Opaque LSAs consist of a standard LSA header followed by application-specific information. The information field may be used directly by OSPF or by other applications. Standard OSPF link-state database flooding mechanisms are used to distribute Opaque LSAs to all or some limited portion of the OSPF topology.</t>
              <t indent="0">This document replaces RFC 2370 and adds to it a mechanism to enable an OSPF router to validate Autonomous System (AS)-scope Opaque LSAs originated outside of the router's OSPF area. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5250"/>
          <seriesInfo name="DOI" value="10.17487/RFC5250"/>
        </reference>
        <reference anchor="RFC5286" target="https://www.rfc-editor.org/info/rfc5286" quoteTitle="true" derivedAnchor="RFC5286">
          <front>
            <title>Basic Specification for IP Fast Reroute: Loop-Free Alternates</title>
            <author fullname="A. Atlas" initials="A." role="editor" surname="Atlas"/>
            <author fullname="A. Zinin" initials="A." role="editor" surname="Zinin"/>
            <date month="September" year="2008"/>
            <abstract>
              <t indent="0">This document describes the use of loop-free alternates to provide local protection for unicast traffic in pure IP and MPLS/LDP networks in the event of a single failure, whether link, node, or shared risk link group (SRLG).  The goal of this technology is to reduce the packet loss that happens while routers converge after a topology change due to a failure.  Rapid failure repair is achieved through use of precalculated backup next-hops that are loop-free and safe to use until the distributed network convergence process completes.  This simple approach does not require any support from other routers.  The extent to which this goal can be met by this specification is dependent on the topology of the network. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5286"/>
          <seriesInfo name="DOI" value="10.17487/RFC5286"/>
        </reference>
        <reference anchor="RFC5309" target="https://www.rfc-editor.org/info/rfc5309" quoteTitle="true" derivedAnchor="RFC5309">
          <front>
            <title>Point-to-Point Operation over LAN in Link State Routing Protocols</title>
            <author fullname="N. Shen" initials="N." role="editor" surname="Shen"/>
            <author fullname="A. Zinin" initials="A." role="editor" surname="Zinin"/>
            <date month="October" year="2008"/>
            <abstract>
              <t indent="0">The two predominant circuit types used by link state routing protocols are point-to-point and broadcast.  It is important to identify the correct circuit type when forming adjacencies, flooding link state database packets, and representing the circuit topologically.  This document describes a simple mechanism to treat the broadcast network as a point-to-point connection from the standpoint of IP routing.  This memo provides information for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5309"/>
          <seriesInfo name="DOI" value="10.17487/RFC5309"/>
        </reference>
        <reference anchor="RFC5329" target="https://www.rfc-editor.org/info/rfc5329" quoteTitle="true" derivedAnchor="RFC5329">
          <front>
            <title>Traffic Engineering Extensions to OSPF Version 3</title>
            <author fullname="K. Ishiguro" initials="K." surname="Ishiguro"/>
            <author fullname="V. Manral" initials="V." surname="Manral"/>
            <author fullname="A. Davey" initials="A." surname="Davey"/>
            <author fullname="A. Lindem" initials="A." role="editor" surname="Lindem"/>
            <date month="September" year="2008"/>
            <abstract>
              <t indent="0">This document describes extensions to OSPFv3 to support intra-area Traffic Engineering (TE).  This document extends OSPFv2 TE to handle IPv6 networks.  A new TLV and several new sub-TLVs are defined to support IPv6 networks. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5329"/>
          <seriesInfo name="DOI" value="10.17487/RFC5329"/>
        </reference>
        <reference anchor="RFC5340" target="https://www.rfc-editor.org/info/rfc5340" quoteTitle="true" derivedAnchor="RFC5340">
          <front>
            <title>OSPF for IPv6</title>
            <author fullname="R. Coltun" initials="R." surname="Coltun"/>
            <author fullname="D. Ferguson" initials="D." surname="Ferguson"/>
            <author fullname="J. Moy" initials="J." surname="Moy"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <date month="July" year="2008"/>
            <abstract>
              <t indent="0">This document describes the modifications to OSPF to support version 6 of the Internet Protocol (IPv6). The fundamental mechanisms of OSPF (flooding, Designated Router (DR) election, area support, Short Path First (SPF) calculations, etc.) remain unchanged. However, some changes have been necessary, either due to changes in protocol semantics between IPv4 and IPv6, or simply to handle the increased address size of IPv6. These modifications will necessitate incrementing the protocol version from version 2 to version 3. OSPF for IPv6 is also referred to as OSPF version 3 (OSPFv3).</t>
              <t indent="0">Changes between OSPF for IPv4, OSPF Version 2, and OSPF for IPv6 as described herein include the following. Addressing semantics have been removed from OSPF packets and the basic Link State Advertisements (LSAs). New LSAs have been created to carry IPv6 addresses and prefixes. OSPF now runs on a per-link basis rather than on a per-IP-subnet basis. Flooding scope for LSAs has been generalized. Authentication has been removed from the OSPF protocol and instead relies on IPv6's Authentication Header and Encapsulating Security Payload (ESP).</t>
              <t indent="0">Even with larger IPv6 addresses, most packets in OSPF for IPv6 are almost as compact as those in OSPF for IPv4. Most fields and packet- size limitations present in OSPF for IPv4 have been relaxed. In addition, option handling has been made more flexible.</t>
              <t indent="0">All of OSPF for IPv4's optional capabilities, including demand circuit support and Not-So-Stubby Areas (NSSAs), are also supported in OSPF for IPv6. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5340"/>
          <seriesInfo name="DOI" value="10.17487/RFC5340"/>
        </reference>
        <reference anchor="RFC5613" target="https://www.rfc-editor.org/info/rfc5613" quoteTitle="true" derivedAnchor="RFC5613">
          <front>
            <title>OSPF Link-Local Signaling</title>
            <author fullname="A. Zinin" initials="A." surname="Zinin"/>
            <author fullname="A. Roy" initials="A." surname="Roy"/>
            <author fullname="L. Nguyen" initials="L." surname="Nguyen"/>
            <author fullname="B. Friedman" initials="B." surname="Friedman"/>
            <author fullname="D. Yeung" initials="D." surname="Yeung"/>
            <date month="August" year="2009"/>
            <abstract>
              <t indent="0">OSPF is a link-state intra-domain routing protocol.  OSPF routers exchange information on a link using packets that follow a well-defined fixed format.  The format is not flexible enough to enable new features that need to exchange arbitrary data.  This document describes a backward-compatible technique to perform link-local signaling, i.e., exchange arbitrary data on a link.  This document replaces the experimental specification published in RFC 4813 to bring it on the Standards Track.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5613"/>
          <seriesInfo name="DOI" value="10.17487/RFC5613"/>
        </reference>
        <reference anchor="RFC5642" target="https://www.rfc-editor.org/info/rfc5642" quoteTitle="true" derivedAnchor="RFC5642">
          <front>
            <title>Dynamic Hostname Exchange Mechanism for OSPF</title>
            <author fullname="S. Venkata" initials="S." surname="Venkata"/>
            <author fullname="S. Harwani" initials="S." surname="Harwani"/>
            <author fullname="C. Pignataro" initials="C." surname="Pignataro"/>
            <author fullname="D. McPherson" initials="D." surname="McPherson"/>
            <date month="August" year="2009"/>
            <abstract>
              <t indent="0">This document defines a new OSPF Router Information (RI) TLV that allows OSPF routers to flood their hostname-to-Router-ID mapping information across an OSPF network to provide a simple and dynamic mechanism for routers running OSPF to learn about symbolic hostnames, just like for routers running IS-IS.  This mechanism is applicable to both OSPFv2 and OSPFv3. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5642"/>
          <seriesInfo name="DOI" value="10.17487/RFC5642"/>
        </reference>
        <reference anchor="RFC5709" target="https://www.rfc-editor.org/info/rfc5709" quoteTitle="true" derivedAnchor="RFC5709">
          <front>
            <title>OSPFv2 HMAC-SHA Cryptographic Authentication</title>
            <author fullname="M. Bhatia" initials="M." surname="Bhatia"/>
            <author fullname="V. Manral" initials="V." surname="Manral"/>
            <author fullname="M. Fanto" initials="M." surname="Fanto"/>
            <author fullname="R. White" initials="R." surname="White"/>
            <author fullname="M. Barnes" initials="M." surname="Barnes"/>
            <author fullname="T. Li" initials="T." surname="Li"/>
            <author fullname="R. Atkinson" initials="R." surname="Atkinson"/>
            <date month="October" year="2009"/>
            <abstract>
              <t indent="0">This document describes how the National Institute of Standards and Technology (NIST) Secure Hash Standard family of algorithms can be used with OSPF version 2's built-in, cryptographic authentication mechanism.  This updates, but does not supercede, the cryptographic authentication mechanism specified in RFC 2328. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5709"/>
          <seriesInfo name="DOI" value="10.17487/RFC5709"/>
        </reference>
        <reference anchor="RFC5714" target="https://www.rfc-editor.org/info/rfc5714" quoteTitle="true" derivedAnchor="RFC5714">
          <front>
            <title>IP Fast Reroute Framework</title>
            <author fullname="M. Shand" initials="M." surname="Shand"/>
            <author fullname="S. Bryant" initials="S." surname="Bryant"/>
            <date month="January" year="2010"/>
            <abstract>
              <t indent="0">This document provides a framework for the development of IP fast- reroute mechanisms that provide protection against link or router failure by invoking locally determined repair paths.  Unlike MPLS fast-reroute, the mechanisms are applicable to a network employing conventional IP routing and forwarding.  This document is not an Internet Standards Track specification; it is published for informational purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5714"/>
          <seriesInfo name="DOI" value="10.17487/RFC5714"/>
        </reference>
        <reference anchor="RFC5838" target="https://www.rfc-editor.org/info/rfc5838" quoteTitle="true" derivedAnchor="RFC5838">
          <front>
            <title>Support of Address Families in OSPFv3</title>
            <author fullname="A. Lindem" initials="A." role="editor" surname="Lindem"/>
            <author fullname="S. Mirtorabi" initials="S." surname="Mirtorabi"/>
            <author fullname="A. Roy" initials="A." surname="Roy"/>
            <author fullname="M. Barnes" initials="M." surname="Barnes"/>
            <author fullname="R. Aggarwal" initials="R." surname="Aggarwal"/>
            <date month="April" year="2010"/>
            <abstract>
              <t indent="0">This document describes a mechanism for supporting multiple address families (AFs) in OSPFv3 using multiple instances.  It maps an AF to an OSPFv3 instance using the Instance ID field in the OSPFv3 packet header.  This approach is fairly simple and minimizes extensions to OSPFv3 for supporting multiple AFs. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5838"/>
          <seriesInfo name="DOI" value="10.17487/RFC5838"/>
        </reference>
        <reference anchor="RFC6020" target="https://www.rfc-editor.org/info/rfc6020" quoteTitle="true" derivedAnchor="RFC6020">
          <front>
            <title>YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)</title>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <date month="October" year="2010"/>
            <abstract>
              <t indent="0">YANG is a data modeling language used to model configuration and state data manipulated by the Network Configuration Protocol (NETCONF), NETCONF remote procedure calls, and NETCONF notifications. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6020"/>
          <seriesInfo name="DOI" value="10.17487/RFC6020"/>
        </reference>
        <reference anchor="RFC6241" target="https://www.rfc-editor.org/info/rfc6241" quoteTitle="true" derivedAnchor="RFC6241">
          <front>
            <title>Network Configuration Protocol (NETCONF)</title>
            <author fullname="R. Enns" initials="R." role="editor" surname="Enns"/>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <author fullname="J. Schoenwaelder" initials="J." role="editor" surname="Schoenwaelder"/>
            <author fullname="A. Bierman" initials="A." role="editor" surname="Bierman"/>
            <date month="June" year="2011"/>
            <abstract>
              <t indent="0">The Network Configuration Protocol (NETCONF) defined in this document provides mechanisms to install, manipulate, and delete the configuration of network devices.  It uses an Extensible Markup Language (XML)-based data encoding for the configuration data as well as the protocol messages.  The NETCONF protocol operations are realized as remote procedure calls (RPCs).  This document obsoletes RFC 4741. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6241"/>
          <seriesInfo name="DOI" value="10.17487/RFC6241"/>
        </reference>
        <reference anchor="RFC6242" target="https://www.rfc-editor.org/info/rfc6242" quoteTitle="true" derivedAnchor="RFC6242">
          <front>
            <title>Using the NETCONF Protocol over Secure Shell (SSH)</title>
            <author fullname="M. Wasserman" initials="M." surname="Wasserman"/>
            <date month="June" year="2011"/>
            <abstract>
              <t indent="0">This document describes a method for invoking and running the Network Configuration Protocol (NETCONF) within a Secure Shell (SSH) session as an SSH subsystem.  This document obsoletes RFC 4742. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6242"/>
          <seriesInfo name="DOI" value="10.17487/RFC6242"/>
        </reference>
        <reference anchor="RFC6565" target="https://www.rfc-editor.org/info/rfc6565" quoteTitle="true" derivedAnchor="RFC6565">
          <front>
            <title>OSPFv3 as a Provider Edge to Customer Edge (PE-CE) Routing Protocol</title>
            <author fullname="P. Pillay-Esnault" initials="P." surname="Pillay-Esnault"/>
            <author fullname="P. Moyer" initials="P." surname="Moyer"/>
            <author fullname="J. Doyle" initials="J." surname="Doyle"/>
            <author fullname="E. Ertekin" initials="E." surname="Ertekin"/>
            <author fullname="M. Lundberg" initials="M." surname="Lundberg"/>
            <date month="June" year="2012"/>
            <abstract>
              <t indent="0">Many Service Providers (SPs) offer Virtual Private Network (VPN) services to their customers using a technique in which Customer Edge (CE) routers are routing peers of Provider Edge (PE) routers.  The Border Gateway Protocol (BGP) is used to distribute the customer's routes across the provider's IP backbone network, and Multiprotocol Label Switching (MPLS) is used to tunnel customer packets across the provider's backbone.  Support currently exists for both IPv4 and IPv6 VPNs; however, only Open Shortest Path First version 2 (OSPFv2) as PE-CE protocol is specified.  This document extends those specifications to support OSPF version 3 (OSPFv3) as a PE-CE routing protocol.  The OSPFv3 PE-CE functionality is identical to that of OSPFv2 except for the differences described in this document. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6565"/>
          <seriesInfo name="DOI" value="10.17487/RFC6565"/>
        </reference>
        <reference anchor="RFC6845" target="https://www.rfc-editor.org/info/rfc6845" quoteTitle="true" derivedAnchor="RFC6845">
          <front>
            <title>OSPF Hybrid Broadcast and Point-to-Multipoint Interface Type</title>
            <author fullname="N. Sheth" initials="N." surname="Sheth"/>
            <author fullname="L. Wang" initials="L." surname="Wang"/>
            <author fullname="J. Zhang" initials="J." surname="Zhang"/>
            <date month="January" year="2013"/>
            <abstract>
              <t indent="0">This document describes a mechanism to model a broadcast network as a hybrid of broadcast and point-to-multipoint networks for purposes of OSPF operation. Neighbor discovery and maintenance as well as Link State Advertisement (LSA) database synchronization are performed using the broadcast model, but the network is represented using the point-to-multipoint model in the router-LSAs of the routers connected to it. This allows an accurate representation of the cost of communication between different routers on the network, while maintaining the network efficiency of broadcast operation. This approach is relatively simple and requires minimal changes to OSPF.</t>
              <t indent="0">This document updates both OSPFv2 (RFC 2328) and OSPFv3 (RFC 5340). [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6845"/>
          <seriesInfo name="DOI" value="10.17487/RFC6845"/>
        </reference>
        <reference anchor="RFC6860" target="https://www.rfc-editor.org/info/rfc6860" quoteTitle="true" derivedAnchor="RFC6860">
          <front>
            <title>Hiding Transit-Only Networks in OSPF</title>
            <author fullname="Y. Yang" initials="Y." surname="Yang"/>
            <author fullname="A. Retana" initials="A." surname="Retana"/>
            <author fullname="A. Roy" initials="A." surname="Roy"/>
            <date month="January" year="2013"/>
            <abstract>
              <t indent="0">A transit-only network is defined as a network connecting routers only. In OSPF, transit-only networks are usually configured with routable IP addresses, which are advertised in Link State Advertisements (LSAs) but are not needed for data traffic. In addition, remote attacks can be launched against routers by sending packets to these transit-only networks. This document presents a mechanism to hide transit-only networks to speed up network convergence and reduce vulnerability to remote attacks.</t>
              <t indent="0">In the context of this document, 'hiding' implies that the prefixes are not installed in the routing tables on OSPF routers. In some cases, IP addresses may still be visible when using OSPFv2.</t>
              <t indent="0">This document updates RFCs 2328 and 5340. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6860"/>
          <seriesInfo name="DOI" value="10.17487/RFC6860"/>
        </reference>
        <reference anchor="RFC6987" target="https://www.rfc-editor.org/info/rfc6987" quoteTitle="true" derivedAnchor="RFC6987">
          <front>
            <title>OSPF Stub Router Advertisement</title>
            <author fullname="A. Retana" initials="A." surname="Retana"/>
            <author fullname="L. Nguyen" initials="L." surname="Nguyen"/>
            <author fullname="A. Zinin" initials="A." surname="Zinin"/>
            <author fullname="R. White" initials="R." surname="White"/>
            <author fullname="D. McPherson" initials="D." surname="McPherson"/>
            <date month="September" year="2013"/>
            <abstract>
              <t indent="0">This document describes a backward-compatible technique that may be used by OSPF (Open Shortest Path First) implementations to advertise a router's unavailability to forward transit traffic or to lower the preference level for the paths through such a router.</t>
              <t indent="0">This document obsoletes RFC 3137.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6987"/>
          <seriesInfo name="DOI" value="10.17487/RFC6987"/>
        </reference>
        <reference anchor="RFC6991" target="https://www.rfc-editor.org/info/rfc6991" quoteTitle="true" derivedAnchor="RFC6991">
          <front>
            <title>Common YANG Data Types</title>
            <author fullname="J. Schoenwaelder" initials="J." role="editor" surname="Schoenwaelder"/>
            <date month="July" year="2013"/>
            <abstract>
              <t indent="0">This document introduces a collection of common data types to be used with the YANG data modeling language.  This document obsoletes RFC 6021.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6991"/>
          <seriesInfo name="DOI" value="10.17487/RFC6991"/>
        </reference>
        <reference anchor="RFC7166" target="https://www.rfc-editor.org/info/rfc7166" quoteTitle="true" derivedAnchor="RFC7166">
          <front>
            <title>Supporting Authentication Trailer for OSPFv3</title>
            <author fullname="M. Bhatia" initials="M." surname="Bhatia"/>
            <author fullname="V. Manral" initials="V." surname="Manral"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <date month="March" year="2014"/>
            <abstract>
              <t indent="0">Currently, OSPF for IPv6 (OSPFv3) uses IPsec as the only mechanism for authenticating protocol packets. This behavior is different from authentication mechanisms present in other routing protocols (OSPFv2, Intermediate System to Intermediate System (IS-IS), RIP, and Routing Information Protocol Next Generation (RIPng)). In some environments, it has been found that IPsec is difficult to configure and maintain and thus cannot be used. This document defines an alternative mechanism to authenticate OSPFv3 protocol packets so that OSPFv3 does not depend only upon IPsec for authentication.</t>
              <t indent="0">The OSPFv3 Authentication Trailer was originally defined in RFC 6506. This document obsoletes RFC 6506 by providing a revised definition, including clarifications and refinements of the procedures.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7166"/>
          <seriesInfo name="DOI" value="10.17487/RFC7166"/>
        </reference>
        <reference anchor="RFC7474" target="https://www.rfc-editor.org/info/rfc7474" quoteTitle="true" derivedAnchor="RFC7474">
          <front>
            <title>Security Extension for OSPFv2 When Using Manual Key Management</title>
            <author fullname="M. Bhatia" initials="M." surname="Bhatia"/>
            <author fullname="S. Hartman" initials="S." surname="Hartman"/>
            <author fullname="D. Zhang" initials="D." surname="Zhang"/>
            <author fullname="A. Lindem" initials="A." role="editor" surname="Lindem"/>
            <date month="April" year="2015"/>
            <abstract>
              <t indent="0">The current OSPFv2 cryptographic authentication mechanism as defined in RFCs 2328 and 5709 is vulnerable to both inter-session and intra- session replay attacks when using manual keying. Additionally, the existing cryptographic authentication mechanism does not cover the IP header. This omission can be exploited to carry out various types of attacks.</t>
              <t indent="0">This document defines changes to the authentication sequence number mechanism that will protect OSPFv2 from both inter-session and intra- session replay attacks when using manual keys for securing OSPFv2 protocol packets. Additionally, we also describe some changes in the cryptographic hash computation that will eliminate attacks resulting from OSPFv2 not protecting the IP header.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7474"/>
          <seriesInfo name="DOI" value="10.17487/RFC7474"/>
        </reference>
        <reference anchor="RFC7490" target="https://www.rfc-editor.org/info/rfc7490" quoteTitle="true" derivedAnchor="RFC7490">
          <front>
            <title>Remote Loop-Free Alternate (LFA) Fast Reroute (FRR)</title>
            <author fullname="S. Bryant" initials="S." surname="Bryant"/>
            <author fullname="C. Filsfils" initials="C." surname="Filsfils"/>
            <author fullname="S. Previdi" initials="S." surname="Previdi"/>
            <author fullname="M. Shand" initials="M." surname="Shand"/>
            <author fullname="N. So" initials="N." surname="So"/>
            <date month="April" year="2015"/>
            <abstract>
              <t indent="0">This document describes an extension to the basic IP fast reroute mechanism, described in RFC 5286, that provides additional backup connectivity for point-to-point link failures when none can be provided by the basic mechanisms.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7490"/>
          <seriesInfo name="DOI" value="10.17487/RFC7490"/>
        </reference>
        <reference anchor="RFC7684" target="https://www.rfc-editor.org/info/rfc7684" quoteTitle="true" derivedAnchor="RFC7684">
          <front>
            <title>OSPFv2 Prefix/Link Attribute Advertisement</title>
            <author fullname="P. Psenak" initials="P." surname="Psenak"/>
            <author fullname="H. Gredler" initials="H." surname="Gredler"/>
            <author fullname="R. Shakir" initials="R." surname="Shakir"/>
            <author fullname="W. Henderickx" initials="W." surname="Henderickx"/>
            <author fullname="J. Tantsura" initials="J." surname="Tantsura"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <date month="November" year="2015"/>
            <abstract>
              <t indent="0">OSPFv2 requires functional extension beyond what can readily be done with the fixed-format Link State Advertisements (LSAs) as described in RFC 2328.  This document defines OSPFv2 Opaque LSAs based on Type-Length-Value (TLV) tuples that can be used to associate additional attributes with prefixes or links.  Depending on the application, these prefixes and links may or may not be advertised in the fixed-format LSAs.  The OSPFv2 Opaque LSAs are optional and fully backward compatible.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7684"/>
          <seriesInfo name="DOI" value="10.17487/RFC7684"/>
        </reference>
        <reference anchor="RFC7770" target="https://www.rfc-editor.org/info/rfc7770" quoteTitle="true" derivedAnchor="RFC7770">
          <front>
            <title>Extensions to OSPF for Advertising Optional Router Capabilities</title>
            <author fullname="A. Lindem" initials="A." role="editor" surname="Lindem"/>
            <author fullname="N. Shen" initials="N." surname="Shen"/>
            <author fullname="JP. Vasseur" initials="JP." surname="Vasseur"/>
            <author fullname="R. Aggarwal" initials="R." surname="Aggarwal"/>
            <author fullname="S. Shaffer" initials="S." surname="Shaffer"/>
            <date month="February" year="2016"/>
            <abstract>
              <t indent="0">It is useful for routers in an OSPFv2 or OSPFv3 routing domain to know the capabilities of their neighbors and other routers in the routing domain.  This document proposes extensions to OSPFv2 and OSPFv3 for advertising optional router capabilities.  The Router Information (RI) Link State Advertisement (LSA) is defined for this purpose.  In OSPFv2, the RI LSA will be implemented with an Opaque LSA type ID.  In OSPFv3, the RI LSA will be implemented with a unique LSA type function code.  In both protocols, the RI LSA can be advertised at any of the defined flooding scopes (link, area, or autonomous system (AS)).  This document obsoletes RFC 4970 by providing a revised specification that includes support for advertisement of multiple instances of the RI LSA and a TLV for functional capabilities.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7770"/>
          <seriesInfo name="DOI" value="10.17487/RFC7770"/>
        </reference>
        <reference anchor="RFC7777" target="https://www.rfc-editor.org/info/rfc7777" quoteTitle="true" derivedAnchor="RFC7777">
          <front>
            <title>Advertising Node Administrative Tags in OSPF</title>
            <author fullname="S. Hegde" initials="S." surname="Hegde"/>
            <author fullname="R. Shakir" initials="R." surname="Shakir"/>
            <author fullname="A. Smirnov" initials="A." surname="Smirnov"/>
            <author fullname="Z. Li" initials="Z." surname="Li"/>
            <author fullname="B. Decraene" initials="B." surname="Decraene"/>
            <date month="March" year="2016"/>
            <abstract>
              <t indent="0">This document describes an extension to the OSPF protocol to add an optional operational capability that allows tagging and grouping of the nodes in an OSPF domain. This allows simplification, ease of management and control over route and path selection based on configured policies. This document describes an extension to the OSPF protocol to advertise node administrative tags. The node tags can be used to express and apply locally defined network policies, which are a very useful operational capability. Node tags may be used by either OSPF itself or other applications consuming information propagated via OSPF.</t>
              <t indent="0">This document describes the protocol extensions to disseminate node administrative tags to the OSPFv2 and OSPFv3 protocol. It provides example use cases of administrative node tags.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7777"/>
          <seriesInfo name="DOI" value="10.17487/RFC7777"/>
        </reference>
        <reference anchor="RFC7884" target="https://www.rfc-editor.org/info/rfc7884" quoteTitle="true" derivedAnchor="RFC7884">
          <front>
            <title>OSPF Extensions to Advertise Seamless Bidirectional Forwarding Detection (S-BFD) Target Discriminators</title>
            <author fullname="C. Pignataro" initials="C." surname="Pignataro"/>
            <author fullname="M. Bhatia" initials="M." surname="Bhatia"/>
            <author fullname="S. Aldrin" initials="S." surname="Aldrin"/>
            <author fullname="T. Ranganath" initials="T." surname="Ranganath"/>
            <date month="July" year="2016"/>
            <abstract>
              <t indent="0">This document defines a new OSPF Router Information (RI) TLV that allows OSPF routers to flood the Seamless Bidirectional Forwarding Detection (S-BFD) Discriminator values associated with a target network identifier.  This mechanism is applicable to both OSPFv2 and OSPFv3.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7884"/>
          <seriesInfo name="DOI" value="10.17487/RFC7884"/>
        </reference>
        <reference anchor="RFC7950" target="https://www.rfc-editor.org/info/rfc7950" quoteTitle="true" derivedAnchor="RFC7950">
          <front>
            <title>The YANG 1.1 Data Modeling Language</title>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <date month="August" year="2016"/>
            <abstract>
              <t indent="0">YANG is a data modeling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols.  This document describes the syntax and semantics of version 1.1 of the YANG language.  YANG version 1.1 is a maintenance release of the YANG language, addressing ambiguities and defects in the original specification.  There are a small number of backward incompatibilities from YANG version 1.  This document also specifies the YANG mappings to the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7950"/>
          <seriesInfo name="DOI" value="10.17487/RFC7950"/>
        </reference>
        <reference anchor="RFC8040" target="https://www.rfc-editor.org/info/rfc8040" quoteTitle="true" derivedAnchor="RFC8040">
          <front>
            <title>RESTCONF Protocol</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <date month="January" year="2017"/>
            <abstract>
              <t indent="0">This document describes an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8040"/>
          <seriesInfo name="DOI" value="10.17487/RFC8040"/>
        </reference>
        <reference anchor="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="RFC8177" target="https://www.rfc-editor.org/info/rfc8177" quoteTitle="true" derivedAnchor="RFC8177">
          <front>
            <title>YANG Data Model for Key Chains</title>
            <author fullname="A. Lindem" initials="A." role="editor" surname="Lindem"/>
            <author fullname="Y. Qu" initials="Y." surname="Qu"/>
            <author fullname="D. Yeung" initials="D." surname="Yeung"/>
            <author fullname="I. Chen" initials="I." surname="Chen"/>
            <author fullname="J. Zhang" initials="J." surname="Zhang"/>
            <date month="June" year="2017"/>
            <abstract>
              <t indent="0">This document describes the key chain YANG data model.  Key chains are commonly used for routing protocol authentication and other applications requiring symmetric keys.  A key chain is a list containing one or more elements containing a Key ID, key string, send/accept lifetimes, and the associated authentication or encryption algorithm.  By properly overlapping the send and accept lifetimes of multiple key chain elements, key strings and algorithms may be gracefully updated.  By representing them in a YANG data model, key distribution can be automated.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8177"/>
          <seriesInfo name="DOI" value="10.17487/RFC8177"/>
        </reference>
        <reference anchor="RFC8294" target="https://www.rfc-editor.org/info/rfc8294" quoteTitle="true" derivedAnchor="RFC8294">
          <front>
            <title>Common YANG Data Types for the Routing Area</title>
            <author fullname="X. Liu" initials="X." surname="Liu"/>
            <author fullname="Y. Qu" initials="Y." surname="Qu"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <author fullname="C. Hopps" initials="C." surname="Hopps"/>
            <author fullname="L. Berger" initials="L." surname="Berger"/>
            <date month="December" year="2017"/>
            <abstract>
              <t indent="0">This document defines a collection of common data types using the YANG data modeling language.  These derived common types are designed to be imported by other modules defined in the routing area.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8294"/>
          <seriesInfo name="DOI" value="10.17487/RFC8294"/>
        </reference>
        <reference anchor="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="RFC8341" target="https://www.rfc-editor.org/info/rfc8341" quoteTitle="true" derivedAnchor="RFC8341">
          <front>
            <title>Network Configuration Access Control Model</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability. There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content. This document defines such an access control model.</t>
              <t indent="0">This document obsoletes RFC 6536.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="91"/>
          <seriesInfo name="RFC" value="8341"/>
          <seriesInfo name="DOI" value="10.17487/RFC8341"/>
        </reference>
        <reference anchor="RFC8342" target="https://www.rfc-editor.org/info/rfc8342" quoteTitle="true" derivedAnchor="RFC8342">
          <front>
            <title>Network Management Datastore Architecture (NMDA)</title>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="J. Schoenwaelder" initials="J." surname="Schoenwaelder"/>
            <author fullname="P. Shafer" initials="P." surname="Shafer"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <author fullname="R. Wilton" initials="R." surname="Wilton"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">Datastores are a fundamental concept binding the data models written in the YANG data modeling language to network management protocols such as the Network Configuration Protocol (NETCONF) and RESTCONF.  This document defines an architectural framework for datastores based on the experience gained with the initial simpler model, addressing requirements that were not well supported in the initial model.  This document updates RFC 7950.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8342"/>
          <seriesInfo name="DOI" value="10.17487/RFC8342"/>
        </reference>
        <reference anchor="RFC8343" target="https://www.rfc-editor.org/info/rfc8343" quoteTitle="true" derivedAnchor="RFC8343">
          <front>
            <title>A YANG Data Model for Interface Management</title>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">This document defines a YANG data model for the management of network interfaces. It is expected that interface-type-specific data models augment the generic interfaces data model defined in this document. The data model includes definitions for configuration and system state (status information and counters for the collection of statistics).</t>
              <t indent="0">The YANG data model in this document conforms to the Network Management Datastore Architecture (NMDA) defined in RFC 8342.</t>
              <t indent="0">This document obsoletes RFC 7223.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8343"/>
          <seriesInfo name="DOI" value="10.17487/RFC8343"/>
        </reference>
        <reference anchor="RFC8349" target="https://www.rfc-editor.org/info/rfc8349" quoteTitle="true" derivedAnchor="RFC8349">
          <front>
            <title>A YANG Data Model for Routing Management (NMDA Version)</title>
            <author fullname="L. Lhotka" initials="L." surname="Lhotka"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <author fullname="Y. Qu" initials="Y." surname="Qu"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">This document specifies three YANG modules and one submodule. Together, they form the core routing data model that serves as a framework for configuring and managing a routing subsystem. It is expected that these modules will be augmented by additional YANG modules defining data models for control-plane protocols, route filters, and other functions. The core routing data model provides common building blocks for such extensions -- routes, Routing Information Bases (RIBs), and control-plane protocols.</t>
              <t indent="0">The YANG modules in this document conform to the Network Management Datastore Architecture (NMDA). This document obsoletes RFC 8022.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8349"/>
          <seriesInfo name="DOI" value="10.17487/RFC8349"/>
        </reference>
        <reference anchor="RFC8405" target="https://www.rfc-editor.org/info/rfc8405" quoteTitle="true" derivedAnchor="RFC8405">
          <front>
            <title>Shortest Path First (SPF) Back-Off Delay Algorithm for Link-State IGPs</title>
            <author fullname="B. Decraene" initials="B." surname="Decraene"/>
            <author fullname="S. Litkowski" initials="S." surname="Litkowski"/>
            <author fullname="H. Gredler" initials="H." surname="Gredler"/>
            <author fullname="A. Lindem" initials="A." surname="Lindem"/>
            <author fullname="P. Francois" initials="P." surname="Francois"/>
            <author fullname="C. Bowers" initials="C." surname="Bowers"/>
            <date month="June" year="2018"/>
            <abstract>
              <t indent="0">This document defines a standard algorithm to temporarily postpone or "back off" link-state IGP Shortest Path First (SPF) computations. This reduces the computational load and churn on IGP nodes when multiple temporally close network events trigger multiple SPF computations.</t>
              <t indent="0">Having one standard algorithm improves interoperability by reducing the probability and/or duration of transient forwarding loops during the IGP convergence when the IGP reacts to multiple temporally close IGP events.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8405"/>
          <seriesInfo name="DOI" value="10.17487/RFC8405"/>
        </reference>
        <reference anchor="RFC8446" target="https://www.rfc-editor.org/info/rfc8446" quoteTitle="true" derivedAnchor="RFC8446">
          <front>
            <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
            <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
            <date month="August" year="2018"/>
            <abstract>
              <t indent="0">This document specifies version 1.3 of the Transport Layer Security (TLS) protocol. TLS allows client/server applications to communicate over the Internet in a way that is designed to prevent eavesdropping, tampering, and message forgery.</t>
              <t indent="0">This document updates RFCs 5705 and 6066, and obsoletes RFCs 5077, 5246, and 6961. This document also specifies new requirements for TLS 1.2 implementations.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8446"/>
          <seriesInfo name="DOI" value="10.17487/RFC8446"/>
        </reference>
        <reference anchor="RFC8476" target="https://www.rfc-editor.org/info/rfc8476" quoteTitle="true" derivedAnchor="RFC8476">
          <front>
            <title>Signaling Maximum SID Depth (MSD) Using OSPF</title>
            <author fullname="J. Tantsura" initials="J." surname="Tantsura"/>
            <author fullname="U. Chunduri" initials="U." surname="Chunduri"/>
            <author fullname="S. Aldrin" initials="S." surname="Aldrin"/>
            <author fullname="P. Psenak" initials="P." surname="Psenak"/>
            <date month="December" year="2018"/>
            <abstract>
              <t indent="0">This document defines a way for an Open Shortest Path First (OSPF) router to advertise multiple types of supported Maximum SID Depths (MSDs) at node and/or link granularity.  Such advertisements allow entities (e.g., centralized controllers) to determine whether a particular Segment Identifier (SID) stack can be supported in a given network.  This document only refers to the Signaling MSD as defined in RFC 8491, but it defines an encoding that can support other MSD types.  Here, the term "OSPF" means both OSPFv2 and OSPFv3.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8476"/>
          <seriesInfo name="DOI" value="10.17487/RFC8476"/>
        </reference>
        <reference anchor="RFC9314" target="https://www.rfc-editor.org/info/rfc9314" quoteTitle="true" derivedAnchor="RFC9314">
          <front>
            <title>YANG Data Model for Bidirectional Forwarding Detection (BFD)</title>
            <author fullname="M. Jethanandani" initials="M." role="editor" surname="Jethanandani"/>
            <author fullname="R. Rahman" initials="R." role="editor" surname="Rahman"/>
            <author fullname="L. Zheng" initials="L." role="editor" surname="Zheng"/>
            <author fullname="S. Pallagatti" initials="S." surname="Pallagatti"/>
            <author fullname="G. Mirsky" initials="G." surname="Mirsky"/>
            <date month="September" year="2022"/>
            <abstract>
              <t indent="0">This document defines a YANG data model that can be used to configure and manage Bidirectional Forwarding Detection (BFD).</t>
              <t indent="0">The YANG modules in this document conform to the Network Management Datastore Architecture (NMDA) (RFC 8342). This document updates "YANG Data Model for Bidirectional Forwarding Detection (BFD)" (RFC 9127).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9314"/>
          <seriesInfo name="DOI" value="10.17487/RFC9314"/>
        </reference>
      </references>
      <references pn="section-6.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="RFC0905" target="https://www.rfc-editor.org/info/rfc905" quoteTitle="true" derivedAnchor="RFC0905">
          <front>
            <title>ISO Transport Protocol specification ISO DP 8073</title>
            <author>
              <organization showOnFrontPage="true">International Organization for Standardization</organization>
            </author>
            <date month="April" year="1984"/>
            <abstract>
              <t indent="0">This is the current specification of the ISO Transport Protocol.  This document is the text of ISO/TC97/SC16/N1576 as corrected by ISO/TC97/SC16/N1695.  This is the specification currently being voted on in ISO as a Draft International Standard (DIS).  This document is distributed as an RFC for your information only, it does not specify a standard for the ARPA-Internet or DARPA research community.  Our thanks to Alex McKenzie of BBN for making this online version available.  Please note the size of this document, the file contains 258,729 characters.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="905"/>
          <seriesInfo name="DOI" value="10.17487/RFC0905"/>
        </reference>
        <reference anchor="RFC4750" target="https://www.rfc-editor.org/info/rfc4750" quoteTitle="true" derivedAnchor="RFC4750">
          <front>
            <title>OSPF Version 2 Management Information Base</title>
            <author fullname="D. Joyal" initials="D." role="editor" surname="Joyal"/>
            <author fullname="P. Galecki" initials="P." role="editor" surname="Galecki"/>
            <author fullname="S. Giacalone" initials="S." role="editor" surname="Giacalone"/>
            <author fullname="R. Coltun" initials="R." surname="Coltun"/>
            <author fullname="F. Baker" initials="F." surname="Baker"/>
            <date month="December" year="2006"/>
            <abstract>
              <t indent="0">This memo defines a portion of the Management Information Base (MIB) for use with network management protocols in TCP/IP-based internets. In particular, it defines objects for managing version 2 of the Open Shortest Path First Routing Protocol. Version 2 of the OSPF protocol is specific to the IPv4 address family. Version 3 of the OSPF protocol is specific to the IPv6 address family.</t>
              <t indent="0">This memo obsoletes RFC 1850; however, it is designed to be backwards compatible. The functional differences between this memo and RFC 1850 are explained in Appendix B. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4750"/>
          <seriesInfo name="DOI" value="10.17487/RFC4750"/>
        </reference>
        <reference anchor="RFC5443" target="https://www.rfc-editor.org/info/rfc5443" quoteTitle="true" derivedAnchor="RFC5443">
          <front>
            <title>LDP IGP Synchronization</title>
            <author fullname="M. Jork" initials="M." surname="Jork"/>
            <author fullname="A. Atlas" initials="A." surname="Atlas"/>
            <author fullname="L. Fang" initials="L." surname="Fang"/>
            <date month="March" year="2009"/>
            <abstract>
              <t indent="0">In certain networks, there is dependency on the edge-to-edge Label Switched Paths (LSPs) setup by the Label Distribution Protocol (LDP), e.g., networks that are used for Multiprotocol Label Switching (MPLS) Virtual Private Network (VPN) applications.  For such applications, it is not possible to rely on Internet Protocol (IP) forwarding if the MPLS LSP is not operating appropriately.  Blackholing of labeled traffic can occur in situations where the Interior Gateway Protocol (IGP) is operational on a link on which LDP is not.  While the link could still be used for IP forwarding, it is not useful for MPLS forwarding, for example, MPLS VPN applications or Border Gateway Protocol (BGP) route-free cores.  This document describes a mechanism to avoid traffic loss due to this condition without introducing any protocol changes.  This memo provides information for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5443"/>
          <seriesInfo name="DOI" value="10.17487/RFC5443"/>
        </reference>
        <reference anchor="RFC5643" target="https://www.rfc-editor.org/info/rfc5643" quoteTitle="true" derivedAnchor="RFC5643">
          <front>
            <title>Management Information Base for OSPFv3</title>
            <author fullname="D. Joyal" initials="D." role="editor" surname="Joyal"/>
            <author fullname="V. Manral" initials="V." role="editor" surname="Manral"/>
            <date month="August" year="2009"/>
            <abstract>
              <t indent="0">This memo defines a portion of the Management Information Base (MIB) for use with network management protocols in IPv6-based internets.  In particular, it defines objects for managing the Open Shortest Path First (OSPF) Routing Protocol for IPv6, otherwise known as OSPF version 3 (OSPFv3). [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5643"/>
          <seriesInfo name="DOI" value="10.17487/RFC5643"/>
        </reference>
        <reference anchor="RFC5649" target="https://www.rfc-editor.org/info/rfc5649" quoteTitle="true" derivedAnchor="RFC5649">
          <front>
            <title>Advanced Encryption Standard (AES) Key Wrap with Padding Algorithm</title>
            <author fullname="R. Housley" initials="R." surname="Housley"/>
            <author fullname="M. Dworkin" initials="M." surname="Dworkin"/>
            <date month="September" year="2009"/>
            <abstract>
              <t indent="0">This document specifies a padding convention for use with the AES Key Wrap algorithm specified in RFC 3394.  This convention eliminates the requirement that the length of the key to be wrapped be a multiple of 64 bits, allowing a key of any practical length to be wrapped.  This memo provides information for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5649"/>
          <seriesInfo name="DOI" value="10.17487/RFC5649"/>
        </reference>
        <reference anchor="RFC5880" target="https://www.rfc-editor.org/info/rfc5880" quoteTitle="true" derivedAnchor="RFC5880">
          <front>
            <title>Bidirectional Forwarding Detection (BFD)</title>
            <author fullname="D. Katz" initials="D." surname="Katz"/>
            <author fullname="D. Ward" initials="D." surname="Ward"/>
            <date month="June" year="2010"/>
            <abstract>
              <t indent="0">This document describes a protocol intended to detect faults in the bidirectional path between two forwarding engines, including interfaces, data link(s), and to the extent possible the forwarding engines themselves, with potentially very low latency.  It operates independently of media, data protocols, and routing protocols. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5880"/>
          <seriesInfo name="DOI" value="10.17487/RFC5880"/>
        </reference>
        <reference anchor="RFC5881" target="https://www.rfc-editor.org/info/rfc5881" quoteTitle="true" derivedAnchor="RFC5881">
          <front>
            <title>Bidirectional Forwarding Detection (BFD) for IPv4 and IPv6 (Single Hop)</title>
            <author fullname="D. Katz" initials="D." surname="Katz"/>
            <author fullname="D. Ward" initials="D." surname="Ward"/>
            <date month="June" year="2010"/>
            <abstract>
              <t indent="0">This document describes the use of the Bidirectional Forwarding Detection (BFD) protocol over IPv4 and IPv6 for single IP hops. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="5881"/>
          <seriesInfo name="DOI" value="10.17487/RFC5881"/>
        </reference>
      </references>
    </references>
    <section anchor="Acknowledgments" numbered="false" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.a-1">The authors wish to thank <contact fullname="Yi Yang"/>, <contact fullname="Alexander Clemm"/>,
      <contact fullname="Gaurav Gupta"/>, <contact fullname="Ladislav Lhotka"/>, <contact fullname="Stephane Litkowski"/>,
      <contact fullname="Greg Hankins"/>, <contact fullname="Manish Gupta"/>, <contact fullname="Michael Darwish"/>, <contact fullname="Alan Davey"/>, and
<contact fullname="Renato Westphal"/> for their thorough reviews
      and helpful comments.</t>
      <t indent="0" pn="section-appendix.a-2">Thanks to <contact fullname="Tom Petch"/> for Last Call review and
      improvements to the organization of the document.</t>
      <t indent="0" pn="section-appendix.a-3">Thanks to <contact fullname="Alvaro Retana"/> for AD comments.</t>
      <t indent="0" pn="section-appendix.a-4">Thanks to <contact fullname="Benjamin Kaduk"/>, <contact fullname="Suresh Krishnan"/>, and <contact fullname="Roman Danyliw"/> for
         IESG review comments.</t>
      <t indent="0" pn="section-appendix.a-5">Author affiliation with The MITRE Corporation is provided for
      identification purposes only and is not intended to convey or imply
      MITRE's concurrence with, or support for, the positions, opinions, or
      viewpoints expressed.  MITRE has approved this document for Public
      Release, Distribution Unlimited, with Public Release Case Number
      18-3194.</t>
    </section>
    <section numbered="false" toc="include" removeInRFC="false" pn="section-appendix.b">
      <name slugifiedName="name-contributors">Contributors</name>
      <contact fullname="Dean Bogdanovic">
        <organization showOnFrontPage="true">Volta Networks, Inc.</organization>
        <address>
          <postal>
            <street/>
            <city/>
            <region/>
            <code/>
            <country/>
          </postal>
          <email>dean@voltanet.io</email>
        </address>
      </contact>
      <contact fullname="Kiran Koushik Agrahara Sreenivasa">
        <organization showOnFrontPage="true">Verizon</organization>
        <address>
          <postal>
            <street>500 W Dove Rd</street>
            <city>Southlake</city>
            <region>TX</region>
            <code>76092</code>
            <country>United States of America</country>
          </postal>
          <email>kk@employees.org</email>
        </address>
      </contact>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.c">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author fullname="Derek Yeung" initials="D" surname="Yeung">
        <organization showOnFrontPage="true">Arrcus, Inc.</organization>
        <address>
          <postal>
            <street>2077 Gateway Place, Suite 400</street>
            <city>San Jose</city>
            <region>CA</region>
            <code>95110</code>
            <country>United States of America</country>
          </postal>
          <email>derek@arrcus.com</email>
        </address>
      </author>
      <author fullname="Yingzhen Qu" initials="Y" surname="Qu">
        <organization showOnFrontPage="true">Futurewei</organization>
        <address>
          <postal>
            <street>2330 Central Expressway</street>
            <city>Santa Clara</city>
            <region>CA</region>
            <code>95050</code>
            <country>United States of America</country>
          </postal>
          <email>yingzhen.qu@futurewei.com</email>
        </address>
      </author>
      <author fullname="Jeffrey Zhang" initials="J" surname="Zhang">
        <organization showOnFrontPage="true">Juniper Networks</organization>
        <address>
          <postal>
            <street>10 Technology Park Drive</street>
            <city>Westford</city>
            <region>MA</region>
            <code>01886</code>
            <country>United States of America</country>
          </postal>
          <email>zzhang@juniper.net</email>
        </address>
      </author>
      <author fullname="Ing-Wher Chen" initials="I." surname="Chen">
        <organization showOnFrontPage="true">The MITRE Corporation</organization>
        <address>
          <email>ingwherchen@mitre.org</email>
        </address>
      </author>
      <author fullname="Acee Lindem" initials="A." surname="Lindem">
        <organization showOnFrontPage="true">Cisco Systems</organization>
        <address>
          <postal>
            <street>301 Midenhall Way</street>
            <city>Cary</city>
            <region>NC</region>
            <code>27513</code>
            <country>United States of America</country>
          </postal>
          <email>acee@cisco.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
