<?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-spring-sr-yang-30" indexInclude="true" ipr="trust200902" number="9020" prepTime="2021-05-26T19:07:49" scripts="Common,Latin" sortRefs="true" submissionType="IETF" symRefs="true" tocDepth="4" tocInclude="true" xml:lang="en">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-spring-sr-yang-30" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9020" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="SR YANG Data Model">YANG Data Model for Segment Routing</title>
    <seriesInfo name="RFC" value="9020" stream="IETF"/>
    <author fullname="Stephane Litkowski" initials="S" surname="Litkowski">
      <organization showOnFrontPage="true">Cisco Systems</organization>
      <address>
        <email>slitkows.ietf@gmail.com</email>
      </address>
    </author>
    <author fullname="Yingzhen Qu" initials="Y" surname="Qu">
      <organization showOnFrontPage="true">Futurewei</organization>
      <address>
        <email>yingzhen.qu@futurewei.com</email>
      </address>
    </author>
    <author fullname="Acee Lindem" initials="A" surname="Lindem">
      <organization showOnFrontPage="true">Cisco Systems</organization>
      <address>
        <postal>
          <street>301 Mindenhall Way</street>
          <city>Cary</city>
          <region>NC</region>
          <code>27513</code>
          <country>United States of America</country>
        </postal>
        <email>acee@cisco.com</email>
      </address>
    </author>
    <author fullname="Pushpasis Sarkar" initials="P" surname="Sarkar">
      <organization showOnFrontPage="true">VMware, Inc</organization>
      <address>
        <email>pushpasis.ietf@gmail.com</email>
      </address>
    </author>
    <author fullname="Jeff Tantsura" initials="J" surname="Tantsura">
      <organization showOnFrontPage="true">Juniper Networks</organization>
      <address>
        <email>jefftant.ietf@gmail.com</email>
      </address>
    </author>
    <date month="05" year="2021"/>
    <area/>
    <workgroup>SPRING Working Group</workgroup>
    <keyword>mpls</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">
   This document defines three YANG data models.  The first is for
   Segment Routing (SR) configuration and operation, which is to be
   augmented by different Segment Routing data planes.  The next is a
   YANG data model that defines a collection of generic types and groupings
   for SR.  The third module defines the configuration and operational states
   for the Segment Routing MPLS data plane.

      </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/rfc9020" 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) 2021 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>
          </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-terminology-and-notation">Terminology and Notation</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" keepWithNext="true" 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-tree-diagram">Tree Diagram</xref></t>
              </li>
              <li pn="section-toc.1-1.2.2.2">
                <t indent="0" keepWithNext="true" 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-prefixes-in-data-node-names">Prefixes in Data Node Names</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-design-of-the-data-model">Design of the Data Model</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-configuration">Configuration</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-igp-control-plane-configura">IGP Control-Plane Configuration</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-igp-interface-configuration">IGP Interface Configuration</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2.1.2">
                  <li pn="section-toc.1-1.5.2.1.2.1">
                    <t indent="0" pn="section-toc.1-1.5.2.1.2.1.1"><xref derivedContent="5.1.1" format="counter" sectionFormat="of" target="section-5.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-adjacency-sid-adj-sid-prope">Adjacency SID (Adj-SID) Properties</xref></t>
                    <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.5.2.1.2.1.2">
                      <li pn="section-toc.1-1.5.2.1.2.1.2.1">
                        <t indent="0" pn="section-toc.1-1.5.2.1.2.1.2.1.1"><xref derivedContent="5.1.1.1" format="counter" sectionFormat="of" target="section-5.1.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-bundling">Bundling</xref></t>
                      </li>
                      <li pn="section-toc.1-1.5.2.1.2.1.2.2">
                        <t indent="0" pn="section-toc.1-1.5.2.1.2.1.2.2.1"><xref derivedContent="5.1.1.2" format="counter" sectionFormat="of" target="section-5.1.1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-protection">Protection</xref></t>
                      </li>
                    </ul>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-state-data">State Data</xref></t>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-notifications">Notifications</xref></t>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="8" format="counter" sectionFormat="of" target="section-8"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-yang-modules">YANG Modules</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.8.2">
              <li pn="section-toc.1-1.8.2.1">
                <t indent="0" pn="section-toc.1-1.8.2.1.1"><xref derivedContent="8.1" format="counter" sectionFormat="of" target="section-8.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-yang-module-for-segment-rou">YANG Module for Segment Routing</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.2">
                <t indent="0" pn="section-toc.1-1.8.2.2.1"><xref derivedContent="8.2" format="counter" sectionFormat="of" target="section-8.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-yang-module-for-segment-rout">YANG Module for Segment Routing Common Types</xref></t>
              </li>
              <li pn="section-toc.1-1.8.2.3">
                <t indent="0" pn="section-toc.1-1.8.2.3.1"><xref derivedContent="8.3" format="counter" sectionFormat="of" target="section-8.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-yang-module-for-segment-routi">YANG Module for Segment Routing MPLS</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="9" format="counter" sectionFormat="of" target="section-9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.10">
            <t indent="0" pn="section-toc.1-1.10.1"><xref derivedContent="10" format="counter" sectionFormat="of" target="section-10"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.11">
            <t indent="0" pn="section-toc.1-1.11.1"><xref derivedContent="11" format="counter" sectionFormat="of" target="section-11"/>. <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.11.2">
              <li pn="section-toc.1-1.11.2.1">
                <t indent="0" pn="section-toc.1-1.11.2.1.1"><xref derivedContent="11.1" format="counter" sectionFormat="of" target="section-11.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.11.2.2">
                <t indent="0" pn="section-toc.1-1.11.2.2.1"><xref derivedContent="11.2" format="counter" sectionFormat="of" target="section-11.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.12">
            <t indent="0" pn="section-toc.1-1.12.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-configuration-examples">Configuration Examples</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.12.2">
              <li pn="section-toc.1-1.12.2.1">
                <t indent="0" pn="section-toc.1-1.12.2.1.1"><xref derivedContent="A.1" format="counter" sectionFormat="of" target="section-a.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sr-mpls-with-ipv4">SR-MPLS with IPv4</xref></t>
              </li>
              <li pn="section-toc.1-1.12.2.2">
                <t indent="0" pn="section-toc.1-1.12.2.2.1"><xref derivedContent="A.2" format="counter" sectionFormat="of" target="section-a.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sr-mpls-with-ipv6">SR-MPLS with IPv6</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.13">
            <t indent="0" pn="section-toc.1-1.13.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgements">Acknowledgements</xref></t>
          </li>
          <li pn="section-toc.1-1.14">
            <t indent="0" pn="section-toc.1-1.14.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.c"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section anchor="introduction" toc="include" numbered="true" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">
          This document defines three YANG data models
          <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/>.  The first one is for
          Segment Routing (SR) <xref target="RFC8402" format="default" sectionFormat="of" derivedContent="RFC8402"/>
          configuration and operation. 
          This document does not define the IGP extensions to support SR, but the second 
	  module defines generic
          groupings to be reused by IGP extension modules. The reason for this design choice
	  is to not require implementations to support all IGP extensions. For example, an implementation
	  may support the IS-IS extension but not the OSPF extension.
	  The third YANG data model
          defines a module that is intended to be used on network
          elements to configure or operate the SR MPLS data
          plane <xref target="RFC8660" format="default" sectionFormat="of" derivedContent="RFC8660"/>.
      </t>
      <t indent="0" pn="section-1-2">The YANG modules in this document conform to the Network Management
        Datastore Architecture (NMDA) <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>.
      </t>
    </section>
    <section anchor="term" toc="include" numbered="true" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-terminology-and-notation">Terminology and Notation</name>
      <t indent="0" pn="section-2-1">The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
        "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as
        described in BCP 14 <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/>
        when, and only when, they appear in all capitals, as shown here.</t>
      <section anchor="tree-info" toc="include" numbered="true" removeInRFC="false" pn="section-2.1">
        <name slugifiedName="name-tree-diagram">Tree Diagram</name>
        <t indent="0" pn="section-2.1-1">Tree diagrams used in this document follow the notation defined in
      <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.</t>
      </section>
      <section anchor="sec.prefixes" numbered="true" toc="include" removeInRFC="false" pn="section-2.2">
        <name slugifiedName="name-prefixes-in-data-node-names">Prefixes in Data Node Names</name>
        <t indent="0" pn="section-2.2-1">In this document, names of data nodes, actions, and other
        data model objects are often used without a prefix, as long as
        it is clear from the context in which YANG module each name is
        defined. Otherwise, names are prefixed using the standard prefix
        associated with the corresponding YANG module, as shown in <xref target="tab.prefixes" format="default" sectionFormat="of" derivedContent="Table 1"/>.</t>
        <table anchor="tab.prefixes" align="center" pn="table-1">
          <name slugifiedName="name-prefixes-and-corresponding-">Prefixes and Corresponding YANG Modules</name>
          <thead>
            <tr>
              <th align="left" colspan="1" rowspan="1">Prefix</th>
              <th align="left" colspan="1" rowspan="1">YANG module</th>
              <th align="left" colspan="1" rowspan="1">Reference</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td align="left" colspan="1" rowspan="1">if</td>
              <td align="left" colspan="1" rowspan="1">ietf-interfaces</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8343" format="default" sectionFormat="of" derivedContent="RFC8343"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">rt</td>
              <td align="left" colspan="1" rowspan="1">ietf-routing</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">rt-types</td>
              <td align="left" colspan="1" rowspan="1">ietf-routing-types</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC8294" format="default" sectionFormat="of" derivedContent="RFC8294"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">yang</td>
              <td align="left" colspan="1" rowspan="1">ietf-yang-types</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/></td>
            </tr>
            <tr>
              <td align="left" colspan="1" rowspan="1">inet</td>
              <td align="left" colspan="1" rowspan="1">ietf-inet-types</td>
              <td align="left" colspan="1" rowspan="1">
                <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/></td>
            </tr>
          </tbody>
        </table>
      </section>
    </section>
    <section anchor="design" toc="include" numbered="true" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-design-of-the-data-model">Design of the Data Model</name>
      <t indent="0" pn="section-3-1">The ietf-segment-routing YANG module augments the routing container in the
        ietf-routing model <xref target="RFC8349" format="default" sectionFormat="of" derivedContent="RFC8349"/> and defines generic
        SR configuration and operational state. This module is
        augmented by modules supporting different data planes.</t>
      <t indent="0" pn="section-3-2">Module ietf-segment-routing-mpls augments ietf-segment-routing and
        supports SR-MPLS data plane configuration and operational state.</t>
      <t indent="0" pn="section-3-3">Module ietf-segment-routing-common defines generic types and groupings 
        that <bcp14>SHOULD</bcp14> be reused by IGP extension modules.</t>
      <sourcecode type="yangtree" markers="false" pn="section-3-4">
