<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" submissionType="IETF" category="std" consensus="true" docName="draft-ietf-opsawg-sap-15" number="9408" ipr="trust200902" obsoletes="" updates="" xml:lang="en" tocInclude="true" tocDepth="4" symRefs="true" sortRefs="true" prepTime="2023-06-20T21:56:35" indexInclude="true" scripts="Common,Latin">
  <link href="https://datatracker.ietf.org/doc/draft-ietf-opsawg-sap-15" rel="prev"/>
  <link href="https://dx.doi.org/10.17487/rfc9408" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <front>
    <title abbrev="A YANG Network Data Model for SAPs">A YANG Network Data Model for Service Attachment Points (SAPs)</title>
    <seriesInfo name="RFC" value="9408" stream="IETF"/>
    <author fullname="Mohamed Boucadair" initials="M." role="editor" surname="Boucadair">
      <organization showOnFrontPage="true">Orange</organization>
      <address>
        <postal>
          <street/>
          <city/>
          <region/>
          <code/>
          <country>France</country>
        </postal>
        <email>mohamed.boucadair@orange.com</email>
      </address>
    </author>
    <author fullname="Oscar Gonzalez de Dios" initials="O" surname="Gonzalez de Dios">
      <organization showOnFrontPage="true">Telefonica</organization>
      <address>
        <postal>
          <street/>
          <city>Madrid</city>
          <region/>
          <code/>
          <country>Spain</country>
        </postal>
        <email>oscar.gonzalezdedios@telefonica.com</email>
      </address>
    </author>
    <author fullname="Samier Barguil" initials="S." surname="Barguil">
      <organization showOnFrontPage="true">Nokia</organization>
      <address>
        <postal>
          <street/>
          <city>Madrid</city>
          <region/>
          <code/>
          <country>Spain</country>
        </postal>
        <email>samier.barguil_giraldo@nokia.com</email>
      </address>
    </author>
    <author fullname="Qin Wu" initials="Q." surname="Wu">
      <organization showOnFrontPage="true">Huawei</organization>
      <address>
        <postal>
          <extaddr>Yuhua District</extaddr>
          <street>101 Software Avenue</street>
          <city>Nanjing</city>
          <region>Jiangsu</region>
          <code>210012</code>
          <country>China</country>
        </postal>
        <email>bill.wu@huawei.com</email>
      </address>
    </author>
    <author fullname="Victor Lopez" initials="V." surname="Lopez">
      <organization showOnFrontPage="true">Nokia</organization>
      <address>
        <postal>
          <street/>
          <city/>
          <region/>
          <code/>
          <country>Spain</country>
        </postal>
        <email>victor.lopez@nokia.com</email>
      </address>
    </author>
    <date month="06" year="2023"/>
    <area>ops</area>
    <workgroup>opsawg</workgroup>
    <keyword>Service Infrastructure</keyword>
    <keyword>User Network Interface</keyword>
    <keyword>UNI</keyword>
    <keyword>NNI</keyword>
    <keyword>Network-to-Network Interface</keyword>
    <keyword>Inter-AS VPN</keyword>
    <keyword>CE</keyword>
    <keyword>PE</keyword>
    <keyword>Attachment Circuit</keyword>
    <keyword>Service Delivery Point</keyword>
    <keyword>Automation</keyword>
    <keyword>Service Delivery</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">This document defines a YANG data model for representing an abstract
      view of the provider network topology that contains the points from
      which its services can be attached (e.g., basic connectivity, VPN,
      network slices). Also, the model can be used to retrieve the points
      where the services are actually being delivered to customers (including
      peer networks).</t>
      <t indent="0" pn="section-abstract-2">This document augments the 'ietf-network' data model defined in RFC 8345
      by adding the concept of Service Attachment Points (SAPs). The SAPs are the
      network reference points to which network services, such as Layer 3 Virtual
      Private Network (L3VPN) or Layer 2 Virtual Private Network (L2VPN), can
      be attached. One or multiple services can be bound to the same SAP. Both
      User-to-Network Interface (UNI) and Network-to-Network Interface (NNI) are
      supported in the SAP data model.</t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t indent="0" pn="section-boilerplate.1-1">
            This is an Internet Standards Track document.
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by
            the Internet Engineering Steering Group (IESG).  Further
            information on Internet Standards is available in Section 2 of 
            RFC 7841.
        </t>
        <t indent="0" pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc9408" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t indent="0" pn="section-boilerplate.2-1">
            Copyright (c) 2023 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t indent="0" pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Revised BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Revised BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t indent="0" 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" keepWithNext="true" 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">Terminology</xref></t>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" keepWithNext="true" 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-sample-sap-network-model-us">Sample SAP Network Model Usage</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-relationship-to-other-yang-">Relationship to Other YANG Data Models</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-sap-module-tree-structure">SAP Module Tree Structure</xref></t>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sap-yang-module">SAP YANG Module</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-iana-considerations">IANA Considerations</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-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="9" format="counter" sectionFormat="of" target="section-9"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.9.2">
              <li pn="section-toc.1-1.9.2.1">
                <t indent="0" pn="section-toc.1-1.9.2.1.1"><xref derivedContent="9.1" format="counter" sectionFormat="of" target="section-9.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.9.2.2">
                <t indent="0" pn="section-toc.1-1.9.2.2.1"><xref derivedContent="9.2" format="counter" sectionFormat="of" target="section-9.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.10">
            <t indent="0" pn="section-toc.1-1.10.1"><xref derivedContent="Appendix A" format="default" sectionFormat="of" target="section-appendix.a"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-a-simplified-sap-network-ex">A Simplified SAP Network Example</xref></t>
          </li>
          <li pn="section-toc.1-1.11">
            <t indent="0" pn="section-toc.1-1.11.1"><xref derivedContent="Appendix B" format="default" sectionFormat="of" target="section-appendix.b"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-a-simple-example-of-the-sap">A Simple Example of the SAP Network Model: Node Filter</xref></t>
          </li>
          <li pn="section-toc.1-1.12">
            <t indent="0" pn="section-toc.1-1.12.1"><xref derivedContent="Appendix C" format="default" sectionFormat="of" target="section-appendix.c"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-an-example-of-an-nni-sap-in">An Example of an NNI SAP: Inter-AS VPN Option A</xref></t>
          </li>
          <li pn="section-toc.1-1.13">
            <t indent="0" pn="section-toc.1-1.13.1"><xref derivedContent="Appendix D" format="default" sectionFormat="of" target="section-appendix.d"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-examples-of-using-the-sap-n">Examples of Using the SAP Network Model in Service Creation</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.e"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgements">Acknowledgements</xref></t>
          </li>
          <li pn="section-toc.1-1.15">
            <t indent="0" pn="section-toc.1-1.15.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.f"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-addresses">Authors' Addresses</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section anchor="Introduction" numbered="true" toc="include" removeInRFC="false" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1">Service providers offer a variety of network services to their
      customers. Such services include, but are not limited to, Virtual
      Private Networks (VPNs), Software-Defined Wide-Area Network (SD-WAN) overlay networks
      <xref target="BGP-SDWAN-USAGE" format="default" sectionFormat="of" derivedContent="BGP-SDWAN-USAGE"/>, and network slices
      <xref target="IETF-NETWORK-SLICES" format="default" sectionFormat="of" derivedContent="IETF-NETWORK-SLICES"/>. In order to
      rationalize the overall service operations and allow for more automated
      service provisioning procedures, service providers need to maintain a
      view on where services can be delivered to customers. For example, such a view can be
      used to feed an intelligence entity that is responsible for service
      order handling, service feasibility checks, tracking per-service
      coverage, etc. (e.g., <xref target="RFC8969" sectionFormat="of" section="3.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8969#section-3.2" derivedContent="RFC8969"/>). To
      that aim, this document introduces the concept of Service Attachment
      Points (SAPs).</t>
      <t indent="0" pn="section-1-2">The SAPs represent the network reference points where network
      services can be delivered to customers. For example, this concept is
      used to decide where to attach and thus deliver the service in the
      Layer 3 VPN Service Model (L3SM) <xref target="RFC8299" format="default" sectionFormat="of" derivedContent="RFC8299"/> and the
      Layer 2 VPN Service Model (L2SM) <xref target="RFC8466" format="default" sectionFormat="of" derivedContent="RFC8466"/>. It can
      also be used to retrieve where such services are delivered to customers
      through the network configuration described in the Layer 3 VPN Network
      Model (L3NM) <xref target="RFC9182" format="default" sectionFormat="of" derivedContent="RFC9182"/> and the Layer 2 VPN Network
      Model (L2NM) <xref target="RFC9291" format="default" sectionFormat="of" derivedContent="RFC9291"/>.</t>
      <t indent="0" pn="section-1-3">This document defines a YANG network model (<xref target="mod" format="default" sectionFormat="of" derivedContent="Section 6"/>) for representing, managing, and controlling the
      SAPs. The data model augments the 'ietf-network' module <xref target="RFC8345" format="default" sectionFormat="of" derivedContent="RFC8345"/> by adding the concept of SAPs. <xref target="usage" format="default" sectionFormat="of" derivedContent="Section 3"/> provides a sample usage of the model. This
      document explains the scope and purpose of a SAP network model and its
      relationship to other models (<xref target="rel" format="default" sectionFormat="of" derivedContent="Section 4"/>).</t>
      <t indent="0" pn="section-1-4">A network may support multiple services, potentially of different
      types. Whether a SAP topology is dedicated to services of a specific
      service type or an individual service, or is shared among many services of
      different types, is deployment specific. This document supports all of
      these deployment schemes.</t>
      <t indent="0" pn="section-1-5">This document does not make any assumptions about the services
      provided by a network to its users. VPN services (e.g., Layer 3 Virtual
      Private Network (L3VPN) or Layer 2 Virtual Private Network (L2VPN))
      <xref target="RFC4026" format="default" sectionFormat="of" derivedContent="RFC4026"/> are used for illustration purposes
      (Appendices <xref format="counter" target="app1" sectionFormat="of" derivedContent="A"/> and <xref format="counter" target="sample" sectionFormat="of" derivedContent="B"/>).</t>
      <t indent="0" pn="section-1-6">Given that User-to-Network Interface (UNI) and Network-to-Network
      Interface (NNI) are reference points that are widely used by operators
      to indicate the demarcation points when delivering services, both UNI
      and NNI SAPs are supported in this document. The reader may refer
      to <xref target="MEF6" format="default" sectionFormat="of" derivedContent="MEF6"/>, <xref target="MEF17" format="default" sectionFormat="of" derivedContent="MEF17"/>, <xref target="RFC6004" format="default" sectionFormat="of" derivedContent="RFC6004"/>, or <xref target="RFC6215" format="default" sectionFormat="of" derivedContent="RFC6215"/> for examples of
      discussions regarding the use of UNI and NNI reference points. An example of NNI
      usage in a VPN context is provided in <xref target="nniapp" format="default" sectionFormat="of" derivedContent="Appendix C"/>.</t>
      <t indent="0" pn="section-1-7">The YANG data model in <xref target="mod" format="default" sectionFormat="of" derivedContent="Section 6"/> conforms to the
      Network Management Datastore Architecture (NMDA) <xref target="RFC8342" format="default" sectionFormat="of" derivedContent="RFC8342"/>.</t>
    </section>
    <section anchor="terminology" numbered="true" toc="include" removeInRFC="false" pn="section-2">
      <name slugifiedName="name-terminology">Terminology</name>
      <t indent="0" pn="section-2-1">The key words "<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>",
      "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>",
      "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>",
      "<bcp14>SHOULD NOT</bcp14>",
      "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>",
      "<bcp14>MAY</bcp14>", and "<bcp14>OPTIONAL</bcp14>" in this document
      are to be interpreted as described in BCP 14
      <xref target="RFC2119" format="default" sectionFormat="of" derivedContent="RFC2119"/> <xref target="RFC8174" format="default" sectionFormat="of" derivedContent="RFC8174"/> when, and only
      when, they appear in all capitals, as shown here.</t>
      <t indent="0" pn="section-2-2">This document assumes that the reader is familiar with the contents
      of <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/>, <xref target="RFC7950" format="default" sectionFormat="of" derivedContent="RFC7950"/>, <xref target="RFC8345" format="default" sectionFormat="of" derivedContent="RFC8345"/>, and <xref target="RFC8309" format="default" sectionFormat="of" derivedContent="RFC8309"/>, as it uses terms from those RFCs.</t>
      <t indent="0" pn="section-2-3">The meanings of the symbols in tree diagrams are defined in <xref target="RFC8340" format="default" sectionFormat="of" derivedContent="RFC8340"/>.</t>
      <t indent="0" pn="section-2-4">This document uses the term "network model" as defined in
      <xref target="RFC8969" sectionFormat="of" section="2.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8969#section-2.1" derivedContent="RFC8969"/>.</t>
      <t indent="0" pn="section-2-5">This document uses the following terms:</t>
      <dl newline="false" spacing="normal" indent="3" pn="section-2-6">
        <dt pn="section-2-6.1">Service provider: </dt>
        <dd pn="section-2-6.2">The organization responsible for
          operating the network that offers a service (e.g., a VPN) to
          customers.</dd>
        <dt pn="section-2-6.3">Attachment Circuit (AC):</dt>
        <dd pn="section-2-6.4">A channel that connects a
          Customer Edge (CE) to a Provider Edge (PE).</dd>
        <dt pn="section-2-6.5">Customer Edge (CE): </dt>
        <dd pn="section-2-6.6">Equipment that is dedicated to a
          particular customer and is directly connected to one or more PEs via
          ACs. A CE is usually located at the customer premises. A CE may be
          dedicated to a single service (e.g., an L3VPN), although it may support
          multiple VPNs if each one has separate ACs. A CE can
          be a router, a bridge, a switch, etc.</dd>
        <dt pn="section-2-6.7">Provider Edge (PE): </dt>
        <dd pn="section-2-6.8">Equipment owned and managed by
          the service provider that can support multiple services (e.g., VPNs)
          for different customers. A PE is directly connected to one or more
          CEs via ACs.</dd>
        <dt pn="section-2-6.9">Service Attachment Points (SAPs):</dt>
        <dd pn="section-2-6.10">An abstraction of
          the network reference points (e.g., the PE side of an AC, or the CE side of an
          AC for a provider-managed CE) where network services can be
          delivered and/or are delivered to customers. A SAP can be bound to
          one or multiple ACs.</dd>
      </dl>
    </section>
    <section anchor="usage" numbered="true" toc="include" removeInRFC="false" pn="section-3">
      <name slugifiedName="name-sample-sap-network-model-us">Sample SAP Network Model Usage</name>
      <t indent="0" pn="section-3-1">A service provider network's management operations can be automated
      using a variety of means such as interfaces based on YANG modules <xref target="RFC8969" format="default" sectionFormat="of" derivedContent="RFC8969"/> <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>. From that standpoint, and considering the
      architecture depicted in <xref target="fi1" format="default" sectionFormat="of" derivedContent="Figure 1"/>, a goal of this
      document is to provide a mechanism to show, via a YANG-based interface, an
      abstracted network view from the network controller to the service
      orchestration layer with a focus on where a service can be delivered to
      customers. The model is also used to retrieve the network reference
      points where a service is being delivered to customers. For services
      that require resources from peer networks, the model can also be used
      to expose NNIs.</t>
      <figure anchor="fi1" align="left" suppress-title="false" pn="figure-1">
        <name slugifiedName="name-sap-network-model-usage">SAP Network Model Usage</name>
        <artwork align="left" name="" type="" alt="" pn="section-3-2.1">                            +-----------------+
                            |     Customer    |
                            +--------+--------+
            Customer Service Models  |
               (e.g., L3SM, L2SM)    |
                            +--------+--------+
                            |    Service      |
                            |  Orchestration  |
                            +------+---+------+
                Network Models     |   | SAP Network Model
              (e.g., L3NM, L2NM)   |   |
                            +------+---+------+
                            |     Network     |
                            |   Controller    |
                            +--------+--------+
                                     |
               +---------------------+---------------------+
               |                  Network                  |
               +-------------------------------------------+
