<?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-mpls-base-yang-17" indexInclude="true" ipr="trust200902" number="8960" prepTime="2020-12-18T14:46:39" 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-mpls-base-yang-17" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc8960" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="MPLS Base YANG Data Model">A YANG Data Model for MPLS Base</title>
    <seriesInfo name="RFC" value="8960" stream="IETF"/>
    <author initials="T." surname="Saad" fullname="Tarek Saad">
      <organization showOnFrontPage="true">Juniper Networks</organization>
      <address>
        <email>tsaad@juniper.net</email>
      </address>
    </author>
    <author initials="K." surname="Raza" fullname="Kamran Raza">
      <organization showOnFrontPage="true">Cisco Systems, Inc.</organization>
      <address>
        <email>skraza@cisco.com</email>
      </address>
    </author>
    <author initials="R." surname="Gandhi" fullname="Rakesh Gandhi">
      <organization showOnFrontPage="true">Cisco Systems, Inc.</organization>
      <address>
        <email>rgandhi@cisco.com</email>
      </address>
    </author>
    <author initials="X." surname="Liu" fullname="Xufeng Liu">
      <organization showOnFrontPage="true">Volta Networks</organization>
      <address>
        <email>xufeng.liu.ietf@gmail.com</email>
      </address>
    </author>
    <author initials="V." surname="Beeram" fullname="Vishnu Pavan Beeram">
      <organization showOnFrontPage="true">Juniper Networks</organization>
      <address>
        <email>vbeeram@juniper.net</email>
      </address>
    </author>
    <date month="12" year="2020"/>
    <keyword>MPLS YANG Data Model</keyword>
    <keyword>MPLS Model</keyword>
    <keyword>MPLS RIB</keyword>
    <keyword>MPLS Routing Information Base</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document contains a specification of the MPLS base YANG data model. The MPLS
base YANG data model serves as a base framework for configuring and managing an MPLS
switching subsystem on an MPLS-enabled router.  It is expected that other MPLS
YANG data models (e.g., MPLS Label Switched Path (LSP) static, LDP, or RSVP-TE
YANG data models) will augment the MPLS base YANG data model.
</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/rfc8960" 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) 2020 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 Simplified BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Simplified 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-terminology">Terminology</xref></t>
              </li>
              <li pn="section-toc.1-1.1.2.2">
                <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.2.2.1"><xref derivedContent="1.2" format="counter" sectionFormat="of" target="section-1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-acronyms-and-abbreviations">Acronyms and Abbreviations</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-mpls-base-model">MPLS Base 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-model-overview">Model Overview</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.2">
                <t indent="0" pn="section-toc.1-1.2.2.2.1"><xref derivedContent="2.2" format="counter" sectionFormat="of" target="section-2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-model-organization">Model Organization</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-model-design">Model Design</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-model-tree-diagram">Model Tree Diagram</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-mpls-base-yang-module">MPLS Base YANG Module</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-iana-considerations">IANA Considerations</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-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2">
              <li pn="section-toc.1-1.5.2.1">
                <t indent="0" pn="section-toc.1-1.5.2.1.1"><xref derivedContent="5.1" format="counter" sectionFormat="of" target="section-5.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.5.2.2">
                <t indent="0" pn="section-toc.1-1.5.2.2.1"><xref derivedContent="5.2" format="counter" sectionFormat="of" target="section-5.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-data-tree-instance-example">Data Tree Instance Example</xref></t>
          </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.b"/><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.c"/><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.d"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section anchor="introduction" numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">A core routing YANG data model is defined in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/>; it provides a basis
for the development of routing data models for specific Address Families (AFs).
Specifically, <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/> defines a model for a generic Routing Information
Base (RIB) that is AF agnostic. <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/> also defines two
instances of RIBs based on the generic RIB model for IPv4 and IPv6 AFs.</t>
      <t indent="0" pn="section-1-2">The MPLS base model defined in this document augments the generic RIB model
defined in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/> with additional data that enables MPLS
forwarding for one or more specific destination prefixes present in one or more AF RIBs, as described in
the MPLS architecture document <xref target="RFC3031" format="default" sectionFormat="of" derivedContent="RFC3031"/>.</t>
      <t indent="0" pn="section-1-3">The MPLS base model also defines a new instance of the generic RIB YANG data model as
defined in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/> to store native MPLS routes. The native MPLS RIB
instance stores one or more routes that are not associated with other AF instance RIBs
(such as IPv4 or IPv6 instance RIBs) but are enabled for MPLS forwarding.
Examples of such native MPLS routes are routes programmed by RSVP on
one or more transit MPLS routers along the path of a Label Switched Path (LSP). Other examples are
MPLS routes that cross-connect to specific Layer 2 adjacencies, such as Layer 2
Attachment Circuits (ACs); or Layer 3 adjacencies, such as Segment Routing
(SR) Adjacency Segments (Adj-SIDs) as described in <xref target="RFC8402" format="default" sectionFormat="of" derivedContent="RFC8402"/>.</t>
      <t indent="0" pn="section-1-4">The MPLS base YANG data model serves as a basis for future development of MPLS YANG data
models covering MPLS features and subsystems that are more
sophisticated. The main
purpose is to provide essential building blocks for other YANG data models involving
different control-plane protocols and MPLS functions.</t>
      <t indent="0" pn="section-1-5">To this end, it is expected that the MPLS base data model will be augmented by
a number of other YANG modules developed by the IETF (e.g., by the TEAS and MPLS Working
Groups).</t>
      <t indent="0" pn="section-1-6">The YANG module defined in this document conforms to the Network Management Datastore
Architecture (NMDA) <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>.</t>
      <section anchor="terminology" numbered="true" toc="include" removeInRFC="false" pn="section-1.1">
        <name slugifiedName="name-terminology">Terminology</name>
        <t indent="0" pn="section-1.1-1">The terminology for describing YANG data models is found in <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/>.</t>
      </section>
      <section anchor="acronyms-and-abbreviations" numbered="true" toc="include" removeInRFC="false" pn="section-1.2">
        <name slugifiedName="name-acronyms-and-abbreviations">Acronyms and Abbreviations</name>
        <dl newline="false" spacing="normal" indent="3" pn="section-1.2-1">
          <dt pn="section-1.2-1.1">MPLS:</dt>
          <dd pn="section-1.2-1.2">Multiprotocol Label Switching</dd>
          <dt pn="section-1.2-1.3">RIB:</dt>
          <dd pn="section-1.2-1.4">Routing Information Base</dd>
          <dt pn="section-1.2-1.5">LSP:</dt>
          <dd pn="section-1.2-1.6">Label Switched Path</dd>
          <dt pn="section-1.2-1.7">LSR:</dt>
          <dd pn="section-1.2-1.8">Label Switching Router</dd>
          <dt pn="section-1.2-1.9">NHLFE:</dt>
          <dd pn="section-1.2-1.10">Next Hop Label Forwarding Entry</dd>
        </dl>
      </section>
    </section>
    <section anchor="mpls-base-model" numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-mpls-base-model">MPLS Base Model</name>
      <t indent="0" pn="section-2-1">This document describes the "ietf-mpls" YANG module, which provides base components
of the MPLS data model. It is expected that other MPLS YANG modules will
augment the "ietf-mpls" YANG module for other MPLS extensions to provision
LSPs (e.g., MPLS static, MPLS LDP, or MPLS RSVP-TE LSPs).</t>
      <section anchor="model-overview" numbered="true" toc="include" removeInRFC="false" pn="section-2.1">
        <name slugifiedName="name-model-overview">Model Overview</name>
        <t indent="0" pn="section-2.1-1">This document models MPLS-labeled routes as an