module: ietf-segment-routing
  augment /rt:routing:
    +--rw segment-routing

module: ietf-segment-routing-mpls
  augment /rt:routing/sr:segment-routing:
    +--rw sr-mpls
       +--rw bindings
       |  +--rw mapping-server {mapping-server}?
       |  |  +--rw policy* [name]
       |  |     +--rw name       string
       |  |     +--rw entries
       |  |        +--rw mapping-entry* [prefix algorithm]
       |  |           +--rw prefix        inet:ip-prefix
       |  |           +--rw value-type?   enumeration
       |  |           +--rw start-sid     uint32
       |  |           +--rw range?        uint32
       |  |           +--rw algorithm     identityref
       |  +--rw connected-prefix-sid-map
       |  |  +--rw connected-prefix-sid* [prefix algorithm]
       |  |     +--rw prefix               inet:ip-prefix
       |  |     +--rw value-type?          enumeration
       |  |     +--rw start-sid            uint32
       |  |     +--rw range?               uint32
       |  |     +--rw algorithm            identityref
       |  |     +--rw last-hop-behavior?   enumeration
       |  +--rw local-prefix-sid
       |     +--rw local-prefix-sid* [prefix algorithm]
       |        +--rw prefix        inet:ip-prefix
       |        +--rw value-type?   enumeration
       |        +--rw start-sid     uint32
       |        +--rw range?        uint32
       |        +--rw algorithm     identityref
       +--rw srgb
       |  +--rw srgb* [lower-bound upper-bound]
       |     +--rw lower-bound    uint32
       |     +--rw upper-bound    uint32
       +--rw srlb
       |  +--rw srlb* [lower-bound upper-bound]
       |     +--rw lower-bound    uint32
       |     +--rw upper-bound    uint32
       +--ro label-blocks* []
       |  +--ro lower-bound?   uint32
       |  +--ro upper-bound?   uint32
       |  +--ro size?          uint32
       |  +--ro free?          uint32
       |  +--ro used?          uint32
       |  +--ro scope?         enumeration
       +--ro sid-db
          +--ro sid* [target sid source source-protocol binding-type]
             +--ro target             string
             +--ro sid                uint32
             +--ro algorithm?         uint8
             +--ro source             inet:ip-address
             +--ro used?              boolean
             +--ro source-protocol    -&gt; /rt:routing
                                         /control-plane-protocols
                                         /control-plane-protocol/name
             +--ro binding-type       enumeration
             +--ro scope?             enumeration

  notifications:
    +---n segment-routing-srgb-collision
    |  +--ro srgb-collisions* []
    |     +--ro lower-bound?          uint32
    |     +--ro upper-bound?          uint32
    |     +--ro routing-protocol?     -&gt; /rt:routing
    |                                    /control-plane-protocols
    |                                    /control-plane-protocol/name
    |     +--ro originating-rtr-id?   router-or-system-id
    +---n segment-routing-global-sid-collision
    |  +--ro received-target?       string
    |  +--ro new-sid-rtr-id?        router-or-system-id
    |  +--ro original-target?       string
    |  +--ro original-sid-rtr-id?   router-or-system-id
    |  +--ro index?                 uint32
    |  +--ro routing-protocol?      -&gt; /rt:routing
    |                                  /control-plane-protocols
    |                                  /control-plane-protocol/name
    +---n segment-routing-index-out-of-range
       +--ro received-target?    string
       +--ro received-index?     uint32
       +--ro routing-protocol?   -&gt; /rt:routing
                                    /control-plane-protocols
                                    /control-plane-protocol/name
</sourcecode>
    </section>
    <section anchor="how" toc="include" numbered="true" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-configuration">Configuration</name>
      <t indent="0" pn="section-4-1">
        The module ietf-segment-routing-mpls augments the "/rt:routing/sr:segment-routing:"
        with an sr-mpls container. This container defines all the configuration
        parameters related to the SR MPLS data plane.
      </t>
      <t indent="0" pn="section-4-2">
        The sr-mpls configuration is split into global configuration and interface configuration.
      </t>
      <t indent="0" pn="section-4-3">The global configuration includes:
      </t>
      <dl newline="false" spacing="normal" indent="3" pn="section-4-4">
        <dt pn="section-4-4.1">Bindings:</dt>
        <dd pn="section-4-4.2">
          <t indent="0" pn="section-4-4.2.1">Defines Prefix to Segment Identifier (Prefix-SID) mappings. 
	  The operator can control
          advertisement of Prefix-SIDs independently for IPv4 and IPv6. Two
          types of mappings are available:</t>
          <dl newline="false" spacing="normal" indent="3" pn="section-4-4.2.2">
            <dt pn="section-4-4.2.2.1">Mapping-server:</dt>
            <dd pn="section-4-4.2.2.2">Maps prefixes that are not local to a SID. Configuration of bindings does not
           automatically allow advertisement of those
      bindings.  Advertisement must be controlled by each
      routing-protocol instance (see <xref target="cp" format="default" sectionFormat="of" derivedContent="Section 5"/>). Multiple mapping policies
          may be defined.</dd>
            <dt pn="section-4-4.2.2.3">Connected prefixes:</dt>
            <dd pn="section-4-4.2.2.4">Maps connected prefixes to a SID. Advertisement of the mapping
          will be done by IGP when enabled for SR (see <xref target="cp" format="default" sectionFormat="of" derivedContent="Section 5"/>). The SID value can be expressed as an index (default) or an absolute
          value.  The "last-hop-behavior" configuration dictates the MPLS Penultimate Hop Popping (PHP)
	  behavior: "explicit-null", "php", or "non-php".</dd>
          </dl>
        </dd>
        <dt pn="section-4-4.3">Segment Routing Global Block (SRGB):</dt>
        <dd pn="section-4-4.4">Defines a list of label
      blocks represented by a pair of lower-bound/upper-bound labels.
      The SRGB is also agnostic to the control plane used. So, all local
      routing-protocol instances will have to advertise the same SRGB.</dd>
        <dt pn="section-4-4.5">Segment Routing Local Block (SRLB):</dt>
        <dd pn="section-4-4.6">Defines a list of label
      blocks represented by a pair of lower-bound/upper-bound labels reserved for local SIDs.</dd>
      </dl>
    </section>
    <section anchor="cp" toc="include" numbered="true" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-igp-control-plane-configura">IGP Control-Plane Configuration</name>
      <t indent="0" pn="section-5-1">
    Support of SR extensions for a particular IGP control plane is achieved by augmenting routing-protocol configuration with SR extensions.
        This augmentation <bcp14>SHOULD</bcp14> be part of the routing-protocol YANG modules as not to create any dependency for implementations to support SR extensions for all routing protocols.
      </t>
      <t indent="0" pn="section-5-2">
        This module defines groupings that <bcp14>SHOULD</bcp14> be used by IGP SR modules.
      </t>
      <t indent="0" pn="section-5-3">The "sr-control-plane" grouping defines the generic global configuration for the IGP.</t>
      <t indent="0" pn="section-5-4">The "enabled" leaf enables SR extensions for the
   routing-protocol instance.</t>
      <t indent="0" pn="section-5-5">The "bindings" container controls the routing-protocol instance's
   advertisement of local bindings and the processing of received
   bindings.</t>
      <section anchor="igp-interface" toc="include" numbered="true" removeInRFC="false" pn="section-5.1">
        <name slugifiedName="name-igp-interface-configuration">IGP Interface Configuration</name>
        <t indent="0" pn="section-5.1-1">The interface configuration is part of the "igp-interface" grouping and includes Adjacency SID (Adj-SID) properties.</t>
        <section anchor="adj-cfg" toc="include" numbered="true" removeInRFC="false" pn="section-5.1.1">
          <name slugifiedName="name-adjacency-sid-adj-sid-prope">Adjacency SID (Adj-SID) Properties</name>
          <section anchor="adj-cfg-bundling" toc="include" numbered="true" removeInRFC="false" pn="section-5.1.1.1">
            <name slugifiedName="name-bundling">Bundling</name>
            <t indent="0" pn="section-5.1.1.1-1">
              In case of parallel IP links between routers, an additional Adj-SID <xref target="RFC8402" format="default" sectionFormat="of" derivedContent="RFC8402"/> may be advertised representing more than one adjacency (i.e.,
              a bundle of adjacencies). The "advertise-adj-group-sid" configuration
              controls for which group(s) an additional Adj-SID is advertised.
            </t>
            <t indent="0" pn="section-5.1.1.1-2">The "advertise-adj-group-sid" is a list of group IDs. Each group ID will identify interfaces that are bundled together.</t>
            <artwork name="" type="" align="left" alt="" pn="section-5.1.1.1-3">
        +-------+                 +------+
        |       | ------- L1 ---- |      |
        |   R1  | ------- L2 ---- |  R2  |
        |       | ------- L3 ---- |      |
        |       | ------- L4 ---- |      |
        +-------+                 +------+