</artwork>
      </figure>
      <t indent="0" pn="section-3-3">The reader may refer to <xref target="RFC4026" sectionFormat="of" section="5" format="default" derivedLink="https://rfc-editor.org/rfc/rfc4026#section-5" derivedContent="RFC4026"/> for an overview of the building blocks that are usually invoked when
      characterizing a service provider network.</t>
      <t indent="0" pn="section-3-4">The service orchestration layer does not need to know about all the
      internals of the underlying network (e.g., P nodes (<xref target="RFC4026" sectionFormat="of" section="5.3.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc4026#section-5.3.1" derivedContent="RFC4026"/>)). <xref target="fi2a" format="default" sectionFormat="of" derivedContent="Figure 2"/> shows the abstract network view as seen by a
      service orchestrator. However, this view is not enough to provide to the
      service orchestration layer the information to create services in the
      network. The service topology needs to be able to expose the set of
      nodes and the attachment points associated with the nodes from which
      network services can be grafted (delivered).</t>
      <figure anchor="fi2a" align="left" suppress-title="false" pn="figure-2">
        <name slugifiedName="name-abstract-network-topology">Abstract Network Topology</name>
        <artwork align="center" name="" type="" alt="" pn="section-3-5.1">.---------.          .---------.
|   PE1   |          |   PE2   |
'---------'          '---------'
           \        /
            \------/
            (      )
           (        )
            (      )
            /------\
          /         \                                       
.---------.          .---------.
|   PE3   |          |   PE4   |
'---------'          '---------'
</artwork>
      </figure>
      <t indent="0" pn="section-3-6">Typically, and focusing on the UNIs, the service orchestration layer
      would see a set of PEs and a set of client-facing interfaces (physical
      or logical) to which CEs can be connected (or are actually connected).
      Such interfaces are also referred to as UNI-N (User-to-Network
      Interface, Network side) <xref target="RFC6215" format="default" sectionFormat="of" derivedContent="RFC6215"/>. The service
      orchestration layer can use these interfaces to set up the requested
      services or to commit the delivery of a service. <xref target="fi3" format="default" sectionFormat="of" derivedContent="Figure 3"/> depicts a sample SAP network topology that is
      maintained by the network controller and exposed to the service
      orchestration.</t>
      <figure anchor="fi3" align="left" suppress-title="false" pn="figure-3">
        <name slugifiedName="name-a-sap-network-topology">A SAP Network Topology</name>
        <artwork align="center" name="" type="" alt="" pn="section-3-7.1">           .-+-. .-+-. .-+-.              .-+-.       .-+-.   
         .-|sap|-|sap|-|sap|-.          .-|sap|-------|sap|-. 
         | '---' '---' '---' |          | '---'       '---' |
       .---.                 |          |                   |
       |sap|      PE1        |          |         PE2       |
       '---'                 |          |                   |
         |                   |          |                   |
         '-------------------'          '-------------------'
                                                   
                                                   
         .-------------------.          .-------------------.
         |                   |          |                   |
         |                   |          |                 .---.
         |         PE3       |          |        PE4      |sap|
         |                   |          |                 '---'
         | .---. .---. .---. |          | .---. .---. .---. |  
         '-|sap|-|sap|-|sap|-'          '-|sap|-|sap|-|sap|-'  
           '-+-' '-+-' '-+-'              '-+-' '-+-' '-+-'       
</artwork>
      </figure>
      <t indent="0" pn="section-3-8">A single SAP network topology can be used for one or multiple service
      types (e.g., L3VPN, Ethernet VPN (EVPN)). The network controller can
      then expose the service types and associated interfaces via the
      SAPs.</t>
      <t indent="0" pn="section-3-9">As shown in <xref target="fi3a" format="default" sectionFormat="of" derivedContent="Figure 4"/>, the service orchestration
      layer will also have access to a set of customer service models (e.g.,
      the L3SM or the L2SM) in the customer-facing interface and a set of
      network models (e.g., the L3NM and network topology data models) in the
      resource-facing interface. In this use case, it is assumed that the
      network controller is unaware of what happens beyond the PEs towards the
      CEs; it is only responsible for the management and control of the SAPs
      and the network between PEs. In order to correlate between delivery
      points expressed in service requests and SAPs, the SAP model may include
      a peer customer point identifier. That identifier can be a CE
      identifier, a site identifier, etc.</t>
      <figure anchor="fi3a" align="left" suppress-title="false" pn="figure-4">
        <name slugifiedName="name-network-topology-with-ces-a">Network Topology with CEs and ACs</name>
        <artwork align="center" name="" type="" alt="" pn="section-3-10.1">                                                     .---.
                                                     |CE2|
                                                     '-+-'
                                                       | 
           .-+-. .-+-. .-+-.             .-+-.       .-+-.   
         .-|sap|-|sap|-|sap|-.         .-|sap|-------|sap|-. 
         | '---' '---' '---' |         | '---'       '---' |
.---.  .---.                 |         |                   |
|CE1+--+sap|      PE1        |         |         PE2       |
'---'  '---'                 |         |                   |
         |                   |         |                   |
         '-------------------'         '-------------------'
                                                   
                                                   
         .-------------------.         .-------------------.
         |                   |         |                   |
         |                   |         |                 .---.  .---.
         |         PE3       |         |        PE4      |sap+--+CE5|
         |                   |         |                 '---'  '---'
         | .---. .---. .---. |         | .---. .---. .---. |  
         '-|sap|-|sap|-|sap|-'         '-|sap|-|sap|-|sap|-'   
           '-+-' '-+-' '-+-'             '-+-' '-+-' '-+-'   
                         |                 |     | 
                       .-+-.               |   .-+-.
                       |CE3+---------------'   |CE4|
                       '---'                   '---'   
</artwork>
      </figure>
      <t indent="0" pn="section-3-11">Refer to <xref target="app1" format="default" sectionFormat="of" derivedContent="Appendix A"/> for an example echoing the
      topology depicted in <xref target="fi3a" format="default" sectionFormat="of" derivedContent="Figure 4"/>.</t>
    </section>
    <section anchor="rel" numbered="true" toc="include" removeInRFC="false" pn="section-4">
      <name slugifiedName="name-relationship-to-other-yang-">Relationship to Other YANG Data Models</name>
      <t indent="0" pn="section-4-1">The SAP network model can be seen as inventory data associated with
      SAPs. The model maintains an inventory of customer-facing nodes
      contained in a network relying upon <xref target="RFC8345" format="default" sectionFormat="of" derivedContent="RFC8345"/>.</t>
      <t indent="0" pn="section-4-2"><xref target="fig5" format="default" sectionFormat="of" derivedContent="Figure 5"/> depicts the relationship of the SAP
      network model to other models. The SAP network model augments the
      network model defined in <xref target="RFC8345" format="default" sectionFormat="of" derivedContent="RFC8345"/> and imports the network
      topology model defined in <xref target="RFC8345" format="default" sectionFormat="of" derivedContent="RFC8345"/>, while other technology-specific topology models (e.g., the
      model for Traffic Engineering (TE) topologies <xref target="RFC8795" format="default" sectionFormat="of" derivedContent="RFC8795"/>
      or the model for Layer 3 topologies <xref target="RFC8346" format="default" sectionFormat="of" derivedContent="RFC8346"/>) augment the
      network topology model defined in <xref target="RFC8345" format="default" sectionFormat="of" derivedContent="RFC8345"/>.
</t>
      <figure anchor="fig5" align="left" suppress-title="false" pn="figure-5">
        <name slugifiedName="name-relationship-of-sap-network">Relationship of SAP Network Model to Other Models</name>
        <artwork align="center" name="" type="" alt="" pn="section-4-3.1">                +-------------------------+
                |                         |
                |  Abstract Network Model |
                |                         |
                +------------+------------+
                             |
                   +---------+---------+
                   |                   |
            +------V------+     +------V------+
            |  Abstract   |     |  Inventory  |
            |  Network    |     |    Models   |
            |  Topology   |     |  (e.g., SAP |
            |   Model     |     |   Network   |
            |             |     |    Model)   |
            +-----+-------+     +-------------+
                  |
      +-----------+-----------+
      |           |           |
 +----V----+ +----V----+ +----V----+
 |TE Topo  | |L3 Topo  | |L2 Topo  |
 |  Model  | |  Model  | |  Model  | ...
 +---------+ +---------+ +---------+