augmentation of the generic routing RIB data model as defined in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/>.
For example, IP prefix routes (e.g., routes stored in IPv4 or IPv6 RIBs) are
augmented to carry additional data to enable them for MPLS forwarding.
</t>
        <t indent="0" pn="section-2.1-2">This document also defines a new instance of the generic RIB model defined in
<xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/> to store one or more native MPLS routes (described further in
<xref target="model-design" format="default" sectionFormat="of" derivedContent="Section 2.3"/>) by extending the identity "address-family" defined in
<xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/> with a new "mpls" identity;
see <xref target="RFC8349" sectionFormat="of" section="3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8349#section-3" derivedContent="RFC8349"/>.
</t>
      </section>
      <section anchor="model-organization" numbered="true" toc="include" removeInRFC="false" pn="section-2.2">
        <name slugifiedName="name-model-organization">Model Organization</name>
        <figure anchor="fig-mpls-relation" align="left" suppress-title="false" pn="figure-1">
          <name slugifiedName="name-relationship-between-mpls-m">Relationship between MPLS Modules</name>
          <artwork name="" type="" align="left" alt="" pn="section-2.2-1.1">
  Routing          +---------------+    v: import
  YANG module      | ietf-routing  |    o: augment
                   +---------------+
                       o
                       |
                       v
  MPLS base        +-----------+    v: import
  YANG module      | ietf-mpls |    o: augment
                   +-----------+
                      o      o------+
                      |              \
                      v               v
              +-------------------+ +---------------------+
  MPLS static | ietf-mpls-static@ | | ietf-mpls-ldp.yang@ | . .
  LSP YANG    +-------------------+ +---------------------+
  module

        @: not in this document; shown for illustration only</artwork>
        </figure>
        <t indent="0" pn="section-2.2-2">The "ietf-mpls" YANG module defines the following identities:</t>
        <dl newline="true" spacing="normal" indent="3" pn="section-2.2-3">
          <dt pn="section-2.2-3.1">mpls:</dt>
          <dd pn="section-2.2-3.2">Identity that extends the "address-family" identity of RIB
          instances, as defined in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/>, to represent the native MPLS RIB instance.</dd>
          <dt pn="section-2.2-3.3">label-block-alloc-mode:</dt>
          <dd pn="section-2.2-3.4">A base YANG identity for one or more supported label-block allocation modes.</dd>
        </dl>
        <t indent="0" pn="section-2.2-4">The "ietf-mpls" YANG module contains the following high-level types
        and groupings:</t>
        <dl newline="true" spacing="normal" indent="3" pn="section-2.2-5">
          <dt pn="section-2.2-5.1">mpls-operations-type:</dt>
          <dd pn="section-2.2-5.2">An enumeration type that represents support for possible MPLS operation types (impose-and-forward, pop-and-forward, pop-impose-and-forward, and pop-and-lookup).</dd>
          <dt pn="section-2.2-5.3">nhlfe-role:</dt>
          <dd pn="section-2.2-5.4">An enumeration type that represents the role of the 
Next Hop Label Forwarding Entry (NHLFE).</dd>
          <dt pn="section-2.2-5.5">nhlfe-single-contents:</dt>
          <dd pn="section-2.2-5.6">A YANG grouping that describes a single NHLFE and its associated parameters as described in the MPLS architecture document <xref target="RFC3031" format="default" sectionFormat="of" derivedContent="RFC3031"/>. This grouping is
specific to the case when a single next hop is associated with the route.</dd>
        </dl>
        <t indent="0" pn="section-2.2-6">The NHLFE is used when forwarding a labeled packet.  It contains the following information:</t>
        <ol spacing="normal" type="1" indent="adaptive" start="1" pn="section-2.2-7">
          <li pn="section-2.2-7.1" derivedCounter="1.">The packet's next hop. For "nhlfe-single-contents", only a single next hop is expected, while for
"nhlfe-multiple-contents", multiple next hops are possible.</li>
          <li pn="section-2.2-7.2" derivedCounter="2.">
            <t indent="0" pn="section-2.2-7.2.1">The operation to perform on the packet's label stack. This
        can be one of the following operations:</t>
            <ol type="%c." indent="adaptive" spacing="normal" start="1" pn="section-2.2-7.2.2">
      <li pn="section-2.2-7.2.2.1" derivedCounter="a.">Replace the label at the top of the label stack with one or more
   specified new labels.</li>
              <li pn="section-2.2-7.2.2.2" derivedCounter="b.">Pop the label stack.</li>
              <li pn="section-2.2-7.2.2.3" derivedCounter="c.">Replace the label at the top of the label stack with a
   specified new label, and then push one or more specified new
   labels onto the label stack.</li>
              <li pn="section-2.2-7.2.2.4" derivedCounter="d.">Push one or more labels onto an unlabeled packet.</li>
            </ol>
          </li>
        </ol>
        <t indent="0" pn="section-2.2-8">The NHLFE may also contain:</t>
        <ol spacing="normal" type="1" indent="adaptive" start="1" pn="section-2.2-9">
  <li pn="section-2.2-9.1" derivedCounter="1.">The data-link encapsulation to use when transmitting the packet.</li>
          <li pn="section-2.2-9.2" derivedCounter="2.">The way to encode the label stack when transmitting the packet.</li>
          <li pn="section-2.2-9.3" derivedCounter="3.">Any other information needed in order to properly dispose of
     the packet.</li>
        </ol>
        <dl newline="true" spacing="normal" indent="3" pn="section-2.2-10">
          <dt pn="section-2.2-10.1">nhlfe-multiple-contents:</dt>
          <dd pn="section-2.2-10.2">A YANG grouping that describes a set of NHLFEs and their associated parameters as described in the MPLS architecture document <xref target="RFC3031" format="default" sectionFormat="of" derivedContent="RFC3031"/>. This grouping
is used when multiple next hops are associated with the route.</dd>
          <dt pn="section-2.2-10.3">interfaces-mpls:</dt>
          <dd pn="section-2.2-10.4">A YANG grouping that describes the list of MPLS-enabled interfaces on a device.</dd>
          <dt pn="section-2.2-10.5">label-blocks:</dt>
          <dd pn="section-2.2-10.6">A YANG grouping that describes the list of assigned MPLS label blocks and their properties.</dd>
          <dt pn="section-2.2-10.7">rib-mpls-properties:</dt>
          <dd pn="section-2.2-10.8">A YANG grouping for the augmentation of the generic RIB with MPLS label forwarding data as defined in <xref target="RFC3031" format="default" sectionFormat="of" derivedContent="RFC3031"/>.</dd>
          <dt pn="section-2.2-10.9">rib-active-route-mpls-input:</dt>
          <dd pn="section-2.2-10.10">A YANG grouping for the augmentation to the "active-route" RPC that is specific to the MPLS RIB instance.</dd>
        </dl>
      </section>
      <section anchor="model-design" numbered="true" toc="include" removeInRFC="false" pn="section-2.3">
        <name slugifiedName="name-model-design">Model Design</name>
        <t indent="0" pn="section-2.3-1">The MPLS routing model is based on the core routing data model defined in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/>.