</artwork>
            <t indent="0" pn="section-5.1.1.1-4">
              In the figure above, R1 and R2 are interconnected by four links. A routing protocol adjacency is established on each link.
              The operator would like to create Adj-SIDs that represent bundles of links. We can imagine two different bundles: L1/L2 and L3/L4.
              To achieve this behavior, the operator will configure a "group-id" X for interfaces L1 and L2 and a "group-id" Y for interfaces L3 and L4.
              This will result in R1 advertising an additional Adj-SID for each adjacency. For example, an Adj-SID with a value of 400 will be added to L1 and L2, and
              an Adj-SID with a value of 500 will be added to L3 and L4. As L1/L2 and L3/L4 do not share the same "group-id", a different SID value will be allocated.
            </t>
          </section>
          <section anchor="adj-cfg-protection" toc="include" numbered="true" removeInRFC="false" pn="section-5.1.1.2">
            <name slugifiedName="name-protection">Protection</name>
            <t indent="0" pn="section-5.1.1.2-1">
                                The "advertise-protection" defines how protection for an interface
                   is advertised.  It does not control the activation or deactivation of
                   protection.  If the "single" option is used, a single Adj-SID will be
                   advertised for the interface.  If the interface is protected, the
                   B-Flag for the Adj-SID advertisement will be set. If the "dual"
                   option is used and if the interface is protected, two Adj-SIDs will
                   be advertised for the interface adjacencies. One Adj-SID will always
                   have the B-Flag set, and the other will have the B-Flag clear.
		   This
                   option is intended to be used in the case of traffic engineering
                   where a path must use either protected segments or unprotected
                   segments.
            </t>
          </section>
        </section>
      </section>
    </section>
    <section anchor="states" toc="include" numbered="true" removeInRFC="false" pn="section-6">
      <name slugifiedName="name-state-data">State Data</name>
      <t indent="0" pn="section-6-1">
        The operational state contains information reflecting the usage of
   allocated SRGB labels.
      </t>
      <t indent="0" pn="section-6-2">It also includes a list of all global SIDs, their associated
   bindings, and other information, such as the associated source protocol and
   algorithm.</t>
    </section>
    <section anchor="notif" toc="include" numbered="true" removeInRFC="false" pn="section-7">
      <name slugifiedName="name-notifications">Notifications</name>
      <t indent="0" pn="section-7-1">
        The model defines the following notifications for SR.
      </t>
      <dl newline="false" spacing="normal" indent="3" pn="section-7-2">
        <dt pn="section-7-2.1">segment-routing-srgb-collision:</dt>
        <dd pn="section-7-2.2">Raised when  control-plane-advertised SRGB blocks have conflicts</dd>
        <dt pn="section-7-2.3">segment-routing-global-sid-collision:</dt>
        <dd pn="section-7-2.4">Raised when a control-plane-advertised index is already associated with another target (in
      this version, the only defined targets are IPv4 and IPv6 prefixes)</dd>
        <dt pn="section-7-2.5">segment-routing-index-out-of-range:</dt>
        <dd pn="section-7-2.6">Raised when a control-plane-advertised index falls outside the range of SRGBs configured for
      the network device</dd>
      </dl>
    </section>
    <section anchor="yang" toc="include" numbered="true" removeInRFC="false" pn="section-8">
      <name slugifiedName="name-yang-modules">YANG Modules</name>
      <t indent="0" pn="section-8-1">There are three YANG modules included in this document. </t>
      <t indent="0" pn="section-8-2">The following RFCs are not referenced in the document text but
      are referenced in the ietf-segment-routing.yang, ietf-segment-routing-common.yang,
      and/or ietf-segment-routing-mpls.yang modules:
      <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/>, <xref target="RFC8294" format="default" sectionFormat="of" derivedContent="RFC8294"/>, 
      <xref target="RFC8661" format="default" sectionFormat="of" derivedContent="RFC8661"/>, <xref target="RFC8665" format="default" sectionFormat="of" derivedContent="RFC8665"/>,
      <xref target="RFC8667" format="default" sectionFormat="of" derivedContent="RFC8667"/>, <xref target="RFC8669" format="default" sectionFormat="of" derivedContent="RFC8669"/>, 
      and <xref target="RFC8814" format="default" sectionFormat="of" derivedContent="RFC8814"/>.</t>
      <section anchor="sr-yang" toc="include" numbered="true" removeInRFC="false" pn="section-8.1">
        <name slugifiedName="name-yang-module-for-segment-rou">YANG Module for Segment Routing</name>
        <dl newline="false" spacing="normal" indent="3" pn="section-8.1-1">
          <dt pn="section-8.1-1.1">ietf-segment-routing.yang:</dt>
          <dd pn="section-8.1-1.2">This module defines a generic framework
            for Segment Routing (SR), and it is to be augmented by models for different
            SR data planes.</dd>
        </dl>
        <sourcecode name="ietf-segment-routing@2021-05-26.yang" type="yang" markers="true" pn="section-8.1-2">
module ietf-segment-routing {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-segment-routing";
  prefix sr;

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

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

     Author:    Stephane Litkowski
               &lt;mailto:slitkows.ietf@gmail.com&gt;
     Author:    Yingzhen Qu
               &lt;mailto:yingzhen.qu@futurewei.com&gt;
     Author:    Acee Lindem
               &lt;mailto:acee@cisco.com&gt;
     Author:    Pushpasis Sarkar
               &lt;mailto:pushpasis.ietf@gmail.com&gt;
     Author:    Jeff Tantsura
               &lt;jefftant.ietf@gmail.com&gt;

    ";
  description
    "This YANG module defines a generic framework for Segment
     Routing (SR).  It is to be augmented by models for different
     SR data planes.

     This YANG module conforms to the Network Management
     Datastore Architecture (NMDA), as described in RFC 8242.

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

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

  reference
    "RFC 9020: YANG Data Model for Segment Routing.";

  revision 2021-05-26 {
    description
      "Initial version";
    reference
      "RFC 9020: YANG Data Model for Segment Routing.";
  }

  augment "/rt:routing" {
    description
      "This module augments the routing data model (RFC 8349)
       with Segment Routing (SR).";
    container segment-routing {
      description
        "Segment Routing configuration.  This container
         is to be augmented by models for different SR
         data planes.";
      reference
        "RFC 8402: Segment Routing Architecture.";
    }
  }
}
</sourcecode>
      </section>
      <section anchor="sr-cmn-yang" toc="include" numbered="true" removeInRFC="false" pn="section-8.2">
        <name slugifiedName="name-yang-module-for-segment-rout">YANG Module for Segment Routing Common Types</name>
        <dl newline="false" spacing="normal" indent="3" pn="section-8.2-1">
          <dt pn="section-8.2-1.1">ietf-segment-routing-common.yang:</dt>
          <dd pn="section-8.2-1.2">This module defines a collection of generic types and 
	  groupings for SR, as defined in <xref target="RFC8402" format="default" sectionFormat="of" derivedContent="RFC8402"/>.</dd>
        </dl>
        <sourcecode name="ietf-segment-routing-common@2021-05-26.yang" type="yang" markers="true" pn="section-8.2-2">
module ietf-segment-routing-common {
  yang-version 1.1;
  namespace
   "urn:ietf:params:xml:ns:yang:ietf-segment-routing-common";
  prefix sr-cmn;

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

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