</artwork>
      </figure>
      <t indent="0" pn="section-4-4">SAPs can be seen as customer-facing termination points (TPs) with
      specific service provisions. However, one difference between SAPs and TPs
      is that links are terminated by a single TP (<xref target="RFC8345" sectionFormat="of" section="4.4.6" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8345#section-4.4.6" derivedContent="RFC8345"/>) while an AC can be terminated by multiple
      SAPs. Also, a SAP is neither a tunnel termination point (TTP) (<xref target="RFC8795" sectionFormat="of" section="3.6" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8795#section-3.6" derivedContent="RFC8795"/>) nor a link.</t>
      <t indent="0" pn="section-4-5">In the context of Software-Defined Networking (SDN) <xref target="RFC7149" format="default" sectionFormat="of" derivedContent="RFC7149"/> <xref target="RFC7426" format="default" sectionFormat="of" derivedContent="RFC7426"/>, the SAP YANG
      data model can be used to exchange information between control elements,
      so as to support VPN service provision and resource management as discussed
      in <xref target="RFC9182" format="default" sectionFormat="of" derivedContent="RFC9182"/> and <xref target="RFC9291" format="default" sectionFormat="of" derivedContent="RFC9291"/>. Through
      this data model, the service orchestration layer can learn the available
      endpoints (i.e., SAPs) of interconnection resources of the underlying
      network. The service orchestration layer can determine which
      interconnection endpoints to add to an L2VPN or L3VPN service. With the
      help of other data models (e.g., the L3SM <xref target="RFC8299" format="default" sectionFormat="of" derivedContent="RFC8299"/> or the
      L2SM <xref target="RFC8466" format="default" sectionFormat="of" derivedContent="RFC8466"/>), hierarchical control elements can
      also assess the feasibility of end-to-end IP connectivity or L2VPN
      connectivity and therefore can derive the sequence of domains and the
      points of interconnection to use.</t>
      <t indent="0" pn="section-4-6">Advanced interface-specific data nodes are not included in the SAP
      model. The interface identifiers listed in the SAP model can be used as
      filters to set or get such data using device models (e.g., <xref target="RFC7224" format="default" sectionFormat="of" derivedContent="RFC7224"/>).</t>
    </section>
    <section anchor="tree" numbered="true" toc="include" removeInRFC="false" pn="section-5">
      <name slugifiedName="name-sap-module-tree-structure">SAP Module Tree Structure</name>
      <t indent="0" pn="section-5-1">The SAP network model 'ietf-sap-ntw' builds on the 'ietf-network'
      module <xref target="RFC8345" format="default" sectionFormat="of" derivedContent="RFC8345"/> by augmenting the nodes with SAPs.</t>
      <t indent="0" pn="section-5-2">The structure of the 'ietf-sap-ntw' module is shown in <xref target="fi4" format="default" sectionFormat="of" derivedContent="Figure 6"/>.</t>
      <figure anchor="fi4" align="left" suppress-title="false" pn="figure-6">
        <name slugifiedName="name-sap-yang-module-tree-struct">SAP YANG Module Tree Structure</name>
        <sourcecode name="" type="yangtree" markers="false" pn="section-5-3.1">module: ietf-sap-ntw
  augment /nw:networks/nw:network/nw:network-types:
    +--rw sap-network!
       +--rw service-type*   identityref
  augment /nw:networks/nw:network/nw:node:
    +--rw service* [service-type]
       +--rw service-type                   identityref
       +--rw sap* [sap-id]
          +--rw sap-id                      string
          +--rw description?                string
          +--rw parent-termination-point?   nt:tp-id
          +--rw attachment-interface?       string
          +--rw interface-type?             identityref
          +--rw encapsulation-type?         identityref
          +--rw role?                       identityref
          +--rw allows-child-saps?          boolean
          +--rw peer-sap-id*                string
          +--ro sap-status
          |  +--ro status?        identityref
          |  +--ro last-change?   yang:date-and-time
          +--rw service-status
             +--rw admin-status
             |  +--rw status?        identityref
             |  +--rw last-change?   yang:date-and-time
             +--ro oper-status
                +--ro status?        identityref
                +--ro last-change?   yang:date-and-time
</sourcecode>
      </figure>
      <t indent="0" pn="section-5-4">A SAP network topology can be used for one or multiple service types
      ('service-type'). Examples of supported service types are as
      follows:</t>
      <ul spacing="normal" bare="false" empty="false" indent="3" pn="section-5-5">
        <li pn="section-5-5.1">L3VPN <xref target="RFC4364" format="default" sectionFormat="of" derivedContent="RFC4364"/></li>
        <li pn="section-5-5.2">Virtual Private LAN Service (VPLS) <xref target="RFC4761" format="default" sectionFormat="of" derivedContent="RFC4761"/> <xref target="RFC4762" format="default" sectionFormat="of" derivedContent="RFC4762"/></li>
        <li pn="section-5-5.3">
          <xref target="RFC8214" format="default" sectionFormat="of" derivedContent="RFC8214">Virtual Private Wire Service
          (VPWS)</xref></li>
        <li pn="section-5-5.4">
          <xref target="RFC7432" format="default" sectionFormat="of" derivedContent="RFC7432">BGP MPLS-based Ethernet VPN</xref></li>
        <li pn="section-5-5.5">
          <xref target="RFC8214" format="default" sectionFormat="of" derivedContent="RFC8214">VPWS in Ethernet VPN</xref></li>
        <li pn="section-5-5.6">
          <xref target="RFC7623" format="default" sectionFormat="of" derivedContent="RFC7623">Provider Backbone Bridging combined with
          Ethernet VPN (PBB-EVPN)</xref></li>
        <li pn="section-5-5.7">VXLAN-based EVPN <xref target="RFC8365" format="default" sectionFormat="of" derivedContent="RFC8365"/> ("VXLAN" stands for "Virtual eXtensible Local Area Network")</li>
        <li pn="section-5-5.8">Virtual Network <xref target="RFC8453" format="default" sectionFormat="of" derivedContent="RFC8453"/></li>
        <li pn="section-5-5.9">Enhanced VPN (VPN+) <xref target="I-D.ietf-teas-enhanced-vpn" format="default" sectionFormat="of" derivedContent="ENHANCED-VPN"/></li>
        <li pn="section-5-5.10">Network slice service <xref target="IETF-NETWORK-SLICES" format="default" sectionFormat="of" derivedContent="IETF-NETWORK-SLICES"/></li>
        <li pn="section-5-5.11">SD-WAN <xref target="BGP-SDWAN-USAGE" format="default" sectionFormat="of" derivedContent="BGP-SDWAN-USAGE"/></li>
        <li pn="section-5-5.12">Basic IP connectivity</li>
      </ul>
      <t indent="0" pn="section-5-6">These service types build on the types that are already defined in
      <xref target="RFC9181" format="default" sectionFormat="of" derivedContent="RFC9181"/> and additional types that are defined in this
      document. Other service types can be defined in future YANG modules
      (including future revisions of the YANG module defined in this
      document), if needed.</t>
      <aside pn="section-5-7">
        <t indent="0" pn="section-5-7.1">Leveraging the service types defined in
        <xref target="RFC9181" format="default" sectionFormat="of" derivedContent="RFC9181"/> is meant to ease the correlation between the
        SAP topology and the corresponding network models that are used to
        provision a specific service over a provider's network.</t>
      </aside>
      <t indent="0" pn="section-5-8">Filters based on the service type can be used to access per-service
      SAP topology. An example is depicted in <xref target="app-ex-res-body-filter" format="default" sectionFormat="of" derivedContent="Figure 10"/> in <xref target="sample" format="default" sectionFormat="of" derivedContent="Appendix B"/>.</t>
      <t indent="0" pn="section-5-9">A node in the topology can support one or multiple service types
      ('service-type') among those listed under the 'sap-network' container. A
      list of SAPs is then bound to each service type that is supported by a
      given node. Each SAP is characterized as follows:</t>
      <dl newline="false" spacing="normal" indent="3" pn="section-5-10">
        <dt pn="section-5-10.1">'sap-id':</dt>
        <dd pn="section-5-10.2">
          <t indent="0" pn="section-5-10.2.1">Includes an identifier that uniquely
          identifies a SAP within a node. </t>
          <t indent="0" pn="section-5-10.2.2">The same
          SAP may appear under distinct service types. In such a case, the
          same identifier is used for a shared SAP for each of these service types.</t>
          <t indent="0" pn="section-5-10.2.3">SAPs that are associated with
          the interfaces that are directly hosting services, interfaces that
          are ready to host per-service sub-interfaces (but are not yet
          activated), or services that are already instantiated on
          sub-interfaces are listed as SAPs. For illustration purposes, <xref target="app-ex-res-body" format="default" sectionFormat="of" derivedContent="Figure 9"/> in <xref target="sample" format="default" sectionFormat="of" derivedContent="Appendix B"/> depicts how to indicate interfaces that
          are capable of hosting per-service sub-interfaces.</t>
          <t indent="0" pn="section-5-10.2.4">For example, 'sap-id' may be the VPN network access
          identifier defined in <xref target="RFC9182" sectionFormat="of" section="7.6" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9182#section-7.6" derivedContent="RFC9182"/>. An example
          that illustrates the use of this attribute during service creation is
          provided in <xref target="servicesap" format="default" sectionFormat="of" derivedContent="Appendix D"/>.</t>
        </dd>
        <dt pn="section-5-10.3">'description':</dt>
        <dd pn="section-5-10.4">Includes a textual description of the
          SAP.</dd>
        <dt pn="section-5-10.5">'parent-termination-point':</dt>
        <dd pn="section-5-10.6">
          <t indent="0" pn="section-5-10.6.1">Includes a reference to
          the parent termination point to which the SAP is bound. As per
          <xref target="RFC8345" sectionFormat="of" section="4.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8345#section-4.2" derivedContent="RFC8345"/>, a termination point
          terminates a link in a node. A termination point can be a physical
          port, an interface, etc. </t>
          <t indent="0" pn="section-5-10.6.2">The referenced
          parent termination point is expected to be a customer-facing
          termination point, not a core-facing termination point.</t>
          <t indent="0" pn="section-5-10.6.3">For example, this attribute is used to associate an
          interface with its sub-interfaces, as all these interfaces may be
          listed under the SAPs of a node. It is also used to link a SAP with
          the physical topology. </t>
          <t indent="0" pn="section-5-10.6.4">For example, this
          data node can be used to map the IETF Network Slice endpoints <xref target="IETF-NETWORK-SLICES" format="default" sectionFormat="of" derivedContent="IETF-NETWORK-SLICES"/> to the
          service/tunnel/path endpoints in the underlay network.</t>
        </dd>
        <dt pn="section-5-10.7">'attachment-interface':</dt>
        <dd pn="section-5-10.8">
          <t indent="0" pn="section-5-10.8.1">Indicates a reference to the
          interface to which the SAP is bound. The same interface may host
          multiple services. </t>
          <t indent="0" pn="section-5-10.8.2">Whether the attachment
          identifier echoes the content of the attachment interface is
          deployment specific. </t>
          <t indent="0" pn="section-5-10.8.3">For example, this
          reference may be any of the identifiers ('l2-termination-point',
          'local-bridge-reference', 'bearer-reference', or 'lag-interface-id')
          defined in <xref target="RFC9182" sectionFormat="of" section="7.6.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9182#section-7.6.1" derivedContent="RFC9182"/> or
          'l3-termination-point' as defined in <xref target="RFC9182" sectionFormat="of" section="7.6.2" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9182#section-7.6.2" derivedContent="RFC9182"/>. The controller is responsible for
          ensuring that consistent references are used in the SAP and underlying
          device models or any other device inventory mechanism.</t>
        </dd>
        <dt pn="section-5-10.9">'interface-type':</dt>
        <dd pn="section-5-10.10">
          <t indent="0" pn="section-5-10.10.1">Indicates whether a SAP is bound to
          a physical port, a loopback interface, a Link Aggregation Group
          (LAG) interface <xref target="IEEE802.1AX" format="default" sectionFormat="of" derivedContent="IEEE802.1AX"/>, an Integrated Routing and Bridging (IRB) interface (e.g., <xref target="RFC9135" format="default" sectionFormat="of" derivedContent="RFC9135"/>), a local bridge
          reference, etc.</t>
          <t indent="0" pn="section-5-10.10.2">The mapping to the detailed
          interface types as per <xref target="RFC7224" format="default" sectionFormat="of" derivedContent="RFC7224"/> is maintained by
          the controller. That mapping is used, for example, when the
          controller translates this SAP network model into device models
          (<xref target="RFC8969" sectionFormat="of" section="4.4" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8969#section-4.4" derivedContent="RFC8969"/>).</t>
        </dd>
        <dt pn="section-5-10.11">'encapsulation-type':</dt>
        <dd pn="section-5-10.12">
          <t indent="0" pn="section-5-10.12.1">Indicates the encapsulation type
          for the interface indicated in the 'attachment-interface' attribute.
          The types are taken from <xref target="RFC9181" format="default" sectionFormat="of" derivedContent="RFC9181"/>. </t>
          <t indent="0" pn="section-5-10.12.2">This data node can be used, for example, to decide
          whether an existing SAP can be (re)used to host a service or if a
          new sub-interface has to be instantiated.</t>
        </dd>
        <dt pn="section-5-10.13">'role':</dt>
        <dd pn="section-5-10.14">
          <t indent="0" pn="section-5-10.14.1">Specifies the role of a SAP (e.g., a UNI or
          NNI). </t>
          <t indent="0" pn="section-5-10.14.2">A SAP inherits the role of its parent
          interface ('parent-termination-point').</t>
        </dd>
        <dt pn="section-5-10.15">'allows-child-saps':</dt>
        <dd pn="section-5-10.16">
          <t indent="0" pn="section-5-10.16.1">When set to 'true', indicates that the attachment interface for
          this SAP is capable of hosting per-service sub-interfaces. </t>
          <t indent="0" pn="section-5-10.16.2">Whether a service can be directly attached to the
          parent SAP in addition to child SAPs depends on the service.</t>
        </dd>
        <dt pn="section-5-10.17">'peer-sap-id':</dt>
        <dd pn="section-5-10.18">
          <t indent="0" pn="section-5-10.18.1">Includes references to the remote
          endpoints of an AC. This identifier may or may not
          be the same as the SAP identifier used in the peer's configuration.
          Note that the use of identical identifiers eases the correlation between
          a peer's service request and a local SAP. </t>
          <t indent="0" pn="section-5-10.18.2">Examples of such a reference are a site identifier
          (<xref target="RFC8299" sectionFormat="of" section="6.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8299#section-6.3" derivedContent="RFC8299"/>), a Service Demarcation
          Point (SDP) identifier (Section <xref target="IETF-NETWORK-SLICES" section="3.2" sectionFormat="bare" format="default" derivedLink="https://datatracker.ietf.org/doc/html/draft-ietf-teas-ietf-network-slices-19#section-3.2" derivedContent="IETF-NETWORK-SLICES">"Core Terminology"</xref> of <xref target="IETF-NETWORK-SLICES" format="default" sectionFormat="of" derivedContent="IETF-NETWORK-SLICES"/>), and the IP address
          of a peer Autonomous System Border Router (ASBR).</t>
        </dd>
        <dt pn="section-5-10.19">'sap-status':</dt>
        <dd pn="section-5-10.20">
          <t indent="0" pn="section-5-10.20.1">Indicates the operational status of a
          SAP. Values are taken from the values defined in <xref target="RFC9181" format="default" sectionFormat="of" derivedContent="RFC9181"/>.</t>
          <t indent="0" pn="section-5-10.20.2">When both a
          sub-interface and its parent interface are present but the parent
          interface is disabled, the status of the parent interface takes
          precedence over the status indicated for the sub-interface.</t>
        </dd>
        <dt pn="section-5-10.21">'service-status':</dt>
        <dd pn="section-5-10.22">
          <t indent="0" pn="section-5-10.22.1">Indicates the administrative and
          operational status of the service for a given SAP. This information
          is particularly useful when many services are provisioned for the
          same SAP but only a subset of these services is activated. As
          such, the administrative 'service-status' <bcp14>MUST NOT</bcp14> be influenced by
          the value of the operational 'sap-status'. </t>
          <t indent="0" pn="section-5-10.22.2">The service 'oper-status' reflects the operational
          status of the service only as observed at a specific SAP, not the
          overall network-level status of the service connecting many SAPs.
          The network-level service status can be retrieved using specific
          network models, e.g., those listed in <xref target="RFC9182" sectionFormat="of" section="7.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9182#section-7.3" derivedContent="RFC9182"/> or
          <xref target="RFC9291" sectionFormat="of" section="7.3" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9291#section-7.3" derivedContent="RFC9291"/>. </t>
          <t indent="0" pn="section-5-10.22.3">In order to assess the service delivery status for
          a given SAP, it is recommended to check both the administrative and
          operational service status ('service-status') in addition to the
          'sap-status'. In doing so, a network controller (or operator) can
          detect anomalies. For example, if a service is administratively
          enabled for a SAP and the 'sap-status' of that SAP is reported as
          being down, the service 'oper-status' is also expected to be down.
          Retrieving a distinct service operational status under these
          conditions can be used as a trigger to detect an anomaly. Likewise,
          administrative status and operational status can be compared to
          detect service-specific SAP activation anomalies. For example, a
          service that is administratively declared as inactive for a SAP but
          reported as operationally active for that SAP is an indication that
          some service provision actions are needed to align the observed
          service status with the expected service status.</t>
        </dd>
      </dl>
    </section>
    <section anchor="mod" numbered="true" toc="include" removeInRFC="false" pn="section-6">
      <name slugifiedName="name-sap-yang-module">SAP YANG Module</name>
      <t indent="0" pn="section-6-1">This module imports types from <xref target="RFC6991" format="default" sectionFormat="of" derivedContent="RFC6991"/>, <xref target="RFC8345" format="default" sectionFormat="of" derivedContent="RFC8345"/>, and <xref target="RFC9181" format="default" sectionFormat="of" derivedContent="RFC9181"/>.</t>
      <t indent="0" pn="section-6-2">The 'sap-entry' and 'sap-list' are defined as groupings for the reuse
      of these nodes in service-specific YANG modules.</t>
      <sourcecode name="ietf-sap-ntw@2023-06-20.yang" type="yang" markers="true" pn="section-6-3">
module ietf-sap-ntw {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-sap-ntw";
  prefix sap;

  import ietf-network-topology {
    prefix nt;
    reference
      "RFC 8345: A YANG Data Model for Network
                 Topologies, Section 6.2";
  }
  import ietf-network {
    prefix nw;
    reference
      "RFC 8345: A YANG Data Model for Network
                 Topologies, Section 6.1";
  }
  import ietf-vpn-common {
    prefix vpn-common;
    reference
      "RFC 9181: A Common YANG Data Model for Layer 2 and Layer 3
                 VPNs";
  }
  import ietf-yang-types {
    prefix yang;
    reference
      "RFC 6991: Common YANG Data Types, Section 3";
  }

  organization
    "IETF OPSA (Operations and Management Area) Working Group";
  contact
    "WG Web:   &lt;https://datatracker.ietf.org/wg/opsawg/&gt;
     WG List:  &lt;mailto:opsawg@ietf.org&gt;

     Editor:   Mohamed Boucadair
               &lt;mailto:mohamed.boucadair@orange.com&gt;

     Author:   Oscar Gonzalez de Dios
               &lt;mailto:oscar.gonzalezdedios@telefonica.com&gt;

     Author:   Samier Barguil
               &lt;mailto:samier.barguil_giraldo@nokia.com&gt;

     Author:   Qin Wu
               &lt;mailto:bill.wu@huawei.com&gt;

     Author:   Victor Lopez
               &lt;mailto:victor.lopez@nokia.com&gt;";
  description
    "This YANG module defines a model for representing, managing,
     and controlling the Service Attachment Points (SAPs) in the
     network topology.

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

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

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

  revision 2023-06-20 {
    description
      "Initial version.";
    reference
      "RFC 9408: A YANG Network Data Model for Service Attachment
                 Points (SAPs)";
  }

  identity virtual-network {
    base vpn-common:service-type;
    description
      "Virtual network.  Refers to a logical network instance
       that is built over a physical network.";
    reference
      "RFC 8453: Framework for Abstraction and Control of TE
                 Networks (ACTN)";
  }

  identity enhanced-vpn {
    base vpn-common:service-type;
    description
      "Enhanced VPN (VPN+).  VPN+ is an approach that is
       based on existing VPN and Traffic Engineering (TE)
       technologies but adds characteristics that specific
       services require over and above conventional VPNs.";
    reference
      "draft-ietf-teas-enhanced-vpn:
         A Framework for Enhanced Virtual Private Network
         (VPN+)";
  }

  identity network-slice {
    base vpn-common:service-type;
    description
      "IETF Network Slice.  An IETF Network Slice
       is a logical network topology connecting a number of
       endpoints using a set of shared or dedicated network
       resources that are used to satisfy specific service
       objectives.";
    reference
      "draft-ietf-teas-ietf-network-slices:
         A Framework for IETF Network Slices";
  }

  identity sdwan {
    base vpn-common:service-type;
    description
      "PE-based Software-Defined Wide-Area Network (SD-WAN).";
    reference
      "draft-ietf-bess-bgp-sdwan-usage:
         BGP Usage for SD-WAN Overlay Networks";
  }

  identity basic-connectivity {
    base vpn-common:service-type;
    description
      "Basic IP connectivity.  This is, for example, a plain
       form of connectivity offered to enterprises over a
       dedicated or shared MPLS infrastructure.";
  }

  identity interface-role {
    description
      "Base identity for the network role of an interface.";
  }

  identity uni {
    base interface-role;
    description
      "User-to-Network Interface (UNI).";
  }

  identity nni {
    base interface-role;
    description
      "Network-to-Network Interface (NNI).";
  }

  identity interface-type {
    description
      "Base identity for the interface type.";
  }

  identity phy {
    base interface-type;
    description
      "Physical port.";
  }

  identity loopback {
    base interface-type;
    description
      "Loopback interface.";
  }

  identity lag {
    base interface-type;
    description
      "Link Aggregation Group (LAG) interface.";
  }

  identity irb {
    base interface-type;
    description
      "Integrated Routing and Bridging (IRB) interface.  An IRB
       interface typically connects an IP Virtual Routing and
       Forwarding (IP-VRF) entity to a bridge domain.";
  }

  identity local-bridge {
    base interface-type;
    description
      "A local bridge reference to accommodate (for example)
       implementations that require internal bridging.
       When such a type is used, a reference to a local
       bridge domain is used to identify the interface.";
  }

  identity logical {
    base interface-type;
    description
      "Refers to a logical sub-interface that is typically
       used to bind a service.  This type is used only
       if none of the other more specific types (i.e.,
       'loopback', 'lag', 'irb', or 'local-bridge') can be used.";
  }

  grouping sap-entry {
    description
      "Service Attachment Point (SAP) entry information.";
    leaf sap-id {
      type string;
      description
        "Indicates an identifier that uniquely identifies
         a SAP.";
    }
    leaf description {
      type string;
      description
        "A textual description of the SAP.";
    }
    leaf parent-termination-point {
      type nt:tp-id;
      description
        "Indicates the parent termination point to
         which the SAP is attached.  A termination
         point can be a physical port, an interface, etc.";
    }
    leaf attachment-interface {
      type string;
      description
        "Indicates the interface to which the SAP is bound.";
    }
    leaf interface-type {
      type identityref {
        base interface-type;
      }
      description
        "The type of the interface to which the SAP is bound.";
    }
    leaf encapsulation-type {
      type identityref {
        base vpn-common:encapsulation-type;
      }
      description
        "Encapsulation type of the interface to which the
         SAP is bound.";
    }
    leaf role {
      type identityref {
        base interface-role;
      }
      description
        "Indicates the role of a SAP.";
    }
    leaf allows-child-saps {
      type boolean;
      description
        "Indicates whether the attachment interface of this
         SAP is capable of hosting per-service sub-interfaces.";
    }
    leaf-list peer-sap-id {
      type string;
      description
        "Indicates an identifier of the peer's termination
         identifier (e.g., a Customer Edge (CE)).  This
         information can be used for correlation purposes,
         such as identifying the SAP that is attached to
         an endpoint that is provided in a service request.";
    }
  }

  grouping sap-list {
    description
      "SAP information.";
    list sap {
      key "sap-id";
      description
        "The SAPs are an abstraction of the points to which
         network services such as L3VPNs, L2VPNs, or network
         slices can be attached.";
      uses sap-entry;
      container sap-status {
        config false;
        description
          "Indicates the operational status of the SAP,
           independent of any service provisioned over it.";

        uses vpn-common:oper-status-timestamp;
      }
      container service-status {
        description
          "Indicates the service status.";
        container admin-status {
          description
            "Administrative service status.";
          leaf status {
            type identityref {
              base vpn-common:administrative-status;
            }
            description
              "Administrative status of the service provisioned
               at the SAP.";
          }
          leaf last-change {
            type yang:date-and-time;
            description
              "Indicates the actual date and time of the service
               status change.";
          }
        }
        container oper-status {
          config false;
          description
            "Operational status of the service provisioned
             at the SAP.";
          uses vpn-common:oper-status-timestamp;
        }
      }
    }
  }

  augment "/nw:networks/nw:network/nw:network-types" {
    description
      "Introduces a new network type for a SAP network.";
    container sap-network {
      presence "Indicates the SAP network type.";
      description
        "The presence of the container node indicates the
         SAP network type.";
      leaf-list service-type {
        type identityref {
          base vpn-common:service-type;
        }
        description
          "Indicates the set of supported service types.";
      }
    }
  }

  augment "/nw:networks/nw:network/nw:node" {
    when '../nw:network-types/sap:sap-network' {
      description
        "Augmentation parameters apply only for SAP
         networks.";
    }
    description
      "SAP parameters for the node level.";
    list service {
      key "service-type";
      description
        "A list of supported service types for the node.";
      leaf service-type {
        type identityref {
          base vpn-common:service-type;
        }
        description
          "Indicates a service type.";
      }
      uses sap-list;
    }
  }
}
</sourcecode>
    </section>
    <section anchor="IANA" numbered="true" toc="include" removeInRFC="false" pn="section-7">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t indent="0" pn="section-7-1">This document registers the following namespace URI in the "ns"
      subregistry within the "IETF XML Registry" <xref target="RFC3688" format="default" sectionFormat="of" derivedContent="RFC3688"/>: </t>
      <dl newline="false" spacing="compact" indent="3" pn="section-7-2">
        <dt pn="section-7-2.1">URI:</dt>
        <dd pn="section-7-2.2">urn:ietf:params:xml:ns:yang:ietf-sap-ntw</dd>
        <dt pn="section-7-2.3">Registrant Contact:</dt>
        <dd pn="section-7-2.4">The IESG.</dd>
        <dt pn="section-7-2.5">XML:</dt>
        <dd pn="section-7-2.6">N/A; the requested URI is an XML namespace.</dd>
      </dl>
      <t indent="0" pn="section-7-3">This document registers the following YANG module in the "YANG Module
      Names" subregistry <xref target="RFC6020" format="default" sectionFormat="of" derivedContent="RFC6020"/> within the "YANG
      Parameters" registry: </t>
      <dl newline="false" spacing="compact" indent="3" pn="section-7-4">
        <dt pn="section-7-4.1">Name:</dt>
        <dd pn="section-7-4.2">ietf-sap-ntw</dd>
        <dt pn="section-7-4.3">Namespace:</dt>
        <dd pn="section-7-4.4">urn:ietf:params:xml:ns:yang:ietf-sap-ntw</dd>
        <dt pn="section-7-4.5">Maintained by IANA?</dt>
        <dd pn="section-7-4.6">N</dd>
        <dt pn="section-7-4.7">Prefix:</dt>
        <dd pn="section-7-4.8">sap</dd>
        <dt pn="section-7-4.9">Reference:</dt>
        <dd pn="section-7-4.10">RFC 9408</dd>
      </dl>
    </section>
    <section anchor="scecurity" numbered="true" toc="include" removeInRFC="false" pn="section-8">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-8-1">The YANG module specified in this document defines a schema for data
      that is designed to be accessed via network management protocols such
      as NETCONF <xref target="RFC6241" format="default" sectionFormat="of" derivedContent="RFC6241"/> or RESTCONF <xref target="RFC8040" format="default" sectionFormat="of" derivedContent="RFC8040"/>.
      The lowest NETCONF layer is the secure transport layer, and the
      mandatory-to-implement secure transport is Secure Shell (SSH)
      <xref target="RFC6242" format="default" sectionFormat="of" derivedContent="RFC6242"/>. The lowest RESTCONF layer is HTTPS, and the
      mandatory-to-implement secure transport is TLS <xref target="RFC8446" format="default" sectionFormat="of" derivedContent="RFC8446"/>.</t>
      <t indent="0" pn="section-8-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-8-3">There are a number of data nodes defined in this YANG module that are
      writable/creatable/deletable (i.e., config true, which is the default). These
      data nodes may be considered sensitive or vulnerable in some network
      environments. Write operations (e.g., edit-config) to these data nodes
      without proper protection can have a negative effect on network operations.
      These are the subtrees and data nodes and their
      sensitivity/vulnerability:</t>
      <dl newline="true" spacing="normal" indent="3" pn="section-8-4">
        <dt pn="section-8-4.1">/nw:networks/nw:network/nw:node/sap:service/sap:sap</dt>
        <dd pn="section-8-4.2">This subtree specifies the configurations of the
          nodes in a SAP network model. Unexpected changes to this subtree
          (e.g., associating a SAP with another parent termination point)
          could lead to service disruption and/or network misbehavior. Such
          network misbehavior results mainly from a network configuration that
          is inconsistent with the intended behavior as defined by the
          operator (e.g., <xref target="RFC8969" sectionFormat="of" section="4.2.1" format="default" derivedLink="https://rfc-editor.org/rfc/rfc8969#section-4.2.1" derivedContent="RFC8969"/>).</dd>
      </dl>
      <t indent="0" pn="section-8-5">Some of the readable data nodes in this YANG module may be considered
      sensitive or vulnerable in some network environments. It is thus important to
      control read access (e.g., via get, get-config, or notification) to these
      data nodes. These are the subtrees and data nodes and their
      sensitivity/vulnerability:</t>
      <dl newline="true" spacing="normal" indent="3" pn="section-8-6">
        <dt pn="section-8-6.1">/nw:networks/nw:network/nw:node/sap:service/sap:sap</dt>
        <dd pn="section-8-6.2">Unauthorized access to this subtree can disclose
          the operational state information of the nodes in a SAP network
          model (e.g., can disclose the identity of a customer 'peer-sap-id').</dd>
      </dl>
    </section>
  </middle>
  <back>
    <displayreference target="I-D.ietf-teas-enhanced-vpn" to="ENHANCED-VPN"/>
    <references pn="section-9">
      <name slugifiedName="name-references">References</name>
      <references pn="section-9.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119" quoteTitle="true" derivedAnchor="RFC2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author fullname="S. Bradner" initials="S." surname="Bradner"/>
            <date month="March" year="1997"/>
            <abstract>
              <t indent="0">In many standards track documents several words are used to signify the requirements in the specification.  These words are often capitalized.  This document defines these words as they should be interpreted in IETF documents.  This document specifies an Internet Best Current Practices for the Internet Community, and requests discussion and suggestions for improvements.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>
        <reference anchor="RFC3688" target="https://www.rfc-editor.org/info/rfc3688" quoteTitle="true" derivedAnchor="RFC3688">
          <front>
            <title>The IETF XML Registry</title>
            <author fullname="M. Mealling" initials="M." surname="Mealling"/>
            <date month="January" year="2004"/>
            <abstract>
              <t indent="0">This document describes an IANA maintained registry for IETF standards which use Extensible Markup Language (XML) related items such as Namespaces, Document Type Declarations (DTDs), Schemas, and Resource Description Framework (RDF) Schemas.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="81"/>
          <seriesInfo name="RFC" value="3688"/>
          <seriesInfo name="DOI" value="10.17487/RFC3688"/>
        </reference>
        <reference anchor="RFC6020" target="https://www.rfc-editor.org/info/rfc6020" quoteTitle="true" derivedAnchor="RFC6020">
          <front>
            <title>YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)</title>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <date month="October" year="2010"/>
            <abstract>
              <t indent="0">YANG is a data modeling language used to model configuration and state data manipulated by the Network Configuration Protocol (NETCONF), NETCONF remote procedure calls, and NETCONF notifications. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6020"/>
          <seriesInfo name="DOI" value="10.17487/RFC6020"/>
        </reference>
        <reference anchor="RFC6241" target="https://www.rfc-editor.org/info/rfc6241" quoteTitle="true" derivedAnchor="RFC6241">
          <front>
            <title>Network Configuration Protocol (NETCONF)</title>
            <author fullname="R. Enns" initials="R." role="editor" surname="Enns"/>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <author fullname="J. Schoenwaelder" initials="J." role="editor" surname="Schoenwaelder"/>
            <author fullname="A. Bierman" initials="A." role="editor" surname="Bierman"/>
            <date month="June" year="2011"/>
            <abstract>
              <t indent="0">The Network Configuration Protocol (NETCONF) defined in this document provides mechanisms to install, manipulate, and delete the configuration of network devices.  It uses an Extensible Markup Language (XML)-based data encoding for the configuration data as well as the protocol messages.  The NETCONF protocol operations are realized as remote procedure calls (RPCs).  This document obsoletes RFC 4741. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6241"/>
          <seriesInfo name="DOI" value="10.17487/RFC6241"/>
        </reference>
        <reference anchor="RFC6242" target="https://www.rfc-editor.org/info/rfc6242" quoteTitle="true" derivedAnchor="RFC6242">
          <front>
            <title>Using the NETCONF Protocol over Secure Shell (SSH)</title>
            <author fullname="M. Wasserman" initials="M." surname="Wasserman"/>
            <date month="June" year="2011"/>
            <abstract>
              <t indent="0">This document describes a method for invoking and running the Network Configuration Protocol (NETCONF) within a Secure Shell (SSH) session as an SSH subsystem.  This document obsoletes RFC 4742. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6242"/>
          <seriesInfo name="DOI" value="10.17487/RFC6242"/>
        </reference>
        <reference anchor="RFC6991" target="https://www.rfc-editor.org/info/rfc6991" quoteTitle="true" derivedAnchor="RFC6991">
          <front>
            <title>Common YANG Data Types</title>
            <author fullname="J. Schoenwaelder" initials="J." role="editor" surname="Schoenwaelder"/>
            <date month="July" year="2013"/>
            <abstract>
              <t indent="0">This document introduces a collection of common data types to be used with the YANG data modeling language.  This document obsoletes RFC 6021.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6991"/>
          <seriesInfo name="DOI" value="10.17487/RFC6991"/>
        </reference>
        <reference anchor="RFC7950" target="https://www.rfc-editor.org/info/rfc7950" quoteTitle="true" derivedAnchor="RFC7950">
          <front>
            <title>The YANG 1.1 Data Modeling Language</title>
            <author fullname="M. Bjorklund" initials="M." role="editor" surname="Bjorklund"/>
            <date month="August" year="2016"/>
            <abstract>
              <t indent="0">YANG is a data modeling language used to model configuration data, state data, Remote Procedure Calls, and notifications for network management protocols.  This document describes the syntax and semantics of version 1.1 of the YANG language.  YANG version 1.1 is a maintenance release of the YANG language, addressing ambiguities and defects in the original specification.  There are a small number of backward incompatibilities from YANG version 1.  This document also specifies the YANG mappings to the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7950"/>
          <seriesInfo name="DOI" value="10.17487/RFC7950"/>
        </reference>
        <reference anchor="RFC8040" target="https://www.rfc-editor.org/info/rfc8040" quoteTitle="true" derivedAnchor="RFC8040">
          <front>
            <title>RESTCONF Protocol</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <date month="January" year="2017"/>
            <abstract>
              <t indent="0">This document describes an HTTP-based protocol that provides a programmatic interface for accessing data defined in YANG, using the datastore concepts defined in the Network Configuration Protocol (NETCONF).</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8040"/>
          <seriesInfo name="DOI" value="10.17487/RFC8040"/>
        </reference>
        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174" quoteTitle="true" derivedAnchor="RFC8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author fullname="B. Leiba" initials="B." surname="Leiba"/>
            <date month="May" year="2017"/>
            <abstract>
              <t indent="0">RFC 2119 specifies common key words that may be used in protocol specifications.  This document aims to reduce the ambiguity by clarifying that only UPPERCASE usage of the key words have the defined special meanings.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>
        <reference anchor="RFC8341" target="https://www.rfc-editor.org/info/rfc8341" quoteTitle="true" derivedAnchor="RFC8341">
          <front>
            <title>Network Configuration Access Control Model</title>
            <author fullname="A. Bierman" initials="A." surname="Bierman"/>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">The standardization of network configuration interfaces for use with the Network Configuration Protocol (NETCONF) or the RESTCONF protocol requires a structured and secure operating environment that promotes human usability and multi-vendor interoperability. There is a need for standard mechanisms to restrict NETCONF or RESTCONF protocol access for particular users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content. This document defines such an access control model.</t>
              <t indent="0">This document obsoletes RFC 6536.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="91"/>
          <seriesInfo name="RFC" value="8341"/>
          <seriesInfo name="DOI" value="10.17487/RFC8341"/>
        </reference>
        <reference anchor="RFC8345" target="https://www.rfc-editor.org/info/rfc8345" quoteTitle="true" derivedAnchor="RFC8345">
          <front>
            <title>A YANG Data Model for Network Topologies</title>
            <author fullname="A. Clemm" initials="A." surname="Clemm"/>
            <author fullname="J. Medved" initials="J." surname="Medved"/>
            <author fullname="R. Varga" initials="R." surname="Varga"/>
            <author fullname="N. Bahadur" initials="N." surname="Bahadur"/>
            <author fullname="H. Ananthakrishnan" initials="H." surname="Ananthakrishnan"/>
            <author fullname="X. Liu" initials="X." surname="Liu"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">This document defines an abstract (generic, or base) YANG data model for network/service topologies and inventories.  The data model serves as a base model that is augmented with technology-specific details in other, more specific topology and inventory data models.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8345"/>
          <seriesInfo name="DOI" value="10.17487/RFC8345"/>
        </reference>
        <reference anchor="RFC8346" target="https://www.rfc-editor.org/info/rfc8346" quoteTitle="true" derivedAnchor="RFC8346">
          <front>
            <title>A YANG Data Model for Layer 3 Topologies</title>
            <author fullname="A. Clemm" initials="A." surname="Clemm"/>
            <author fullname="J. Medved" initials="J." surname="Medved"/>
            <author fullname="R. Varga" initials="R." surname="Varga"/>
            <author fullname="X. Liu" initials="X." surname="Liu"/>
            <author fullname="H. Ananthakrishnan" initials="H." surname="Ananthakrishnan"/>
            <author fullname="N. Bahadur" initials="N." surname="Bahadur"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">This document defines a YANG data model for Layer 3 network topologies.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8346"/>
          <seriesInfo name="DOI" value="10.17487/RFC8346"/>
        </reference>
        <reference anchor="RFC8446" target="https://www.rfc-editor.org/info/rfc8446" quoteTitle="true" derivedAnchor="RFC8446">
          <front>
            <title>The Transport Layer Security (TLS) Protocol Version 1.3</title>
            <author fullname="E. Rescorla" initials="E." surname="Rescorla"/>
            <date month="August" year="2018"/>
            <abstract>
              <t indent="0">This document specifies version 1.3 of the Transport Layer Security (TLS) protocol. TLS allows client/server applications to communicate over the Internet in a way that is designed to prevent eavesdropping, tampering, and message forgery.</t>
              <t indent="0">This document updates RFCs 5705 and 6066, and obsoletes RFCs 5077, 5246, and 6961. This document also specifies new requirements for TLS 1.2 implementations.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8446"/>
          <seriesInfo name="DOI" value="10.17487/RFC8446"/>
        </reference>
        <reference anchor="RFC8795" target="https://www.rfc-editor.org/info/rfc8795" quoteTitle="true" derivedAnchor="RFC8795">
          <front>
            <title>YANG Data Model for Traffic Engineering (TE) Topologies</title>
            <author fullname="X. Liu" initials="X." surname="Liu"/>
            <author fullname="I. Bryskin" initials="I." surname="Bryskin"/>
            <author fullname="V. Beeram" initials="V." surname="Beeram"/>
            <author fullname="T. Saad" initials="T." surname="Saad"/>
            <author fullname="H. Shah" initials="H." surname="Shah"/>
            <author fullname="O. Gonzalez de Dios" initials="O." surname="Gonzalez de Dios"/>
            <date month="August" year="2020"/>
            <abstract>
              <t indent="0">This document defines a YANG data model for representing, retrieving, and manipulating Traffic Engineering (TE) Topologies.  The model serves as a base model that other technology-specific TE topology models can augment.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8795"/>
          <seriesInfo name="DOI" value="10.17487/RFC8795"/>
        </reference>
        <reference anchor="RFC9181" target="https://www.rfc-editor.org/info/rfc9181" quoteTitle="true" derivedAnchor="RFC9181">
          <front>
            <title>A Common YANG Data Model for Layer 2 and Layer 3 VPNs</title>
            <author fullname="S. Barguil" initials="S." surname="Barguil"/>
            <author fullname="O. Gonzalez de Dios" initials="O." role="editor" surname="Gonzalez de Dios"/>
            <author fullname="M. Boucadair" initials="M." role="editor" surname="Boucadair"/>
            <author fullname="Q. Wu" initials="Q." surname="Wu"/>
            <date month="February" year="2022"/>
            <abstract>
              <t indent="0">This document defines a common YANG module that is meant to be reused by various VPN-related modules such as Layer 3 VPN and Layer 2 VPN network models.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9181"/>
          <seriesInfo name="DOI" value="10.17487/RFC9181"/>
        </reference>
      </references>
      <references pn="section-9.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="BGP-SDWAN-USAGE" quoteTitle="true" target="https://datatracker.ietf.org/doc/html/draft-ietf-bess-bgp-sdwan-usage-09" derivedAnchor="BGP-SDWAN-USAGE">
          <front>
            <title>BGP Usage for SD-WAN Overlay Networks</title>
            <author initials="L." surname="Dunbar" fullname="Linda Dunbar">
      </author>
            <author initials="J." surname="Guichard" fullname="Jim Guichard">
      </author>
            <author initials="A." surname="Sajassi" fullname="Ali Sajassi">
      </author>
            <author initials="J." surname="Drake" fullname="John Drake">
      </author>
            <author initials="B." surname="Najem" fullname="Basil Najem">
      </author>
            <author initials="A." surname="Banerjee" fullname="Ayan Banerjee">
      </author>
            <author initials="D." surname="Carrel" fullname="David Carrel">
      </author>
            <date month="April" day="7" year="2023"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-bess-bgp-sdwan-usage-09"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <reference anchor="I-D.ietf-teas-enhanced-vpn" target="https://datatracker.ietf.org/doc/html/draft-ietf-teas-enhanced-vpn-12" quoteTitle="true" derivedAnchor="ENHANCED-VPN">
          <front>
            <title>A Framework for Enhanced Virtual Private Network (VPN+)</title>
            <author initials="J." surname="Dong" fullname="Jie Dong">
              <organization showOnFrontPage="true">Huawei</organization>
            </author>
            <author initials="S." surname="Bryant" fullname="Stewart Bryant">
              <organization showOnFrontPage="true">University of Surrey</organization>
            </author>
            <author initials="Z." surname="Li" fullname="Zhenqiang Li">
              <organization showOnFrontPage="true">China Mobile</organization>
            </author>
            <author initials="T." surname="Miyasaka" fullname="Takuya Miyasaka">
              <organization showOnFrontPage="true">KDDI Corporation</organization>
            </author>
            <author initials="Y." surname="Lee" fullname="Young Lee">
              <organization showOnFrontPage="true">Samsung</organization>
            </author>
            <date month="January" day="23" year="2023"/>
            <abstract>
              <t indent="0">   This document describes the framework for Enhanced Virtual Private
   Network (VPN+) to support the needs of applications with specific
   traffic performance requirements (e.g., low latency, bounded jitter).
   VPN+ leverages the VPN and Traffic Engineering (TE) technologies and
   adds characteristics that specific services require beyond those
   provided by conventional VPNs.  Typically, VPN+ will be used to
   underpin network slicing, but could also be of use in its own right
   providing enhanced connectivity services between customer sites.
   This document also provides an overview of relevant technologies in
   different network layers, and identifies some areas for potential new
   work.

              </t>
            </abstract>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-teas-enhanced-vpn-12"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <reference anchor="IEEE802.1AX" quoteTitle="true" target="https://doi.org/10.1109/IEEESTD.2020.9105034" derivedAnchor="IEEE802.1AX">
          <front>
            <title>IEEE Standard for Local and Metropolitan Area Networks--Link Aggregation</title>
            <author>
              <organization showOnFrontPage="true">IEEE</organization>
            </author>
            <date year="2020"/>
          </front>
          <seriesInfo name="IEEE Std" value="802.1AX-2020"/>
          <seriesInfo name="DOI" value="10.1109/IEEESTD.2020.9105034"/>
        </reference>
        <reference anchor="IETF-NETWORK-SLICES" quoteTitle="true" target="https://datatracker.ietf.org/doc/html/draft-ietf-teas-ietf-network-slices-19" derivedAnchor="IETF-NETWORK-SLICES">
          <front>
            <title>A Framework for IETF Network Slices</title>
            <author initials="A." surname="Farrel" fullname="Adrian Farrel" role="editor">
      </author>
            <author initials="J." surname="Drake" fullname="John Drake" role="editor">
      </author>
            <author initials="R." surname="Rokui" fullname="Reza Rokui">
      </author>
            <author initials="S." surname="Homma" fullname="Shunsuke Homma">
      </author>
            <author initials="K." surname="Makhijani" fullname="Kiran Makhijani">
      </author>
            <author initials="L.M." surname="Contreras" fullname="Luis M. Contreras">
      </author>
            <author initials="J." surname="Tantsura" fullname="Jeff Tantsura">
      </author>
            <date month="January" day="21" year="2023"/>
          </front>
          <seriesInfo name="Internet-Draft" value="draft-ietf-teas-ietf-network-slices-19"/>
          <refcontent>Work in Progress</refcontent>
        </reference>
        <reference anchor="MEF17" target="https://www.mef.net/wp-content/uploads/2015/04/MEF-17.pdf" quoteTitle="true" derivedAnchor="MEF17">
          <front>
            <title>Technical Specification MEF 17, Service OAM Requirements &amp; Framework - Phase 1</title>
            <author>
              <organization showOnFrontPage="true">The Metro Ethernet Forum</organization>
            </author>
            <date month="April" year="2007"/>
          </front>
        </reference>
        <reference anchor="MEF6" target="https://www.mef.net/Assets/Technical_Specifications/PDF/MEF_6.pdf" quoteTitle="true" derivedAnchor="MEF6">
          <front>
            <title>Technical Specification MEF 6, Ethernet Services Definitions - Phase I</title>
            <author>
              <organization showOnFrontPage="true">The Metro Ethernet Forum</organization>
            </author>
            <date month="June" year="2004"/>
          </front>
        </reference>
        <reference anchor="RFC4026" target="https://www.rfc-editor.org/info/rfc4026" quoteTitle="true" derivedAnchor="RFC4026">
          <front>
            <title>Provider Provisioned Virtual Private Network (VPN) Terminology</title>
            <author fullname="L. Andersson" initials="L." surname="Andersson"/>
            <author fullname="T. Madsen" initials="T." surname="Madsen"/>
            <date month="March" year="2005"/>
            <abstract>
              <t indent="0">The widespread interest in provider-provisioned Virtual Private Network (VPN) solutions lead to memos proposing different and overlapping solutions. The IETF working groups (first Provider Provisioned VPNs and later Layer 2 VPNs and Layer 3 VPNs) have discussed these proposals and documented specifications. This has lead to the development of a partially new set of concepts used to describe the set of VPN services.</t>
              <t indent="0">To a certain extent, more than one term covers the same concept, and sometimes the same term covers more than one concept. This document seeks to make the terminology in the area clearer and more intuitive. This memo provides information for the Internet community.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4026"/>
          <seriesInfo name="DOI" value="10.17487/RFC4026"/>
        </reference>
        <reference anchor="RFC4364" target="https://www.rfc-editor.org/info/rfc4364" quoteTitle="true" derivedAnchor="RFC4364">
          <front>
            <title>BGP/MPLS IP Virtual Private Networks (VPNs)</title>
            <author fullname="E. Rosen" initials="E." surname="Rosen"/>
            <author fullname="Y. Rekhter" initials="Y." surname="Rekhter"/>
            <date month="February" year="2006"/>
            <abstract>
              <t indent="0">This document describes a method by which a Service Provider may use an IP backbone to provide IP Virtual Private Networks (VPNs) for its customers.  This method uses a "peer model", in which the customers' edge routers (CE routers) send their routes to the Service Provider's edge routers (PE routers); there is no "overlay" visible to the customer's routing algorithm, and CE routers at different sites do not peer with each other.  Data packets are tunneled through the backbone, so that the core routers do not need to know the VPN routes. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4364"/>
          <seriesInfo name="DOI" value="10.17487/RFC4364"/>
        </reference>
        <reference anchor="RFC4761" target="https://www.rfc-editor.org/info/rfc4761" quoteTitle="true" derivedAnchor="RFC4761">
          <front>
            <title>Virtual Private LAN Service (VPLS) Using BGP for Auto-Discovery and Signaling</title>
            <author fullname="K. Kompella" initials="K." role="editor" surname="Kompella"/>
            <author fullname="Y. Rekhter" initials="Y." role="editor" surname="Rekhter"/>
            <date month="January" year="2007"/>
            <abstract>
              <t indent="0">Virtual Private LAN Service (VPLS), also known as Transparent LAN Service and Virtual Private Switched Network service, is a useful Service Provider offering. The service offers a Layer 2 Virtual Private Network (VPN); however, in the case of VPLS, the customers in the VPN are connected by a multipoint Ethernet LAN, in contrast to the usual Layer 2 VPNs, which are point-to-point in nature.</t>
              <t indent="0">This document describes the functions required to offer VPLS, a mechanism for signaling a VPLS, and rules for forwarding VPLS frames across a packet switched network. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4761"/>
          <seriesInfo name="DOI" value="10.17487/RFC4761"/>
        </reference>
        <reference anchor="RFC4762" target="https://www.rfc-editor.org/info/rfc4762" quoteTitle="true" derivedAnchor="RFC4762">
          <front>
            <title>Virtual Private LAN Service (VPLS) Using Label Distribution Protocol (LDP) Signaling</title>
            <author fullname="M. Lasserre" initials="M." role="editor" surname="Lasserre"/>
            <author fullname="V. Kompella" initials="V." role="editor" surname="Kompella"/>
            <date month="January" year="2007"/>
            <abstract>
              <t indent="0">This document describes a Virtual Private LAN Service (VPLS) solution using pseudowires, a service previously implemented over other tunneling technologies and known as Transparent LAN Services (TLS). A VPLS creates an emulated LAN segment for a given set of users; i.e., it creates a Layer 2 broadcast domain that is fully capable of learning and forwarding on Ethernet MAC addresses and that is closed to a given set of users. Multiple VPLS services can be supported from a single Provider Edge (PE) node.</t>
              <t indent="0">This document describes the control plane functions of signaling pseudowire labels using Label Distribution Protocol (LDP), extending RFC 4447. It is agnostic to discovery protocols. The data plane functions of forwarding are also described, focusing in particular on the learning of MAC addresses. The encapsulation of VPLS packets is described by RFC 4448. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4762"/>
          <seriesInfo name="DOI" value="10.17487/RFC4762"/>
        </reference>
        <reference anchor="RFC6004" target="https://www.rfc-editor.org/info/rfc6004" quoteTitle="true" derivedAnchor="RFC6004">
          <front>
            <title>Generalized MPLS (GMPLS) Support for Metro Ethernet Forum and G.8011 Ethernet Service Switching</title>
            <author fullname="L. Berger" initials="L." surname="Berger"/>
            <author fullname="D. Fedyk" initials="D." surname="Fedyk"/>
            <date month="October" year="2010"/>
          </front>
          <seriesInfo name="RFC" value="6004"/>
          <seriesInfo name="DOI" value="10.17487/RFC6004"/>
        </reference>
        <reference anchor="RFC6215" target="https://www.rfc-editor.org/info/rfc6215" quoteTitle="true" derivedAnchor="RFC6215">
          <front>
            <title>MPLS Transport Profile User-to-Network and Network-to-Network Interfaces</title>
            <author fullname="M. Bocci" initials="M." surname="Bocci"/>
            <author fullname="L. Levrau" initials="L." surname="Levrau"/>
            <author fullname="D. Frost" initials="D." surname="Frost"/>
            <date month="April" year="2011"/>
            <abstract>
              <t indent="0">The framework for MPLS in transport networks (RFC 5921) provides reference models for the MPLS Transport Profile (MPLS-TP) Transport Service Interfaces, which are a User-to-Network Interface (UNI), and a Network-to-Network Interface (NNI). This document updates those reference models to show detailed reference points for these interfaces, along with further clarification of the functional architecture of MPLS-TP at a UNI and NNI.</t>
              <t indent="0">This document is a product of a joint Internet Engineering Task Force (IETF) / International Telecommunication Union Telecommunication Standardization Sector (ITU-T) effort to include an MPLS Transport Profile within the IETF MPLS and Pseudowire Emulation Edge-to-Edge (PWE3) architectures to support the capabilities and functionalities of a packet transport network as defined by the ITU-T. This document is not an Internet Standards Track specification; it is published for informational purposes.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6215"/>
          <seriesInfo name="DOI" value="10.17487/RFC6215"/>
        </reference>
        <reference anchor="RFC7149" target="https://www.rfc-editor.org/info/rfc7149" quoteTitle="true" derivedAnchor="RFC7149">
          <front>
            <title>Software-Defined Networking: A Perspective from within a Service Provider Environment</title>
            <author fullname="M. Boucadair" initials="M." surname="Boucadair"/>
            <author fullname="C. Jacquenet" initials="C." surname="Jacquenet"/>
            <date month="March" year="2014"/>
            <abstract>
              <t indent="0">Software-Defined Networking (SDN) has been one of the major buzz words of the networking industry for the past couple of years. And yet, no clear definition of what SDN actually covers has been broadly admitted so far. This document aims to clarify the SDN landscape by providing a perspective on requirements, issues, and other considerations about SDN, as seen from within a service provider environment.</t>
              <t indent="0">It is not meant to endlessly discuss what SDN truly means but rather to suggest a functional taxonomy of the techniques that can be used under an SDN umbrella and to elaborate on the various pending issues the combined activation of such techniques inevitably raises. As such, a definition of SDN is only mentioned for the sake of clarification.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7149"/>
          <seriesInfo name="DOI" value="10.17487/RFC7149"/>
        </reference>
        <reference anchor="RFC7224" target="https://www.rfc-editor.org/info/rfc7224" quoteTitle="true" derivedAnchor="RFC7224">
          <front>
            <title>IANA Interface Type YANG Module</title>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <date month="May" year="2014"/>
            <abstract>
              <t indent="0">This document defines the initial version of the iana-if-type YANG module.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7224"/>
          <seriesInfo name="DOI" value="10.17487/RFC7224"/>
        </reference>
        <reference anchor="RFC7426" target="https://www.rfc-editor.org/info/rfc7426" quoteTitle="true" derivedAnchor="RFC7426">
          <front>
            <title>Software-Defined Networking (SDN): Layers and Architecture Terminology</title>
            <author fullname="E. Haleplidis" initials="E." role="editor" surname="Haleplidis"/>
            <author fullname="K. Pentikousis" initials="K." role="editor" surname="Pentikousis"/>
            <author fullname="S. Denazis" initials="S." surname="Denazis"/>
            <author fullname="J. Hadi Salim" initials="J." surname="Hadi Salim"/>
            <author fullname="D. Meyer" initials="D." surname="Meyer"/>
            <author fullname="O. Koufopavlou" initials="O." surname="Koufopavlou"/>
            <date month="January" year="2015"/>
            <abstract>
              <t indent="0">Software-Defined Networking (SDN) refers to a new approach for network programmability, that is, the capacity to initialize, control, change, and manage network behavior dynamically via open interfaces.  SDN emphasizes the role of software in running networks through the introduction of an abstraction for the data forwarding plane and, by doing so, separates it from the control plane.  This separation allows faster innovation cycles at both planes as experience has already shown.  However, there is increasing confusion as to what exactly SDN is, what the layer structure is in an SDN architecture, and how layers interface with each other.  This document, a product of the IRTF Software-Defined Networking Research Group (SDNRG), addresses these questions and provides a concise reference for the SDN research community based on relevant peer-reviewed literature, the RFC series, and relevant documents by other standards organizations.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7426"/>
          <seriesInfo name="DOI" value="10.17487/RFC7426"/>
        </reference>
        <reference anchor="RFC7432" target="https://www.rfc-editor.org/info/rfc7432" quoteTitle="true" derivedAnchor="RFC7432">
          <front>
            <title>BGP MPLS-Based Ethernet VPN</title>
            <author fullname="A. Sajassi" initials="A." role="editor" surname="Sajassi"/>
            <author fullname="R. Aggarwal" initials="R." surname="Aggarwal"/>
            <author fullname="N. Bitar" initials="N." surname="Bitar"/>
            <author fullname="A. Isaac" initials="A." surname="Isaac"/>
            <author fullname="J. Uttaro" initials="J." surname="Uttaro"/>
            <author fullname="J. Drake" initials="J." surname="Drake"/>
            <author fullname="W. Henderickx" initials="W." surname="Henderickx"/>
            <date month="February" year="2015"/>
            <abstract>
              <t indent="0">This document describes procedures for BGP MPLS-based Ethernet VPNs (EVPN).  The procedures described here meet the requirements specified in RFC 7209 -- "Requirements for Ethernet VPN (EVPN)".</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7432"/>
          <seriesInfo name="DOI" value="10.17487/RFC7432"/>
        </reference>
        <reference anchor="RFC7623" target="https://www.rfc-editor.org/info/rfc7623" quoteTitle="true" derivedAnchor="RFC7623">
          <front>
            <title>Provider Backbone Bridging Combined with Ethernet VPN (PBB-EVPN)</title>
            <author fullname="A. Sajassi" initials="A." role="editor" surname="Sajassi"/>
            <author fullname="S. Salam" initials="S." surname="Salam"/>
            <author fullname="N. Bitar" initials="N." surname="Bitar"/>
            <author fullname="A. Isaac" initials="A." surname="Isaac"/>
            <author fullname="W. Henderickx" initials="W." surname="Henderickx"/>
            <date month="September" year="2015"/>
            <abstract>
              <t indent="0">This document discusses how Ethernet Provider Backbone Bridging (PBB) can be combined with Ethernet VPN (EVPN) in order to reduce the number of BGP MAC Advertisement routes by aggregating Customer/Client MAC (C-MAC) addresses via Provider Backbone MAC (B-MAC) address, provide client MAC address mobility using C-MAC aggregation, confine the scope of C-MAC learning to only active flows, offer per-site policies, and avoid C-MAC address flushing on topology changes.  The combined solution is referred to as PBB-EVPN.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7623"/>
          <seriesInfo name="DOI" value="10.17487/RFC7623"/>
        </reference>
        <reference anchor="RFC7951" target="https://www.rfc-editor.org/info/rfc7951" quoteTitle="true" derivedAnchor="RFC7951">
          <front>
            <title>JSON Encoding of Data Modeled with YANG</title>
            <author fullname="L. Lhotka" initials="L." surname="Lhotka"/>
            <date month="August" year="2016"/>
            <abstract>
              <t indent="0">This document defines encoding rules for representing configuration data, state data, parameters of Remote Procedure Call (RPC) operations or actions, and notifications defined using YANG as JavaScript Object Notation (JSON) text.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="7951"/>
          <seriesInfo name="DOI" value="10.17487/RFC7951"/>
        </reference>
        <reference anchor="RFC8214" target="https://www.rfc-editor.org/info/rfc8214" quoteTitle="true" derivedAnchor="RFC8214">
          <front>
            <title>Virtual Private Wire Service Support in Ethernet VPN</title>
            <author fullname="S. Boutros" initials="S." surname="Boutros"/>
            <author fullname="A. Sajassi" initials="A." surname="Sajassi"/>
            <author fullname="S. Salam" initials="S." surname="Salam"/>
            <author fullname="J. Drake" initials="J." surname="Drake"/>
            <author fullname="J. Rabadan" initials="J." surname="Rabadan"/>
            <date month="August" year="2017"/>
            <abstract>
              <t indent="0">This document describes how Ethernet VPN (EVPN) can be used to support the Virtual Private Wire Service (VPWS) in MPLS/IP networks.  EVPN accomplishes the following for VPWS: provides Single-Active as well as All-Active multihoming with flow-based load-balancing, eliminates the need for Pseudowire (PW) signaling, and provides fast protection convergence upon node or link failure.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8214"/>
          <seriesInfo name="DOI" value="10.17487/RFC8214"/>
        </reference>
        <reference anchor="RFC8299" target="https://www.rfc-editor.org/info/rfc8299" quoteTitle="true" derivedAnchor="RFC8299">
          <front>
            <title>YANG Data Model for L3VPN Service Delivery</title>
            <author fullname="Q. Wu" initials="Q." role="editor" surname="Wu"/>
            <author fullname="S. Litkowski" initials="S." surname="Litkowski"/>
            <author fullname="L. Tomotaki" initials="L." surname="Tomotaki"/>
            <author fullname="K. Ogaki" initials="K." surname="Ogaki"/>
            <date month="January" year="2018"/>
            <abstract>
              <t indent="0">This document defines a YANG data model that can be used for communication between customers and network operators and to deliver a Layer 3 provider-provisioned VPN service. This document is limited to BGP PE-based VPNs as described in RFCs 4026, 4110, and 4364. This model is intended to be instantiated at the management system to deliver the overall service. It is not a configuration model to be used directly on network elements. This model provides an abstracted view of the Layer 3 IP VPN service configuration components. It will be up to the management system to take this model as input and use specific configuration models to configure the different network elements to deliver the service. How the configuration of network elements is done is out of scope for this document.</t>
              <t indent="0">This document obsoletes RFC 8049; it replaces the unimplementable module in that RFC with a new module with the same name that is not backward compatible. The changes are a series of small fixes to the YANG module and some clarifications to the text.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8299"/>
          <seriesInfo name="DOI" value="10.17487/RFC8299"/>
        </reference>
        <reference anchor="RFC8309" target="https://www.rfc-editor.org/info/rfc8309" quoteTitle="true" derivedAnchor="RFC8309">
          <front>
            <title>Service Models Explained</title>
            <author fullname="Q. Wu" initials="Q." surname="Wu"/>
            <author fullname="W. Liu" initials="W." surname="Liu"/>
            <author fullname="A. Farrel" initials="A." surname="Farrel"/>
            <date month="January" year="2018"/>
            <abstract>
              <t indent="0">The IETF has produced many modules in the YANG modeling language. The majority of these modules are used to construct data models to model devices or monolithic functions.</t>
              <t indent="0">A small number of YANG modules have been defined to model services (for example, the Layer 3 Virtual Private Network Service Model (L3SM) produced by the L3SM working group and documented in RFC 8049).</t>
              <t indent="0">This document describes service models as used within the IETF and also shows where a service model might fit into a software-defined networking architecture. Note that service models do not make any assumption of how a service is actually engineered and delivered for a customer; details of how network protocols and devices are engineered to deliver a service are captured in other modules that are not exposed through the interface between the customer and the provider.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8309"/>
          <seriesInfo name="DOI" value="10.17487/RFC8309"/>
        </reference>
        <reference anchor="RFC8340" target="https://www.rfc-editor.org/info/rfc8340" quoteTitle="true" derivedAnchor="RFC8340">
          <front>
            <title>YANG Tree Diagrams</title>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="L. Berger" initials="L." role="editor" surname="Berger"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">This document captures the current syntax used in YANG module tree diagrams.  The purpose of this document is to provide a single location for this definition.  This syntax may be updated from time to time based on the evolution of the YANG language.</t>
            </abstract>
          </front>
          <seriesInfo name="BCP" value="215"/>
          <seriesInfo name="RFC" value="8340"/>
          <seriesInfo name="DOI" value="10.17487/RFC8340"/>
        </reference>
        <reference anchor="RFC8342" target="https://www.rfc-editor.org/info/rfc8342" quoteTitle="true" derivedAnchor="RFC8342">
          <front>
            <title>Network Management Datastore Architecture (NMDA)</title>
            <author fullname="M. Bjorklund" initials="M." surname="Bjorklund"/>
            <author fullname="J. Schoenwaelder" initials="J." surname="Schoenwaelder"/>
            <author fullname="P. Shafer" initials="P." surname="Shafer"/>
            <author fullname="K. Watsen" initials="K." surname="Watsen"/>
            <author fullname="R. Wilton" initials="R." surname="Wilton"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">Datastores are a fundamental concept binding the data models written in the YANG data modeling language to network management protocols such as the Network Configuration Protocol (NETCONF) and RESTCONF.  This document defines an architectural framework for datastores based on the experience gained with the initial simpler model, addressing requirements that were not well supported in the initial model.  This document updates RFC 7950.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8342"/>
          <seriesInfo name="DOI" value="10.17487/RFC8342"/>
        </reference>
        <reference anchor="RFC8365" target="https://www.rfc-editor.org/info/rfc8365" quoteTitle="true" derivedAnchor="RFC8365">
          <front>
            <title>A Network Virtualization Overlay Solution Using Ethernet VPN (EVPN)</title>
            <author fullname="A. Sajassi" initials="A." role="editor" surname="Sajassi"/>
            <author fullname="J. Drake" initials="J." role="editor" surname="Drake"/>
            <author fullname="N. Bitar" initials="N." surname="Bitar"/>
            <author fullname="R. Shekhar" initials="R." surname="Shekhar"/>
            <author fullname="J. Uttaro" initials="J." surname="Uttaro"/>
            <author fullname="W. Henderickx" initials="W." surname="Henderickx"/>
            <date month="March" year="2018"/>
            <abstract>
              <t indent="0">This document specifies how Ethernet VPN (EVPN) can be used as a Network Virtualization Overlay (NVO) solution and explores the various tunnel encapsulation options over IP and their impact on the EVPN control plane and procedures.  In particular, the following encapsulation options are analyzed: Virtual Extensible LAN (VXLAN), Network Virtualization using Generic Routing Encapsulation (NVGRE), and MPLS over GRE.  This specification is also applicable to Generic Network Virtualization Encapsulation (GENEVE); however, some incremental work is required, which will be covered in a separate document.  This document also specifies new multihoming procedures for split-horizon filtering and mass withdrawal.  It also specifies EVPN route constructions for VXLAN/NVGRE encapsulations and Autonomous System Border Router (ASBR) procedures for multihoming of Network Virtualization Edge (NVE) devices.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8365"/>
          <seriesInfo name="DOI" value="10.17487/RFC8365"/>
        </reference>
        <reference anchor="RFC8453" target="https://www.rfc-editor.org/info/rfc8453" quoteTitle="true" derivedAnchor="RFC8453">
          <front>
            <title>Framework for Abstraction and Control of TE Networks (ACTN)</title>
            <author fullname="D. Ceccarelli" initials="D." role="editor" surname="Ceccarelli"/>
            <author fullname="Y. Lee" initials="Y." role="editor" surname="Lee"/>
            <date month="August" year="2018"/>
            <abstract>
              <t indent="0">Traffic Engineered (TE) networks have a variety of mechanisms to facilitate the separation of the data plane and control plane. They also have a range of management and provisioning protocols to configure and activate network resources. These mechanisms represent key technologies for enabling flexible and dynamic networking. The term "Traffic Engineered network" refers to a network that uses any connection-oriented technology under the control of a distributed or centralized control plane to support dynamic provisioning of end-to- end connectivity.</t>
              <t indent="0">Abstraction of network resources is a technique that can be applied to a single network domain or across multiple domains to create a single virtualized network that is under the control of a network operator or the customer of the operator that actually owns the network resources.</t>
              <t indent="0">This document provides a framework for Abstraction and Control of TE Networks (ACTN) to support virtual network services and connectivity services.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8453"/>
          <seriesInfo name="DOI" value="10.17487/RFC8453"/>
        </reference>
        <reference anchor="RFC8466" target="https://www.rfc-editor.org/info/rfc8466" quoteTitle="true" derivedAnchor="RFC8466">
          <front>
            <title>A YANG Data Model for Layer 2 Virtual Private Network (L2VPN) Service Delivery</title>
            <author fullname="B. Wen" initials="B." surname="Wen"/>
            <author fullname="G. Fioccola" initials="G." role="editor" surname="Fioccola"/>
            <author fullname="C. Xie" initials="C." surname="Xie"/>
            <author fullname="L. Jalil" initials="L." surname="Jalil"/>
            <date month="October" year="2018"/>
            <abstract>
              <t indent="0">This document defines a YANG data model that can be used to configure a Layer 2 provider-provisioned VPN service. It is up to a management system to take this as an input and generate specific configuration models to configure the different network elements to deliver the service. How this configuration of network elements is done is out of scope for this document.</t>
              <t indent="0">The YANG data model defined in this document includes support for point-to-point Virtual Private Wire Services (VPWSs) and multipoint Virtual Private LAN Services (VPLSs) that use Pseudowires signaled using the Label Distribution Protocol (LDP) and the Border Gateway Protocol (BGP) as described in RFCs 4761 and 6624.</t>
              <t indent="0">The YANG data model defined in this document conforms to the Network Management Datastore Architecture defined in RFC 8342.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8466"/>
          <seriesInfo name="DOI" value="10.17487/RFC8466"/>
        </reference>
        <reference anchor="RFC8969" target="https://www.rfc-editor.org/info/rfc8969" quoteTitle="true" derivedAnchor="RFC8969">
          <front>
            <title>A Framework for Automating Service and Network Management with YANG</title>
            <author fullname="Q. Wu" initials="Q." role="editor" surname="Wu"/>
            <author fullname="M. Boucadair" initials="M." role="editor" surname="Boucadair"/>
            <author fullname="D. Lopez" initials="D." surname="Lopez"/>
            <author fullname="C. Xie" initials="C." surname="Xie"/>
            <author fullname="L. Geng" initials="L." surname="Geng"/>
            <date month="January" year="2021"/>
            <abstract>
              <t indent="0">Data models provide a programmatic approach to represent services and networks. Concretely, they can be used to derive configuration information for network and service components, and state information that will be monitored and tracked. Data models can be used during the service and network management life cycle (e.g., service instantiation, service provisioning, service optimization, service monitoring, service diagnosing, and service assurance). Data models are also instrumental in the automation of network management, and they can provide closed-loop control for adaptive and deterministic service creation, delivery, and maintenance.</t>
              <t indent="0">This document describes a framework for service and network management automation that takes advantage of YANG modeling technologies. This framework is drawn from a network operator perspective irrespective of the origin of a data model; thus, it can accommodate YANG modules that are developed outside the IETF.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8969"/>
          <seriesInfo name="DOI" value="10.17487/RFC8969"/>
        </reference>
        <reference anchor="RFC9135" target="https://www.rfc-editor.org/info/rfc9135" quoteTitle="true" derivedAnchor="RFC9135">
          <front>
            <title>Integrated Routing and Bridging in Ethernet VPN (EVPN)</title>
            <author fullname="A. Sajassi" initials="A." surname="Sajassi"/>
            <author fullname="S. Salam" initials="S." surname="Salam"/>
            <author fullname="S. Thoria" initials="S." surname="Thoria"/>
            <author fullname="J. Drake" initials="J." surname="Drake"/>
            <author fullname="J. Rabadan" initials="J." surname="Rabadan"/>
            <date month="October" year="2021"/>
            <abstract>
              <t indent="0">Ethernet VPN (EVPN) provides an extensible and flexible multihoming VPN solution over an MPLS/IP network for intra-subnet connectivity among Tenant Systems and end devices that can be physical or virtual.  However, there are scenarios for which there is a need for a dynamic and efficient inter-subnet connectivity among these Tenant Systems and end devices while maintaining the multihoming capabilities of EVPN.  This document describes an Integrated Routing and Bridging (IRB) solution based on EVPN to address such requirements.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9135"/>
          <seriesInfo name="DOI" value="10.17487/RFC9135"/>
        </reference>
        <reference anchor="RFC9182" target="https://www.rfc-editor.org/info/rfc9182" quoteTitle="true" derivedAnchor="RFC9182">
          <front>
            <title>A YANG Network Data Model for Layer 3 VPNs</title>
            <author fullname="S. Barguil" initials="S." surname="Barguil"/>
            <author fullname="O. Gonzalez de Dios" initials="O." role="editor" surname="Gonzalez de Dios"/>
            <author fullname="M. Boucadair" initials="M." role="editor" surname="Boucadair"/>
            <author fullname="L. Munoz" initials="L." surname="Munoz"/>
            <author fullname="A. Aguado" initials="A." surname="Aguado"/>
            <date month="February" year="2022"/>
            <abstract>
              <t indent="0">As a complement to the Layer 3 Virtual Private Network Service Model (L3SM), which is used for communication between customers and service providers, this document defines an L3VPN Network Model (L3NM) that can be used for the provisioning of Layer 3 Virtual Private Network (L3VPN) services within a service provider network. The model provides a network-centric view of L3VPN services.</t>
              <t indent="0">The L3NM is meant to be used by a network controller to derive the configuration information that will be sent to relevant network devices. The model can also facilitate communication between a service orchestrator and a network controller/orchestrator.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9182"/>
          <seriesInfo name="DOI" value="10.17487/RFC9182"/>
        </reference>
        <reference anchor="RFC9291" target="https://www.rfc-editor.org/info/rfc9291" quoteTitle="true" derivedAnchor="RFC9291">
          <front>
            <title>A YANG Network Data Model for Layer 2 VPNs</title>
            <author fullname="M. Boucadair" initials="M." role="editor" surname="Boucadair"/>
            <author fullname="O. Gonzalez de Dios" initials="O." role="editor" surname="Gonzalez de Dios"/>
            <author fullname="S. Barguil" initials="S." surname="Barguil"/>
            <author fullname="L. Munoz" initials="L." surname="Munoz"/>
            <date month="September" year="2022"/>
            <abstract>
              <t indent="0">This document defines an L2VPN Network Model (L2NM) that can be used to manage the provisioning of Layer 2 Virtual Private Network (L2VPN) services within a network (e.g., a service provider network). The L2NM complements the L2VPN Service Model (L2SM) by providing a network-centric view of the service that is internal to a service provider. The L2NM is particularly meant to be used by a network controller to derive the configuration information that will be sent to relevant network devices.</t>
              <t indent="0">Also, this document defines a YANG module to manage Ethernet segments and the initial versions of two IANA-maintained modules that include a set of identities of BGP Layer 2 encapsulation types and pseudowire types.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9291"/>
          <seriesInfo name="DOI" value="10.17487/RFC9291"/>
        </reference>
      </references>
    </references>
    <section anchor="app1" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.a">
      <name slugifiedName="name-a-simplified-sap-network-ex">A Simplified SAP Network Example</name>
      <t indent="0" pn="section-appendix.a-1">An example of a SAP topology that is reported by a network controller
      is depicted in <xref target="ex1" format="default" sectionFormat="of" derivedContent="Figure 7"/>. This example echoes the
      topology shown in <xref target="fi3a" format="default" sectionFormat="of" derivedContent="Figure 4"/>. Only a minimum
      information set is provided for each SAP. Particularly,
      'parent-termination-point', 'attachment-interface', 'interface-type',
      'encapsulation-type', and 'role' are not shown in the example. SAPs that
      are capable of hosting a service but are not yet activated are identified
      by 'sap-status/status' set to 'ietf-vpn-common:op-down' and
      'service-status/admin-status/status' set to
      'ietf-vpn-common:admin-down'. SAPs that are enabled to deliver a service
      are identified by 'service-status/admin-status/status' set to
      'ietf-vpn-common:admin-up' and 'service-status/oper-status/status' set
      to 'ietf-vpn-common:op-up'. Note that none of the anomalies discussed in
      <xref target="tree" format="default" sectionFormat="of" derivedContent="Section 5"/> are detected for these SAPs.
      The message body depicted in the figures below is encoded following the
      JSON encoding of YANG-modeled data as per <xref target="RFC7951" format="default" sectionFormat="of" derivedContent="RFC7951"/>.</t>
      <figure anchor="ex1" align="left" suppress-title="false" pn="figure-7">
        <name slugifiedName="name-a-simplified-sap-network-exa">A Simplified SAP Network Example</name>
        <sourcecode type="json" markers="false" pn="section-appendix.a-2.1">{
  "ietf-network:networks": {
    "network": [
      {
        "network-types": {
          "ietf-sap-ntw:sap-network": {
            "service-type": [
              "ietf-vpn-common:l3vpn",
              "ietf-vpn-common:vpls"
            ]
          }
        },
        "network-id": "example:an-id",
        "node": [
          {
            "node-id": "example:pe1",
            "ietf-sap-ntw:service": [
              {
                "service-type": "ietf-vpn-common:l3vpn",
                "sap": [
                  {
                    "sap-id": "sap#11",
                    "peer-sap-id": ["ce-1"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-up"
                      },
                      "oper-status": {
                        "status": "ietf-vpn-common:op-up"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#12",
                    "sap-status": {
                      "status": "ietf-vpn-common:op-down"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-down"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#13",
                    "sap-status": {
                      "status": "ietf-vpn-common:op-down"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-down"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#14",
                    "sap-status": {
                      "status": "ietf-vpn-common:op-down"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-down"
                      }
                    }
                  }
                ]
              }
            ]
          },
          {
            "node-id": "example:pe2",
            "ietf-sap-ntw:service": [
              {
                "service-type": "ietf-vpn-common:l3vpn",
                "sap": [
                  {
                    "sap-id": "sap#21",
                    "sap-status": {
                      "status": "ietf-vpn-common:op-down"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-down"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#22",
                    "peer-sap-id": ["ce-2"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-up"
                      },
                      "oper-status": {
                        "status": "ietf-vpn-common:op-up"
                      }
                    }
                  }
                ]
              }
            ]
          },
          {
            "node-id": "example:pe3",
            "ietf-sap-ntw:service": [
              {
                "service-type": "ietf-vpn-common:l3vpn",
                "sap": [
                  {
                    "sap-id": "sap#31",
                    "sap-status": {
                      "status": "ietf-vpn-common:op-down"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-down"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#32",
                    "sap-status": {
                      "status": "ietf-vpn-common:op-down"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-down"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#33",
                    "peer-sap-id": ["ce-3"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-up"
                      },
                      "oper-status": {
                        "status": "ietf-vpn-common:op-up"
                      }
                    }
                  }
                ]
              }
            ]
          },
          {
            "node-id": "example:pe4",
            "ietf-sap-ntw:service": [
              {
                "service-type": "ietf-vpn-common:l3vpn",
                "sap": [
                  {
                    "sap-id": "sap#41",
                    "peer-sap-id": ["ce-3"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-up"
                      },
                      "oper-status": {
                        "status": "ietf-vpn-common:op-up"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#42",
                    "peer-sap-id": ["ce-4"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-up"
                      },
                      "oper-status": {
                        "status": "ietf-vpn-common:op-up"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#43",
                    "sap-status": {
                      "status": "ietf-vpn-common:op-down"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-down"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#44",
                    "peer-sap-id": ["ce-5"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-up"
                      },
                      "oper-status": {
                        "status": "ietf-vpn-common:op-up"
                      }
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}
</sourcecode>
      </figure>
    </section>
    <section anchor="sample" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.b">
      <name slugifiedName="name-a-simple-example-of-the-sap">A Simple Example of the SAP Network Model: Node Filter</name>
      <t indent="0" pn="section-appendix.b-1">In the example shown in <xref target="app-ex" format="default" sectionFormat="of" derivedContent="Figure 8"/>, PE1 (with a
      "node-id" set to "example:pe1", as shown in <xref target="ex1" format="default" sectionFormat="of" derivedContent="Figure 7"/>) has two physical interfaces "GE0/6/1"
      and "GE0/6/4". Two sub-interfaces "GE0/6/4.1" and "GE0/6/4.2" are
      associated with the physical interface "GE0/6/4". Let us consider that
      four SAPs are exposed to the service orchestrator and mapped to these
      physical interfaces and sub-interfaces.</t>
      <figure anchor="app-ex" align="left" suppress-title="false" pn="figure-8">
        <name slugifiedName="name-an-example-of-a-pe-and-its-">An Example of a PE and Its Physical/Logical Interfaces</name>
        <artwork align="center" name="" type="" alt="" pn="section-appendix.b-2.1">   .-------------------------.
   |                 GE0/6/4 |
   | PE1                .----+----.
   |                    |sap#2    |GE0/6/4.1
   |                    |      .--+--.
   |                    |      |sap#3|
   |                    |      '--+--'
   |                    |         |GE0/6/4.2
   |                    |      .--+--.
   |                    |      |sap#4|
   |                    |      '--+--'
   |                    |         |
   |                    +----+----+
   |                         |
   |                  GE0/6/1|
   |                    .----+----.
   |                    |sap#1    |
   |                    '----+----'
   |                         |
   '-------------------------'
</artwork>
      </figure>
      <t indent="0" pn="section-appendix.b-3">Let us assume that no service is enabled yet for the SAP associated
      with the physical interface "GE0/6/1". Also, let us assume that, for the
      SAPs that are associated with the physical interface "GE0/6/4", VPLS and
      L3VPN services are activated on the two sub-interfaces "GE0/6/4.1" and
      "GE0/6/4.2", respectively. Both "sap#1" and "sap#2" are tagged as being
      capable of hosting per-service sub-interfaces ('allows-child-saps' is
      set to 'true').</t>
      <t indent="0" pn="section-appendix.b-4">For example, a service orchestrator can query what services are provided on which
      SAPs of PE1 from the network controller by sending a RESTCONF GET
      request. <xref target="app-ex-res-body" format="default" sectionFormat="of" derivedContent="Figure 9"/> shows an example of the
      body of the RESTCONF response that is received from the network
      controller.</t>
      <figure anchor="app-ex-res-body" align="left" suppress-title="false" pn="figure-9">
        <name slugifiedName="name-an-example-of-a-response-bo">An Example of a Response Body to a Request with a Node Filter</name>
        <sourcecode type="json" markers="false" pn="section-appendix.b-5.1">{
  "ietf-sap-ntw:service": [
    {
      "service-type": "ietf-vpn-common:l3vpn",
      "sap": [
        {
          "sap-id": "sap#1",
          "description": "Ready to host SAPs",
          "attachment-interface": "GE0/6/1",
          "interface-type": "ietf-sap-ntw:phy",
          "role": "ietf-sap-ntw:uni",
          "allows-child-saps": true,
          "sap-status": {
            "status": "ietf-vpn-common:op-up"
          }
        },
        {
          "sap-id": "sap#2",
          "description": "Ready to host SAPs",
          "attachment-interface": "GE0/6/4",
          "interface-type": "ietf-sap-ntw:phy",
          "role": "ietf-sap-ntw:uni",
          "allows-child-saps": true,
          "sap-status": {
            "status": "ietf-vpn-common:op-up"
          }
        },
        {
          "sap-id": "sap#3",
          "description": "A first SAP description",
          "parent-termination-point": "GE0/6/4",
          "attachment-interface": "GE0/6/4.1",
          "interface-type": "ietf-sap-ntw:logical",
          "encapsulation-type": "ietf-vpn-common:vlan-type",
          "sap-status": {
            "status": "ietf-vpn-common:op-up"
          },
          "service-status": {
            "admin-status": {
              "status": "ietf-vpn-common:admin-up"
            },
            "oper-status": {
              "status": "ietf-vpn-common:op-up"
            }
          }
        }
      ]
    },
    {
      "service-type": "ietf-vpn-common:vpls",
      "sap": [
        {
          "sap-id": "sap#1",
          "description": "Ready to host SAPs",
          "attachment-interface": "GE0/6/1",
          "interface-type": "ietf-sap-ntw:phy",
          "role": "ietf-sap-ntw:uni",
          "allows-child-saps": true,
          "sap-status": {
            "status": "ietf-vpn-common:op-up"
          }
        },
        {
          "sap-id": "sap#2",
          "description": "Ready to host SAPs",
          "attachment-interface": "GE0/6/4",
          "interface-type": "ietf-sap-ntw:phy",
          "role": "ietf-sap-ntw:uni",
          "allows-child-saps": true,
          "sap-status": {
            "status": "ietf-vpn-common:op-up"
          }
        },
        {
          "sap-id": "sap#4",
          "description": "Another description",
          "parent-termination-point": "GE0/6/4",
          "attachment-interface": "GE0/6/4.2",
          "interface-type": "ietf-sap-ntw:logical",
          "encapsulation-type": "ietf-vpn-common:vlan-type",
          "sap-status": {
            "status": "ietf-vpn-common:op-up"
          },
          "service-status": {
            "admin-status": {
              "status": "ietf-vpn-common:admin-up"
            },
            "oper-status": {
              "status": "ietf-vpn-common:op-up"
            }
          }
        }
      ]
    }
  ]
}
</sourcecode>
      </figure>
      <t indent="0" pn="section-appendix.b-6"><xref target="app-ex-res-body-filter" format="default" sectionFormat="of" derivedContent="Figure 10"/> shows an example of the
      response message body that is received from the network controller if
      the request includes a filter on the service type for a particular
      node:</t>
      <figure anchor="app-ex-res-body-filter" align="left" suppress-title="false" pn="figure-10">
        <name slugifiedName="name-an-example-of-a-response-bod">An Example of a Response Body to a Request with a Service Filter</name>
        <sourcecode type="json" markers="false" pn="section-appendix.b-7.1">{
  "ietf-sap-ntw:service": [
    {
      "service-type": "ietf-vpn-common:l3vpn",
      "sap": [
        {
          "sap-id": "sap#1",
          "description": "Ready to host SAPs",
          "attachment-interface": "GE0/6/1",
          "interface-type": "ietf-sap-ntw:phy",
          "role": "ietf-sap-ntw:uni",
          "allows-child-saps": true,
          "sap-status": {
            "status": "ietf-vpn-common:op-up"
          }
        },
        {
          "sap-id": "sap#2",
          "description": "Ready to host SAPs",
          "attachment-interface": "GE0/6/4",
          "interface-type": "ietf-sap-ntw:phy",
          "role": "ietf-sap-ntw:uni",
          "allows-child-saps": true,
          "sap-status": {
            "status": "ietf-vpn-common:op-up"
          }
        },
        {
          "sap-id": "sap#3",
          "description": "A first SAP description",
          "parent-termination-point": "GE0/6/4",
          "attachment-interface": "GE0/6/4.1",
          "interface-type": "ietf-sap-ntw:logical",
          "encapsulation-type": "ietf-vpn-common:vlan-type",
          "sap-status": {
            "status": "ietf-vpn-common:op-up"
          },
          "service-status": {
            "admin-status": {
              "status": "ietf-vpn-common:admin-up"
            },
            "oper-status": {
              "status": "ietf-vpn-common:op-up"
            }
          }
        }
      ]
    }
  ]
}
</sourcecode>
      </figure>
    </section>
    <section anchor="nniapp" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.c">
      <name slugifiedName="name-an-example-of-an-nni-sap-in">An Example of an NNI SAP: Inter-AS VPN Option A</name>
      <t indent="0" pn="section-appendix.c-1"><xref target="RFC4364" sectionFormat="of" section="10" format="default" derivedLink="https://rfc-editor.org/rfc/rfc4364#section-10" derivedContent="RFC4364"/>
      discusses several options
      to extend a VPN service beyond the scope of a single Autonomous System
      (AS). For illustration purposes, this section focuses on the so-called
      "Option A", but similar examples can be considered for other options.</t>
      <t indent="0" pn="section-appendix.c-2">In this option, an AS Border Router (ASBR) of an AS is directly connected to an ASBR of
      a neighboring AS. These two ASBRs are connected by multiple physical or
      logical interfaces. Also, at least one sub-interface is maintained by
      these ASBRs for each of the VPNs that require their routes to be passed
      from one AS to the other AS. Each ASBR behaves as a PE and treats the
      other as if it were a CE.</t>
      <t indent="0" pn="section-appendix.c-3"><xref target="optiona" format="default" sectionFormat="of" derivedContent="Figure 11"/> shows a simplified (excerpt) topology
      of two ASes A and B with a focus on the interconnection links between
      these two ASes.</t>
      <figure anchor="optiona" align="left" suppress-title="false" pn="figure-11">
        <name slugifiedName="name-an-example-of-an-inter-as-v">An Example of an Inter-AS VPN (Option A)</name>
        <artwork align="center" name="" type="" alt="" pn="section-appendix.c-4.1">.--------------------.                      .--------------------.
|                    |                      |                    |
|              A  .--+--.                .--+--.  A              |
|              S  |     +================+     |  S              |
|              B  | (VRF1)----(VPN1)----(VRF1) |  B              |
|              R  |     |                |     |  R              |
|                 | (VRF2)----(VPN2)----(VRF2) |                 |
|              a  |     +================+     |  b              |
|              1  '--+--'                '--+--'  1              |
|     AS A           |                      |         AS B       |
|              A  .--+--.                .--+--.  A              |
|              S  |     +================+     |  S              |
|              B  | (VRF1)----(VPN1)----(VRF1) |  B              |
|              R  |     |                |     |  R              |
|                 | (VRF2)----(VPN2)----(VRF2) |                 |
|              a  |     +================+     |  b              |
|              2  '--+--'                '--+--'  2              |
|                    |                      |                    |
'--------------------'                      '--------------------'
</artwork>
      </figure>
      <t indent="0" pn="section-appendix.c-5"><xref target="nniex1" format="default" sectionFormat="of" derivedContent="Figure 12"/> shows an example of a message body that
      is received from the network controller of AS A (with a focus on the
      NNIs shown in <xref target="optiona" format="default" sectionFormat="of" derivedContent="Figure 11"/>).</t>
      <figure anchor="nniex1" align="left" suppress-title="false" pn="figure-12">
        <name slugifiedName="name-an-example-of-sap-usage-for">An Example of SAP Usage for an NNI</name>
        <sourcecode type="json" markers="false" pn="section-appendix.c-6.1">{
  "ietf-network:networks": {
    "network": [
      {
        "network-types": {
          "ietf-sap-ntw:sap-network": {
            "service-type": [
              "ietf-vpn-common:l3vpn"
            ]
          }
        },
        "network-id": "example:an-id",
        "node": [
          {
            "node-id": "example:asbr-a1",
            "ietf-sap-ntw:service": [
              {
                "service-type": "ietf-vpn-common:l3vpn",
                "sap": [
                  {
                    "sap-id": "sap#11",
                    "description": "parent inter-as link#1",
                    "role": "ietf-sap-ntw:nni",
                    "allows-child-saps": true,
                    "peer-sap-id": ["asbr-b1"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    }
                  },
                  {
                    "sap-id": "sap#12",
                    "description": "parent inter-as link#2",
                    "role": "ietf-sap-ntw:nni",
                    "allows-child-saps": true,
                    "peer-sap-id": ["asbr-b1"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    }
                  },
                  {
                    "sap-id": "sap#13",
                    "description": "vpn1",
                    "role": "ietf-sap-ntw:nni",
                    "peer-sap-id": ["asbr-b1"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-up"
                      },
                      "oper-status": {
                        "status": "ietf-vpn-common:op-up"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#14",
                    "description": "vpn2",
                    "role": "ietf-sap-ntw:nni",
                    "peer-sap-id": ["asbr-b1"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-up"
                      },
                      "oper-status": {
                        "status": "ietf-vpn-common:op-up"
                      }
                    }
                  }
                ]
              }
            ]
          },
          {
            "node-id": "example:asbr-a2",
            "ietf-sap-ntw:service": [
              {
                "service-type": "ietf-vpn-common:l3vpn",
                "sap": [
                  {
                    "sap-id": "sap#11",
                    "description": "parent inter-as link#1",
                    "role": "ietf-sap-ntw:nni",
                    "allows-child-saps": true,
                    "peer-sap-id": ["asbr-b2"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    }
                  },
                  {
                    "sap-id": "sap#12",
                    "description": "parent inter-as link#2",
                    "role": "ietf-sap-ntw:nni",
                    "allows-child-saps": true,
                    "peer-sap-id": ["asbr-b2"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    }
                  },
                  {
                    "sap-id": "sap#21",
                    "description": "vpn1",
                    "role": "ietf-sap-ntw:nni",
                    "peer-sap-id": ["asbr-b2"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-up"
                      },
                      "oper-status": {
                        "status": "ietf-vpn-common:op-up"
                      }
                    }
                  },
                  {
                    "sap-id": "sap#22",
                    "description": "vpn2",
                    "role": "ietf-sap-ntw:nni",
                    "peer-sap-id": ["asbr-b2"],
                    "sap-status": {
                      "status": "ietf-vpn-common:op-up"
                    },
                    "service-status": {
                      "admin-status": {
                        "status": "ietf-vpn-common:admin-up"
                      },
                      "oper-status": {
                        "status": "ietf-vpn-common:op-up"
                      }
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }
}
</sourcecode>
      </figure>
    </section>
    <section anchor="servicesap" numbered="true" toc="include" removeInRFC="false" pn="section-appendix.d">
      <name slugifiedName="name-examples-of-using-the-sap-n">Examples of Using the SAP Network Model in Service Creation</name>
      <t indent="0" pn="section-appendix.d-1">This section describes examples that illustrate the use of the SAP
      model for service creation purposes.</t>
      <t indent="0" pn="section-appendix.d-2">An example of a SAP topology is presented in <xref target="ex1" format="default" sectionFormat="of" derivedContent="Figure 7"/>. This example includes four PEs with their SAPs, as
      well as the customer information.</t>
      <t indent="0" pn="section-appendix.d-3">Let us assume that an operator wants to create an L3VPN service
      between two PEs (PE3 and PE4) that are servicing two CEs (CE6 and CE7).
      To that aim, the operator would query the SAP topology and would obtain
      a response similar to what is depicted in <xref target="ex1" format="default" sectionFormat="of" derivedContent="Figure 7"/>.
      That response indicates that the SAPs having "sap#31" and "sap#43" as
      attachment identifiers do not have any installed services. This is
      particularly inferred from (1) the administrative 'service-status' that is
      set to 'ietf-vpn-common:admin-down' for all the services that are
      supported by these two SAPs and (2) the absence of the anomalies discussed
  in <xref target="tree" format="default" sectionFormat="of" derivedContent="Section 5"/>. Note that none of the anomalies discussed in
      <xref target="tree" format="default" sectionFormat="of" derivedContent="Section 5"/> are detected. Once the "free" SAPs are
      identified, the 'interface-type' and 'encapsulation-type' are checked to
      see if the requested L3VPN service is compatible with the SAP
      characteristics. If they are compatible, the 'attachment-id' value can
      be used as the VPN network access identifier in an L3NM "create"
      query.</t>
      <t indent="0" pn="section-appendix.d-4">A similar process can be followed for creating the so-called
      "Inter-AS VPN Option A" services. Unlike the previous example, let us
      assume that an operator wants to create an L3VPN service between two PEs
      (PE3 and PE4) but these PEs are not in the same AS: PE3 belongs to AS A
      while PE4 belongs to AS B. The NNIs between these ASes are represented
      in <xref target="optiona" format="default" sectionFormat="of" derivedContent="Figure 11"/>. The operator of AS A would query, via
      the controller of its AS, the SAP topology and would obtain not only the
      information that is depicted in <xref target="ex1" format="default" sectionFormat="of" derivedContent="Figure 7"/> but also the
      information shown in <xref target="nniex1" format="default" sectionFormat="of" derivedContent="Figure 12"/> representing the
      NNIs. The operator would create the service in the AS A between PE3 and
      a free, compatible SAP in the ASBR A1. The same procedure is followed by
      the operator of AS B to create the service in the AS B between a free,
      compatible SAP in the ASBR B1 and PE4. The services can be provisioned
      in each of these ASes using the L3NM.</t>
      <t indent="0" pn="section-appendix.d-5">Let us now assume that, instead of the L3VPN service, the operator
      wants to set up an L2VPN service. If the 'interface-type' is a physical
      port, a new logical SAP can be created using the SAP model to cope with
      the service's needs (e.g., the 'encapsulation-type' attribute can be set
      to 'ietf-vpn-common:vlan-type'). Once the logical SAP is created, the
      'attachment-id' of the new SAP is used to create an L2NM instance
      (<xref target="RFC9291" sectionFormat="of" section="7.6" format="default" derivedLink="https://rfc-editor.org/rfc/rfc9291#section-7.6" derivedContent="RFC9291"/>).</t>
    </section>
    <section anchor="Acknowledgements" numbered="false" toc="include" removeInRFC="false" pn="section-appendix.e">
      <name slugifiedName="name-acknowledgements">Acknowledgements</name>
      <t indent="0" pn="section-appendix.e-1">Thanks to <contact fullname="Adrian Farrel"/>,
      <contact fullname="Daniel King"/>, <contact fullname="Dhruv Dhody"/>,
      <contact fullname="Benoit Claise"/>, <contact fullname="Bo Wu"/>,
      <contact fullname="Erez Segev"/>, <contact fullname="Raul Arco"/>,
      <contact fullname="Joe Clarke"/>,
      <contact fullname="Riyas Valiyapalathingal"/>,
      <contact fullname="Tom Petch"/>, <contact fullname="Olga Havel"/>, and
      <contact fullname="Richard Roberts"/> for their comments.</t>
      <t indent="0" pn="section-appendix.e-2">Thanks to <contact fullname="Martin Björklund"/> for the YANG Doctors
      review, <contact fullname="Menachem Dodge"/> for the opsdir review,
      <contact fullname="Mach Chen"/> for the rtgdir review,
      <contact fullname="Linda Dunbar"/> for the genart review, and
      <contact fullname="Ivaylo Petrov"/> for the secdir
      review.</t>
      <t indent="0" pn="section-appendix.e-3">Special thanks to <contact fullname="Adrian Farrel"/> for the Shepherd
      review and <contact fullname="Rob Wilton"/> for the careful AD review.</t>
      <t indent="0" pn="section-appendix.e-4">Thanks to <contact fullname="Lars Eggert"/>,
      <contact fullname="Roman Danyliw"/>, and
      <contact fullname="Zaheduzzaman Sarker"/> for their
      comments during the IESG review.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.f">
      <name slugifiedName="name-authors-addresses">Authors' Addresses</name>
      <author fullname="Mohamed Boucadair" initials="M." role="editor" surname="Boucadair">
        <organization showOnFrontPage="true">Orange</organization>
        <address>
          <postal>
            <street/>
            <city/>
            <region/>
            <code/>
            <country>France</country>
          </postal>
          <email>mohamed.boucadair@orange.com</email>
        </address>
      </author>
      <author fullname="Oscar Gonzalez de Dios" initials="O" surname="Gonzalez de Dios">
        <organization showOnFrontPage="true">Telefonica</organization>
        <address>
          <postal>
            <street/>
            <city>Madrid</city>
            <region/>
            <code/>
            <country>Spain</country>
          </postal>
          <email>oscar.gonzalezdedios@telefonica.com</email>
        </address>
      </author>
      <author fullname="Samier Barguil" initials="S." surname="Barguil">
        <organization showOnFrontPage="true">Nokia</organization>
        <address>
          <postal>
            <street/>
            <city>Madrid</city>
            <region/>
            <code/>
            <country>Spain</country>
          </postal>
          <email>samier.barguil_giraldo@nokia.com</email>
        </address>
      </author>
      <author fullname="Qin Wu" initials="Q." surname="Wu">
        <organization showOnFrontPage="true">Huawei</organization>
        <address>
          <postal>
            <extaddr>Yuhua District</extaddr>
            <street>101 Software Avenue</street>
            <city>Nanjing</city>
            <region>Jiangsu</region>
            <code>210012</code>
            <country>China</country>
          </postal>
          <email>bill.wu@huawei.com</email>
        </address>
      </author>
      <author fullname="Victor Lopez" initials="V." surname="Lopez">
        <organization showOnFrontPage="true">Nokia</organization>
        <address>
          <postal>
            <street/>
            <city/>
            <region/>
            <code/>
            <country>Spain</country>
          </postal>
          <email>victor.lopez@nokia.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