<xref target="fig-mpls-rib-relation" format="default" sectionFormat="of" derivedContent="Figure 2"/> shows the extensions introduced by the MPLS base model on defined RIBs.</t>
        <figure anchor="fig-mpls-rib-relation" align="left" suppress-title="false" pn="figure-2">
          <name slugifiedName="name-relationship-between-mpls-mo">Relationship between MPLS Model and RIB Instances</name>
          <artwork name="" type="" align="left" alt="" pn="section-2.3-2.1">
                             +-----------------+
                             | MPLS base model |
                             +-----------------+
                           ____/  |  |_____  |________
                          /       |        \          \
                         /        |         \          \
                        o         o          o          +
                 +---------+  +---------+  +--------+ +-----------+ 
                 | RIB(v4) |  | RIB(v6) |  | RIB(x) | | RIB(mpls) |
                 +---------+  +---------+  +--------+ +-----------+

        +: created by the MPLS base model
        o: augmented by the MPLS base model</artwork>
        </figure>
        <t indent="0" pn="section-2.3-3">As shown in <xref target="fig-mpls-rib-relation" format="default" sectionFormat="of" derivedContent="Figure 2"/>, the MPLS base YANG data model augments
defined instances of AF RIBs with additional data that enables MPLS
forwarding for destination prefixes stored in such RIBs. For example, an IPv4 prefix
stored in RIB(v4) is augmented to carry an MPLS local label and one or more per-next-hop
remote labels to enable MPLS forwarding for such a prefix.</t>
        <t indent="0" pn="section-2.3-4">The MPLS base model also creates a separate instance of the generic RIB model
defined in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/> to store one or more MPLS
native routes that are enabled for MPLS forwarding but are not stored in one or more other AF RIBs.</t>
        <t indent="0" pn="section-2.3-5">Some examples of such native MPLS routes are:</t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.3-6">
          <li pn="section-2.3-6.1">Routes programmed by RSVP on Label Switching Routers (LSRs) along
          the path of an LSP,</li>
          <li pn="section-2.3-6.2">Routes that cross-connect an MPLS local label to a Layer 2 or
          Layer 3 Virtual Routing and Forwarding (VRF) entity,</li>
          <li pn="section-2.3-6.3">Routes that cross-connect an MPLS local label to a specific
          Layer 2
adjacency or interface, such as  Layer 2 Attachment Circuits (ACs), or</li>
          <li pn="section-2.3-6.4">Routes that cross-connect an MPLS local label to a Layer 3 adjacency or interface,
such as MPLS Segment Routing (SR) Adjacency Segments (Adj-SIDs) or SR MPLS Binding SIDs as defined in <xref target="RFC8402" format="default" sectionFormat="of" derivedContent="RFC8402"/>.</li>
        </ul>
      </section>
      <section anchor="model-tree-diagram" numbered="true" toc="include" removeInRFC="false" pn="section-2.4">
        <name slugifiedName="name-model-tree-diagram">Model Tree Diagram</name>
        <t indent="0" pn="section-2.4-1">The MPLS base tree diagram, which follows the notation defined in <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>, is shown in <xref target="fig-mpls-base-tree" format="default" sectionFormat="of" derivedContent="Figure 3"/>.</t>
        <figure anchor="fig-mpls-base-tree" align="left" suppress-title="false" pn="figure-3">
          <name slugifiedName="name-mpls-base-tree-diagram">MPLS Base Tree Diagram</name>
          <sourcecode name="" type="yangtree" markers="false" pn="section-2.4-2.1">
module: ietf-mpls
  augment /rt:routing:
    +--rw mpls
       +--rw ttl-propagate?       boolean
       +--rw mpls-label-blocks
       |  +--rw mpls-label-block* [index]
       |     +--rw index                    string
       |     +--rw start-label?             rt-types:mpls-label
       |     +--rw end-label?               rt-types:mpls-label
       |     +--rw block-allocation-mode?   identityref
       |     +--ro inuse-labels-count?      yang:gauge32
       +--rw interfaces
          +--rw interface* [name]
             +--rw name                      if:interface-ref
             +--rw mpls-enabled?             boolean
             +--rw maximum-labeled-packet?   uint32
  augment /rt:routing/rt:ribs/rt:rib/rt:routes/rt:route:
    +--ro mpls-enabled?         boolean
    +--ro mpls-local-label?     rt-types:mpls-label
    +--ro destination-prefix?   -&gt; ../mpls-local-label
    +--ro route-context?        string
  augment /rt:routing/rt:ribs/rt:rib/rt:routes/rt:route/rt:next-hop
            /rt:next-hop-options/rt:simple-next-hop:
    +--ro mpls-label-stack
       +--ro entry* [id]
          +--ro id               uint8
          +--ro label?           rt-types:mpls-label
          +--ro ttl?             uint8
          +--ro traffic-class?   uint8
  augment /rt:routing/rt:ribs/rt:rib/rt:routes/rt:route/rt:next-hop
            /rt:next-hop-options/rt:next-hop-list/rt:next-hop-list
            /rt:next-hop:
    +--ro index?              string
    +--ro backup-index?       string
    +--ro loadshare?          uint16
    +--ro role?               nhlfe-role
    +--ro mpls-label-stack
       +--ro entry* [id]
          +--ro id               uint8
          +--ro label?           rt-types:mpls-label
          +--ro ttl?             uint8
          +--ro traffic-class?   uint8
  augment /rt:routing/rt:ribs/rt:rib/rt:active-route/rt:input:
    +---w destination-address?   -&gt; ../mpls-local-label
    +---w mpls-local-label?      rt-types:mpls-label
  augment /rt:routing/rt:ribs/rt:rib/rt:active-route/rt:output
            /rt:route/rt:next-hop/rt:next-hop-options
            /rt:simple-next-hop:
    +-- mpls-label-stack
       +-- entry* [id]
          +-- id               uint8
          +-- label?           rt-types:mpls-label
          +-- ttl?             uint8
          +-- traffic-class?   uint8
  augment /rt:routing/rt:ribs/rt:rib/rt:active-route/rt:output
            /rt:route/rt:next-hop/rt:next-hop-options
            /rt:next-hop-list/rt:next-hop-list/rt:next-hop:
    +-- index?              string
    +-- backup-index?       string
    +-- loadshare?          uint16
    +-- role?               nhlfe-role
    +-- mpls-label-stack
       +-- entry* [id]
          +-- id               uint8
          +-- label?           rt-types:mpls-label
          +-- ttl?             uint8
          +-- traffic-class?   uint8</sourcecode>
        </figure>
      </section>
      <section anchor="model-yang-module" numbered="true" toc="include" removeInRFC="false" pn="section-2.5">
        <name slugifiedName="name-mpls-base-yang-module">MPLS Base YANG Module</name>
        <t indent="0" pn="section-2.5-1">This section describes the "ietf-mpls" YANG module, which provides base
components of the MPLS data model. Other YANG modules may import and augment
the MPLS base module to add feature-specific data.</t>
        <t indent="0" pn="section-2.5-2">The "ietf-mpls" YANG module imports the following YANG modules:</t>
        <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-2.5-3">
          <li pn="section-2.5-3.1">"ietf-routing" as defined in <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/></li>
          <li pn="section-2.5-3.2">"ietf-routing-types" as defined in <xref target="RFC8294" format="default" sectionFormat="of" derivedContent="RFC8294"/></li>
          <li pn="section-2.5-3.3">"ietf-yang-types" as defined in <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/></li>
          <li pn="section-2.5-3.4">"ietf-interfaces" as defined in <xref target="RFC8343" format="default" sectionFormat="of" derivedContent="RFC8343"/></li>
        </ul>
        <t indent="0" pn="section-2.5-4">This YANG module also references the following RFCs in defining the
        types, YANG groupings, and other features of the YANG module:
<xref target="RFC3031" format="default" sectionFormat="of" derivedContent="RFC3031"/>,
<xref target="RFC3032" format="default" sectionFormat="of" derivedContent="RFC3032"/>,
<xref target="RFC4090" format="default" sectionFormat="of" derivedContent="RFC4090"/>, <xref target="RFC5714" format="default" sectionFormat="of" derivedContent="RFC5714"/>, and
<xref target="RFC7424" format="default" sectionFormat="of" derivedContent="RFC7424"/>.</t>
        <figure anchor="fig-module-mpls-base" align="left" suppress-title="false" pn="figure-4">
          <name slugifiedName="name-mpls-base-yang-module-2">MPLS Base YANG Module</name>
          <sourcecode name="ietf-mpls@2020-12-18.yang" type="yang" markers="true" pn="section-2.5-5.1">
module ietf-mpls {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-mpls";

  prefix mpls;

  import ietf-routing {
    prefix rt;
    reference
      "RFC 8349: A YANG Data Model for Routing Management
       (NMDA Version)";
  }
  import ietf-routing-types {
    prefix rt-types;
    reference
      "RFC 8294: Common YANG Data Types for the Routing Area";
  }
  import ietf-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";
  }

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

     Editor:   Tarek Saad
               &lt;mailto:tsaad@juniper.net&gt;

     Editor:   Kamran Raza
               &lt;mailto:skraza@cisco.com&gt;

     Editor:   Rakesh Gandhi
               &lt;mailto:rgandhi@cisco.com&gt;

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

     Editor:   Vishnu Pavan Beeram
               &lt;mailto:vbeeram@juniper.net&gt;";
  description
    "This YANG module defines the essential components for the
     management of the MPLS subsystem.  The model fully conforms
     to the Network Management Datastore Architecture (NMDA).

     Copyright (c) 2020 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 Simplified 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 8960; see the
     RFC itself for full legal notices.";

  revision 2020-12-18 {
    description
      "Initial revision.";
    reference
      "RFC 8960: A YANG Data Model for MPLS Base";
  }

  /* Identities */

  identity mpls {
    base rt:address-family;
    description
      "This identity represents the MPLS address family.";
  }

  identity mpls-unicast {
    base mpls:mpls;
    description
      "This identity represents the MPLS unicast address family.";
  }

  identity label-block-alloc-mode {
    description
      "Base identity for label-block allocation mode.";
  }

  identity label-block-alloc-mode-manager {
    base label-block-alloc-mode;
    description
      "Label-block allocation on the reserved block
       is managed by the label manager.";
  }

  identity label-block-alloc-mode-application {
    base label-block-alloc-mode;
    description
      "Label-block allocation on the reserved block
       is managed by the application.";
  }

  /**
   * Typedefs
   */

  typedef mpls-operations-type {
    type enumeration {
      enum impose-and-forward {
        description
          "Operation to impose one or more outgoing labels and
           forward to the next hop.";
      }
      enum pop-and-forward {
        description
          "Operation to pop the incoming label and forward to the
           next hop.";
      }
      enum pop-impose-and-forward {
        description
          "Operation to pop the incoming label, impose one or more
           outgoing labels, and forward to the next hop.";
      }
      enum swap-and-forward {
        description
          "Operation to swap the incoming label with the outgoing
           label and forward to the next hop.";
      }
      enum pop-and-lookup {
        description
          "Operation to pop the incoming label and perform
           a lookup.";
      }
    }
    description
      "Types of MPLS operations.";
  }

  typedef nhlfe-role {
    type enumeration {
      enum primary {
        description
          "The next hop acts as the primary for carrying traffic.";
      }
      enum backup {
        description
          "The next hop acts as the backup.";
      }
      enum primary-and-backup {
        description
          "The next hop simultaneously acts as both the primary and
           the backup for carrying traffic.";
      }
    }
    description
      "Role of the next hop.";
  }

  grouping nhlfe-single-contents {
    description
      "A grouping that describes a single Next Hop Label Forwarding
       Entry (NHLFE) and its associated parameters as described in
       the MPLS architecture.  This grouping is specific to the case
       when a single next hop is associated with the route.";
    uses rt-types:mpls-label-stack;
  }

  grouping nhlfe-multiple-contents {
    description
      "A grouping that describes a set of NHLFEs and their
       associated parameters as described in the MPLS
       architecture.  This grouping is used when multiple next hops
       are associated with the route.";
    leaf index {
      type string;
      description
        "A user-specified identifier utilized to uniquely
         reference the next-hop entry in the next-hop list.
         The value of this index has no semantic meaning
         other than for referencing the entry.";
    }
    leaf backup-index {
      type string;
      description
        "A user-specified identifier utilized to uniquely
         reference the backup next-hop entry in the NHLFE list.
         The value of this index has no semantic meaning
         other than for referencing the entry.";
      reference
        "RFC 4090: Fast Reroute Extensions to RSVP-TE for LSP Tunnels
         RFC 5714: IP Fast Reroute Framework";
    }
    leaf loadshare {
      type uint16;
      default "1";
      description
        "This value is used to compute a load share to perform
         unequal load balancing when multiple outgoing next hops are
         specified.  A share is computed as a ratio of this number to
         the total under all next hops.";
      reference
        "RFC 3031: Multiprotocol Label Switching Architecture,
         Sections 3.11 and 3.12
         RFC 7424: Mechanisms for Optimizing Link Aggregation Group
         (LAG) and Equal-Cost Multipath (ECMP) Component Link
         Utilization in Networks, Section 5.4";
    }
    leaf role {
      type nhlfe-role;
      description
        "Role of the NHLFE.";
    }
    uses nhlfe-single-contents;
  }

  grouping interfaces-mpls {
    description
      "List of MPLS interfaces.";
    container interfaces {
      description
        "List of MPLS-enabled interfaces.";
      list interface {
        key "name";
        description
          "MPLS-enabled interface entry.";
        leaf name {
          type if:interface-ref;
          description
            "A reference to the name of an interface in the system
             that is to be enabled for MPLS.";
        }
        leaf mpls-enabled {
          type boolean;
          default "false";
          description
            "'true' if MPLS encapsulation is enabled on the
             interface.
             'false' if MPLS encapsulation is disabled on the
             interface.";
        }
        leaf maximum-labeled-packet {
          type uint32;
          units "octets";
          description
            "Maximum labeled packet size.";
          reference
            "RFC 3032: MPLS Label Stack Encoding, Section 3.2";
        }
      }
    }
  }

  grouping globals {
    description
      "MPLS global configuration grouping.";
    leaf ttl-propagate {
      type boolean;
      default "true";
      description
        "Propagate TTL between IP and MPLS.";
    }
  }

  grouping label-blocks {
    description
      "Label-block allocation grouping.";
    container mpls-label-blocks {
      description
        "Label-block allocation container.";
      list mpls-label-block {
        key "index";
        description
          "List of MPLS label blocks.";
        leaf index {
          type string;
          description
            "A user-specified identifier utilized to uniquely
             reference an MPLS label block.";
        }
        leaf start-label {
          type rt-types:mpls-label;
          must '. &lt;= ../end-label' {
            error-message "'start-label' must be less than or equal "
                        + "to 'end-label'";
          }
          description
            "Label-block start.";
        }
        leaf end-label {
          type rt-types:mpls-label;
          must '. &gt;= ../start-label' {
            error-message "'end-label' must be greater than or "
                        + "equal to 'start-label'";
          }
          description
            "Label-block end.";
        }
        leaf block-allocation-mode {
          type identityref {
            base label-block-alloc-mode;
          }
          description
            "Label-block allocation mode.";
        }
        leaf inuse-labels-count {
          when "derived-from-or-self(../block-allocation-mode, "
             + "'mpls:label-block-alloc-mode-manager')";
          type yang:gauge32;
          config false;
          description
            "Number of labels in use in the label block.";
        }
      }
    }
  }

  grouping rib-mpls-properties {
    description
      "A grouping of native MPLS RIB properties.";
    leaf destination-prefix {
      type leafref {
        path "../mpls-local-label";
      }
      description
        "MPLS destination prefix.";
    }
    leaf route-context {
      type string;
      description
        "A context associated with the native MPLS route.";
    }
  }

  grouping rib-active-route-mpls-input {
    description
      "A grouping applicable to native MPLS RIB 'active-route'
       RPC input augmentation.";
    leaf destination-address {
      type leafref {
        path "../mpls-local-label";
      }
      description
        "MPLS native 'active-route' destination.";
    }
    leaf mpls-local-label {
      type rt-types:mpls-label;
      description
        "MPLS local label.";
    }
  }

  augment "/rt:routing" {
    description
      "MPLS augmentation.";
    container mpls {
      description
        "MPLS container to be used as an augmentation target node
         for the configuration of other MPLS sub-features, e.g.,
         MPLS static Label Switched Paths (LSPs), MPLS LDP LSPs,
         and Traffic Engineering MPLS LSP Tunnels.";
      uses globals;
      uses label-blocks;
      uses interfaces-mpls;
    }
  }

  /* Augmentation of MPLS routes */

  augment "/rt:routing/rt:ribs/rt:rib/rt:routes/rt:route" {
    description
      "This augmentation is applicable to all MPLS routes.";
    leaf mpls-enabled {
      type boolean;
      default "false";
      description
        "Indicates whether MPLS is enabled for this route.";
    }
    leaf mpls-local-label {
      when "../mpls-enabled = 'true'";
      type rt-types:mpls-label;
      description
        "MPLS local label associated with the route.";
    }
    uses rib-mpls-properties {
      /* MPLS Address Family (AF) augmentation to the
         native MPLS RIB */
      when "derived-from-or-self(../../rt:address-family, "
         + "'mpls:mpls')" {
        description
          "This augment is valid only for routes of the native MPLS
           RIB.";
      }
    }
  }

  /* MPLS simple-next-hop augmentation */

  augment "/rt:routing/rt:ribs/rt:rib/rt:routes/rt:route/"
        + "rt:next-hop/rt:next-hop-options/rt:simple-next-hop" {
    description
      "Augments the 'simple-next-hop' case in IP unicast routes.";
    uses nhlfe-single-contents {
      when "/rt:routing/rt:ribs/rt:rib/rt:routes/rt:route"
         + "/mpls:mpls-enabled = 'true'";
    }
  }

  /* MPLS next-hop-list augmentation */

  augment "/rt:routing/rt:ribs/rt:rib/rt:routes/rt:route/"
        + "rt:next-hop/rt:next-hop-options/rt:next-hop-list/"
        + "rt:next-hop-list/rt:next-hop" {
    description
      "This leaf augments the 'next-hop-list' case of IP unicast
       routes.";
    uses nhlfe-multiple-contents {
      when "/rt:routing/rt:ribs/rt:rib/rt:routes/rt:route"
         + "/mpls:mpls-enabled = 'true'";
    }
  }

  /* MPLS RPC input augmentation */

  augment "/rt:routing/rt:ribs/rt:rib/rt:active-route/rt:input" {
    description
      "Input MPLS augmentation for the 'active-route' action
       statement.";
    uses rib-active-route-mpls-input {
      /* MPLS AF augmentation to the native MPLS RIB */
      when "derived-from-or-self(../rt:address-family, "
         + "'mpls:mpls')" {
        description
          "This augment is valid only for routes of the native MPLS
           RIB.";
      }
    }
  }

  /* MPLS RPC output augmentation */

  augment "/rt:routing/rt:ribs/rt:rib/rt:active-route/"
        + "rt:output/rt:route/"
        + "rt:next-hop/rt:next-hop-options/rt:simple-next-hop" {
    description
      "Output MPLS augmentation for the 'active-route' action
       statement.";
    uses nhlfe-single-contents;
  }

  augment "/rt:routing/rt:ribs/rt:rib/rt:active-route/"
        + "rt:output/rt:route/"
        + "rt:next-hop/rt:next-hop-options/rt:next-hop-list/"
        + "rt:next-hop-list/rt:next-hop" {
    description
      "Output MPLS augmentation for the 'active-route' action
       statement.";
    uses nhlfe-multiple-contents;
  }
}</sourcecode>
        </figure>
      </section>
    </section>
    <section anchor="iana-considerations" numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t indent="0" pn="section-3-1">This document registers the following URI in the "ns" subregistry of the "IETF XML Registry"
<xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>.</t>
      <dl newline="false" spacing="compact" indent="3" pn="section-3-2">
        <dt pn="section-3-2.1">URI:</dt>
        <dd pn="section-3-2.2">urn:ietf:params:xml:ns:yang:ietf-mpls</dd>
        <dt pn="section-3-2.3">Registrant Contact:</dt>
        <dd pn="section-3-2.4">The MPLS WG of the IETF.</dd>
        <dt pn="section-3-2.5">XML:</dt>
        <dd pn="section-3-2.6">N/A; the requested URI is an XML namespace.</dd>
      </dl>
      <t indent="0" pn="section-3-3">This document registers the following 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-3-4">
        <dt pn="section-3-4.1">Name:</dt>
        <dd pn="section-3-4.2">ietf-mpls</dd>
        <dt pn="section-3-4.3">Namespace:</dt>
        <dd pn="section-3-4.4">urn:ietf:params:xml:ns:yang:ietf-mpls</dd>
        <dt pn="section-3-4.5">Prefix:</dt>
        <dd pn="section-3-4.6">mpls</dd>
        <dt pn="section-3-4.7">Reference:</dt>
        <dd pn="section-3-4.8">RFC 8960</dd>
      </dl>
    </section>
    <section anchor="security-considerations" 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>
      <dl newline="true" spacing="normal" indent="3" pn="section-4-4">
        <dt pn="section-4-4.1">"/rt:routing/mpls:mpls/mpls:label-blocks":</dt>
        <dd pn="section-4-4.2">There are data
      nodes under this path that are writable, such as "start-label" and
      "end-label". Write operations to those data nodes may result in
      disruption to existing traffic.</dd>
      </dl>
      <t indent="0" pn="section-4-5">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>
      <dl newline="true" spacing="normal" indent="3" pn="section-4-6">
        <dt pn="section-4-6.1">"/rt:routing/rt:ribs/rt:rib/rt:routes/rt:route/rt:next-hop/rt:next-hop-options/rt:next-hop-list/rt:next-hop-list/rt:next-hop" and
"/rt:routing/rt:ribs/rt:rib/rt:active-route/rt:output/rt:route/rt:next-hop/rt:next-hop-options/rt:simple-next-hop":</dt>
        <dd pn="section-4-6.2">These