     Author:    Stephane Litkowski
               &lt;mailto:slitkows.ietf@gmail.com&gt;
     Author:    Yingzhen Qu
               &lt;mailto:yingzhen.qu@futurewei.com&gt;
     Author:    Acee Lindem
               &lt;mailto:acee@cisco.com&gt;
     Author:    Pushpasis Sarkar
               &lt;mailto:pushpasis.ietf@gmail.com&gt;
     Author:    Jeff Tantsura
               &lt;jefftant.ietf@gmail.com&gt;

    ";
  description
    "This YANG module defines a collection of generic types and
     groupings for Segment Routing (SR), as described in RFC 8402.

     This YANG module conforms to the Network Management
     Datastore Architecture (NMDA), as described in RFC 8242.

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

     Copyright (c) 2021 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 9020;
     see the RFC itself for full legal notices.";
  reference
    "RFC 9020: YANG Data Model for Segment Routing";

  revision 2021-05-26 {
    description
      "Initial version";
    reference
      "RFC 9020: YANG Data Model for Segment Routing";
  }

  feature sid-last-hop-behavior {
    description
      "Configurable last-hop behavior.";
    reference
      "RFC 8660: Segment Routing with the MPLS Data Plane";
  }

  identity prefix-sid-algorithm {
    description
      "Base identity for prefix-sid algorithm.";
    reference
      "RFC 8402: Segment Routing Architecture";
  }

  identity prefix-sid-algorithm-shortest-path {
    base prefix-sid-algorithm;
    description
      "Shortest Path First (SPF) Prefix-SID algorithm.  This
       is the default algorithm.";
  }

  identity prefix-sid-algorithm-strict-spf {
    base prefix-sid-algorithm;
    description
      "This algorithm mandates that the packet is forwarded
       according to the ECMP-aware SPF algorithm.";
  }

  grouping srlr {
    description
      "Grouping for SR Label Range configuration.";
    leaf lower-bound {
      type uint32;
      description
        "Lower value in the label range.";
    }
    leaf upper-bound {
      type uint32;
      must '../lower-bound &lt; ../upper-bound' {
        error-message
          "The upper-bound must be greater than the lower-bound.";
        description
          "The value must be greater than lower-bound.";
      }
      description
        "Upper value in the label range.";
    }
  }

  grouping srgb {
    description
      "Grouping for SR Global Label Range.";
    list srgb {
      key "lower-bound upper-bound";
      ordered-by user;
      description
        "List of global blocks to be advertised.";
      uses srlr;
    }
  }

  grouping srlb {
    description
      "Grouping for SR Local Block Range.";
    list srlb {
      key "lower-bound upper-bound";
      ordered-by user;
      description
        "List of SRLBs.";
      uses srlr;
    }
  }

  grouping sid-value-type {
    description
      "Defines how the SID value is expressed.";
    leaf value-type {
      type enumeration {
        enum index {
          description
            "The value will be interpreted as an index.";
        }
        enum absolute {
          description
            "The value will become interpreted as an absolute
             value.";
        }
      }
      default "index";
      description
        "This leaf defines how the value must be interpreted.";
    }
  }

  grouping prefix-sid {
    description
      "This grouping defines configuration of a Prefix-SID.";
    leaf prefix {
      type inet:ip-prefix;
      description
        "Connected Prefix-SID.";
    }
    uses prefix-sid-attributes;
  }

  grouping ipv4-sid {
    description
      "Grouping for an IPv4 Prefix-SID.";
    leaf prefix {
      type inet:ipv4-prefix;
      description
        "Connected IPv4 Prefix-SID.";
    }
    uses prefix-sid-attributes;
  }

  grouping ipv6-sid {
    description
      "Grouping for an IPv6 Prefix-SID.";
    leaf prefix {
      type inet:ipv6-prefix;
      description
        "Connected IPv6 Prefix-SID.";
    }
    uses prefix-sid-attributes;
  }

  grouping last-hop-behavior {
    description
      "Defines last-hop behavior.";
    leaf last-hop-behavior {
      if-feature "sid-last-hop-behavior";
      type enumeration {
        enum explicit-null {
          description
            "Use explicit-null for the SID.";
        }
        enum no-php {
          description
            "Do not use MPLS Penultimate Hop Popping (PHP)
             for the SID.";
        }
        enum php {
          description
            "Use MPLS PHP for the SID.";
        }
      }
      description
        "Configure last-hop behavior.";
    }
  }

  grouping prefix-sid-attributes {
    description
      "Grouping for Segment Routing (SR) prefix attributes.";
    uses sid-value-type;
    leaf start-sid {
      type uint32;
      mandatory true;
      description
        "Value associated with prefix.  The value must be
         interpreted in the context of sid-value-type.";
    }
    leaf range {
      type uint32;
      description
        "Indicates how many SIDs can be allocated.";
    }
    leaf algorithm {
      type identityref {
        base prefix-sid-algorithm;
      }
      description
        "Prefix-SID algorithm.";
    }
  }
}
</sourcecode>
      </section>
      <section anchor="sr-mpls-yang" toc="include" numbered="true" removeInRFC="false" pn="section-8.3">
        <name slugifiedName="name-yang-module-for-segment-routi">YANG Module for Segment Routing MPLS</name>
        <dl newline="false" spacing="compact" indent="3" pn="section-8.3-1">
          <dt pn="section-8.3-1.1">ietf-segment-routing-mpls.yang:</dt>
          <dd pn="section-8.3-1.2">This module defines the configuration
            and operational states for the Segment Routing MPLS data plane.</dd>
        </dl>
        <sourcecode name="ietf-segment-routing-mpls@2021-05-26.yang" type="yang" markers="true" pn="section-8.3-2">
module ietf-segment-routing-mpls {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-segment-routing-mpls";
  prefix sr-mpls;

  import ietf-inet-types {
    prefix inet;
    reference
      "RFC 6991: Common YANG Data Types";
  }
  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-segment-routing {
    prefix sr;
    reference
      "RFC 9020: YANG Data Model for Segment Routing";
  }
  import ietf-segment-routing-common {
    prefix sr-cmn;
    reference
      "RFC 9020: YANG Data Model for Segment Routing";
  }

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

     Author:    Stephane Litkowski
               &lt;mailto:slitkows.ietf@gmail.com&gt;
     Author:    Yingzhen Qu
               &lt;mailto:yingzhen.qu@futurewei.com&gt;
     Author:    Acee Lindem
               &lt;mailto:acee@cisco.com&gt;
     Author:    Pushpasis Sarkar
               &lt;mailto:pushpasis.ietf@gmail.com&gt;
     Author:    Jeff Tantsura
               &lt;jefftant.ietf@gmail.com&gt;

    ";
  description
    "This YANG module defines a generic configuration model for
     the Segment Routing MPLS data plane.

     This YANG module conforms to the Network Management
     Datastore Architecture (NMDA), as described in RFC 8242.

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

     Copyright (c) 2021 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 9020;
     see the RFC itself for full legal notices.";
  reference
    "RFC 9020: YANG Data Model for Segment Routing";

  revision 2021-05-26 {
    description
      "Initial version";
    reference
      "RFC 9020: YANG Data Model for Segment Routing";
  }

  feature mapping-server {
    description
      "Support for Segment Routing Mapping Server (SRMS).";
    reference
      "RFC 8661: Segment Routing MPLS Interworking
                 with LDP";
  }

  feature protocol-srgb {
    description
      "Support for per-protocol Segment Routing Global Block
       (SRGB) configuration.";
    reference
      "RFC 8660: Segment Routing with the MPLS
                 Data Plane";
  }

  typedef system-id {
    type string {
      pattern '[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}\.[0-9A-Fa-f]{4}';
    }
    description
      "This type defines an IS-IS system-id using a pattern.
       An example system-id is 0143.0438.AEF0.";
  }

  typedef router-or-system-id {
    type union {
      type rt-types:router-id;
      type system-id;
    }
    description
      "OSPF/BGP router-id or IS-IS system ID.";
  }

  grouping sr-control-plane {
    description
      "Defines protocol configuration.";
    container segment-routing {
      description
        "Segment Routing global configuration.";
      leaf enabled {
        type boolean;
        default "false";
        description
          "Enables Segment Routing control-plane protocol
           extensions.";
      }
      container bindings {
        if-feature "mapping-server";
        description
          "Control of binding advertisement and reception.";
        container advertise {
          description
            "Control advertisement of local mappings
             in binding TLVs.";
          leaf-list policies {
            type leafref {
              path "/rt:routing/sr:segment-routing/sr-mpls:sr-mpls"
                 + "/sr-mpls:bindings/sr-mpls:mapping-server"
                 + "/sr-mpls:policy/sr-mpls:name";
            }
            description
              "List of binding advertisement policies.";
          }
        }
        leaf receive {
          type boolean;
          default "true";
          description
            "Allow the reception and usage of binding TLVs.";
        }
      }
    }
  }

