<?xml version="1.0" encoding="US-ASCII"?> 
<!DOCTYPE rfc SYSTEM "rfc2629.dtd">
<!--  vi: set et smarttab sw=2 tabstop=4:--> 
<?rfc toc="yes"?> 
<?rfc tocompact="yes"?> 
<?rfc tocdepth="3"?> 
<?rfc tocindent="yes"?> 
<?rfc symrefs="yes"?> 
<?rfc sortrefs="yes"?> 
<?rfc comments="yes"?> 
<?rfc inline="yes"?> 
<?rfc compact="yes"?> 
<?rfc subcompact="no"?>

<rfc category="std" docName="draft-ietf-ccamp-l1csm-yang-22" ipr="trust200902" obsoletes="" updates="" submissionType="IETF" xml:lang="en">
 <front>
  <title abbrev=" A YANG Data Model for L1CSM"> A YANG Data Model for L1 Connectivity Service Model (L1CSM) </title> 
 
    <author fullname="Young Lee" initials="Y." surname="Lee">
      <organization>Samsung</organization>
      <address>
        <postal>
          <street>Samsung</street>
          <city>Seoul</city>
          <region></region>
          <code></code>
          <country>South Korea</country>
        </postal>
        <email>younglee.tx@gmail.com</email>
      </address>
    </author>
 
    <author initials="K." surname="Lee" fullname="KwangKoog Lee">
   <organization>Korea Telecom</organization>
   <address>
    <postal>
     <street></street>
     <city></city>
     <region></region>
     <code></code>
     <country>South Korea</country>
    </postal>
    <email>kwangkoog.lee@kt.com</email>
   </address>
  </author>
 
  
    <author initials="H." surname="Zheng" fullname="Haomian Zheng">
   <organization>Huawei Technologies</organization>
   <address>
    <postal>
     <street>H1, Huawei Xiliu Beipo Village, Songshan Lake</street>
     <city>Dongguan</city>
     <region>Guangdong</region>
     <code>523808</code>
     <country>China</country>
    </postal>
    <email>zhenghaomian@huawei.com</email>
   </address>
  </author>

  <author initials="O." surname="Gonzalez de Dios" fullname="Oscar Gonzalez de Dios">
   <organization>Telefonica</organization>
   <address>
    <postal>
     <street></street>
     <city></city>
     <region></region>
     <code></code>
     <country></country>
    </postal>
    <email>oscar.gonzalezdedios@telefonica.com</email>
   </address>
  </author>
  
  <author initials="D." surname="Ceccarelli" fullname="Daniele Ceccarelli">
   <organization>Cisco</organization>
   <address>
    <postal>
     <street></street>
     <city></city>
     <region></region>
     <code></code>
     <country></country>
    </postal>
    <email>daniele.ietf@gmail.com</email>
   </address>
  </author>

  <date month="April" day="4" year="2023"></date>
  <workgroup>CCAMP Working Group</workgroup>

 <abstract>
  <t>
   This document provides a YANG Layer 1 Connectivity Service Model (L1CSM).
  </t>
  <t>
   This model can be utilized by a customer network controller to initiate a connectivity service request as well as to retrieve service states for a Layer 1 network controller communicating with its customer network controller.  This YANG model is in compliance of Network Management Datastore Architecture (NMDA).
  </t>
 </abstract>
 <!--
 <note title="Requirements Language">
  <t>
  The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in <xref target="RFC2119" />.
  </t>
 </note>
 -->
 </front>

 <middle>
 <section title="Introduction" toc="default">
  <t>
 This document provides a YANG Layer 1 (L1) Connectivity Service Model (L1CSM) which can be classified as Network Service YANG module per <xref target="RFC8199" />. This model can be utilized by a customer network controller to initiate a connectivity service request as well as to retrieve service states for a Layer 1 network controller communicating with its customer network controller via a NETCONF <xref target="RFC8341" /> or a RESTCONF <xref target="RFC8040" /> interface.
  </t>
  <t>
  <xref target="RFC4847" /> provides a framework and service level requirements for Layer 1 Virtual Private Networks (L1VPNs).  It classifies the
   provision of L1VPN services into three service models (not to be confused with YANG models): the management-based service model, the 
   signaling-based service model (Basic Mode), and the signaling and routing service model (Enhanced Mode). 
  </t>
  <t>
  In the management-based service model, customer management systems and provider management systems communicate with each other.  Customer management systems access provider management systems to request Layer 1 connection setup/deletion between a pair of CEs.  Customer management systems may obtain additional information, such as resource availability information and monitoring information, from provider management systems.  There is no control message exchange between a CE and PE.
  </t>
  <t>
  In the signaling-based service model (Basic Model), the CE-PE interface's functional repertoire is limited to path setup signaling only. In the signaling and routing service model (Enhanced Mode), the CE-PE interface provides the signaling capabilities as in the Basic Mode, plus permits limited exchange of information between the control planes of the provider and the customer to help such functions as discovery of customer network routing information (i.e., reachability or TE information in remote customer sites), or parameters of the part of the provider's network dedicated to the customer.
  </t>
  <t>
   The primary focus of this document is to describe L1CSM YANG model required for the instantiation of point-to-point L1 connectivity services, to provide Layer 1 connectivity between two or more customer sites where the customer has some control over the establishment and type of the connectivity.  The L1CSM specified in this document supports the point-to-point connectivity services defined in <xref target="RFC4847" />.
  </t>
  <t>
  The YANG data model defined in Section 3 is consistent with the Service Attributes defined in <xref target="MEF63" />, with the exception of the Service Level Specification Service Attributes which are ouside the scope of this document.
  </t>
  <t>
  This YANG model is NMDA-compliant.
  </t>
  <section title = "Deployment Scenarios" toc = "default">
  <t>
  <xref target="L1vpnExt" pageno="false" format="default" /> depicts a deployment scenario of the L1CSM SDN control-based service model for an external customer instantiating L1 point-to-point connectivity to the provider.
  </t>
    <figure anchor="L1vpnExt" title="L1CSM SDN Controller/EMS/NMS-Based Service Model: External Customer" suppress-title="false" align="left" alt="" width="" height="">
      <artwork align="left"><![CDATA[
 
                          +------------+
                          |  Customer  |
                          |   Service  |
                          |Orchestrator|
                          +------------+
                                 |
                   .. .. .. .. ..|.. .. .. .. .. ..
                  :              |                 : 
                  :     +--------------------+     :
                  :     |                    |     :
                  :     |    +----------+    |     :
                  :     |    | Network  |    |     :
                  :     |    |   SDN    |    |     :
                  :     |    |Controller|    |     :
                  :     |    |/NMS/EMS  |    |     :
                  :     |    +----------+    |     :
                  :     |                    |     :
                  :     |                    |     :
        +----+    :   +----+              +----+   :   +----+
        | CE |----:---| PE |..............| PE |---:---| CE |
        +----+    :   +----+              +----+   :   +----+
                  :     |                    |     :
                  :     |                    |     :
                  :     +--------------------+     :
                  :     |                    |     :
                  :     |<-Provider network->|     :
             
              Customer                          Customer
              Interface                         Interface


]]></artwork>
 </figure>
  <t>
  With this scenario, the customer service orchestrator interfaces with the network software-defined networking (SDN) controller of the provider using a Customer Service Model as defined in <xref target="RFC8309" />.  It is worth noting that the SDN controller can be alternated by Network Management System (NMS) or Element Management System (EMS). 
  </t>
  <t>
  <xref target="L1vpnInt" pageno="false" format="default" />  depicts another deployment scenario for internal customer (e.g., higher-layer service management departments) interfacing the Layer 1 transport network department. With this scenario, a multi-service backbone is characterized such that each service department of a provider (e.g., L2/3 services) that receives the same provider's L1CSM service provides a different kind of higher-layer service.   The customer receiving the L1CSM service (i.e., each service department) can offer its own services, whose payloads can be any layer (e.g., IP, OTN). The Layer 1 transport network and each service network belong to the same organization, but may be managed separately. The Service SDN Controller is the control/management entity owned by higher-layer service department (e.g., L2/3 VPN) whereas the Network SDN Controller is the control/management entity responsible for Layer 1 connectivity service. The CEs in <xref target="L1vpnInt" pageno="false" format="default" /> are L2/3 devices that interface with L1 PE devices.
  </t>
     <figure anchor="L1vpnInt" title="L1CSM SDN Controller/EMS/NMS-Based Service Model: Internal Customer" suppress-title="false" align="left" alt="" width="" height="">
   <artwork align="left"><![CDATA[
 
                                +----------+
                                | Service  |
                                |   SDN    |
                                |Controller|
                                |/EMS/NMS  |
                                | for L2/3 |
                                +----------+
                                     |
                                     |
                                     |
                        +--------------------+      
                        |                    |     
                        |    +----------+    |     
                        |    | Network  |    |     
                        |    |   SDN    |    |     
                        |    |Controller|    | 
                        |    | /EMS/NMS |    |    
                        |    | for L1CSM|    |     
                        |    +----------+    |     
                        |                    |     
                        |                    |     
        +----+        +----+              +----+      +----+
        | CE |--------| PE |..............| PE |------| CE |
        +----+        +----+              +----+      +----+
           |            |                    |          |
           |            |                    |          |
           |            +--------------------+          |
           |            |                    |          |
           |            |<------------------>|          |
           |               Provider Network             |
           |                  For Layer 1               |
           |<------------------------------------------>|
                          Provider Network for L2/3


]]></artwork>
 </figure>
  <t>
  The benefit is that the same Layer 1 transport network resources are shared by multiple services.  A large capacity backbone network (data plane) can be built economically by having the resources shared by multiple services usually with flexibility to modify topologies, while separating the control functions for each service department. Thus, each customer can select a specific set of features that are needed to provide their own service <xref target="RFC4847" />.
  </t>
  </section>
  <section title="Terminology" toc="default">
  <t>
  Refer to <xref target="RFC4847" /> and <xref target="RFC5253" /> for the key terms used in this document.
  </t>
  <t>
  The following terms are defined in <xref target="RFC7950" /> and are not redefined here:
    <list style="symbols">
      <t>
      client
      </t>
      <t>
      server
      </t>
      <t>
      augment
      </t>
      <t>
      data model
      </t>
      <t>
      data node
      </t>
    </list>
  </t>
  <t>
  The following terms are defined in <xref target="RFC6241" /> and are not redefined here:
    <list style="symbols">
    <t>
    configuration data
    </t>
    <t>
    state data
    </t>
    </list>
  </t>
  <t>
  The terminology for describing YANG data models is found in <xref target="RFC7950" />.
  </t>
  </section>
  <section title="Tree Diagram" toc="default">
  <t>
  A simplified graphical representation of the data model is used in <xref target="L1CSMTree" /> of this this document.  The meaning of the symbols in these diagrams is defined in <xref target="RFC8340" />.
  </t>
  </section>
  <section title="Prefixes in Data Node Names" toc="default">
   <t>
   In this document, names of data nodes and other data model objects are prefixed using the standard prefix associated with the corresponding YANG imported modules. The module ietf-layer1-types specified in <xref target="I-D.ietf-ccamp-layer1-types" /> is imported in this module. 
  </t>
    <figure>
    <artwork>
      <![CDATA[
    +-------------+-------------------+------------------------------+
    | Prefix      | YANG module       |         Reference            |
    +-------------+-------------------+------------------------------+
    | l1csm       | ietf-l1csm        | [RFCXXXX]                    |
    | l1-types    | ietf-layer1-types | [RFCYYYY]                    |
    +-------------+-------------------+------------------------------+
            Table 1: Prefixes and Corresponding YANG Modules
     ]]>
   </artwork>
  </figure>
  <t>
  Note: The RFC Editor will replace XXXX with the number assigned to the RFC once this document becomes an RFC. The RFC Editor will replace YYYY with the number assigned to the RFC once <xref target="I-D.ietf-ccamp-layer1-types" /> becomes an RFC.
  </t>
  </section>


 <section title="Abbreviations" toc="default">
  <t>
   L1VC	Layer 1 Virtual Connection 
  </t>
  <t>
    UNI   User Network Interface
  </t>
  <t>
    PE    Provider Edge
  </t>
  <t>
    CE    Customer Edge
  </t>
 </section>
 <!--  Abbreviations END  --> 
  </section>
 <!--  Introduction END  -->
 
  <section title="L1CSM YANG Model Overview" toc="default">
  <t>
   The L1CSM describes the Layer 1 connectivity services following the convention defined in <xref target="MEF63" /> which includes the description of User Network Interface (UNI) access characteristics and L1 virtual connection (L1VC) service characteristics:
  </t>
  <figure>
    <artwork>
  <![CDATA[
    +--rw l1-connectivity
      +--rw access
      |  +--rw unis
      |     +--rw uni* [id]
      |        +--rw uni-id     string
      |        .......................................
      +--rw services
         +--rw service* [service-id]
            +--rw service-id    string
            ..........................................
     ]]>
   </artwork>
  </figure>
  <t>
    The UNI access characteristics can be specified using either the definitions in <xref target="MEF63" />, which are based on the 3-tuple includes protocol, coding and optical-interface, or the definitions in <xref target="I-D.ietf-ccamp-layer1-types" />, which are based on the client signals in <xref target="ITU-T_G.709" />:
  </t>
      <figure>
    <artwork>
      <![CDATA[
    +--rw (uni-access-type)?
       +--:(mef)
       |  +--rw protocol             identityref
       |  +--rw coding               identityref
       |  +--rw optical-interface    identityref
       +--:(itu)
          +--rw client-signal        identityref
     ]]>
   </artwork>
  </figure>
  <t>
    The L1VC service characteristics are described by references to a list of L1VC end points. For  point-to-point connectivities, only two end points are allowed. 
  </t>
  <figure>
  <artwork>
  <![CDATA[
    +--rw endpoint* [endpoint-id]
       +--rw endpoint-id    string
       +--rw uni -> /l1-connectivity/access/unis/uni/uni-id
               
    ]]>
  </artwork>
  </figure>
 </section>
  <!--  Model Overview END  -->
  
  <section title="L1CSM YANG Model (Tree Structure)" anchor="L1CSMTree" toc="default">
    <t>
   <figure anchor="L1CSMtreefigure" title="" suppress-title="true" align="left" alt="" width="" height="">
    <artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">