two paths are augmented by additional MPLS leafs defined in this model. Access
to this information may disclose the next-hop information for the prefix route and/or other information.</dd>
      </dl>
      <t indent="0" pn="section-4-7">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>
      <dl newline="true" spacing="normal" indent="3" pn="section-4-8">
        <dt pn="section-4-8.1">"/rt:routing/rt:ribs/rt:rib/rt:active-route/rt:input" and "/rt:routing/rt:ribs/rt:rib/rt:active-route/rt:output/rt:route":</dt>
        <dd pn="section-4-8.2">These two paths are augmented
by additional MPLS data nodes that are defined in this model. Access to
those paths may disclose information about per-prefix routes and/or other
information; such disclosure may be used for further attacks.</dd>
      </dl>
      <t indent="0" pn="section-4-9">The security considerations spelled out in <xref target="RFC3031" format="default" sectionFormat="of" derivedContent="RFC3031"/> and <xref target="RFC3032" format="default" sectionFormat="of" derivedContent="RFC3032"/> apply for this document as well.</t>
    </section>
  </middle>
  <back>
    <references pn="section-5">
      <name slugifiedName="name-references">References</name>
      <references pn="section-5.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC3032" target="https://www.rfc-editor.org/info/rfc3032" quoteTitle="true" derivedAnchor="RFC3032">
          <front>
            <title>MPLS Label Stack Encoding</title>
            <author initials="E." surname="Rosen" fullname="E. Rosen">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="D." surname="Tappan" fullname="D. Tappan">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="G." surname="Fedorkow" fullname="G. Fedorkow">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="Y." surname="Rekhter" fullname="Y. Rekhter">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="D." surname="Farinacci" fullname="D. Farinacci">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="T." surname="Li" fullname="T. Li">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Conta" fullname="A. Conta">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2001" month="January"/>
            <abstract>
              <t indent="0">This document specifies the encoding to be used by an LSR in order to transmit labeled packets on Point-to-Point Protocol (PPP) data links, on LAN data links, and possibly on other data links as well.  This document also specifies rules and procedures for processing the various fields of the label stack encoding.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="3032"/>
          <seriesInfo name="DOI" value="10.17487/RFC3032"/>
        </reference>
        <reference anchor="RFC3688" target="https://www.rfc-editor.org/info/rfc3688" quoteTitle="true" derivedAnchor="RFC3688">
          <front>
            <title>The IETF XML Registry</title>
            <author initials="M." surname="Mealling" fullname="M. Mealling">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2004" month="January"/>
            <abstract>
              <t indent="0">This document describes an IANA maintained registry for IETF standards which use Extensible Markup Language (XML) related items such as Namespaces, Document Type Declarations (DTDs), Schemas, and Resource Description Framework (RDF) Schemas.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="81"/>
          <seriesInfo name="RFC" value="3688"/>
          <seriesInfo name="DOI" value="10.17487/RFC3688"/>
        </reference>
        <reference anchor="RFC6020" target="https://www.rfc-editor.org/info/rfc6020" quoteTitle="true" derivedAnchor="RFC6020">
          <front>
            <title>YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)</title>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2010" month="October"/>
            <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 initials="R." surname="Enns" fullname="R. Enns" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Schoenwaelder" fullname="J. Schoenwaelder" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Bierman" fullname="A. Bierman" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2011" month="June"/>
            <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 initials="M." surname="Wasserman" fullname="M. Wasserman">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2011" month="June"/>
            <abstract>
              <t indent="0">This document describes a method for invoking and running the Network Configuration Protocol (NETCONF) within a Secure Shell (SSH) session as an SSH subsystem.  This document obsoletes RFC 4742.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6242"/>
          <seriesInfo name="DOI" value="10.17487/RFC6242"/>
        </reference>
        <reference anchor="RFC6991" target="https://www.rfc-editor.org/info/rfc6991" quoteTitle="true" derivedAnchor="RFC6991">
          <front>
            <title>Common YANG Data Types</title>
            <author initials="J." surname="Schoenwaelder" fullname="J. Schoenwaelder" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2013" month="July"/>
            <abstract>
              <t indent="0">This document introduces a collection of common data types to be used with the YANG data modeling language.  This document obsoletes RFC 6021.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6991"/>
          <seriesInfo name="DOI" value="10.17487/RFC6991"/>
        </reference>
        <reference anchor="RFC7950" target="https://www.rfc-editor.org/info/rfc7950" quoteTitle="true" derivedAnchor="RFC7950">
          <front>
            <title>The YANG 1.1 Data Modeling Language</title>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2016" month="August"/>
            <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 initials="A." surname="Bierman" fullname="A. Bierman">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="K." surname="Watsen" fullname="K. Watsen">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2017" month="January"/>
            <abstract>
              <t indent="0">This document describes an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8040"/>
          <seriesInfo name="DOI" value="10.17487/RFC8040"/>
        </reference>
        <reference anchor="RFC8294" target="https://www.rfc-editor.org/info/rfc8294" quoteTitle="true" derivedAnchor="RFC8294">
          <front>
            <title>Common YANG Data Types for the Routing Area</title>
            <author initials="X." surname="Liu" fullname="X. Liu">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="Y." surname="Qu" fullname="Y. Qu">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Lindem" fullname="A. Lindem">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Hopps" fullname="C. Hopps">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="L." surname="Berger" fullname="L. Berger">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2017" month="December"/>
            <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 initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="L." surname="Berger" fullname="L. Berger" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="March"/>
            <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 initials="A." surname="Bierman" fullname="A. Bierman">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="March"/>
            <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 initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Schoenwaelder" fullname="J. Schoenwaelder">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="P." surname="Shafer" fullname="P. Shafer">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="K." surname="Watsen" fullname="K. Watsen">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="R." surname="Wilton" fullname="R. Wilton">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="March"/>
            <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 initials="M." surname="Bjorklund" fullname="M. Bjorklund">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="March"/>
            <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 initials="L." surname="Lhotka" fullname="L. Lhotka">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Lindem" fullname="A. Lindem">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="Y." surname="Qu" fullname="Y. Qu">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="March"/>
            <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="RFC8402" target="https://www.rfc-editor.org/info/rfc8402" quoteTitle="true" derivedAnchor="RFC8402">
          <front>
            <title>Segment Routing Architecture</title>
            <author initials="C." surname="Filsfils" fullname="C. Filsfils" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S." surname="Previdi" fullname="S. Previdi" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="L." surname="Ginsberg" fullname="L. Ginsberg">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="B." surname="Decraene" fullname="B. Decraene">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S." surname="Litkowski" fullname="S. Litkowski">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="R." surname="Shakir" fullname="R. Shakir">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="July"/>
            <abstract>
              <t indent="0">Segment Routing (SR) leverages the source routing paradigm.  A node steers a packet through an ordered list of instructions, called "segments".  A segment can represent any instruction, topological or service based.  A segment can have a semantic local to an SR node or global within an SR domain.  SR provides a mechanism that allows a flow to be restricted to a specific topological path, while maintaining per-flow state only at the ingress node(s) to the SR domain.</t>
              <t indent="0">SR can be directly applied to the MPLS architecture with no change to the forwarding plane.  A segment is encoded as an MPLS label.  An ordered list of segments is encoded as a stack of labels.  The segment to process is on the top of the stack.  Upon completion of a segment, the related label is popped from the stack.</t>
              <t indent="0">SR can be applied to the IPv6 architecture, with a new type of routing header.  A segment is encoded as an IPv6 address.  An ordered list of segments is encoded as an ordered list of IPv6 addresses in the routing header.  The active segment is indicated by the Destination Address (DA) of the packet.  The next active segment is indicated by a pointer in the new routing header.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8402"/>
          <seriesInfo name="DOI" value="10.17487/RFC8402"/>
        </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 initials="E." surname="Rescorla" fullname="E. Rescorla">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2018" month="August"/>
            <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>
      </references>
      <references pn="section-5.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="RFC3031" target="https://www.rfc-editor.org/info/rfc3031" quoteTitle="true" derivedAnchor="RFC3031">
          <front>
            <title>Multiprotocol Label Switching Architecture</title>
            <author initials="E." surname="Rosen" fullname="E. Rosen">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Viswanathan" fullname="A. Viswanathan">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="R." surname="Callon" fullname="R. Callon">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2001" month="January"/>
            <abstract>
              <t indent="0">This document specifies the architecture for Multiprotocol Label Switching (MPLS).  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="3031"/>
          <seriesInfo name="DOI" value="10.17487/RFC3031"/>
        </reference>
        <reference anchor="RFC4090" target="https://www.rfc-editor.org/info/rfc4090" quoteTitle="true" derivedAnchor="RFC4090">
          <front>
            <title>Fast Reroute Extensions to RSVP-TE for LSP Tunnels</title>
            <author initials="P." surname="Pan" fullname="P. Pan" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="G." surname="Swallow" fullname="G. Swallow" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Atlas" fullname="A. Atlas" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2005" month="May"/>
            <abstract>
              <t indent="0">This document defines RSVP-TE extensions to establish backup label-switched path (LSP) tunnels for local repair of LSP tunnels.  These mechanisms enable the re-direction of traffic onto backup LSP tunnels in 10s of milliseconds, in the event of a failure.</t>
              <t indent="0">Two methods are defined here.  The one-to-one backup method creates detour LSPs for each protected LSP at each potential point of local repair.  The facility backup method creates a bypass tunnel to protect a potential failure point; by taking advantage of MPLS label stacking, this bypass tunnel can protect a set of LSPs that have similar backup constraints.  Both methods can be used to protect links and nodes during network failure.  The described behavior and extensions to RSVP allow nodes to implement either method or both and to interoperate in a mixed network.  [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4090"/>
          <seriesInfo name="DOI" value="10.17487/RFC4090"/>
        </reference>
        <reference anchor="RFC5714" target="https://www.rfc-editor.org/info/rfc5714" quoteTitle="true" derivedAnchor="RFC5714">
          <front>
            <title>IP Fast Reroute Framework</title>
            <author initials="M." surname="Shand" fullname="M. Shand">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S." surname="Bryant" fullname="S. Bryant">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2010" month="January"/>
            <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="RFC7424" target="https://www.rfc-editor.org/info/rfc7424" quoteTitle="true" derivedAnchor="RFC7424">
          <front>
            <title>Mechanisms for Optimizing Link Aggregation Group (LAG) and Equal-Cost Multipath (ECMP) Component Link Utilization in Networks</title>
            <author initials="R." surname="Krishnan" fullname="R. Krishnan">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="L." surname="Yong" fullname="L. Yong">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Ghanwani" fullname="A. Ghanwani">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="N." surname="So" fullname="N. So">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="B." surname="Khasnabish" fullname="B. Khasnabish">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2015" month="January"/>
            <abstract>
              <t indent="0">Demands on networking infrastructure are growing exponentially due to bandwidth-hungry applications such as rich media applications and inter-data-center communications.  In this context, it is important to optimally use the bandwidth in wired networks that extensively use link aggregation groups and equal-cost multipaths as techniques for bandwidth scaling.  This document explores some of the mechanisms useful for achieving this.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7424"/>
          <seriesInfo name="DOI" value="10.17487/RFC7424"/>
        </reference>
        <reference anchor="RFC7951" target="https://www.rfc-editor.org/info/rfc7951" quoteTitle="true" derivedAnchor="RFC7951">
          <front>
            <title>JSON Encoding of Data Modeled with YANG</title>
            <author initials="L." surname="Lhotka" fullname="L. Lhotka">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2016" month="August"/>
            <abstract>
              <t indent="0">This document defines encoding rules for representing configuration data, state data, parameters of Remote Procedure Call (RPC) operations or actions, and notifications defined using YANG as JavaScript Object Notation (JSON) text.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7951"/>
          <seriesInfo name="DOI" value="10.17487/RFC7951"/>
        </reference>
      </references>
    </references>
    <section anchor="appendix-a-data-tree-instance-example" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-data-tree-instance-example">Data Tree Instance Example</name>
      <t indent="0" pn="section-appendix.a-1">A simple network setup is shown in <xref target="fig-example" format="default" sectionFormat="of" derivedContent="Figure 5"/>.  R1 runs the IS-IS routing
protocol and learns about the reachability of two IPv4 prefixes
(P1: 198.51.100.1/32 and P2: 198.51.100.2/32) and two IPv6 prefixes 
(P3: 2001:db8:0:10::1/128 and P4: 2001:db8:0:10::2/128).  We also assume that
R1 learns about local and remote MPLS label bindings for each prefix
using IS-IS (e.g., using Segment Routing (SR) extensions).</t>
      <figure anchor="fig-example" align="left" suppress-title="false" pn="figure-5">
        <name slugifiedName="name-example-of-network-configur">Example of Network Configuration</name>
        <artwork name="" type="" align="left" alt="" pn="section-appendix.a-2.1">
State on R1:
============
    IPv4 Prefix           MPLS Label
P1: 198.51.100.1/32       16001
P2: 198.51.100.2/32       16002

    IPv6 Prefix           MPLS Label
P3: 2001:db8:0:10::1/128  16003
P4: 2001:db8:0:10::2/128  16004

RSVP MPLS LSPv4-Tunnel:
 Source:        198.51.100.3
 Destination:   198.51.100.4
 Tunnel-ID:     10
 LSP-ID:        1
                               192.0.2.5/30
                               2001:db8:0:1::1/64
                              eth0
                              +---
                             /
                        +-----+
                        | R1  |
                        +-----+
                             \
                              +---
                              eth1
                               192.0.2.13/30
                               2001:db8:0:2::1/64</artwork>
      </figure>
      <t indent="0" pn="section-appendix.a-3">The instance data tree could then be 
illustrated as shown in <xref target="fib-ribs" format="default" sectionFormat="of" derivedContent="Figure 6"/>, using JSON format <xref target="RFC7951" format="default" sectionFormat="of" derivedContent="RFC7951"/>:</t>
      <figure anchor="fib-ribs" align="left" suppress-title="false" pn="figure-6">
        <name slugifiedName="name-instance-data-tree-example">Instance Data Tree Example</name>
        <sourcecode name="" type="json" markers="false" pn="section-appendix.a-4.1">
{
  "ietf-routing:routing":{
    "ribs":{
      "rib":[
        {
          "name":"RIB-V4",
          "address-family":
          "ietf-ipv4-unicast-routing:v4ur:ipv4-unicast",
          "routes":{
            "route":[
              {
                "next-hop":{
                  "outgoing-interface":"eth0",
                  "ietf-mpls:mpls-label-stack":{
                    "entry":[
                      {
                        "id":1,
                        "label":16001,
                        "ttl":255
                      }
                    ]
                  },
                  "ietf-ipv4-unicast-routing:next-hop-address":
                  "192.0.2.5"
                },
                "source-protocol":"ietf-isis:isis",
                "ietf-mpls:mpls-enabled":true,
                "ietf-mpls:mpls-local-label":16001,
                "ietf-ipv4-unicast-routing:destination-prefix":
                "198.51.100.1/32",
                "ietf-mpls:route-context":"SID-IDX:1"
              },
              {
                "next-hop":{
                  "next-hop-list":{
                    "next-hop":[
                      {
                        "outgoing-interface":"eth0",
                        "ietf-mpls:index":"1",
                        "ietf-mpls:backup-index":"2",
                        "ietf-mpls:role":"primary-and-backup",
                        "ietf-mpls:mpls-label-stack":{
                          "entry":[
                            {
                              "id":1,
                              "label":16002,
                              "ttl":255
                            }
                          ]
                        },
                        "ietf-ipv4-unicast-routing:address":
                        "192.0.2.5"
                      },
                      {
                        "outgoing-interface":"eth1",
                        "ietf-mpls:index":"2",
                        "ietf-mpls:backup-index":"1",
                        "ietf-mpls:role":"primary-and-backup",
                        "ietf-mpls:mpls-label-stack":{
                          "entry":[
                            {
                              "id":1,
                              "label":16002,
                              "ttl":255
                            }
                          ]
                        },
                        "ietf-ipv4-unicast-routing:address":
                        "192.0.2.13"
                      }
                    ]
                  }
                },
                "source-protocol":"ietf-isis:isis",
                "ietf-mpls:mpls-enabled":true,
                "ietf-mpls:mpls-local-label":16002,
                "ietf-ipv4-unicast-routing:destination-prefix":
                "198.51.100.2/32",
                "ietf-mpls:route-context":"SID-IDX:2"
              }
            ]
          }
        },
        {
          "name":"RIB-V6",
          "address-family":
          "ietf-ipv6-unicast-routing:v6ur:ipv6-unicast",
          "routes":{
            "route":[
              {
                "next-hop":{
                  "outgoing-interface":"eth0",
                  "ietf-mpls:mpls-label-stack":{
                    "entry":[
                      {
                        "id":1,
                        "label":16003,
                        "ttl":255
                      }
                    ]
                  },
                  "ietf-ipv6-unicast-routing:next-hop-address":
                  "2001:db8:0:1::1"
                },
                "source-protocol":"ietf-isis:isis",
                "ietf-mpls:mpls-enabled":true,
                "ietf-mpls:mpls-local-label":16003,
                "ietf-ipv6-unicast-routing:destination-prefix":
                "2001:db8:0:10::1/128",
                "ietf-mpls:route-context":"SID-IDX:3"
              },
              {
                "next-hop":{
                  "next-hop-list":{
                    "next-hop":[
                      {
                        "outgoing-interface":"eth0",
                        "ietf-mpls:index":"1",
                        "ietf-mpls:backup-index":"2",
                        "ietf-mpls:role":"primary-and-backup",
                        "ietf-mpls:mpls-label-stack":{
                          "entry":[
                            {
                              "id":1,
                              "label":16004,
                              "ttl":255
                            }
                          ]
                        },
                        "ietf-ipv6-unicast-routing:address":
                        "2001:db8:0:1::1"
                      },
                      {
                        "outgoing-interface":"eth1",
                        "ietf-mpls:index":"2",
                        "ietf-mpls:backup-index":"1",
                        "ietf-mpls:role":"primary-and-backup",
                        "ietf-mpls:mpls-label-stack":{
                          "entry":[
                            {
                              "id":1,
                              "label":16004,
                              "ttl":255
                            }
                          ]
                        },
                        "ietf-ipv6-unicast-routing:address":
                        "2001:db8:0:2::1"
                      }
                    ]
                  }
                },
                "source-protocol":"ietf-isis:isis",
                "ietf-mpls:mpls-enabled":true,
                "ietf-mpls:mpls-local-label":16004,
                "ietf-ipv6-unicast-routing:destination-prefix":
                "2001:db8:0:10::2/128",
                "ietf-mpls:route-context":"SID-IDX:4"
              }
            ]
          }
        },
        {
          "name":"RIB-MPLS",
          "address-family":"ietf-mpls:mpls:mpls",
          "routes":{
            "route":[
              {
                "next-hop":{
                  "outgoing-interface":"eth0",
                  "ietf-mpls:mpls-label-stack":{
                    "entry":[
                      {
                        "id":1,
                        "label":24002,
                        "ttl":255
                      }
                    ]
                  },
                  "ietf-ipv4-unicast-routing:next-hop-address":
                  "192.0.2.5"
                },
                "source-protocol":"ietf-rsvp:rsvp",
                "ietf-mpls:mpls-enabled":true,
                "ietf-mpls:mpls-local-label":24001,
                "ietf-mpls:destination-prefix":"24001",
                "ietf-mpls:route-context":
                "RSVP Src:198.51.100.3,Dst:198.51.100.4,T:10,L:1"
              }
            ]
          }
        }
      ]
    },
    "ietf-mpls:mpls":{
      "mpls-label-blocks":{
        "mpls-label-block":[
          {
           "index":"mpls-srgb-label-block",
           "start-label":16000,
           "end-label":16500,
           "block-allocation-mode":
           "ietf-mpls:label-block-alloc-mode-manager"
          }
        ]
      },
      "interfaces":{
        "interface":[
          {
            "name":"eth0",
            "mpls-enabled":true,
            "maximum-labeled-packet":1488
          },
          {
            "name":"eth1",
            "mpls-enabled":true,
            "maximum-labeled-packet":1488
          }
        ]
      }
    }
  }
}</sourcecode>
      </figure>
    </section>
    <section anchor="acknowledgments" numbered="false" toc="include" removeInRFC="false" pn="section-appendix.b">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.b-1">The authors would like to thank <contact fullname="Xia Chen"/> for
      her contributions to the early draft revisions of this document.</t>
    </section>
    <section anchor="contributors" numbered="false" toc="include" removeInRFC="false" pn="section-appendix.c">
      <name slugifiedName="name-contributors">Contributors</name>
      <contact fullname="Igor Bryskin">
        <organization showOnFrontPage="true">Huawei Technologies</organization>
        <address>
          <postal>
            <street/>
            <city/>
            <region/>
            <code/>
            <country/>
          </postal>
          <email>i_bryskin@yahoo.com</email>
        </address>
      </contact>
      <contact fullname="Himanshu Shah">
        <organization showOnFrontPage="true">Ciena</organization>
        <address>
          <postal>
            <street/>
            <city/>
            <region/>
            <code/>
            <country/>
          </postal>
          <email>hshah@ciena.com</email>
        </address>
      </contact>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.d">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author initials="T." surname="Saad" fullname="Tarek Saad">
        <organization showOnFrontPage="true">Juniper Networks</organization>
        <address>
          <email>tsaad@juniper.net</email>
        </address>
      </author>
      <author initials="K." surname="Raza" fullname="Kamran Raza">
        <organization showOnFrontPage="true">Cisco Systems, Inc.</organization>
        <address>
          <email>skraza@cisco.com</email>
        </address>
      </author>
      <author initials="R." surname="Gandhi" fullname="Rakesh Gandhi">
        <organization showOnFrontPage="true">Cisco Systems, Inc.</organization>
        <address>
          <email>rgandhi@cisco.com</email>
        </address>
      </author>
      <author initials="X." surname="Liu" fullname="Xufeng Liu">
        <organization showOnFrontPage="true">Volta Networks</organization>
        <address>
          <email>xufeng.liu.ietf@gmail.com</email>
        </address>
      </author>
      <author initials="V." surname="Beeram" fullname="Vishnu Pavan Beeram">
        <organization showOnFrontPage="true">Juniper Networks</organization>
        <address>
          <email>vbeeram@juniper.net</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