  grouping igp-interface {
    description
      "Grouping for IGP interface configuration.";
    container segment-routing {
      description
        "Container for SR interface configuration.";
      container adjacency-sid {
        description
          "Adjacency SID (Adj-SID) configuration.";
        reference
          "RFC 8660: Segment Routing with the MPLS
                     Data Plane";
        list adj-sids {
          key "value";
          uses sr-cmn:sid-value-type;
          leaf value {
            type uint32;
            description
              "Value of the Adj-SID.";
          }
          leaf protected {
            type boolean;
            default "false";
            description
              "It is used to protect the Adj-SID, e.g., using
               IP Fast Reroute (IPFRR) or MPLS-FRR.";
          }
          leaf weight {
            type uint8;
            description
              "The load-balancing factor over parallel adjacencies.";
            reference
              "RFC 8402: Segment Routing Architecture
               RFC 8665: OSPF Extensions for Segment Routing
               RFC 8667: IS-IS Extensions for Segment
                         Routing";
          }
          description
            "List of Adj-SIDs and their configuration.";
        }
        list advertise-adj-group-sid {
          key "group-id";
          description
            "Control advertisement of S-flag or G-flag.  Enable
             advertisement of a common Adj-SID for parallel
             links.";
          reference
            "RFC 8665: OSPF Extensions for Segment Routing,
                       Section 6.1
             RFC 8667: IS-IS Extensions for Segment
                       Routing, Section 2.2.1";
          leaf group-id {
            type uint32;
            description
              "The value is an internal value to identify a
               group-ID. Interfaces with the same group-ID
               will be bundled together.";
          }
        }
        leaf advertise-protection {
          type enumeration {
            enum single {
              description
                "A single Adj-SID is associated with the
                 adjacency and reflects the protection
                 configuration.";
            }
            enum dual {
              description
                "Two Adj-SIDs will be associated with the adjacency
                 if the interface is protected.  In this case, one
                 Adj-SID will be advertised with the backup-flag
                 set and the other with the backup-flag clear.  In
                 the case where protection is not configured, a
                 single Adj-SID will be advertised with the
                 backup-flag clear.";
            }
          }
          description
            "If set, the Adj-SID refers to a protected adjacency.";
          reference
            "RFC 8665: OSPF Extensions for Segment Routing,
                       Section 6.1
             RFC 8667: IS-IS Extensions for Segment
                       Routing, Section 2.2.1";
        }
      }
    }
  }

  augment "/rt:routing/sr:segment-routing" {
    description
      "This augments the routing data model (RFC 8349)
       with Segment Routing (SR) using the MPLS data plane.";
    container sr-mpls {
      description
        "Segment Routing global configuration and
         operational state.";
      container bindings {
        description
          "List of bindings.";
        container mapping-server {
          if-feature "mapping-server";
          description
            "Configuration of mapping-server local entries.";
          list policy {
            key "name";
            description
              "List mapping-server policies.";
            leaf name {
              type string;
              description
                "Name of the mapping policy.";
            }
            container entries {
              description
                "IPv4/IPv6 mapping entries.";
              list mapping-entry {
                key "prefix algorithm";
                description
                  "Mapping entries.";
                uses sr-cmn:prefix-sid;
              }
            }
          }
        }
        container connected-prefix-sid-map {
          description
            "Prefix-SID configuration.";
          list connected-prefix-sid {
            key "prefix algorithm";
            description
              "List of mappings of Prefix-SIDs to IPv4/IPv6
               local prefixes.";
            uses sr-cmn:prefix-sid;
            uses sr-cmn:last-hop-behavior;
          }
        }
        container local-prefix-sid {
          description
            "Local SID configuration.";
          list local-prefix-sid {
            key "prefix algorithm";
            description
              "List of local IPv4/IPv6 Prefix-SIDs.";
            uses sr-cmn:prefix-sid;
          }
        }
      }
      container srgb {
        description
          "Global SRGB configuration.";
        uses sr-cmn:srgb;
      }
      container srlb {
        description
          "Segment Routing Local Block (SRLB) configuration.";
        uses sr-cmn:srlb;
      }
      list label-blocks {
        config false;
        description
          "List of label blocks currently in use.";
        leaf lower-bound {
          type uint32;
          description
            "Lower bound of the label block.";
        }
        leaf upper-bound {
          type uint32;
          description
            "Upper bound of the label block.";
        }
        leaf size {
          type uint32;
          description
            "Number of indexes in the block.";
        }
        leaf free {
          type uint32;
          description
            "Number of free indexes in the block.";
        }
        leaf used {
          type uint32;
          description
            "Number of indexes in use in the block.";
        }
        leaf scope {
          type enumeration {
            enum global {
              description
                "Global SID.";
            }
            enum local {
              description
                "Local SID.";
            }
          }
          description
            "Scope of this label block.";
        }
      }
      container sid-db {
        config false;
        description
          "List of prefix and SID associations.";
        list sid {
          key "target sid source source-protocol binding-type";
          ordered-by system;
          description
            "SID binding.";
          leaf target {
            type string;
            description
              "Defines the target of the binding.  It can be a
               prefix or something else.";
          }
          leaf sid {
            type uint32;
            description
              "Index associated with the prefix.";
          }
          leaf algorithm {
            type uint8;
            description
              "Algorithm to be used for the Prefix-SID.";
            reference
              "RFC 8665: OSPF Extensions for Segment Routing
               RFC 8667: IS-IS Extensions for Segment
                         Routing
               RFC 8669: Segment Routing Prefix Segment
                         Identifier Extensions to BGP";
          }
          leaf source {
            type inet:ip-address;
            description
              "IP address of the router that owns the binding.";
          }
          leaf used {
            type boolean;
            description
              "Indicates if the binding is installed in the
               forwarding plane.";
          }
          leaf source-protocol {
            type leafref {
              path "/rt:routing/rt:control-plane-protocols/"
                 + "rt:control-plane-protocol/rt:name";
            }
            description
              "Routing protocol that owns the binding.";
          }
          leaf binding-type {
            type enumeration {
              enum prefix-sid {
                description
                  "Binding is learned from a Prefix-SID.";
              }
              enum binding-tlv {
                description
                  "Binding is learned from a binding TLV.";
              }
            }
            description
              "Type of binding.";
          }
          leaf scope {
            type enumeration {
              enum global {
                description
                  "Global SID.";
              }
              enum local {
                description
                  "Local SID.";
              }
            }
            description
              "SID scoping.";
          }
        }
      }
    }
  }

  notification segment-routing-srgb-collision {
    description
      "This notification is sent when SRGB blocks received from
       different routers collide.";
    list srgb-collisions {
      description
        "List of SRGB blocks that collide.";
      leaf lower-bound {
        type uint32;
        description
          "Lower value in the block.";
      }
      leaf upper-bound {
        type uint32;
        description
          "Upper value in the block.";
      }
      leaf routing-protocol {
        type leafref {
          path "/rt:routing/rt:control-plane-protocols/"
             + "rt:control-plane-protocol/rt:name";
        }
        description
          "Routing protocol reference for SRGB collision.";
      }
      leaf originating-rtr-id {
        type router-or-system-id;
        description
          "Originating router ID of this SRGB block.";
      }
    }
  }

  notification segment-routing-global-sid-collision {
    description
      "This notification is sent when a new mapping is learned
       containing a mapping where the SID is already used.
       The notification generation must be throttled with at least
       a 5-second gap between notifications.";
    leaf received-target {
      type string;
      description
        "Target received in the router advertisement that caused
         the SID collision.";
    }
    leaf new-sid-rtr-id {
      type router-or-system-id;
      description
        "Router ID that advertised the colliding SID.";
    }
    leaf original-target {
      type string;
      description
        "Target already available in the database with the same SID
         as the received target.";
    }
    leaf original-sid-rtr-id {
      type router-or-system-id;
      description
        "Router ID for the router that originally advertised the
         colliding SID, i.e., the instance in the database.";
    }
    leaf index {
      type uint32;
      description
        "Value of the index used by two different prefixes.";
    }
    leaf routing-protocol {
      type leafref {
        path "/rt:routing/rt:control-plane-protocols/"
           + "rt:control-plane-protocol/rt:name";
      }
      description
        "Routing protocol reference for colliding SID.";
    }
  }