<![CDATA[
module: ietf-l1csm
  +--rw l1-connectivity
     +--rw access
     |  +--rw unis
     |     +--rw uni* [uni-id]
     |        +--rw uni-id                     string
     |        +--rw (uni-access-type)?
     |           +--:(mef)
     |           |  +--rw protocol             identityref
     |           |  +--rw coding               identityref
     |           |  +--rw optical-interface    identityref
     |           +--:(itu)
     |              +--rw client-signal        identityref
     +--rw services
        +--rw service* [service-id]
           +--rw service-id    string
           +--rw endpoints
              +--rw endpoint* [endpoint-id]
                 +--rw endpoint-id    string
                 +--rw uni
                         -> /l1-connectivity/access/unis/uni/uni-id

]]> 
    </artwork>
   </figure>
   </t>
 </section>
  <!--  tree END  --> 

  <section anchor="code" title="L1CSM YANG Code" toc="default">
   <figure anchor="L1CSMYANG" title="" suppress-title="true" align="left" alt="" width="" height="">
    <artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">
<![CDATA[ 
<CODE BEGINS>file "ietf-l1csm@2023-02-01.yang"
module ietf-l1csm {
  yang-version 1.1;
  namespace "urn:ietf:params:xml:ns:yang:ietf-l1csm";
  prefix "l1csm";
  
  import ietf-layer1-types {
    prefix "l1-types";
    reference
      "RFCYYYY: A YANG Data Model for Layer 1 Types";
  }
  // Note: The RFC Editor will replace XXXX/YYYY with the number  
  // assigned to the RFCs once this draft becomes an RFC. 

  organization
    "Internet Engineering Task Force (IETF) CCAMP WG";

  contact
    "WG Web: <https://datatracker.ietf.org/wg/ccamp/>
     WG List: <mailto:ccamp@ietf.org>

     Editor:  Young Lee
              <mailto:younglee.tx@gmail.com>
    
     Editor:  KwangKoog Lee
              <mailto:kwangkoog.lee@kt.com>
     
     Editor:  Haomian Zheng
              <mailto:zhenghaomian@huawei.com>

     Editor:  Oscar Gonzalez de Dios
              <mailto:oscar.gonzalezdedios@telefonica.com>

     Editor:  Daniele Ceccarelli
              <mailto:daniele.ietf@gmail.com>";

  description
    "This module describes L1 connectivity service based on MEF 63: 
     Subscriber Layer 1 Service Attribute Technical Specification.
     Refer to MEF 63 for all terms and the original references 
     used in the module.

     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 XXXX; see
     the RFC itself for full legal notices.";

  revision "2023-02-01" {
    description
      "Initial revision.";
    reference
      "RFC XXXX: A Yang Data Model for L1 Connectivity Service Model
       (L1CSM)";
  }

  /*
   * Groupings
   */

  grouping protocol-coding-optical-interface {
    description
      "The 3-tuple <p,c,o> where p:protocol type;
       c:coding function; o:optical interface function.

       Valid combinations are defined in Tables 4, 5, 6 and 7
       of MEF 63.";
    reference
      "MEF63: Subscriber Layer 1 Service Attributes";

    leaf protocol {
      type identityref {
        base l1-types:protocol;
      }
      mandatory true;
      description
        "The protocol being used at the UNI.";
    }
    leaf coding {
      type identityref {
        base l1-types:coding-func;
      }
      mandatory true;
      description
        "The coding function being used at the UNI.";
    }
    leaf optical-interface {
      type identityref {
        base l1-types:optical-interface-func;
      }
      mandatory true;
      description
        "The optical interface function being used at the UNI.";
    }
  }

  grouping subscriber-l1vc-endpoint-attributes {
    description
      "Subscriber Layer 1 connection endpoint attributes";
    reference
      "MEF63: Subscriber Layer 1 Service Attributes";

    container endpoints {
      description
        "The container for the list of the subscriber L1VC end 
        points";
      list endpoint {
        key "endpoint-id";
        min-elements 2;
        max-elements 2;
        description
          "The list of the two of the subscriber L1VC end points";
        leaf endpoint-id {
          type string;
          mandatory true;
          description
            "The subscriber L1VC end point ID";
        }
        leaf uni {
          type leafref {
            path "/l1-connectivity/access/unis/uni/uni-id";
          }
          mandatory true;
          description
            "The UNI supporting the subscriber L1VC end point";
        }
      }
    }
  }

  /*
   * Data nodes
   */

  container l1-connectivity {
    description
      "Serves as a top-level container for a list of Layer 1
       connection services (l1cs)";
    container access {
      description
        "UNI configurations for access networks";
      container unis {
        description
          "The list of UNIs to be configured";
        list uni {
          key "uni-id";
          description
            "UNI identifier";
          leaf uni-id {
            type string;
            description "The UNI ID of UNI Service Attributes";
          }
          choice uni-access-type {
            description
              "The UNI access type can be specified either by the
               protocol, coding function and optical interface
               function, defined in MEF, or by the client-signal,
               defined in ITU-T.";
            case mef {
              uses protocol-coding-optical-interface;
            }
            case itu {
              leaf client-signal {
                type identityref {
                  base l1-types:client-signal;
                }
                mandatory true;
                description
                  "The client signal being used at the UNI";
                reference
                  "ITU-T G.709 v6.0 (06/2020): Interfaces for the 
                   Optical Transport Network (OTN)";
              }
            }
          }
        }
      }
    }
    container services {
      description
        "L1VC services";
      list service {
        key "service-id";
        description
          "A unique identifier of a subscriber L1VC service";
        leaf service-id {
          type string;
          description
            "A unique service identifier for subscriber L1VC.";
        }
        uses subscriber-l1vc-endpoint-attributes;
      } //end of service list
    } //end of service container
  } //service top container
}

<CODE ENDS>

]]> 
    </artwork>
   </figure>  
  </section>
  <!--  YANG CODE END  --> 

 <section anchor="Security" title="Security Considerations" toc="default">
  <t>
   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" /> or RESTCONF <xref target="RFC8040" />. The lowest NETCONF layer is the secure transport layer, and the mandatory-to-implement secure transport is Secure Shell (SSH) <xref target="RFC6242" />. The lowest RESTCONF layer is HTTPS, and the mandatory-to-implement secure transport is TLS <xref target="RFC8446" />.
  </t>
  <t>
  The Network Configuration Access Control Model (NACM) <xref target="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>
  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>
   <t>
   uni:
   </t>
   <t>
     - uni-id
   </t>
   <t>
   service:
   </t>
   <t>
     - service-id
   </t>
   <t>
     - endpoint-id
   </t>
   <t>
   The security considerations spelled out in the YANG 1.1 specification <xref target="RFC7950" /> apply for this document as well.
   </t>
 </section>
 <!--  Security END  --> 

 <section anchor="IANA" title="IANA Considerations" toc="default">
  <t>
  This document registers the following URIs in the "ns" subregistry within the "IETF XML Registry" <xref target="RFC3688" /> as follows:
  </t>
  <figure>
    <artwork>
      <![CDATA[
      URI: urn:ietf:params:xml:ns:yang:ietf-l1csm 
      Registrant Contact: The IESG  
      XML: N/A; the requested URI is an XML namespace.
    ]]>
    </artwork>
  </figure>
  <t> 
   This document registers following YANG modules in the YANG Module Names registry <xref target="RFC6020" />.
  </t>
  <figure>
    <artwork>
      <![CDATA[
   name:         ietf-l1csm
   namespace:    urn:ietf:params:xml:ns:yang:ietf-l1csm
   prefix:       l1csm
   reference:    RFC XXXX
    ]]>
    </artwork>
    </figure>

 </section>
 <!--  IANA END  --> 

 <section title="Acknowledgements" toc="default">
  <t>
  The authors would like to thank Tom Petch for his helpful comments and valuable contributions and Robert Wilton for his review that improved the model significantly.
  </t>
 </section>

 <section anchor="contributors" numbered="false" toc="include" removeInRFC="false">
        <name>Contributors</name>
    <contact initials="I." surname="Busi" fullname="Italo Busi">
      <organization>Huawei Technologies</organization>
      <address>
        <email>Italo.Busi@huawei.com</email>
      </address>
    </contact>
    <contact initials="G." surname="Fioccola" fullname="Giuseppe Fioccola">
      <organization>Huawei Technologies</organization>
      <address>
        <email>giuseppe.fioccola@huawei.com</email>
      </address>
    </contact>
    <contact initials="D." surname="Dhody" fullname="Dhruv Dhody">
      <organization>Huawei Technologies</organization>
      <address>
        <email>dhruv.ietf@gmail.com</email>
      </address>
    </contact>
    </section>
 <!--  Contributor END  --> 
 </middle>
 
 

 <back>
 <references title="Normative References">
  <!--<?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml"?> --> 
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.3688.xml"?> 
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8446.xml"?> 
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6020.xml"?> 
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6241.xml"?> 
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.6242.xml"?> 
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8341.xml"?> 
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.7950.xml"?>
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8040.xml"?>  
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8340.xml"?> 
 
  <?rfc include="reference.I-D.ietf-ccamp-layer1-types"?> 
  <reference anchor="MEF63">
    <front>
    <title>
    Subscriber Layer1 Service Attributes Technical Specification
    </title>
    <author>
    <organization>Metro Ethernet Forum</organization>
       </author>
    <date month="August" year="2018"/>
    </front>
    <seriesInfo name="MEF" value="63"/>
  </reference> 
  <reference anchor="ITU-T_G.709">
    <front>
    <title>
      Interfaces for the optical transport network  
    </title>
    <author>
    <organization>International Telecommunication Union</organization>
      </author>
    <date month="June" year="2020"/>
    </front>
    <seriesInfo name="ITU-T" value="G.709"/>
  </reference> 
 </references>
 
 <!--  Normative END  -->

 <references title="Informative References">
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.4847.xml"?> 
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.5253.xml"?> 
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8199.xml"?> 
  <?rfc include="http://xml.resource.org/public/rfc/bibxml/reference.RFC.8309.xml"?>
  
  </references>
 <!--  Informative END  -->
  <section anchor="Json" title="JSON Example" toc="default">
  <t>
  This section provides a JSON example of the YANG module described in Section 4. This example configures one L1VC service with two UNIs that describe the connection endpoints. 
  </t>
  <t>
   <figure anchor="json" title="" suppress-title="true" align="left" alt="" width="" height="">
    <artwork xml:space="preserve" name="" type="" align="left" alt="" width="" height="">