  notification segment-routing-index-out-of-range {
    description
      "This notification is sent when a binding is received
       containing a segment index that is out of the local
       configured ranges.  The notification generation must be
       throttled with at least a 5-second gap between
       notifications.";
    leaf received-target {
      type string;
      description
        "A human-readable string representing the target
         received in the protocol-specific advertisement
         corresponding to the out-of-range index.";
    }
    leaf received-index {
      type uint32;
      description
        "Value of the index received.";
    }
    leaf routing-protocol {
      type leafref {
        path "/rt:routing/rt:control-plane-protocols/"
           + "rt:control-plane-protocol/rt:name";
      }
      description
        "Routing protocol reference for out-of-range indexed.";
    }
  }
}
</sourcecode>
      </section>
    </section>
    <section anchor="Security" toc="include" numbered="true" removeInRFC="false" pn="section-9">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-9-1">The YANG modules specified in this document define 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-9-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-9-3">There are a number of data nodes defined in the modules
      that are writable/creatable/deletable (i.e., config true, which is the default).
      These data nodes may be considered sensitive or vulnerable in some network
      environments. Write operations (e.g., edit-config) to these data nodes without
      proper protection can have a negative effect on network operations.
      These are the subtrees and data nodes and their sensitivity/vulnerability: 
      </t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-9-4">
        <li pn="section-9-4.1">/segment-routing</li>
        <li pn="section-9-4.2">/segment-routing/mpls</li>
        <li pn="section-9-4.3">/segment-routing/mpls/bindings -- Modification to the local bindings could result
       in a Denial-of-Service (DoS) attack. An attacker may also try to create segment conflicts
       (using the same segment identifier for different purposes) to redirect traffic within the
       trusted domain. However, the traffic will remain within the trusted domain.
       Redirection could be used to route the traffic to compromised nodes within
       the trusted domain or to avoid certain security functions (e.g., firewall). 
       Refer to <xref target="RFC8402" sectionFormat="of" section="8.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8402#section-8.1" derivedContent="RFC8402"/> for a discussion of the SR-MPLS
       trusted domain. 
       </li>
        <li pn="section-9-4.4">/segment-routing/mpls/srgb -- Modification of the Segment Routing Global
       Block (SRGB) could be used to mount a DoS attack. For example, if the SRGB
       size is reduced to a very small value, a lot of existing segments could no longer
       be installed leading to a traffic disruption.
       </li>
        <li pn="section-9-4.5">/segment-routing/mpls/srlb -- Modification of the Segment Routing Local Block (SRLB)
       could be used to mount a DoS attack similar to those applicable to the SRGB.</li>
      </ul>
      <t indent="0" pn="section-9-5">Some of the readable data nodes in these YANG modules
      may be considered sensitive or vulnerable in some network environments. It is thus
      important to control read access (e.g., via get, get-config, or notification)
      to these data nodes. These are the subtrees and data nodes and their sensitivity/vulnerability: 
      </t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-9-6">
        <li pn="section-9-6.1">/segment-routing/mpls/bindings -- Knowledge of these data nodes can be used to
	attack the local router with a Denial-of-Service (DoS) attack.</li>
        <li pn="section-9-6.2">/segment-routing/mpls/sid-db -- Knowledge of these data nodes can be used to
	attack the other routers in the SR domain with either a Denial-of-Service (DoS) attack or redirection traffic destined for those routers.</li>
      </ul>
    </section>
    <section anchor="IANA" toc="include" numbered="true" removeInRFC="false" pn="section-10">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t indent="0" pn="section-10-1">This document registers a URI in the "IETF XML Registry"
   <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>.  Following the format in <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>,
   the following registration is requested to be made:
      </t>
      <dl newline="false" spacing="compact" indent="3" pn="section-10-2">
        <dt pn="section-10-2.1">ID:</dt>
        <dd pn="section-10-2.2">yang:ietf-segment-routing-common</dd>
        <dt pn="section-10-2.3">URI:</dt>
        <dd pn="section-10-2.4">urn:ietf:params:xml:ns:yang:ietf-segment-routing-common</dd>
        <dt pn="section-10-2.5">Registrant Contact:</dt>
        <dd pn="section-10-2.6">The IESG.</dd>
        <dt pn="section-10-2.7">XML:</dt>
        <dd pn="section-10-2.8">N/A, the requested URI is an XML namespace.</dd>
      </dl>
      <dl newline="false" spacing="compact" indent="3" pn="section-10-3">
        <dt pn="section-10-3.1">ID:</dt>
        <dd pn="section-10-3.2">yang:ietf-segment-routing</dd>
        <dt pn="section-10-3.3">URI:</dt>
        <dd pn="section-10-3.4">urn:ietf:params:xml:ns:yang:ietf-segment-routing</dd>
        <dt pn="section-10-3.5">Registrant Contact:</dt>
        <dd pn="section-10-3.6">The IESG.</dd>
        <dt pn="section-10-3.7">XML:</dt>
        <dd pn="section-10-3.8">N/A, the requested URI is an XML namespace.</dd>
      </dl>
      <dl newline="false" spacing="compact" indent="3" pn="section-10-4">
        <dt pn="section-10-4.1">ID:</dt>
        <dd pn="section-10-4.2">yang:ietf-segment-routing-mpls</dd>
        <dt pn="section-10-4.3">URI:</dt>
        <dd pn="section-10-4.4">urn:ietf:params:xml:ns:yang:ietf-segment-routing-mpls</dd>
        <dt pn="section-10-4.5">Registrant Contact:</dt>
        <dd pn="section-10-4.6">The IESG.</dd>
        <dt pn="section-10-4.7">XML:</dt>
        <dd pn="section-10-4.8">N/A, the requested URI is an XML namespace.</dd>
      </dl>
      <t indent="0" pn="section-10-5">This document registers YANG modules 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-10-6">
        <dt pn="section-10-6.1">Name:</dt>
        <dd pn="section-10-6.2">ietf-segment-routing-common</dd>
        <dt pn="section-10-6.3">Maintained by IANA:</dt>
        <dd pn="section-10-6.4">N</dd>
        <dt pn="section-10-6.5">Namespace:</dt>
        <dd pn="section-10-6.6">urn:ietf:params:xml:ns:yang:ietf-segment-routing-common</dd>
        <dt pn="section-10-6.7">Prefix:</dt>
        <dd pn="section-10-6.8">sr-cmn</dd>
        <dt pn="section-10-6.9">Reference:</dt>
        <dd pn="section-10-6.10">RFC 9020</dd>
      </dl>
      <dl newline="false" spacing="compact" indent="3" pn="section-10-7">
        <dt pn="section-10-7.1">Name:</dt>
        <dd pn="section-10-7.2">ietf-segment-routing</dd>
        <dt pn="section-10-7.3">Maintained by IANA:</dt>
        <dd pn="section-10-7.4">N</dd>
        <dt pn="section-10-7.5">Namespace:</dt>
        <dd pn="section-10-7.6">urn:ietf:params:xml:ns:yang:ietf-segment-routing</dd>
        <dt pn="section-10-7.7">Prefix:</dt>
        <dd pn="section-10-7.8">sr</dd>
        <dt pn="section-10-7.9">Reference:</dt>
        <dd pn="section-10-7.10">RFC 9020</dd>
      </dl>
      <dl newline="false" spacing="compact" indent="3" pn="section-10-8">
        <dt pn="section-10-8.1">Name:</dt>
        <dd pn="section-10-8.2">ietf-segment-routing-mpls</dd>
        <dt pn="section-10-8.3">Maintained by IANA:</dt>
        <dd pn="section-10-8.4">N</dd>
        <dt pn="section-10-8.5">Namespace:</dt>
        <dd pn="section-10-8.6">urn:ietf:params:xml:ns:yang:ietf-segment-routing-mpls</dd>
        <dt pn="section-10-8.7">Prefix:</dt>
        <dd pn="section-10-8.8">sr-mpls</dd>
        <dt pn="section-10-8.9">Reference:</dt>
        <dd pn="section-10-8.10">RFC 9020</dd>
      </dl>
    </section>
  </middle>
  <back>
    <references pn="section-11">
      <name slugifiedName="name-references">References</name>
      <references pn="section-11.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author initials="S." surname="Bradner" fullname="S. Bradner">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="1997" month="March"/>
            <abstract>
              <t indent="0">In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized. This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC3688" target="https://www.rfc-editor.org/info/rfc3688" quoteTitle="true" derivedAnchor="RFC3688">
          <front>
            <title>The IETF XML Registry</title>
            <author 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="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author initials="B." surname="Leiba" fullname="B. Leiba">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2017" month="May"/>
            <abstract>
              <t indent="0">RFC 2119 specifies common key words that may be used in protocol  specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the  defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="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="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>
        <reference anchor="RFC8660" target="https://www.rfc-editor.org/info/rfc8660" quoteTitle="true" derivedAnchor="RFC8660">
          <front>
            <title>Segment Routing with the MPLS Data Plane</title>
            <author initials="A." surname="Bashandy" fullname="A. Bashandy" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Filsfils" fullname="C. Filsfils" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S." surname="Previdi" fullname="S. Previdi">
              <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="2019" month="December"/>
            <abstract>
              <t indent="0">Segment Routing (SR) leverages the source-routing paradigm.  A node steers a packet through a controlled set of instructions, called segments, by prepending the packet with an SR header.  In the MPLS data plane, the SR header is instantiated through a label stack. This document specifies the forwarding behavior to allow instantiating SR over the MPLS data plane (SR-MPLS).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8660"/>
          <seriesInfo name="DOI" value="10.17487/RFC8660"/>
        </reference>
        <reference anchor="RFC8661" target="https://www.rfc-editor.org/info/rfc8661" quoteTitle="true" derivedAnchor="RFC8661">
          <front>
            <title>Segment Routing MPLS Interworking with LDP</title>
            <author initials="A." surname="Bashandy" fullname="A. Bashandy" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Filsfils" fullname="C. Filsfils" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S." surname="Previdi" fullname="S. Previdi">
              <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>
            <date year="2019" month="December"/>
            <abstract>
              <t indent="0">A Segment Routing (SR) node steers a packet through a controlled set of instructions, called segments, by prepending the packet with an SR header. A segment can represent any instruction, topological or service based. SR allows enforcing a flow through any topological path while maintaining per-flow state only at the ingress node to the SR domain.</t>
              <t indent="0">The Segment Routing architecture can be directly applied to the MPLS data plane with no change in the forwarding plane. This document describes how Segment Routing MPLS operates in a network where LDP is deployed and in the case where SR-capable and non-SR-capable nodes coexist.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8661"/>
          <seriesInfo name="DOI" value="10.17487/RFC8661"/>
        </reference>
        <reference anchor="RFC8665" target="https://www.rfc-editor.org/info/rfc8665" quoteTitle="true" derivedAnchor="RFC8665">
          <front>
            <title>OSPF Extensions for Segment Routing</title>
            <author initials="P." surname="Psenak" fullname="P. Psenak" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="S." surname="Previdi" fullname="S. Previdi" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Filsfils" fullname="C. Filsfils">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="H." surname="Gredler" fullname="H. Gredler">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="R." surname="Shakir" fullname="R. Shakir">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="W." surname="Henderickx" fullname="W. Henderickx">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Tantsura" fullname="J. Tantsura">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2019" month="December"/>
            <abstract>
              <t indent="0">Segment Routing (SR) allows a flexible definition of end-to-end paths within IGP topologies by encoding paths as sequences of topological subpaths called "segments". These segments are advertised by the link-state routing protocols (IS-IS and OSPF).</t>
              <t indent="0">This document describes the OSPFv2 extensions required for Segment Routing.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8665"/>
          <seriesInfo name="DOI" value="10.17487/RFC8665"/>
        </reference>
        <reference anchor="RFC8667" target="https://www.rfc-editor.org/info/rfc8667" quoteTitle="true" derivedAnchor="RFC8667">
          <front>
            <title>IS-IS Extensions for Segment Routing</title>
            <author initials="S." surname="Previdi" fullname="S. Previdi" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="L." surname="Ginsberg" fullname="L. Ginsberg" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Filsfils" fullname="C. Filsfils">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Bashandy" fullname="A. Bashandy">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="H." surname="Gredler" fullname="H. Gredler">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="B." surname="Decraene" fullname="B. Decraene">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2019" month="December"/>
            <abstract>
              <t indent="0">Segment Routing (SR) allows for a flexible definition of end-to-end paths within IGP topologies by encoding paths as sequences of topological sub-paths, called "segments". These segments are advertised by the link-state routing protocols (IS-IS and OSPF).</t>
              <t indent="0">This document describes the IS-IS extensions that need to be introduced for Segment Routing operating on an MPLS data plane.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8667"/>
          <seriesInfo name="DOI" value="10.17487/RFC8667"/>
        </reference>
        <reference anchor="RFC8669" target="https://www.rfc-editor.org/info/rfc8669" quoteTitle="true" derivedAnchor="RFC8669">
          <front>
            <title>Segment Routing Prefix Segment Identifier Extensions for BGP</title>
            <author initials="S." surname="Previdi" fullname="S. Previdi">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="C." surname="Filsfils" fullname="C. Filsfils">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Lindem" fullname="A. Lindem" role="editor">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Sreekantiah" fullname="A. Sreekantiah">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="H." surname="Gredler" fullname="H. Gredler">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2019" month="December"/>
            <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. The ingress node prepends an SR header to a packet containing a set of segment identifiers (SIDs). Each SID represents a topological or service-based instruction. Per-flow state is maintained only on the ingress node of the SR domain. An "SR domain" is defined as a single administrative domain for global SID assignment.</t>
              <t indent="0">This document defines an optional, transitive BGP attribute for announcing information about BGP Prefix Segment Identifiers (BGP Prefix-SIDs) and the specification for SR-MPLS SIDs.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8669"/>
          <seriesInfo name="DOI" value="10.17487/RFC8669"/>
        </reference>
        <reference anchor="RFC8814" target="https://www.rfc-editor.org/info/rfc8814" quoteTitle="true" derivedAnchor="RFC8814">
          <front>
            <title>Signaling Maximum SID Depth (MSD) Using the Border Gateway Protocol - Link State</title>
            <author initials="J." surname="Tantsura" fullname="J. Tantsura">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="U." surname="Chunduri" fullname="U. Chunduri">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="K." surname="Talaulikar" fullname="K. Talaulikar">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="G." surname="Mirsky" fullname="G. Mirsky">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="N." surname="Triantafillis" fullname="N. Triantafillis">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2020" month="August"/>
            <abstract>
              <t indent="0">This document defines a way for a Border Gateway Protocol - Link State (BGP-LS) speaker to advertise multiple types of supported Maximum SID Depths (MSDs) at node and/or link granularity.</t>
              <t indent="0">Such advertisements allow entities (e.g., centralized controllers) to determine whether a particular Segment Identifier (SID) stack can be supported in a given network.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8814"/>
          <seriesInfo name="DOI" value="10.17487/RFC8814"/>
        </reference>
        <reference anchor="W3C.REC-xml11-20060816" target="https://www.w3.org/TR/2006/REC-xml11-20060816" quoteTitle="true" derivedAnchor="W3C.REC-xml11-20060816">
          <front>
            <title>Extensible Markup Language (XML) 1.1 (Second Edition)</title>
            <author initials="T." surname="Bray" fullname="Tim Bray">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Paoli" fullname="Jean Paoli">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="M." surname="Sperberg-McQueen" fullname="Michael Sperberg-McQueen">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="E." surname="Maler" fullname="Eve Maler">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="F." surname="Yergeau" fullname="François Yergeau">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="J." surname="Cowan" fullname="John Cowan">
              <organization showOnFrontPage="true"/>
            </author>
            <date month="August" day="16" year="2006"/>
          </front>
          <seriesInfo name="World Wide Web Consortium Recommendation" value="REC-xml11-20060816"/>
          <format type="HTML" target="https://www.w3.org/TR/2006/REC-xml11-20060816"/>
        </reference>
      </references>
      <references pn="section-11.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <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="RFC8792" target="https://www.rfc-editor.org/info/rfc8792" quoteTitle="true" derivedAnchor="RFC8792">
          <front>
            <title>Handling Long Lines in Content of Internet-Drafts and RFCs</title>
            <author initials="K." surname="Watsen" fullname="K. Watsen">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="E." surname="Auerswald" fullname="E. Auerswald">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="A." surname="Farrel" fullname="A. Farrel">
              <organization showOnFrontPage="true"/>
            </author>
            <author initials="Q." surname="Wu" fullname="Q. Wu">
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2020" month="June"/>
            <abstract>
              <t indent="0">This document defines two strategies for handling long lines in width-bounded text content.  One strategy, called the "single backslash" strategy, is based on the historical use of a single backslash ('\') character to indicate where line-folding has occurred, with the continuation occurring with the first character that is not a space character (' ') on the next line.  The second strategy, called the "double backslash" strategy, extends the first strategy by adding a second backslash character to identify where the continuation begins and is thereby able to handle cases not supported by the first strategy.  Both strategies use a self-describing header enabling automated reconstitution of the original content.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8792"/>
          <seriesInfo name="DOI" value="10.17487/RFC8792"/>
        </reference>
      </references>
    </references>
    <section anchor="examples" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-configuration-examples">Configuration Examples</name>
      <t indent="0" pn="section-appendix.a-1">Note: '\' line wrapping per <xref target="RFC8792" format="default" sectionFormat="of" derivedContent="RFC8792"/>.</t>
      <section anchor="ipv4" numbered="true" toc="include" removeInRFC="false" pn="section-a.1">
        <name slugifiedName="name-sr-mpls-with-ipv4">SR-MPLS with IPv4</name>
        <t indent="0" pn="section-a.1-1">The following is an XML <xref target="W3C.REC-xml11-20060816" format="default" sectionFormat="of" derivedContent="W3C.REC-xml11-20060816"/> example using the SR-MPLS YANG modules with IPv4 addresses.</t>
        <sourcecode type="xml" markers="false" pn="section-a.1-2">
&lt;routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing"&gt;
  &lt;segment-routing
    xmlns="urn:ietf:params:xml:ns:yang:ietf-segment-routing"&gt;
    &lt;sr-mpls
      xmlns="urn:ietf:params:xml:ns:yang:ietf-segment-routing-mpls"&gt;
      &lt;bindings&gt;
        &lt;mapping-server&gt;
          &lt;policy&gt;
            &lt;name&gt;mapping 1&lt;/name&gt;
            &lt;entries&gt;
              &lt;mapping-entry&gt;
                &lt;prefix&gt;198.51.100.0/24&lt;/prefix&gt;
                &lt;algorithm xmlns:sr-cmn="urn:ietf:params:xml:ns:yang\
                  :ietf-segment-routing-common"&gt;\
                  sr-cmn:prefix-sid-algorithm-shortest-path\
                &lt;/algorithm&gt;
                &lt;start-sid&gt;200&lt;/start-sid&gt;
                &lt;range&gt;100&lt;/range&gt;
              &lt;/mapping-entry&gt;
            &lt;/entries&gt;
          &lt;/policy&gt;
        &lt;/mapping-server&gt;
        &lt;connected-prefix-sid-map&gt;
          &lt;connected-prefix-sid&gt;
            &lt;prefix&gt;192.0.2.0/24&lt;/prefix&gt;
            &lt;algorithm xmlns:sr-cmn="urn:ietf:params:xml:ns:yang:\
              ietf-segment-routing-common"&gt;\
              sr-cmn:prefix-sid-algorithm-strict-spf&lt;/algorithm&gt;
            &lt;start-sid&gt;100&lt;/start-sid&gt;
            &lt;range&gt;1&lt;/range&gt;
            &lt;last-hop-behavior&gt;php&lt;/last-hop-behavior&gt;
          &lt;/connected-prefix-sid&gt;
        &lt;/connected-prefix-sid-map&gt;
      &lt;/bindings&gt;
      &lt;srgb&gt;
        &lt;srgb&gt;
          &lt;lower-bound&gt;45000&lt;/lower-bound&gt;
          &lt;upper-bound&gt;55000&lt;/upper-bound&gt;
        &lt;/srgb&gt;
      &lt;/srgb&gt;
    &lt;/sr-mpls&gt;
  &lt;/segment-routing&gt;
&lt;/routing&gt;
</sourcecode>
        <t indent="0" pn="section-a.1-3">The following is the same example using JSON format.</t>
        <sourcecode type="json" markers="false" pn="section-a.1-4">
{
  "ietf-routing:routing": {
    "ietf-segment-routing:segment-routing": {
      "ietf-segment-routing-mpls:sr-mpls": {
        "bindings": {
          "mapping-server": {
            "policy": [
              {
                "name": "mapping 1",
                "entries": {
                  "mapping-entry": [
                    {
                      "prefix": "198.51.100.0/24",
                      "algorithm": "ietf-segment-routing-common:\
                      prefix-sid-algorithm-shortest-path",
                      "start-sid": 200,
                      "range": 100
                    }
                  ]
                }
              }
            ]
          },
          "connected-prefix-sid-map": {
            "connected-prefix-sid": [
              {
                "prefix": "192.0.2.0/24",
                "algorithm": "ietf-segment-routing-common:\
                prefix-sid-algorithm-strict-spf",
                "start-sid": 100,
                "range": 1,
                "last-hop-behavior": "php"
              }
            ]
          }
        },
        "srgb": {
          "srgb": [
            {
              "lower-bound": 45000,
              "upper-bound": 55000
            }
          ]
        }
      }
    }
  }
}
</sourcecode>
      </section>
      <section anchor="ipv6" numbered="true" toc="include" removeInRFC="false" pn="section-a.2">
        <name slugifiedName="name-sr-mpls-with-ipv6">SR-MPLS with IPv6</name>
        <t indent="0" pn="section-a.2-1">The following is an XML  <xref target="W3C.REC-xml11-20060816" format="default" sectionFormat="of" derivedContent="W3C.REC-xml11-20060816"/> example using the SR-MPLS YANG modules with IPv6 addresses.</t>
        <sourcecode type="xml" markers="false" pn="section-a.2-2">
&lt;routing xmlns="urn:ietf:params:xml:ns:yang:ietf-routing"&gt;
  &lt;segment-routing
    xmlns="urn:ietf:params:xml:ns:yang:ietf-segment-routing"&gt;
    &lt;sr-mpls
      xmlns="urn:ietf:params:xml:ns:yang:ietf-segment-routing-mpls"&gt;
      &lt;bindings&gt;
        &lt;mapping-server&gt;
          &lt;policy&gt;
            &lt;name&gt;mapping 1&lt;/name&gt;
            &lt;entries&gt;
              &lt;mapping-entry&gt;
                &lt;prefix&gt;2001:db8:aaaa:bbbb::/64&lt;/prefix&gt;
                &lt;algorithm xmlns:sr-cmn="urn:ietf:params:xml:ns:yang\
                  :ietf-segment-routing-common"&gt;\
                  sr-cmn:prefix-sid-algorithm-shortest-path\
                &lt;/algorithm&gt;
                &lt;start-sid&gt;200&lt;/start-sid&gt;
                &lt;range&gt;100&lt;/range&gt;
              &lt;/mapping-entry&gt;
            &lt;/entries&gt;
          &lt;/policy&gt;
        &lt;/mapping-server&gt;
        &lt;connected-prefix-sid-map&gt;
          &lt;connected-prefix-sid&gt;
            &lt;prefix&gt;2001:db8:aaaa:cccc::/64&lt;/prefix&gt;
            &lt;algorithm xmlns:sr-cmn="urn:ietf:params:xml:ns:yang:\
              ietf-segment-routing-common"&gt;\
              sr-cmn:prefix-sid-algorithm-strict-spf&lt;/algorithm&gt;
            &lt;start-sid&gt;100&lt;/start-sid&gt;
            &lt;range&gt;1&lt;/range&gt;
            &lt;last-hop-behavior&gt;php&lt;/last-hop-behavior&gt;
          &lt;/connected-prefix-sid&gt;
        &lt;/connected-prefix-sid-map&gt;
      &lt;/bindings&gt;
      &lt;srgb&gt;
        &lt;srgb&gt;
          &lt;lower-bound&gt;45000&lt;/lower-bound&gt;
          &lt;upper-bound&gt;55000&lt;/upper-bound&gt;
        &lt;/srgb&gt;
      &lt;/srgb&gt;
    &lt;/sr-mpls&gt;
  &lt;/segment-routing&gt;
&lt;/routing&gt;
</sourcecode>
        <t indent="0" pn="section-a.2-3">The following is the same example using JSON format.</t>
        <sourcecode type="json" markers="false" pn="section-a.2-4">
{
  "ietf-routing:routing": {
    "ietf-segment-routing:segment-routing": {
      "ietf-segment-routing-mpls:sr-mpls": {
        "bindings": {
          "mapping-server": {
            "policy": [
              {
                "name": "mapping 1",
                "entries": {
                  "mapping-entry": [
                    {
                      "prefix": "2001:db8:aaaa:bbbb::/64",
                      "algorithm": "ietf-segment-routing-common:\
                      prefix-sid-algorithm-shortest-path",
                      "start-sid": 200,
                      "range": 100
                    }
                  ]
                }
              }
            ]
          },
          "connected-prefix-sid-map": {
            "connected-prefix-sid": [
              {
                "prefix": "2001:db8:aaaa:cccc::/64",
                "algorithm": "ietf-segment-routing-common:\
                prefix-sid-algorithm-strict-spf",
                "start-sid": 100,
                "range": 1,
                "last-hop-behavior": "php"
              }
            ]
          }
        },
        "srgb": {
          "srgb": [
            {
              "lower-bound": 45000,
              "upper-bound": 55000
            }
          ]
        }
      }
    }
  }
}
</sourcecode>
      </section>
    </section>
    <section anchor="Acknowledgements" toc="include" numbered="false" removeInRFC="false" pn="section-appendix.b">
      <name slugifiedName="name-acknowledgements">Acknowledgements</name>
      <t indent="0" pn="section-appendix.b-1">The authors would like to thank <contact fullname="Derek Yeung"/>, <contact fullname="Greg Hankins"/>, <contact fullname="Hannes Gredler"/>, <contact fullname="Uma Chunduri"/>,
      <contact fullname="Jeffrey Zhang"/>, <contact fullname="Shradda Hedge"/>, and <contact fullname="Les Ginsberg"/> for their contributions.</t>
      <t indent="0" pn="section-appendix.b-2">Thanks to <contact fullname="Ladislav Lhotka"/> and <contact fullname="Tom Petch"/> for 
      their thorough reviews and helpful comments.</t>
      <t indent="0" pn="section-appendix.b-3">The authors would like to thank <contact fullname="Benjamin Kaduk"/>, <contact fullname="Alvaro Retana"/>, and <contact fullname="Roman Danyliw"/> for IESG
         review and comments.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.c">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author fullname="Stephane Litkowski" initials="S" surname="Litkowski">
        <organization showOnFrontPage="true">Cisco Systems</organization>
        <address>
          <email>slitkows.ietf@gmail.com</email>
        </address>
      </author>
      <author fullname="Yingzhen Qu" initials="Y" surname="Qu">
        <organization showOnFrontPage="true">Futurewei</organization>
        <address>
          <email>yingzhen.qu@futurewei.com</email>
        </address>
      </author>
      <author fullname="Acee Lindem" initials="A" surname="Lindem">
        <organization showOnFrontPage="true">Cisco Systems</organization>
        <address>
          <postal>
            <street>301 Mindenhall Way</street>
            <city>Cary</city>
            <region>NC</region>
            <code>27513</code>
            <country>United States of America</country>
          </postal>
          <email>acee@cisco.com</email>
        </address>
      </author>
      <author fullname="Pushpasis Sarkar" initials="P" surname="Sarkar">
        <organization showOnFrontPage="true">VMware, Inc</organization>
        <address>
          <email>pushpasis.ietf@gmail.com</email>
        </address>
      </author>
      <author fullname="Jeff Tantsura" initials="J" surname="Tantsura">
        <organization showOnFrontPage="true">Juniper Networks</organization>
        <address>
          <email>jefftant.ietf@gmail.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