<![CDATA[ 
{
  "ietf-l1csm:l1-connectivity": {
    "access": {
      "unis": {
        "uni": [
          {
            "uni-id": "MTL-HQ-Node3-Slot2-Port1",
            "protocol": "ietf-layer1-types:Ethernet",
            "coding": "ietf-layer1-types:ETH-10GR",
            "optical-interface": "ietf-layer1-types:LR-PMD-10G"
          },
          {
            "uni-id": "MTL-STL-Node5-Slot4-Port3",
            "protocol": "ietf-layer1-types:Ethernet",
            "coding": "ietf-layer1-types:ETH-10GR",
            "optical-interface": "ietf-layer1-types:ER-PMD-10G"
          }
        ]
      }
    },
    "services": {
      "service": [
        {
          "service-id": "Sub-L1VC-1867-LT-MEGAMART",
          "endpoints": {
            "endpoint": [
              {
                "endpoint-id": "MTL-HQ_1867-MEGAMART",
                "uni": "MTL-HQ-Node3-Slot2-Port1"
              },
              {
                "endpoint-id": "MTL-STL_1867-MEGAMART",
                "uni": "MTL-STL-Node5-Slot4-Port3"
              }
            ]
          }
        }
      ]
    }
  }
}

]]> 
    </artwork>
   </figure>  
   </t>
  </section>
 </back>
 
 
</rfc>
