OPSAWG M. Boucadair, Ed. Internet-Draft Orange Intended status: Standards Track R. Roberts, Ed. Expires: 2 September 2023 Juniper O. G. D. Dios Telefonica S. B. Giraldo Nokia B. Wu Huawei Technologies 1 March 2023 YANG Data Models for 'Attachment Circuits'-as-a-Service (ACaaS) draft-boro-opsawg-teas-attachment-circuit-03 Abstract This document specifies a YANG service data model for Attachment Circuits (ACs). This model can be used for the provisioning of ACs prior or during service provisioning (e.g., Network Slice Service). The document specifies also a module that updates other service and network modules with the required information to bind specific services to ACs that are created using the AC service model. Also, the document specifies the common AC module, which is designed with the intent to be reusable. Whether a service model reuses structures defined in the AC models or simply include an AC reference is a design choice of these service models. Relying upon the AC service model to manage ACs over which a service is delivered has the merit to decorrelate the management of a service vs. upgrade the AC components to reflect recent AC technologies or features. Each AC is identified with a unique identifier within a domain. The mapping between this AC and a network node (typically, a Provider Edge (PE)) that terminates an AC is hidden to the application/ customer that makes use of the AC service model. Such an information is internal to the network controller. Thus, the details about the (network node-specific) attachment interfaces are not exposed in this service model. Discussion Venues This note is to be removed before publishing as an RFC. Boucadair, et al. Expires 2 September 2023 [Page 1] Internet-Draft ACaaS March 2023 Discussion of this document takes place on the Operations and Management Area Working Group Working Group mailing list (opsawg@ietf.org), which is archived at https://mailarchive.ietf.org/arch/browse/opsawg/. Source for this draft and an issue tracker can be found at https://github.com/boucadair/attachment-circuit-model. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 2 September 2023. Copyright Notice Copyright (c) 2023 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) 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. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 4 1.1. Scope and Intended Use . . . . . . . . . . . . . . . . . 4 1.2. Position ACaaS vs. Other Data Models . . . . . . . . . . 6 Boucadair, et al. Expires 2 September 2023 [Page 2] Internet-Draft ACaaS March 2023 1.2.1. Why Not Using L2SM as Reference Data Model for ACaaS? . . . . . . . . . . . . . . . . . . . . . . . 7 1.2.2. Why Not Using L3SM as Reference Data Model for ACaaS? . . . . . . . . . . . . . . . . . . . . . . . 7 2. Conventions and Definitions . . . . . . . . . . . . . . . . . 7 3. Sample Uses of the Data Models . . . . . . . . . . . . . . . 8 3.1. ACs Terminated by One or Multiple Customer Devices . . . 8 3.2. Separate AC Provisioning vs. Actual Service Provisioning . . . . . . . . . . . . . . . . . . . . . . 9 4. Description of the Data Models . . . . . . . . . . . . . . . 11 4.1. The Common Attachment Circuit ("ietf-ac-common") YANG Module . . . . . . . . . . . . . . . . . . . . . . . . . 11 4.1.1. Tree Structure . . . . . . . . . . . . . . . . . . . 11 4.1.2. YANG Module . . . . . . . . . . . . . . . . . . . . . 15 4.2. The Bearer Service ("ietf-bearer-svc") YANG Module . . . 42 4.2.1. Tree Structure . . . . . . . . . . . . . . . . . . . 42 4.2.2. YANG Module . . . . . . . . . . . . . . . . . . . . . 43 4.3. The Attachment Circuit Service ("ietf-ac-svc") YANG Module . . . . . . . . . . . . . . . . . . . . . . . . . 47 4.3.1. Overall Structure . . . . . . . . . . . . . . . . . . 47 4.3.2. Service Profiles . . . . . . . . . . . . . . . . . . 48 4.3.3. Attachment Circuits Profiles . . . . . . . . . . . . 50 4.3.4. Node-Specific Profiles . . . . . . . . . . . . . . . 50 4.3.5. Attachment Circuits . . . . . . . . . . . . . . . . . 50 4.3.6. YANG Module . . . . . . . . . . . . . . . . . . . . . 62 4.4. Augmentations to Existing Service-Specific Models to Bind a Service to an AC . . . . . . . . . . . . . . . . . . . . 80 4.4.1. Tree Structure . . . . . . . . . . . . . . . . . . . 80 4.4.2. YANG Module . . . . . . . . . . . . . . . . . . . . . 81 5. Security Considerations . . . . . . . . . . . . . . . . . . . 84 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 85 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 86 7.1. Normative References . . . . . . . . . . . . . . . . . . 86 7.2. Informative References . . . . . . . . . . . . . . . . . 89 Appendix A. Reusable Grouping in The "ietf-ac-svc" Module . . . 91 Appendix B. Full Tree of The "ietf-ac-svc" Module . . . . . . . 105 Appendix C. Examples . . . . . . . . . . . . . . . . . . . . . . 118 C.1. Request A New Bearer . . . . . . . . . . . . . . . . . . 118 C.2. Request An AC over An Existing Bearer . . . . . . . . . . 119 C.3. Request An AC for a Knwon Peer SAP . . . . . . . . . . . 120 C.4. One CE, Two ACs . . . . . . . . . . . . . . . . . . . . . 121 C.5. Control Precedence over Multiple ACs . . . . . . . . . . 124 C.6. Illustrate the Use of Global Profiles . . . . . . . . . . 125 C.7. Illustrate the Use of Per-Node Profiles . . . . . . . . . 127 C.8. Multiple CEs . . . . . . . . . . . . . . . . . . . . . . 129 C.9. Binding Attachment Circuits to an IETF Network Slice . . 131 C.10. Connecting a Virtualized Environment Running in a Cloud Provider . . . . . . . . . . . . . . . . . . . . . . . . 137 Boucadair, et al. Expires 2 September 2023 [Page 3] Internet-Draft ACaaS March 2023 Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . 141 Contributors . . . . . . . . . . . . . . . . . . . . . . . . . . 141 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 141 1. Introduction 1.1. Scope and Intended Use Connectivity services are provided by networks to customers via dedicated terminating points (e.g., service functions, customer edges (CEs), peer ASBRs, data centers gateways, Internet Exchange Points). A connectivity service is basically about ensuring data transfer received from (or destined to) a given terminating point to (or from) other terminating points that belong to the same customer/service, an interconnection node, or an ancillary node. A set of objectives for the connectivity service may eventually be negotiated and agreed upon between a customer a network provider. For that data transfer to take place within the provider network, it is assumed that adequate setup is provisioned over the links that connect customer terminating points and a provider network so that data can be successfully exchanged over these links. The required setup is referred to in this document as Attachment Circuits (ACs), while the underlying link is referred to as "bearers". This document adheres to the definition of an Attachment Circuit as provided in Section 1.2 of [RFC4364], especially: Routers can be attached to each other, or to end systems, in a variety of different ways: PPP connections, ATM Virtual Circuits (VCs), Frame Relay VCs, ethernet interfaces, Virtual Local Area Networks (VLANs) on ethernet interfaces, GRE tunnels, Layer 2 Tunneling Protocol (L2TP) tunnels, IPsec tunnels, etc. We will use the term "attachment circuit" to refer generally to some such means of attaching to a router. An attachment circuit may be the sort of connection that is usually thought of as a "data link", or it may be a tunnel of some sort; what matters is that it be possible for two devices to be network layer peers over the attachment circuit. When a customer requests a new value-added service, the service can be bound to existing attachment circuits or trigger the instantiation of new attachment circuits. The provisioning of an value-added service should, thus, accommodate both deployments. Also, because the instantiation of an attachment circuit requires coordinating the provisioning of endpoints that might not belong to the same administrative entity (customer vs. provider or distinct operational teams within the same provider, etc.), *programmatic Boucadair, et al. Expires 2 September 2023 [Page 4] Internet-Draft ACaaS March 2023 means to expose 'attachment circuits'-as-a-service will greatly simplify the provisioning of value added services* that will be delivered over an attachment circuits. This document specifies a YANG service data model ("ietf-ac-svc") for managing attachment circuits that are exposed by a network to its customers (e.g., an enterprise site, a network function, a hosting infrastructure, a peer network provider). The model can be used for the provisioning of ACs prior or during advanced service provisioning (e.g., Network Slice Service). The model also include a common module ("ietf-ac-common") which is designed with the intent to be reusable. Likewise, the "ietf-ac-svc" includes a set of reusable groupings. Whether a service model reuses structures defined in the "ietf-ac-svc" or simply includes an AC reference (that was communicated during AC service instantiation) is a design choice of these service models. Relying upon the AC service model to manage ACes over which services are delivered has the merit to decorrelate the management of the (core) service vs. upgrade the AC components to reflect recent AC technologies or new features (e.g., new encryption scheme, additional routing protocol). *This document favors the approach of completely relying upon the AC service model instead of duplicating into specific modules of advanced services that are delivered over an Attachment Circuit.* Because the provisioning of an AC requires a bearer to be in place, this document allows customers to manage their bearer requests by means of a new module, called "ietf-bearer-svc". The customers can then retrieve a provider-assigned bearer reference that they will include in their AC service requests. An AC service request can provide a reference to a bearer or a set of peer SAPs. Both schemes are supported in the AC service model. Each AC is identified with a unique identifier within a (provider) domain. From a network provider standpoint, an AC can be bound to a single or multiple Service Attachment Points (SAPs) [I-D.ietf-opsawg-sap]. Likewise, a SAP can be bound to one or multiple ACs. However, the mapping between an AC and a PE in the provider network that terminates that AC is hidden to the application that makes use of the AC service model. Such mapping information is internal to the network controllers. As such, the details about the (node-specific) attachment interfaces are not exposed in the AC service model. The AC service model *does not make any assumption about the internal structure or even the nature or the services that will be delivered over an attachment circuit*. Customers do not have access to that Boucadair, et al. Expires 2 September 2023 [Page 5] Internet-Draft ACaaS March 2023 network view other than the ACes that the ordered. For example, the AC service model can be used to provision a set of ACes to connect multiple sites (Site1, Site2, ..., SiteX) for customer that also requested VPN services. If these provisioning of these services require specific configured on ASBR nodes, such configuration is handled at the network level and is not exposed at the service level to the customer. However, the network controller will have access to such a view as the service points in these ASBRs will be exposed as SAPs with "role" set to "ietf-sap-ntw:nni" [I-D.ietf-opsawg-sap]. The AC service model can be used in a variety of contexts, such as (but not limited to) those provided in Appendix C: * Request an attachment circuit for a known peer SAP (Appendix C.3). * Instantiate multiple attachment circuits over the same bearer (Appendix C.4). * Control the precedence over multiple attachment circuits (Appendix C.5). * Bind a slice service to a set of pre-provisioned attachment circuits (Appendix C.9). * Connect a Cloud Infrastructure to a service provider network (Appendix C.10). These examples use the IPv4 address blocks reserved for documentation [RFC5737], the IPv6 prefix reserved for documentation [RFC3849], and the Autonomous System (AS) numbers reserved for documentation [RFC5398]. The YANG data models in this document conform to the Network Management Datastore Architecture (NMDA) defined in [RFC8342]. 1.2. Position ACaaS vs. Other Data Models The model specified in this document *is not a network model* [RFC8969]. As such, the model does not expose details related to specific nodes in the provider's network that terminate a requested AC. The mapping between an AC as seen by a customer and the network implementation of an AC is maintained by the network controllers and not exposed to the customer. Such a mapping can be maintained using a variety of network models, e.g., Service Attachment Points (SAPs) [I-D.ietf-opsawg-sap], AC Network Model [I-D.boro-opsawg-ntw-attachment-circuit], etc. Boucadair, et al. Expires 2 September 2023 [Page 6] Internet-Draft ACaaS March 2023 The AC service model *is not a device model*. A network provider may use a variety of device models (e.g., Routing management [RFC8349] or BGP [I-D.ietf-idr-bgp-model]) to provision an AC service. The document specifies also a module (Section 4.4) that updates other service and network modules with the required information to bind services to specific ACs that are created using the AC service model. It is anticipated that future revisions of the L3SM/L2SM can make use of the AC service model, by (preferably) offloading all the AC- related management matters from the core L3SM/L2SM to focus on L2/L3 VPN service matters. 1.2.1. Why Not Using L2SM as Reference Data Model for ACaaS? The L2SM [RFC8466] covers some AC-related considerations. Nevertheless, the L2SM structure is too layer 2 centric. For example, the L2SM part does not cover Layer 3 provisioning, which is required for the instantiation of typical ACs. 1.2.2. Why Not Using L3SM as Reference Data Model for ACaaS? Similar to the L2NM, the L3SM [RFC8299] covers some AC-related considerations. Nevertheless, the L3SM structure does not adequately cover layer 2 provisioning matters. Moreover, the L3SM is drawn with conventional L3VPN deployments in mind and, as such, has some limitations for instantiating ACs in other deployment contexts (e.g., cloud environments). For example, the L3SM does not allow to provision multiple BGP sessions over the same AC. 2. Conventions and Definitions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. The meanings of the symbols in the YANG tree diagrams are defined in [RFC8340]. This document uses the following terms: Bearer: A physical or logical link that connects a customer node (or site) to a provider network. A bearer can be a wireless or wired link. One or multiple technologies can be used to build a bearer. The bearer type can be specified by a customer. The operator allocates a unique bearer reference to identify a Boucadair, et al. Expires 2 September 2023 [Page 7] Internet-Draft ACaaS March 2023 bearer within its network (e.g., customer line identifier). Such a reference can be retrieved by a customer and used in subsequent service placement requests to unambiguously identify where a service is to be bound. The concept of bearer can be generalized to refer to the required underlying connection for the provisioning of an attachment circuit. One or multiple attachment circuits may be hosted over the same bearer (e.g., multiple VLANs on the same bearer that is provided by a physical link). Network controller: Denotes a functional entity responsible for the management of the service provider network. Service orchestrator: Refers to a functional entity that interacts with the customer of a network service. The service orchestrator is typically responsible for the attachment circuits, the Provider Edge (PE) selection, and requesting the activation of the requested service to a network controller. Service provider network: A network that is able to provide network services (e.g., Network Slice Services). Service provider: A service provider that offers network services (e.g., Network Slice Services). 3. Sample Uses of the Data Models 3.1. ACs Terminated by One or Multiple Customer Devices Figure 1 depicts two target topology flavors that involve ACs. These topologies are characterized as follows: * A Customer Terminating Point (CTP) may be a physical node or a logical entity. A CTP is seen by the network as a peer SAP. * The same AC request may include one or multiple ACs that may belong to one or both of these flavors. For the sake of simplfying the illustration, only a subset of these ACs is shown in Figure 1. * CTPs may be dedicated to one single service or host multiple services (e.g., service functions [RFC7665]). Boucadair, et al. Expires 2 September 2023 [Page 8] Internet-Draft ACaaS March 2023 * A single AC (as seen by a network provider) may be bound to one or multiple peer SAPs (e.g., CTP#1 and CTP#2). For example, and as discussed in [RFC4364], multiple CTPs (CEs) can be attached to a PE over the same attachment circuit. This is typically implemented if the layer 2 infrastructure between the CTP and the network provides a multipoint service. * The same CTP may terminate multiple ACs. These ACes may be over the same or distinct bearers. * The customer may request protection schemes where the ACs bound to a customer endpoints are terminated by the same PE (e.g., CTP#3), distinct PEs (e.g., CTP#34), etc. ┌───────┐ ┌────────────────────┐ ┌───────┐ │ ├──────┐ │ ├────AC─────┤ │ │ CTP#1 │ │ │ ├────AC─────┤ CTP#3 | └───────┘ │ │ │ └───────┘ ├───AC────┤ Network │ ┌───────┐ │ │ │ │ │ │ │ │ ┌───────┐ │ CTP#2 ├──────┘ │ │─────AC────┤ CTP#4 │ └───────┘ │ │ └────+──┘ └───────────+────────┘ | | | └────────────AC───────────┘ Figure 1: Examples of ACs 3.2. Separate AC Provisioning vs. Actual Service Provisioning The procedure to provision a service in a service provider network may depend on the practices adopted by a service provider, including the flow put in place for the provisioning of advanced network services and how they are bound to an attachment circuit. For example, the same attachment circuit may be used to host multiple services. In order to avoid service interference and redundant information in various locations, a service provider may expose an interface to manage ACs network-wide. Customers can the request a base attachment circuit to be put in place, and then refer to that base AC when requesting services that are bound to that AC. Figure 2 shows the positioning of the AC service model is the overall service delivery process. Boucadair, et al. Expires 2 September 2023 [Page 9] Internet-Draft ACaaS March 2023 +---------------+ | Customer | +-------+-------+ Customer Service Model | e.g., slice-svc, ac-svc,|bearer-svc +-------+-------+ | Service | | Orchestration | +-------+-------+ Network Model | e.g., l3vpn-ntw, sap, ac-ntw | +-------+-------+ | Network | | Orchestration | +-------+-------+ Network Configuration Model | +-----------+-----------+ | | +--------+------+ +--------+------+ | Domain | | Domain | | Orchestration | | Orchestration | +---+-----------+ +--------+------+ Device | | | Configuration | | | Model | | | +----+----+ | | | Config | | | | Manager | | | +----+----+ | | | | | | NETCONF/CLI.................. | | | +--------------------------------+ +----+ Bearer | | Bearer +----+ |CTP +--------+ Network +--------+ CTP| +----+ | | +----+ +--------------------------------+ Site A Site B Figure 2: An Example of AC Model Usage Boucadair, et al. Expires 2 September 2023 [Page 10] Internet-Draft ACaaS March 2023 4. Description of the Data Models 4.1. The Common Attachment Circuit ("ietf-ac-common") YANG Module 4.1.1. Tree Structure The full tree of the "ietf-ac-common" module is shown in Figure 3. module: ietf-ac-common grouping op-instructions +-- requested-start? yang:date-and-time +-- requested-stop? yang:date-and-time +--ro actual-start? yang:date-and-time +--ro actual-stop? yang:date-and-time grouping dot1q +-- tag-type? identityref +-- cvlan-id? uint16 grouping priority-tagged +-- tag-type? identityref grouping qinq +-- tag-type? identityref +-- svlan-id uint16 +-- cvlan-id uint16 grouping pseudowire +-- vcid? uint32 +-- far-end? union grouping vpls +-- vcid? uint32 +-- far-end* union grouping vxlan +-- vni-id uint32 +-- peer-mode? identityref +-- peer-ip-address* inet:ip-address grouping l2-tunnel-service +-- type? identityref +-- pseudowire | +-- vcid? uint32 | +-- far-end? union +-- vpls | +-- vcid? uint32 | +-- far-end* union +-- vxlan +-- vni-id uint32 +-- peer-mode? identityref +-- peer-ip-address* inet:ip-address grouping ipv4-allocation-type +-- prefix-length? uint8 Boucadair, et al. Expires 2 September 2023 [Page 11] Internet-Draft ACaaS March 2023 +-- address-allocation-type? identityref grouping ipv6-allocation-type +-- prefix-length? uint8 +-- address-allocation-type? identityref grouping ipv4-connection-basic +-- prefix-length? uint8 +-- address-allocation-type? identityref +-- (allocation-type)? +--:(dynamic) +-- (provider-dhcp)? | +--:(dhcp-service-type) | +-- dhcp-service-type? enumeration +-- (dhcp-relay)? +--:(customer-dhcp-servers) +-- customer-dhcp-servers +-- server-ip-address* inet:ipv4-address grouping ipv6-connection-basic +-- prefix-length? uint8 +-- address-allocation-type? identityref +-- (allocation-type)? +--:(dynamic) +-- (provider-dhcp)? | +--:(dhcp-service-type) | +-- dhcp-service-type? enumeration +-- (dhcp-relay)? +--:(customer-dhcp-servers) +-- customer-dhcp-servers +-- server-ip-address* inet:ipv6-address grouping ipv4-connection +-- local-address? inet:ipv4-address +-- virtual-address? inet:ipv4-address +-- prefix-length? uint8 +-- address-allocation-type? identityref +-- (allocation-type)? +--:(dynamic) | +-- (address-assign)? | | +--:(number) | | | +-- number-of-dynamic-address? uint16 | | +--:(explicit) | | +-- customer-addresses | | +-- address-pool* [pool-id] | | +-- pool-id? string | | +-- start-address inet:ipv4-address | | +-- end-address? inet:ipv4-address | +-- (provider-dhcp)? | | +--:(dhcp-service-type) | | +-- dhcp-service-type? enumeration | +-- (dhcp-relay)? Boucadair, et al. Expires 2 September 2023 [Page 12] Internet-Draft ACaaS March 2023 | +--:(customer-dhcp-servers) | +-- customer-dhcp-servers | +-- server-ip-address* inet:ipv4-address +--:(static-addresses) +-- address* [address-id] +-- address-id? string +-- customer-address? inet:ipv4-address grouping ipv6-connection +-- local-address? inet:ipv6-address +-- virtual-address? inet:ipv6-address +-- prefix-length? uint8 +-- address-allocation-type? identityref +-- (allocation-type)? +--:(dynamic) | +-- (address-assign)? | | +--:(number) | | | +-- number-of-dynamic-address? uint16 | | +--:(explicit) | | +-- customer-addresses | | +-- address-pool* [pool-id] | | +-- pool-id? string | | +-- start-address inet:ipv6-address | | +-- end-address? inet:ipv6-address | +-- (provider-dhcp)? | | +--:(dhcp-service-type) | | +-- dhcp-service-type? enumeration | +-- (dhcp-relay)? | +--:(customer-dhcp-servers) | +-- customer-dhcp-servers | +-- server-ip-address* inet:ipv6-address +--:(static-addresses) +-- address* [address-id] +-- address-id? string +-- customer-address? inet:ipv6-address grouping bgp-authentication +-- authentication +-- enable? boolean +-- keying-material +-- (option)? +--:(ao) | +-- enable-ao? boolean | +-- ao-keychain? key-chain:key-chain-ref +--:(md5) | +-- md5-keychain? key-chain:key-chain-ref +--:(explicit) +-- key-id? uint32 +-- key? string +-- crypto-algorithm? identityref Boucadair, et al. Expires 2 September 2023 [Page 13] Internet-Draft ACaaS March 2023 grouping ospf-authentication +-- authentication +-- enable? boolean +-- keying-material +-- (option)? +--:(auth-key-chain) | +-- key-chain? key-chain:key-chain-ref +--:(auth-key-explicit) +-- key-id? uint32 +-- key? string +-- crypto-algorithm? identityref grouping isis-authentication +-- authentication +-- enable? boolean +-- keying-material +-- (option)? +--:(auth-key-chain) | +-- key-chain? key-chain:key-chain-ref +--:(auth-key-explicit) +-- key-id? uint32 +-- key? string +-- crypto-algorithm? identityref grouping rip-authentication +-- authentication +-- enable? boolean +-- keying-material +-- (option)? +--:(auth-key-chain) | +-- key-chain? key-chain:key-chain-ref +--:(auth-key-explicit) +-- key? string +-- crypto-algorithm? identityref grouping bgp-peer-group-without-name +--ro local-as? inet:as-number +-- peer-as? inet:as-number +-- address-family? identityref grouping bgp-peer-group-with-name +-- name? string +--ro local-as? inet:as-number +-- peer-as? inet:as-number +-- address-family? identityref grouping ospf-basic +-- address-family? identityref +-- area-id yang:dotted-quad +-- metric? uint16 grouping isis-basic +-- address-family? identityref +-- area-address area-address Boucadair, et al. Expires 2 September 2023 [Page 14] Internet-Draft ACaaS March 2023 grouping ipv4-static-rtg-entry +-- lan? inet:ipv4-prefix +-- lan-tag? string +-- next-hop? union +-- metric? uint32 grouping ipv4-static-rtg +-- ipv4-lan-prefixes* [lan next-hop] {vpn-common:ipv4}? +-- lan? inet:ipv4-prefix +-- lan-tag? string +-- next-hop? union +-- metric? uint32 +-- status +-- admin-status | +-- status? identityref | +-- last-change? yang:date-and-time +--ro oper-status +--ro status? identityref +--ro last-change? yang:date-and-time grouping ipv6-static-rtg-entry +-- lan? inet:ipv6-prefix +-- lan-tag? string +-- next-hop? union +-- metric? uint32 grouping ipv6-static-rtg +-- ipv6-lan-prefixes* [lan next-hop] {vpn-common:ipv6}? +-- lan? inet:ipv6-prefix +-- lan-tag? string +-- next-hop? union +-- metric? uint32 +-- status +-- admin-status | +-- status? identityref | +-- last-change? yang:date-and-time +--ro oper-status +--ro status? identityref +--ro last-change? yang:date-and-time grouping bfd +-- holdtime? uint32 Figure 3: AC Common Full Tree Structure 4.1.2. YANG Module This module uses types defined in [RFC6991], [RFC8177], and [RFC9181]. Boucadair, et al. Expires 2 September 2023 [Page 15] Internet-Draft ACaaS March 2023 file "ietf-ac-common@2022-11-30.yang" module ietf-ac-common { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-ac-common"; prefix ac-common; import ietf-vpn-common { prefix vpn-common; reference "RFC 9181: A Common YANG Data Model for Layer 2 and Layer 3 VPNs"; } import ietf-inet-types { prefix inet; reference "RFC 6991: Common YANG Data Types, Section 4"; } import ietf-yang-types { prefix yang; reference "RFC 6991: Common YANG Data Types, Section 3"; } import ietf-key-chain { prefix key-chain; reference "RFC 8177: YANG Data Model for Key Chains"; } organization "IETF OPSAWG (Operations and Management Area Working Group)"; contact "WG Web: WG List: Editor: Mohamed Boucadair Author: Richard Roberts Author: Oscar Gonzalez de Dios Author: Samier Barguil Author: Bo Wu "; description "This YANG module defines a generic YANG model for exposing attachment circuits as a service. Boucadair, et al. Expires 2 September 2023 [Page 16] Internet-Draft ACaaS March 2023 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 xxx; see the RFC itself for full legal notices."; revision 2022-11-30 { description "Initial revision."; reference "RFC xxxx: A YANG Service Data Model for Attachment Circuits"; } /* Identities */ identity address-allocation-type { description "Base identity for address allocation type in the AC."; } identity provider-dhcp { base address-allocation-type; description "The provider's network provides a DHCP service to the customer."; } identity provider-dhcp-relay { base address-allocation-type; description "The provider's network provides a DHCP relay service to the customer."; } identity provider-dhcp-slaac { if-feature "vpn-common:ipv6"; base address-allocation-type; description "The provider's network provides a DHCP service to the customer as well as IPv6 Stateless Address Autoconfiguration (SLAAC)."; Boucadair, et al. Expires 2 September 2023 [Page 17] Internet-Draft ACaaS March 2023 reference "RFC 4862: IPv6 Stateless Address Autoconfiguration"; } identity static-address { base address-allocation-type; description "The provider's network provides static IP addressing to the customer."; } identity slaac { if-feature "vpn-common:ipv6"; base address-allocation-type; description "The provider's network uses IPv6 SLAAC to provide addressing to the customer."; reference "RFC 4862: IPv6 Stateless Address Autoconfiguration"; } identity dynamic-infra { base address-allocation-type; description "The IP address is dynamically allocated by the hosting infrastrcture."; } identity local-defined-next-hop { description "Base identity of local defined next hops."; } identity discard { base local-defined-next-hop; description "Indicates an action to discard traffic for the corresponding destination. For example, this can be used to black-hole traffic."; } identity local-link { base local-defined-next-hop; description "Treat traffic towards addresses within the specified next-hop prefix as though they are connected to a local link."; } Boucadair, et al. Expires 2 September 2023 [Page 18] Internet-Draft ACaaS March 2023 identity l2-tunnel-type { description "Base identity for Layer 2 tunnel selection under the VPN network access."; } identity pseudowire { base l2-tunnel-type; description "Pseudowire tunnel termination in the VPN network access."; } identity vpls { base l2-tunnel-type; description "Virtual Private LAN Service (VPLS) tunnel termination in the VPN network access."; } identity vxlan { base l2-tunnel-type; description "Virtual eXtensible Local Area Network (VXLAN) tunnel termination in the VPN network access."; } identity precedence-type { description "Redundancy type. The service can be created with primary and secondary tagging."; } identity primary { base precedence-type; description "Identifies the main attachment circuit."; } identity secondary { base precedence-type; description "Identifies the secondary attachment circuit."; } /* Typedefs */ typedef predefined-next-hop { type identityref { Boucadair, et al. Expires 2 September 2023 [Page 19] Internet-Draft ACaaS March 2023 base local-defined-next-hop; } description "Predefined next-hop designation for locally generated routes."; } typedef area-address { type string { pattern '[0-9A-Fa-f]{2}(\.[0-9A-Fa-f]{4}){0,6}'; } description "This type defines the area address format."; } /* Reusable groupings */ // Operational instructions grouping op-instructions { description "Scheduling instructions."; leaf requested-start { type yang:date-and-time; description "Indicates the requested date and time when the service is expected to be active."; } leaf requested-stop { type yang:date-and-time; description "Indicates the requested date and time when the service is expected to be disabled."; } leaf actual-start { type yang:date-and-time; config false; description "Indciates the actual date and time when the service actually was enabled."; } leaf actual-stop { type yang:date-and-time; config false; description "Indciates the actual date and time when the service actually was disabled."; } } Boucadair, et al. Expires 2 September 2023 [Page 20] Internet-Draft ACaaS March 2023 /**** Layer 2 encapsulations ****/ // Dot1q grouping dot1q { description "Defines a grouping for tagged interfaces."; leaf tag-type { type identityref { base vpn-common:tag-type; } default "vpn-common:c-vlan"; description "Tag type."; } leaf cvlan-id { type uint16 { range "1..4094"; } description "VLAN identifier."; } } // priority-tagged grouping priority-tagged { description "Priority tagged."; leaf tag-type { type identityref { base vpn-common:tag-type; } default "vpn-common:c-vlan"; description "Tag type. By default, the tag type is 'c-vlan'."; } } // QinQ grouping qinq { description "Includes QinQ parameters."; leaf tag-type { type identityref { base vpn-common:tag-type; } default "vpn-common:s-c-vlan"; Boucadair, et al. Expires 2 September 2023 [Page 21] Internet-Draft ACaaS March 2023 description "Tag type."; } leaf svlan-id { type uint16; mandatory true; description "Service VLAN (S-VLAN) identifier."; } leaf cvlan-id { type uint16; mandatory true; description "Customer VLAN (C-VLAN) identifier."; } } /**** Layer 2 tunnel services ****/ // pseudowire (PW) grouping pseudowire { description "Includes pseudowire termination parameters."; leaf vcid { type uint32; description "Indicates a pseudowire (PW) or virtual circuit (VC) identifier."; } leaf far-end { type union { type uint32; type inet:ip-address; } description "Neighbor reference."; reference "RFC 8077: Pseudowire Setup and Maintenance Using the Label Distribution Protocol (LDP), Section 6.1"; } } // VPLS grouping vpls { description "VPLS termination parameters."; Boucadair, et al. Expires 2 September 2023 [Page 22] Internet-Draft ACaaS March 2023 leaf vcid { type uint32; description "VC identifier."; } leaf-list far-end { type union { type uint32; type inet:ip-address; } description "Neighbor reference."; } } // VXLAN grouping vxlan { description "VXLAN termination parameters."; leaf vni-id { type uint32; mandatory true; description "VXLAN Network Identifier (VNI)."; } leaf peer-mode { type identityref { base vpn-common:vxlan-peer-mode; } default "vpn-common:static-mode"; description "Specifies the VXLAN access mode. By default, the peer mode is set to 'static-mode'."; } leaf-list peer-ip-address { type inet:ip-address; description "List of a peer's IP addresses."; } } // 'pseudowire', 'vpls', and 'vxlan' grouping l2-tunnel-service { description "Defines a Layer 2 tunnel termination. The supported values are 'pseudowire', 'vpls', and 'vxlan'. Boucadair, et al. Expires 2 September 2023 [Page 23] Internet-Draft ACaaS March 2023 Other values may be defined, if needed."; leaf type { type identityref { base l2-tunnel-type; } description "Selects the tunnel termination option for each AC Endpoint."; } container pseudowire { when "derived-from-or-self(../type, 'pseudowire')" { description "Only applies when the Layer 2 service type is 'pseudowire'."; } description "Includes pseudowire termination parameters."; uses pseudowire; } container vpls { when "derived-from-or-self(../type, 'vpls')" { description "Only applies when the Layer 2 service type is 'vpls'."; } description "VPLS termination parameters."; uses vpls; } container vxlan { when "derived-from-or-self(../type, 'vxlan')" { description "Only applies when the Layer 2 service type is 'vxlan'."; } description "VXLAN termination parameters."; uses vxlan; } } /**** Layer 3 connection *****/ // IPv4 allocation type grouping ipv4-allocation-type { description "IPv4-specific parameters."; leaf prefix-length { type uint8 { range "0..32"; Boucadair, et al. Expires 2 September 2023 [Page 24] Internet-Draft ACaaS March 2023 } description "Subnet prefix length expressed in bits. It is applied to both local and customer addresses."; } leaf address-allocation-type { type identityref { base address-allocation-type; } must "not(derived-from-or-self(current(), 'slaac') or " + "derived-from-or-self(current(), " + "'provider-dhcp-slaac'))" { error-message "SLAAC is only applicable to IPv6."; } description "Defines how IPv4 addresses are allocated to the peer site."; } } // IPv6 allocation type grouping ipv6-allocation-type { description "IPv6-specific parameters."; leaf prefix-length { type uint8 { range "0..128"; } description "Subnet prefix length expressed in bits. It is applied to both local and customer addresses."; } leaf address-allocation-type { type identityref { base address-allocation-type; } description "Defines how IPv6 addresses are allocated to the peer site."; } } // Basic IPv4 connection grouping ipv4-connection-basic { description "Basic set fof IPv4-specific parameters for the connection."; uses ipv4-allocation-type; choice allocation-type { Boucadair, et al. Expires 2 September 2023 [Page 25] Internet-Draft ACaaS March 2023 description "Choice of the IPv4 address allocation."; case dynamic { description "When the addresses are allocated by DHCP or other dynamic means local to the infrastructure."; choice provider-dhcp { description "Parameters related to DHCP-allocated addresses. IP addresses are allocated by DHCP, that is provided by the operator."; leaf dhcp-service-type { type enumeration { enum server { description "Local DHCP server."; } enum relay { description "Local DHCP relay. DHCP requests are relayed to a provider's server."; } } description "Indicates the type of DHCP service to be enabled on an AC."; } } choice dhcp-relay { description "The DHCP relay is provided by the operator."; container customer-dhcp-servers { description "Container for a list of the customer's DHCP servers."; leaf-list server-ip-address { type inet:ipv4-address; description "IPv4 addresses of the customer's DHCP server."; } } } } } } // Basic IPv6 connection grouping ipv6-connection-basic { Boucadair, et al. Expires 2 September 2023 [Page 26] Internet-Draft ACaaS March 2023 description "Basic set fof IPv6-specific parameters for the connection."; uses ipv6-allocation-type; choice allocation-type { description "Choice of the IPv6 address allocation."; case dynamic { description "When the addresses are allocated by DHCP or other dynamic means local to the infrastructure."; choice provider-dhcp { description "Parameters related to DHCP-allocated addresses. IP addresses are allocated by DHCP, that is provided by the operator."; leaf dhcp-service-type { type enumeration { enum server { description "Local DHCP server."; } enum relay { description "Local DHCP relay. DHCP requests are relayed to a provider's server."; } } description "Indicates the type of DHCP service to be enabled on this access."; } } choice dhcp-relay { description "The DHCP relay is provided by the operator."; container customer-dhcp-servers { description "Container for a list of the customer's DHCP servers."; leaf-list server-ip-address { type inet:ipv6-address; description "IPv6 addresses of the customer's DHCP server."; } } } } } } Boucadair, et al. Expires 2 September 2023 [Page 27] Internet-Draft ACaaS March 2023 // Full IPv4 connection grouping ipv4-connection { description "IPv4-specific parameters."; leaf local-address { type inet:ipv4-address; description "The IP address used at the provider's interface."; } leaf virtual-address { type inet:ipv4-address; description "This addresss may be used for redundancy purposes."; } uses ipv4-allocation-type; choice allocation-type { description "Choice of the IPv4 address allocation."; case dynamic { description "When the addresses are allocated by DHCP or other dynamic means local to the infrastructure."; choice address-assign { default "number"; description "A choice for how IPv4 addresses are assigned."; case number { leaf number-of-dynamic-address { type uint16; default "1"; description "Specifies the number of IP addresses to be assigned to the customer on this access."; } } case explicit { container customer-addresses { description "Container for customer addresses to be allocated using DHCP."; list address-pool { key "pool-id"; description "Describes IP addresses to be dyncamically allocated. When only 'start-address' is present, it represents a single address. Boucadair, et al. Expires 2 September 2023 [Page 28] Internet-Draft ACaaS March 2023 When both 'start-address' and 'end-address' are specified, it implies a range inclusive of both addresses."; leaf pool-id { type string; description "A pool identifier for the address range from 'start-address' to 'end-address'."; } leaf start-address { type inet:ipv4-address; mandatory true; description "Indicates the first address in the pool."; } leaf end-address { type inet:ipv4-address; description "Indicates the last address in the pool."; } } } } } choice provider-dhcp { description "Parameters related to DHCP-allocated addresses. IP addresses are allocated by DHCP, which is provided by the operator."; leaf dhcp-service-type { type enumeration { enum server { description "Local DHCP server."; } enum relay { description "Local DHCP relay. DHCP requests are relayed to a provider's server."; } } description "Indicates the type of DHCP service to be enabled on this AC."; } } choice dhcp-relay { description Boucadair, et al. Expires 2 September 2023 [Page 29] Internet-Draft ACaaS March 2023 "The DHCP relay is provided by the operator."; container customer-dhcp-servers { description "Container for a list of the customer's DHCP servers."; leaf-list server-ip-address { type inet:ipv4-address; description "IPv4 addresses of the customer's DHCP server."; } } } } case static-addresses { description "Lists the IPv4 addresses that are used."; list address { key "address-id"; ordered-by user; description "Lists the IPv4 addresses that are used. The first address of the list is the primary address of the connection."; leaf address-id { type string; description "An identifier of the static IPv4 address."; } leaf customer-address { type inet:ipv4-address; description "An IPv4 address of the customer side."; } } } } } // Full IPv6 connection grouping ipv6-connection { description "IPv6-specific parameters."; leaf local-address { type inet:ipv6-address; description "IPv6 address of the provider side."; } leaf virtual-address { type inet:ipv6-address; Boucadair, et al. Expires 2 September 2023 [Page 30] Internet-Draft ACaaS March 2023 description "This addresss may be used for redundancy purposes."; } uses ipv6-allocation-type; choice allocation-type { description "Choice of the IPv6 address allocation."; case dynamic { description "When the addresses are allocated by DHCP or other dynamic means local to the infrastructure."; choice address-assign { default "number"; description "A choice for how IPv6 addresses are assigned."; case number { leaf number-of-dynamic-address { type uint16; default "1"; description "Specifies the number of IP addresses to be assigned to the customer on this access."; } } case explicit { container customer-addresses { description "Container for customer addresses to be allocated using DHCP."; list address-pool { key "pool-id"; description "Describes IP addresses to be dyncamically allocated. When only 'start-address' is present, it represents a single address. When both 'start-address' and 'end-address' are specified, it implies a range inclusive of both addresses."; leaf pool-id { type string; description "A pool identifier for the address range from 'start-address' to 'end-address'."; } leaf start-address { type inet:ipv6-address; Boucadair, et al. Expires 2 September 2023 [Page 31] Internet-Draft ACaaS March 2023 mandatory true; description "Indicates the first address in the pool."; } leaf end-address { type inet:ipv6-address; description "Indicates the last address in the pool."; } } } } } choice provider-dhcp { description "Parameters related to DHCP-allocated addresses. IP addresses are allocated by DHCP, which is provided by the operator."; leaf dhcp-service-type { type enumeration { enum server { description "Local DHCP server."; } enum relay { description "Local DHCP relay. DHCP requests are relayed to a provider's server."; } } description "Indicates the type of DHCP service to be enabled on this access."; } } choice dhcp-relay { description "The DHCP relay is provided by the operator."; container customer-dhcp-servers { description "Container for a list of the customer's DHCP servers."; leaf-list server-ip-address { type inet:ipv6-address; description "IPv6 addresses of the customer's DHCP server."; } } } Boucadair, et al. Expires 2 September 2023 [Page 32] Internet-Draft ACaaS March 2023 } case static-addresses { description "Lists the IPv6 addresses that are used."; list address { key "address-id"; ordered-by user; description "Lists the IPv6 addresses that are used. The first address of the list is the primary IP address of the connection."; leaf address-id { type string; description "An identifier of the static IPv6 address."; } leaf customer-address { type inet:ipv6-address; description "An IPv6 address of the customer side."; } } } } } /********* Routing *************/ // Routing Authentication grouping bgp-authentication { description "Grouping for BGP authentication parameters."; container authentication { description "Container for BGP authentication parameters."; leaf enable { type boolean; default "false"; description "Enables or disables authentication."; } container keying-material { when "../enable = 'true'"; description "Container for describing how a BGP routing session is to be secured on an AC."; choice option { description "Choice of authentication options."; Boucadair, et al. Expires 2 September 2023 [Page 33] Internet-Draft ACaaS March 2023 case ao { description "Uses the TCP Authentication Option (TCP-AO)."; reference "RFC 5925: The TCP Authentication Option"; leaf enable-ao { type boolean; description "Enables the TCP-AO."; } leaf ao-keychain { type key-chain:key-chain-ref; description "Reference to the TCP-AO key chain."; reference "RFC 8177: YANG Data Model for Key Chains"; } } case md5 { description "Uses MD5 to secure the session."; reference "RFC 4364: BGP/MPLS IP Virtual Private Networks (VPNs), Section 13.2"; leaf md5-keychain { type key-chain:key-chain-ref; description "Reference to the MD5 key chain."; reference "RFC 8177: YANG Data Model for Key Chains"; } } case explicit { leaf key-id { type uint32; description "Key identifier."; } leaf key { type string; description "BGP authentication key. This model only supports the subset of keys that are representable as ASCII strings."; } leaf crypto-algorithm { type identityref { Boucadair, et al. Expires 2 September 2023 [Page 34] Internet-Draft ACaaS March 2023 base key-chain:crypto-algorithm; } description "Indicates the cryptographic algorithm associated with the key."; } } } } } } grouping ospf-authentication { description "Authentication configuration."; container authentication { description "Container for OSPF authentication parameters."; leaf enable { type boolean; default "false"; description "Enables or disables authentication."; } container keying-material { when "../enable = 'true'"; description "Container for describing how an OSPF session is to be secured for this AC."; choice option { description "Options for OSPF authentication."; case auth-key-chain { leaf key-chain { type key-chain:key-chain-ref; description "Name of the key chain."; } } case auth-key-explicit { leaf key-id { type uint32; description "Key identifier."; } leaf key { type string; description Boucadair, et al. Expires 2 September 2023 [Page 35] Internet-Draft ACaaS March 2023 "OSPF authentication key. This model only supports the subset of keys that are representable as ASCII strings."; } leaf crypto-algorithm { type identityref { base key-chain:crypto-algorithm; } description "Indicates the cryptographic algorithm associated with the key."; } } } } } } grouping isis-authentication { description "IS-IS authentication configuration."; container authentication { description "Container for IS-IS authentication parameters."; leaf enable { type boolean; default "false"; description "Enables or disables authentication."; } container keying-material { when "../enable = 'true'"; description "Container for describing how an IS-IS session for an AC."; choice option { description "Options for IS-IS authentication."; case auth-key-chain { leaf key-chain { type key-chain:key-chain-ref; description "Name of the key chain."; } } case auth-key-explicit { leaf key-id { type uint32; Boucadair, et al. Expires 2 September 2023 [Page 36] Internet-Draft ACaaS March 2023 description "Key identifier."; } leaf key { type string; description "IS-IS authentication key. This model only supports the subset of keys that are representable as ASCII strings."; } leaf crypto-algorithm { type identityref { base key-chain:crypto-algorithm; } description "Indicates the cryptographic algorithm associated with the key."; } } } } } } grouping rip-authentication { description "RIP authentication configuration."; container authentication { description "Container for RIP authentication parameters."; leaf enable { type boolean; default "false"; description "Enables or disables authentication."; } container keying-material { when "../enable = 'true'"; description "Container for describing how a RIP session is to be secured between a CE and a PE."; choice option { description "Specifies the authentication scheme."; case auth-key-chain { Boucadair, et al. Expires 2 September 2023 [Page 37] Internet-Draft ACaaS March 2023 leaf key-chain { type key-chain:key-chain-ref; description "Name of the key chain."; } } case auth-key-explicit { leaf key { type string; description "RIP authentication key. This model only supports the subset of keys that are representable as ASCII strings."; } leaf crypto-algorithm { type identityref { base key-chain:crypto-algorithm; } description "Indicates the cryptographic algorithm associated with the key."; } } } } } } // Basic routing parameters grouping bgp-peer-group-without-name { description "Identifies a BGP peer-group configured on the local system."; leaf local-as { type inet:as-number; config false; description "Indicates a local AS Number (ASN). This ASN is exposed to a customer so that it knows which ASN to use to set up a BGP session."; } leaf peer-as { type inet:as-number; description "Indicates the customer's ASN when the customer requests BGP routing."; } Boucadair, et al. Expires 2 September 2023 [Page 38] Internet-Draft ACaaS March 2023 leaf address-family { type identityref { base vpn-common:address-family; } description "This node contains the address families to be activated. 'dual-stack' means that both IPv4 and IPv6e will b activated."; } } grouping bgp-peer-group-with-name { description "Identifies a BGP peer-group configured on the local system - identified by a peer-group name"; leaf name { type string; description "Name of the BGP peer-group"; } uses bgp-peer-group-without-name; } grouping ospf-basic { description "Configuration specific to OSPF."; leaf address-family { type identityref { base vpn-common:address-family; } description "Indicates whether IPv4, IPv6, or both are to be activated."; } leaf area-id { type yang:dotted-quad; mandatory true; description "Area ID."; reference "RFC 4577: OSPF as the Provider/Customer Edge Protocol for BGP/MPLS IP Virtual Private Networks (VPNs), Section 4.2.3 RFC 6565: OSPFv3 as a Provider Edge to Customer Edge (PE-CE) Routing Protocol, Section 4.2"; } leaf metric { type uint16; Boucadair, et al. Expires 2 September 2023 [Page 39] Internet-Draft ACaaS March 2023 default "1"; description "Metric of the AC. It is used in the routing state calculation and path selection."; } } grouping isis-basic { description "Basic configuration specific to IS-IS."; leaf address-family { type identityref { base vpn-common:address-family; } description "Indicates whether IPv4, IPv6, or both are to be activated."; } leaf area-address { type area-address; mandatory true; description "Area address."; } } //Static routing grouping ipv4-static-rtg { description "Configuration specific to IPv4 static routing."; list ipv4-lan-prefixes { if-feature "vpn-common:ipv4"; key "lan next-hop"; description "List of LAN prefixes for the site."; leaf lan { type inet:ipv4-prefix; description "LAN prefixes."; } leaf lan-tag { type string; description "Internal tag to be used in VPN policies."; } leaf next-hop { type union { Boucadair, et al. Expires 2 September 2023 [Page 40] Internet-Draft ACaaS March 2023 type inet:ip-address; type predefined-next-hop; } description "The next hop that is to be used for the static route. This may be specified as an IP address or a predefined next-hop type (e.g., 'discard' or 'local-link')."; } leaf metric { type uint32; description "Indicates the metric associated with the static route."; } uses vpn-common:service-status; } } grouping ipv6-static-rtg { description "Configuration specific to IPv6 static routing."; list ipv6-lan-prefixes { if-feature "vpn-common:ipv6"; key "lan next-hop"; description "List of LAN prefixes for the site."; leaf lan { type inet:ipv6-prefix; description "LAN prefixes."; } leaf lan-tag { type string; description "Internal tag to be used in VPN policies."; } leaf next-hop { type union { type inet:ip-address; type predefined-next-hop; } description "The next hop that is to be used for the static route. This may be specified as an IP address or a predefined next-hop type (e.g., 'discard' or 'local-link')."; } leaf metric { type uint32; Boucadair, et al. Expires 2 September 2023 [Page 41] Internet-Draft ACaaS March 2023 description "Indicates the metric associated with the static route."; } uses vpn-common:service-status; } } // OAM: maintain or remove grouping bfd { description "Container for BFD."; leaf holdtime { type uint32; units "milliseconds"; description "Expected BFD holdtime. The customer may impose some fixed values for the holdtime period if the provider allows the customer to use this function. If the provider doesn't allow the customer to use this function, fixed values will not be set."; reference "RFC 5880: Bidirectional Forwarding Detection (BFD), Section 6.8.18"; } } } 4.2. The Bearer Service ("ietf-bearer-svc") YANG Module 4.2.1. Tree Structure Figure 4 shows the sub-tree for managing the bearers (that is, the properties of the attachment that are below Layer 3). A bearer can be a wireless or wired link. A reference to a bearer is generated by the operator. Such a reference can be used, e.g., in a subsequent service request to create an AC. The anchroing of the AC can also be achieved by indicating (with or without a bearer reference), a peer SAP identifier (e.g., An identifier of a Service Function). Boucadair, et al. Expires 2 September 2023 [Page 42] Internet-Draft ACaaS March 2023 module: ietf-bearer-svc +--rw bearers +--rw bearer* [id] +--rw id string +--rw description? string +--rw customer-device | +--rw device-id? string | +--rw location | +--rw address? string | +--rw postal-code? string | +--rw state? string | +--rw city? string | +--rw country-code? string +--rw requested-type? identityref +--ro bearer-reference? string | {vpn-common:bearer-reference}? +--rw requested-start? yang:date-and-time +--rw requested-stop? yang:date-and-time +--ro actual-start? yang:date-and-time +--ro actual-stop? yang:date-and-time Figure 4: Bearers Tree Structure The same customer site (CE, NF, etc.) can terminate one or multiple bearers; each of them uniquely identified by a refrence that is assigned by the network provider. These bearers can terminate on the same or distinct network nodes. CEs that terminate multiple bearers are called multi-homed CEs. 4.2.2. YANG Module This module uses types defined in [RFC6991] and [RFC9181]. file "ietf-bearer-svc@2022-11-30.yang" module ietf-bearer-svc { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-bearer-svc"; prefix bearer-svc; import ietf-vpn-common { prefix vpn-common; reference "RFC 9181: A Common YANG Data Model for Layer 2 and Layer 3 VPNs"; } import ietf-ac-common { prefix ac-common; reference Boucadair, et al. Expires 2 September 2023 [Page 43] Internet-Draft ACaaS March 2023 "RFC xxxx: A YANG Service Data Model for Attachment Circuits"; } organization "IETF OPSAWG (Operations and Management Area Working Group)"; contact "WG Web: WG List: Editor: Mohamed Boucadair Author: Richard Roberts Author: Oscar Gonzalez de Dios Author: Samier Barguil Author: Bo Wu "; description "This YANG module defines a generic YANG model for exposing network bearers as a service. 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 xxx; see the RFC itself for full legal notices."; revision 2022-11-30 { description "Initial revision."; reference "RFC xxxx: A YANG Service Data Model for Attachment Circuits"; } // Identities identity bearer-type { description "Base identity for bearers type."; Boucadair, et al. Expires 2 September 2023 [Page 44] Internet-Draft ACaaS March 2023 } identity ethernet { base bearer-type; description "Ethernet."; } identity wireless { base bearer-type; description "Wireless."; } container bearers { description "Main container for the bearers."; list bearer { key "id"; description "Maintains a list of bearers."; leaf id { type string; description "An identifier of the bearer."; } leaf description { type string; description "A description of this bearer."; } container customer-device { description "Identification of the customer device that terminates the bearer."; leaf device-id { type string; description "Identifier for the device."; } container location { description "Location of the node."; leaf address { type string; description "Address (number and street) of the site."; } Boucadair, et al. Expires 2 September 2023 [Page 45] Internet-Draft ACaaS March 2023 leaf postal-code { type string; description "Postal code of the site."; } leaf state { type string; description "State of the site. This leaf can also be used to describe a region for a country that does not have states."; } leaf city { type string; description "City of the site."; } leaf country-code { type string { pattern '[A-Z]{2}'; } description "Country of the site. Expressed as ISO ALPHA-2 code."; } } } leaf requested-type { type identityref { base bearer-type; } description "Type of the requested bearer (e.g., Ethernet, or wireless)"; } leaf bearer-reference { if-feature "vpn-common:bearer-reference"; type string; config false; description "This is an internal reference for the service provider to identify the bearers."; } uses ac-common:op-instructions; } } } Boucadair, et al. Expires 2 September 2023 [Page 46] Internet-Draft ACaaS March 2023 4.3. The Attachment Circuit Service ("ietf-ac-svc") YANG Module 4.3.1. Overall Structure The overall tree structure of the AC service module is shown in Figure 5. +--rw specific-provisioning-profiles | ... +--rw service-provisioning-profiles | ... +--rw placement-constraints | +--rw constraint* [constraint-type] | +--rw constraint-type identityref | +--rw target | +--rw (target-flavor)? | +--:(id) | | +--rw group* [group-id] | | +--rw group-id string | +--:(all-accesses) | | +--rw all-other-accesses? empty | +--:(all-groups) | +--rw all-other-groups? empty +--rw attachment-circuits +--rw ac-global-profile* [id] | ... +--rw ac-node-group* [id] | ... +--rw ac* [name] ... +--rw l2-connection | ... +--rw ip-connection | ... +--rw routing-protocols | ... +--rw oam | ... +--rw security ... Figure 5: Overall AC Service Tree Structure The full tree structure is provided in Appendix B. Each AC is identified with a unique identifier within a domain. The mapping between this AC and a local PE that terminates the AC is hidden to the application that makes use of the AC service model. Boucadair, et al. Expires 2 September 2023 [Page 47] Internet-Draft ACaaS March 2023 This information is internal to the Network controller. As such, the details about the (node-specific) attachment interfaces are not exposed in this service model. 4.3.2. Service Profiles 4.3.2.1. Description The 'specific-provisioning-profiles' container (Figure 6) can be used by a service provider to maintain a set of specific profiles that are similar to those defined in [RFC9181]. The exact definition of the profiles is local to each service provider. The model only includes an identifier for these profiles in order to facilitate identifying and binding local policies when building an AC. Boucadair, et al. Expires 2 September 2023 [Page 48] Internet-Draft ACaaS March 2023 module: ietf-ac-svc +--rw specific-provisioning-profiles | +--rw valid-provider-identifiers | +--rw external-connectivity-identifier* [id] | | {external-connectivity}? | | +--rw id string | +--rw encryption-profile-identifier* [id] | | +--rw id string | +--rw qos-profile-identifier* [id] | | +--rw id string | +--rw bfd-profile-identifier* [id] | | +--rw id string | +--rw forwarding-profile-identifier* [id] | | +--rw id string | +--rw routing-profile-identifier* [id] | +--rw id string +--rw service-provisioning-profiles | +--rw service-profile-identifier* [id] | +--rw id string +--rw attachment-circuits +--rw ac-global-profile* [id] | ... +--rw ac-node-group* [id] | ... +--rw ac* [name] ... +--rw l2-connection | ... +--rw ip-connection | ... +--rw routing-protocols | ... +--rw oam | ... +--rw security ... Figure 6: Service Proviles As shown in Figure 6, two profile types can be defined: 'specific- provisioning-profiles' and 'service-provisioning-profiles'. Whether only specific profiles, service profiles, or a combination thereff are used is local to each service provider. The following specific rovisioning profiles can be defined: 'external-connectivity-identifier': Refers to a profile that defines Boucadair, et al. Expires 2 September 2023 [Page 49] Internet-Draft ACaaS March 2023 the external connectivity provided to a site that is connected via an AC. External connectivity may be access to the Internet or restricted connectivity, such as access to a public/private cloud. 'encryption-profile-identifier': Refers to a set of policies related to the encryption setup that can be applied when provisioning an AC. 'qos-profile-identifier': Refers to a set of policies, such as classification, marking, and actions (e.g., [RFC3644]). 'bfd-profile-identifier': Refers to a set of Bidirectional Forwarding Detection (BFD) policies [RFC5880] that can be invoked when building an AC. 'forwarding-profile-identifier': Refers to the policies that apply to the forwarding of packets conveyed within an AC. Such policies may consist, for example, of applying Access Control Lists (ACLs). 'routing-profile-identifier': Refers to a set of routing policies that will be invoked (e.g., BGP policies) when building an AC. 4.3.2.2. Referencing Service/Specific Profiles All these profiles are uniquely identified by the NETCONF/RESTCONF server by an identifier. To ease referencing these profiles by other data models, specific typedefs are defined for each of these profiles. Likewise, an attachment circuit referenc typedef is defiened when referencing a (global) attachment circuit by its name is required. These typedefs SHOULD be used when other modules need a reference to one of these profiles or attahment circuits. 4.3.3. Attachment Circuits Profiles 4.3.4. Node-Specific Profiles 4.3.5. Attachment Circuits The structure of 'attachment-circuits' is shown in Figure 7. Boucadair, et al. Expires 2 September 2023 [Page 50] Internet-Draft ACaaS March 2023 +--rw specific-provisioning-profiles | ... +--rw service-provisioning-profiles | ... +--rw attachment-circuits +--rw ac-global-profile* [id] | ... +--rw ac-node-group* [id] | ... +--rw ac* [name] +--rw customer-name? string +--rw description? string +--rw requested-start? yang:date-and-time +--rw requested-stop? yang:date-and-time +--ro actual-start? yang:date-and-time +--ro actual-stop? yang:date-and-time +--rw peer-sap-id* string +--rw ac-global-profile* ac-global-profile-reference +--rw ac-node-profile* ac-node-group-reference +--rw group* [group-id] | +--rw group-id string | +--rw precedence? identityref +--rw name string +--rw l2-connection | ... +--rw ip-connection | ... +--rw routing-protocols | ... +--rw oam | ... +--rw security ... Figure 7: Overall Attachment Circuits Tree Structure 4.3.5.1. Layer 2 Connection Structure As shown in the tree depicted in Figure 8, the 'l2-connection' container defines service parameters to enable such connectivity at Layer 2. +--rw specific-provisioning-profiles | ... +--rw service-provisioning-profiles | ... +--rw attachment-circuits +--rw ac-global-profile* [id] Boucadair, et al. Expires 2 September 2023 [Page 51] Internet-Draft ACaaS March 2023 | ... +--rw ac-node-group* [id] | ... +--rw ac* [name] +--rw customer-name? string +--rw description? string +--rw requested-start? yang:date-and-time +--rw requested-stop? yang:date-and-time +--ro actual-start? yang:date-and-time +--ro actual-stop? yang:date-and-time +--rw peer-sap-id* string +--rw ac-global-profile* ac-global-profile-reference +--rw ac-node-profile* ac-node-group-reference +--rw name string +--rw l2-connection | +--rw encapsulation | | +--rw type? identityref | | +--rw dot1q | | | +--rw tag-type? identityref | | | +--rw cvlan-id? uint16 | | +--rw priority-tagged | | | +--rw tag-type? identityref | | +--rw qinq | | +--rw tag-type? identityref | | +--rw svlan-id uint16 | | +--rw cvlan-id uint16 | +--rw (l2-service)? | | +--:(l2-tunnel-service) | | | +--rw l2-tunnel-service | | | +--rw type? identityref | | | +--rw pseudowire | | | | +--rw vcid? uint32 | | | | +--rw far-end? union | | | +--rw vpls | | | | +--rw vcid? uint32 | | | | +--rw far-end* union | | | +--rw vxlan | | | +--rw vni-id uint32 | | | +--rw peer-mode? identityref | | | +--rw peer-ip-address* inet:ip-address | | +--:(l2vpn) | | +--rw l2vpn-id? vpn-common:vpn-id | +--rw bearer-reference? string | {vpn-common:bearer-reference}? +--rw ip-connection | ... +--rw routing-protocols | ... Boucadair, et al. Expires 2 September 2023 [Page 52] Internet-Draft ACaaS March 2023 +--rw oam | ... +--rw security ... Figure 8: Layer 2 Connection Tree Structure 4.3.5.2. Layer 3 Connection Structure The 'l3-connection' container defines a set of service parameters to enable Layer 3 connectivity for an AC. Both IPv4 and IPv6 parameters are supported. Figure 9 shows the structure of the IPv4 connection. +--rw specific-provisioning-profiles | ... +--rw service-provisioning-profiles | ... +--rw attachment-circuits +--rw ac-global-profile* [id] | ... +--rw ac-node-group* [id] | ... +--rw ac* [name] +--rw customer-name? string +--rw description? string +--rw requested-start? yang:date-and-time +--rw requested-stop? yang:date-and-time +--ro actual-start? yang:date-and-time +--ro actual-stop? yang:date-and-time +--rw peer-sap-id* string +--rw ac-global-profile* ac-global-profile-reference +--rw ac-node-profile* ac-node-group-reference +--rw name string +--rw l2-connection | ... +--rw ip-connection | +--rw ipv4 {vpn-common:ipv4}? | | +--rw local-address? | | | inet:ipv4-address | | +--rw virtual-address? | | | inet:ipv4-address | | +--rw prefix-length? uint8 | | +--rw address-allocation-type? | | | identityref | | +--rw (allocation-type)? | | +--:(dynamic) Boucadair, et al. Expires 2 September 2023 [Page 53] Internet-Draft ACaaS March 2023 | | | +--rw (address-assign)? | | | | +--:(number) | | | | | +--rw number-of-dynamic-address? uint16 | | | | +--:(explicit) | | | | +--rw customer-addresses | | | | +--rw address-pool* [pool-id] | | | | +--rw pool-id string | | | | +--rw start-address | | | | | inet:ipv4-address | | | | +--rw end-address? | | | | inet:ipv4-address | | | +--rw (provider-dhcp)? | | | | +--:(dhcp-service-type) | | | | +--rw dhcp-service-type? | | | | enumeration | | | +--rw (dhcp-relay)? | | | +--:(customer-dhcp-servers) | | | +--rw customer-dhcp-servers | | | +--rw server-ip-address* | | | inet:ipv4-address | | +--:(static-addresses) | | +--rw address* [address-id] | | +--rw address-id string | | +--rw customer-address? inet:ipv4-address | +--rw ipv6 {vpn-common:ipv6}? | ... +--rw routing-protocols | ... +--rw oam | ... +--rw security ... Figure 9: Layer 3 Connection Tree Structure (IPv4) Figure 10 shows the structure of the IPv6 connection. +--rw specific-provisioning-profiles | ... +--rw service-provisioning-profiles | ... +--rw attachment-circuits +--rw ac-global-profile* [id] | ... +--rw ac-node-group* [id] | ... +--rw ac* [name] +--rw customer-name? string Boucadair, et al. Expires 2 September 2023 [Page 54] Internet-Draft ACaaS March 2023 +--rw description? string +--rw requested-start? yang:date-and-time +--rw requested-stop? yang:date-and-time +--ro actual-start? yang:date-and-time +--ro actual-stop? yang:date-and-time +--rw peer-sap-id* string +--rw ac-global-profile* ac-global-profile-reference +--rw ac-node-profile* ac-node-group-reference +--rw name string +--rw l2-connection | ... +--rw ip-connection | +--rw ipv4 {vpn-common:ipv4}? | | ... | +--rw ipv6 {vpn-common:ipv6}? | +--rw local-address? | | inet:ipv6-address | +--rw virtual-address? | | inet:ipv6-address | +--rw prefix-length? uint8 | +--rw address-allocation-type? | | identityref | +--rw (allocation-type)? | +--:(dynamic) | | +--rw (address-assign)? | | | +--:(number) | | | | +--rw number-of-dynamic-address? uint16 | | | +--:(explicit) | | | +--rw customer-addresses | | | +--rw address-pool* [pool-id] | | | +--rw pool-id string | | | +--rw start-address | | | | inet:ipv6-address | | | +--rw end-address? | | | inet:ipv6-address | | +--rw (provider-dhcp)? | | | +--:(dhcp-service-type) | | | +--rw dhcp-service-type? | | | enumeration | | +--rw (dhcp-relay)? | | +--:(customer-dhcp-servers) | | +--rw customer-dhcp-servers | | +--rw server-ip-address* | | inet:ipv6-address | +--:(static-addresses) | +--rw address* [address-id] | +--rw address-id string | +--rw customer-address? inet:ipv6-address Boucadair, et al. Expires 2 September 2023 [Page 55] Internet-Draft ACaaS March 2023 +--rw routing-protocols | ... +--rw oam | ... +--rw security ... Figure 10: Layer 3 Connection Tree Structure (IPv6) 4.3.5.3. Routing As shown in the tree depicted in Figure 11, the 'routing-protocols' container defines th erequired parameters to enable the required routing features for an AC. One or more routing protocols can be associated with an AC. Such routing protocols are then enabled between a PE and the CE. Each routing instance is uniquely identified to accommodate scenarios where multiple instances of the same routing protocol have to be configured on the same link. In addition to static routing, the module supports the following routing protocols: * BGP [RFC4271] * OSPF [RFC4577] or [RFC6565] * IS-IS [ISO10589][RFC1195][RFC5308] * RIP [RFC2453] The model also supports the Virtual Router Redundancy Protocol (VRRP) [RFC5798] on an AC. +--rw specific-provisioning-profiles | ... +--rw service-provisioning-profiles | ... +--rw attachment-circuits +--rw ac-global-profile* [id] | ... +--rw ac-node-group* [id] | ... +--rw ac* [name] +--rw customer-name? string +--rw description? string +--rw requested-start? yang:date-and-time +--rw requested-stop? yang:date-and-time +--ro actual-start? yang:date-and-time Boucadair, et al. Expires 2 September 2023 [Page 56] Internet-Draft ACaaS March 2023 +--ro actual-stop? yang:date-and-time +--rw peer-sap-id* string +--rw ac-global-profile* ac-global-profile-reference +--rw ac-node-profile* ac-node-group-reference +--rw name string +--rw l2-connection | ... +--rw ip-connection | ... +--rw routing-protocols | +--rw routing-protocol* [id] | +--rw id string | +--rw type? identityref | +--rw routing-profiles* [id] | | +--rw id routing-profile-reference | | +--rw type? identityref | +--rw static | | +--rw cascaded-lan-prefixes | | +--rw ipv4-lan-prefixes* [lan next-hop] | | | {vpn-common:ipv4}? | | | +--rw lan inet:ipv4-prefix | | | +--rw lan-tag? string | | | +--rw next-hop union | | | +--rw metric? uint32 | | | +--rw 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 | | +--rw ipv6-lan-prefixes* [lan next-hop] | | {vpn-common:ipv6}? | | +--rw lan inet:ipv6-prefix | | +--rw lan-tag? string | | +--rw next-hop union | | +--rw metric? uint32 | | +--rw 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 | +--rw bgp | | +--rw peer-groups | | | +--rw peer-group* [name] | | | +--rw name string Boucadair, et al. Expires 2 September 2023 [Page 57] Internet-Draft ACaaS March 2023 | | | +--ro local-address? inet:ip-address | | | +--ro local-as? inet:as-number | | | +--rw peer-as? inet:as-number | | | +--rw address-family? identityref | | | +--rw authentication | | | +--rw enable? boolean | | | +--rw keying-material | | | +--rw (option)? | | | +--:(ao) | | | | +--rw enable-ao? boolean | | | | +--rw ao-keychain? | | | | key-chain:key-chain-ref | | | +--:(md5) | | | | +--rw md5-keychain? | | | | key-chain:key-chain-ref | | | +--:(explicit) | | | +--rw key-id? uint32 | | | +--rw key? string | | | +--rw crypto-algorithm? | | | identityref | | +--rw neighbor* [id] | | +--rw id string | | +--rw remote-address? inet:ip-address | | +--ro local-address? inet:ip-address | | +--rw peer-group? | | | -> ../../peer-groups/peer-group/name | | +--ro local-as? inet:as-number | | +--rw peer-as? inet:as-number | | +--rw address-family? identityref | | +--rw authentication | | | +--rw enable? boolean | | | +--rw keying-material | | | +--rw (option)? | | | +--:(ao) | | | | +--rw enable-ao? boolean | | | | +--rw ao-keychain? | | | | key-chain:key-chain-ref | | | +--:(md5) | | | | +--rw md5-keychain? | | | | key-chain:key-chain-ref | | | +--:(explicit) | | | +--rw key-id? uint32 | | | +--rw key? string | | | +--rw crypto-algorithm? identityref | | +--rw status | | +--rw admin-status | | | +--rw status? identityref | | | +--rw last-change? yang:date-and-time Boucadair, et al. Expires 2 September 2023 [Page 58] Internet-Draft ACaaS March 2023 | | +--ro oper-status | | +--ro status? identityref | | +--ro last-change? yang:date-and-time | +--rw ospf | | +--rw address-family? identityref | | +--rw area-id yang:dotted-quad | | +--rw metric? uint16 | | +--rw authentication | | | +--rw enable? boolean | | | +--rw keying-material | | | +--rw (option)? | | | +--:(auth-key-chain) | | | | +--rw key-chain? | | | | key-chain:key-chain-ref | | | +--:(auth-key-explicit) | | | +--rw key-id? uint32 | | | +--rw key? string | | | +--rw crypto-algorithm? identityref | | +--rw 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 | +--rw isis | | +--rw address-family? identityref | | +--rw area-address area-address | | +--rw authentication | | | +--rw enable? boolean | | | +--rw keying-material | | | +--rw (option)? | | | +--:(auth-key-chain) | | | | +--rw key-chain? | | | | key-chain:key-chain-ref | | | +--:(auth-key-explicit) | | | +--rw key-id? uint32 | | | +--rw key? string | | | +--rw crypto-algorithm? identityref | | +--rw 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 | +--rw rip | | +--rw address-family? identityref Boucadair, et al. Expires 2 September 2023 [Page 59] Internet-Draft ACaaS March 2023 | | +--rw authentication | | | +--rw enable? boolean | | | +--rw keying-material | | | +--rw (option)? | | | +--:(auth-key-chain) | | | | +--rw key-chain? | | | | key-chain:key-chain-ref | | | +--:(auth-key-explicit) | | | +--rw key? string | | | +--rw crypto-algorithm? identityref | | +--rw 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 | +--rw vrrp | +--rw address-family? identityref | +--rw 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 +--rw oam | ... +--rw security ... Figure 11: Routing Tree Structure For all supported routing protocols, 'address-family' indicates whether IPv4, IPv6, or both address families are to be activated. For example, this parameter is used to determine whether RIPv2 [RFC2453], RIP Next Generation (RIPng), or both are to be enabled [RFC2080]. Similar to [RFC9182], this version of the ACaaS assumes that parameters specific to the TCP-AO are preconfigured as part of the key chain that is referenced in the ACaaS. No assumption is made about how such a key chain is preconfigured. However, the structure of the key chain should cover data nodes beyond those in [RFC8177], mainly SendID and RecvID (Section 3.1 of [RFC5925]). Boucadair, et al. Expires 2 September 2023 [Page 60] Internet-Draft ACaaS March 2023 4.3.5.4. OAM As shown in the tree depicted in Figure 12, the 'oam' container defines OAM-related parameters of an AC. +--rw specific-provisioning-profiles | ... +--rw service-provisioning-profiles | ... +--rw attachment-circuits +--rw ac-global-profile* [id] | ... +--rw ac-node-group* [id] | ... +--rw ac* [name] ... +--rw l2-connection | ... +--rw ip-connection | ... +--rw routing-protocols | ... +--rw oam | +--rw bfd {vpn-common:bfd}? | +--rw holdtime? uint32 | +--rw 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 +--rw security ... Figure 12: OAM Tree Structure 4.3.5.5. Security As shown in the tree depicted in Figure 13, the 'security' container defines a set of AC security parameters. Boucadair, et al. Expires 2 September 2023 [Page 61] Internet-Draft ACaaS March 2023 +--rw specific-provisioning-profiles | ... +--rw service-provisioning-profiles | ... +--rw attachment-circuits +--rw ac-global-profile* [id] | ... +--rw ac-node-group* [id] | ... +--rw ac* [name] ... +--rw l2-connection | ... +--rw ip-connection | ... +--rw routing-protocols | ... +--rw oam | ... +--rw security +--rw encryption {vpn-common:encryption}? | +--rw enabled? boolean | +--rw layer? enumeration +--rw encryption-profile +--rw (profile)? +--:(provider-profile) | +--rw provider-profile? | ac-svc:encryption-profile-reference +--:(customer-profile) +--rw customer-key-chain? key-chain:key-chain-ref Figure 13: Security Tree Structure 4.3.6. YANG Module This module uses types defined in [RFC6991], [RFC9181], and [RFC8177]. file "ietf-ac-svc@2022-11-30.yang" module ietf-ac-svc { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-ac-svc"; prefix ac-svc; import ietf-ac-common { prefix ac-common; reference Boucadair, et al. Expires 2 September 2023 [Page 62] Internet-Draft ACaaS March 2023 "RFC xxxx: A YANG Service Data Model for Attachment Circuits"; } import ietf-vpn-common { prefix vpn-common; reference "RFC 9181: A Common YANG Data Model for Layer 2 and Layer 3 VPNs"; } import ietf-inet-types { prefix inet; reference "RFC 6991: Common YANG Data Types, Section 4"; } import ietf-key-chain { prefix key-chain; reference "RFC 8177: YANG Data Model for Key Chains"; } organization "IETF OPSAWG (Operations and Management Area Working Group)"; contact "WG Web: WG List: Editor: Mohamed Boucadair Author: Richard Roberts Author: Oscar Gonzalez de Dios Author: Samier Barguil Author: Bo Wu "; description "This YANG module defines a generic YANG model for exposing attachment circuits as a service. 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). Boucadair, et al. Expires 2 September 2023 [Page 63] Internet-Draft ACaaS March 2023 This version of this YANG module is part of RFC xxx; see the RFC itself for full legal notices."; revision 2022-11-30 { description "Initial revision."; reference "RFC xxxx: A YANG Service Data Model for Attachment Circuits"; } /* A set of typedefs to ease referencing cross-modules */ typedef attachment-circuit-reference { type leafref { path "/ac-svc:attachment-circuits/ac-svc:ac/ac-svc:name"; } description "Defines a reference to an attachment circuit that can be used by other modules."; } /*typedef ac-global-profile-reference { type leafref { path "/ac-svc:attachment-circuits/ac-global-profile/id"; } description "Defines a reference to a gloabl attachment circuit that can be used by other modules."; }*/ typedef ac-group-reference { type leafref { path "/ac-svc:attachment-circuits/ac-group-profile/id"; } description "Defines a reference to an attachment circuit profile."; } typedef encryption-profile-reference { type leafref { path "/ac-svc:specific-provisioning-profiles/valid-provider-identifiers" + "/encryption-profile-identifier/id"; } description "Defines a type to an encryption profile for referencing purposes."; } Boucadair, et al. Expires 2 September 2023 [Page 64] Internet-Draft ACaaS March 2023 typedef qos-profile-reference { type leafref { path "/ac-svc:specific-provisioning-profiles/valid-provider-identifiers" + "/qos-profile-identifier/ac-svc:id"; } description "Defines a type to a QoS profile for referencing purposes."; } typedef bfd-profile-reference { type leafref { path "/ac-svc:specific-provisioning-profiles/valid-provider-identifiers" + "/bfd-profile-identifier/ac-svc:id"; } description "Defines a type to a BFD profile for referencing purposes."; } typedef forwarding-profile-reference { type leafref { path "/ac-svc:specific-provisioning-profiles/valid-provider-identifiers" + "/forwarding-profile-identifier/ac-svc:id"; } description "Defines a type to a forwarding profile for referencing purposes."; } typedef routing-profile-reference { type leafref { path "/ac-svc:specific-provisioning-profiles/valid-provider-identifiers" + "/routing-profile-identifier/id"; } description "Defines a type to a routing profile for referencing purposes."; } /******************** Reusable groupings ********************/ // Basic Layer 2 connection grouping l2-connection-basic { description "Defines Layer 2 protocols and parameters that can be factorized when provisioning Layer 2 connectivity."; container encapsulation { description "Container for Layer 2 encapsulation."; leaf type { Boucadair, et al. Expires 2 September 2023 [Page 65] Internet-Draft ACaaS March 2023 type identityref { base vpn-common:encapsulation-type; } description "Encapsulation type. By default, the type of the tagged interface is 'priority-tagged'."; } container dot1q { when "derived-from-or-self(../type, 'vpn-common:dot1q')" { description "Only applies when the type of the tagged interface is 'dot1q'."; } description "Tagged interface."; uses ac-common:dot1q; } container qinq { when "derived-from-or-self(../type, 'vpn-common:qinq')" { description "Only applies when the type of the tagged interface is 'qinq'."; } description "Includes QinQ parameters."; uses ac-common:qinq; } } } // Full Layer 2 connection grouping l2-connection { description "Defines Layer 2 protocols and parameters that are used to enable AC connectivity."; container encapsulation { description "Container for Layer 2 encapsulation."; leaf type { type identityref { base vpn-common:encapsulation-type; } description "Encapsulation type. By default, the type of the tagged interface is 'priority-tagged'."; } container dot1q { Boucadair, et al. Expires 2 September 2023 [Page 66] Internet-Draft ACaaS March 2023 when "derived-from-or-self(../type, 'vpn-common:dot1q')" { description "Only applies when the type of the tagged interface is 'dot1q'."; } description "Tagged interface."; uses ac-common:dot1q; } container priority-tagged { when "derived-from-or-self(../type, " + "'vpn-common:priority-tagged')" { description "Only applies when the type of the tagged interface is 'priority-tagged'."; } uses ac-common:priority-tagged; } container qinq { when "derived-from-or-self(../type, 'vpn-common:qinq')" { description "Only applies when the type of the tagged interface is 'qinq'."; } description "Includes QinQ parameters."; uses ac-common:qinq; } } choice l2-service { description "The Layer 2 connectivity service can be provided by indicating a pointer to an L2VPN or by specifying a Layer 2 tunnel service."; container l2-tunnel-service { description "Defines a Layer 2 tunnel termination. It is only applicable when a tunnel is required."; uses ac-common:l2-tunnel-service; } case l2vpn { leaf l2vpn-id { type vpn-common:vpn-id; description "Indicates the L2VPN service associated with an Integrated Routing and Bridging (IRB) interface."; } } Boucadair, et al. Expires 2 September 2023 [Page 67] Internet-Draft ACaaS March 2023 } leaf bearer-reference { if-feature "vpn-common:bearer-reference"; type string; description "This is an internal reference for the service provider to identify the bearer associated with this AC."; } } // Basic IP connection grouping ip-connection-basic { description "Defines basic IP connection parameters."; container ipv4 { if-feature "vpn-common:ipv4"; description "IPv4-specific parameters."; uses ac-common:ipv4-connection-basic; } container ipv6 { if-feature "vpn-common:ipv6"; description "IPv6-specific parameters."; uses ac-common:ipv6-connection-basic; } } // Full IP connection grouping ip-connection { description "Defines IP connection parameters."; container ipv4 { if-feature "vpn-common:ipv4"; description "IPv4-specific parameters."; uses ac-common:ipv4-connection; } container ipv6 { if-feature "vpn-common:ipv6"; description "IPv6-specific parameters."; uses ac-common:ipv6-connection; } } Boucadair, et al. Expires 2 September 2023 [Page 68] Internet-Draft ACaaS March 2023 // Routing protocol list grouping routing-protocol-list { description "List of routing protocols used on the AC."; leaf type { type identityref { base vpn-common:routing-protocol-type; } description "Type of routing protocol."; } list routing-profiles { key "id"; description "Routing profiles."; leaf id { type routing-profile-reference; description "Reference to the routing profile to be used."; } leaf type { type identityref { base vpn-common:ie-type; } description "Import, export, or both."; } } } // Basic routing parameters grouping routing-basic { description "Defines basic parameters for routing protocols."; list routing-protocol { key "id"; description "List of routing protocols used on the AC."; leaf id { type string; description "Unique identifier for the routing protocol."; } uses routing-protocol-list; container bgp { when "derived-from-or-self(../type, 'vpn-common:bgp-routing')" { Boucadair, et al. Expires 2 September 2023 [Page 69] Internet-Draft ACaaS March 2023 description "Only applies when the protocol is BGP."; } description "Configuration specific to BGP."; container peer-groups { description "Configuration for BGP peer-groups"; list peer-group { key "name"; description "List of BGP peer-groups configured on the local system - uniquely identified by peer-group name"; uses ac-common:bgp-peer-group-with-name; } } } container ospf { when "derived-from-or-self(../type, " + "'vpn-common:ospf-routing')" { description "Only applies when the protocol is OSPF."; } description "Configuration specific to OSPF."; uses ac-common:ospf-basic; } container isis { when "derived-from-or-self(../type, " + "'vpn-common:isis-routing')" { description "Only applies when the protocol is IS-IS."; } description "Configuration specific to IS-IS."; uses ac-common:isis-basic; } container rip { when "derived-from-or-self(../type, " + "'vpn-common:rip-routing')" { description "Only applies when the protocol is RIP. For IPv4, the model assumes that RIP version 2 is used."; } description "Configuration specific to RIP routing."; leaf address-family { Boucadair, et al. Expires 2 September 2023 [Page 70] Internet-Draft ACaaS March 2023 type identityref { base vpn-common:address-family; } description "Indicates whether IPv4, IPv6, or both address families are to be activated."; } } container vrrp { when "derived-from-or-self(../type, " + "'vpn-common:vrrp-routing')" { description "Only applies when the protocol is the Virtual Router Redundancy Protocol (VRRP)."; } description "Configuration specific to VRRP."; reference "RFC 5798: Virtual Router Redundancy Protocol (VRRP) Version 3 for IPv4 and IPv6"; leaf address-family { type identityref { base vpn-common:address-family; } description "Indicates whether IPv4, IPv6, or both address families are to be enabled."; } } } } // Full routing parameters grouping routing { description "Defines routing protocols."; list routing-protocol { key "id"; description "List of routing protocols used on the AC."; leaf id { type string; description "Unique identifier for the routing protocol."; } uses routing-protocol-list; container static { Boucadair, et al. Expires 2 September 2023 [Page 71] Internet-Draft ACaaS March 2023 when "derived-from-or-self(../type, " + "'vpn-common:static-routing')" { description "Only applies when the protocol is static routing protocol."; } description "Configuration specific to static routing."; container cascaded-lan-prefixes { description "LAN prefixes from the customer."; uses ac-common:ipv4-static-rtg; uses ac-common:ipv6-static-rtg; } } container bgp { when "derived-from-or-self(../type, " + "'vpn-common:bgp-routing')" { description "Only applies when the protocol is BGP."; } description "Configuration specific to BGP."; container peer-groups { description "Configuration for BGP peer-groups"; list peer-group { key "name"; description "List of BGP peer-groups configured on the local system - uniquely identified by peer-group name"; uses ac-common:bgp-peer-group-with-name; leaf local-address { type inet:ip-address; config false; description "The local IP address that will be used to establish the BGP session."; } uses ac-common:bgp-authentication; } } list neighbor { key "id"; description "List of BGP neighbors."; leaf id { type string; Boucadair, et al. Expires 2 September 2023 [Page 72] Internet-Draft ACaaS March 2023 description "A neighbor identifier."; } leaf remote-address { type inet:ip-address; description "The remote IP address of this entry's BGP peer. If this leaf is not present, this means that the primary customer IP address is used as remote IP address."; } leaf local-address { type inet:ip-address; config false; description "The local IP address that will be used to establish the BGP session."; } leaf peer-group { type leafref { path "../../peer-groups/peer-group/name"; } description "The peer-group with which this neighbor is associated."; } uses ac-common:bgp-peer-group-without-name; uses ac-common:bgp-authentication; uses vpn-common:service-status; } } container ospf { when "derived-from-or-self(../type, " + "'vpn-common:ospf-routing')" { description "Only applies when the protocol is OSPF."; } description "Configuration specific to OSPF."; uses ac-common:ospf-basic; uses ac-common:ospf-authentication; uses vpn-common:service-status; } container isis { when "derived-from-or-self(../type, " + "'vpn-common:isis-routing')" { description "Only applies when the protocol is IS-IS."; Boucadair, et al. Expires 2 September 2023 [Page 73] Internet-Draft ACaaS March 2023 } description "Configuration specific to IS-IS."; uses ac-common:isis-basic; uses ac-common:isis-authentication; uses vpn-common:service-status; } container rip { when "derived-from-or-self(../type, " + "'vpn-common:rip-routing')" { description "Only applies when the protocol is RIP. For IPv4, the model assumes that RIP version 2 is used."; } description "Configuration specific to RIP routing."; leaf address-family { type identityref { base vpn-common:address-family; } description "Indicates whether IPv4, IPv6, or both address families are to be activated."; } uses ac-common:rip-authentication; uses vpn-common:service-status; } container vrrp { when "derived-from-or-self(../type, " + "'vpn-common:vrrp-routing')" { description "Only applies when the protocol is the Virtual Router Redundancy Protocol (VRRP)."; } description "Configuration specific to VRRP."; reference "RFC 5798: Virtual Router Redundancy Protocol (VRRP) Version 3 for IPv4 and IPv6"; leaf address-family { type identityref { base vpn-common:address-family; } description "Indicates whether IPv4, IPv6, or both address families are to be enabled."; } uses vpn-common:service-status; Boucadair, et al. Expires 2 September 2023 [Page 74] Internet-Draft ACaaS March 2023 } } } // Encryption choice grouping encryption-choice { description "Container for the encryption profile."; choice profile { description "Choice for the encryption profile."; case provider-profile { leaf provider-profile { type encryption-profile-reference; description "Reference to a provider encryption profile."; } } case customer-profile { leaf customer-key-chain { type key-chain:key-chain-ref; description "Customer-supplied key chain."; } } } } // Basic security parameters grouping ac-security-basic { description "AC-specific security parameters."; container encryption { if-feature "vpn-common:encryption"; description "Container for AC security encryption."; leaf enabled { type boolean; default "false"; description "If set to 'true', traffic encryption on the connection is required. Otherwise, it is disabled."; } leaf layer { when "../enabled = 'true'" { description Boucadair, et al. Expires 2 September 2023 [Page 75] Internet-Draft ACaaS March 2023 "Included only when encryption is enabled."; } type enumeration { enum layer2 { description "Encryption occurs at Layer 2."; } enum layer3 { description "Encryption occurs at Layer 3. For example, IPsec may be used when a customer requests Layer 3 encryption."; } } description "Indicates the layer on which encryption is applied."; } } container encryption-profile { when "../encryption/enabled = 'true'" { description "Indicates the layer on which encryption is enabled."; } description "Container for the encryption profile."; uses encryption-choice; } } // Basic AC parameter grouping ac-basic { description "Grouping for basic parameters for an attachment circuit."; leaf id { type string; description "An identifier of the AC."; } container l2-connection { description "Defines Layer 2 protocols and parameters that are required to enable AC connectivity."; uses l2-connection-basic; } container ip-connection { description "Defines IP connection parameters."; Boucadair, et al. Expires 2 September 2023 [Page 76] Internet-Draft ACaaS March 2023 uses ip-connection-basic; } container routing-protocols { description "Defines routing protocols."; uses routing-basic; } container oam { description "Defines the Operations, Administration, and Maintenance (OAM) mechanisms used."; container bfd { if-feature "vpn-common:bfd"; description "Container for BFD."; uses ac-common:bfd; } } container security { description "AC-specific security parameters."; uses ac-security-basic; } } // Full AC parameters grouping ac { description "Grouping for an attachment circuit."; leaf name { type string; description "A name of the AC. Data models that need to reference an attachment circuits should use attachment-circuit-reference."; } container l2-connection { description "Defines Layer 2 protocols and parameters that are required to enable AC connectivity."; uses l2-connection; } container ip-connection { description "Defines IP connection parameters."; uses ip-connection; } Boucadair, et al. Expires 2 September 2023 [Page 77] Internet-Draft ACaaS March 2023 container routing-protocols { description "Defines routing protocols."; uses routing; } container oam { description "Defines the OAM mechanisms used."; container bfd { if-feature "vpn-common:bfd"; description "Container for BFD."; uses ac-common:bfd; uses vpn-common:service-status; } } container security { description "AC-specific security parameters."; uses ac-security-basic; } } /******************** Main AC containers ********************/ container specific-provisioning-profiles { description "Contains a set of valid profiles to reference for an AC."; uses vpn-common:vpn-profile-cfg; } container service-provisioning-profiles { description "Contains a set of valid profiles to reference for an AC."; list service-profile-identifier { key "id"; description "List of generic service profile identifiers."; leaf id { type string; description "Identification of the service profile to be used. the profile only has significance within the service provider's administrative domain."; } } } container attachment-circuits { description Boucadair, et al. Expires 2 September 2023 [Page 78] Internet-Draft ACaaS March 2023 "Main container for the attachment circuits."; /*list ac-global-profile { key "id"; description "Maintains a list of AC profiles."; uses ac-basic; }*/ list ac-group-profile { key "id"; description "Maintains a list of per-node AC profiles."; leaf id { type string; description "An identifier of the AC group."; } uses ac; } container placement-constraints { description "Diversity constraint type."; uses vpn-common:placement-constraints; } list ac { key "name"; description "Global provisioning of attachment circuits."; leaf customer-name { type string; description "Indicates the name of the customer that requested this AC."; } leaf description { type string; description "Associates a description with an AC."; } uses ac-common:op-instructions; leaf-list peer-sap-id { type string; description "One or more peer SAPs can be indicated."; } /*leaf-list ac-global-profile { type ac-global-profile-reference; description "A reference to an AC profile."; Boucadair, et al. Expires 2 September 2023 [Page 79] Internet-Draft ACaaS March 2023 }*/ leaf-list ac-group-profile { type ac-group-reference; description "A reference to a per-node AC profile."; } list group { key "group-id"; description "List of group-ids."; leaf group-id { type string; description "Indicates the group-id to which the network access belongs to."; } leaf precedence { type identityref { base ac-common:precedence-type; } description "Defines service redundancy in transport network."; } } uses ac; } } } 4.4. Augmentations to Existing Service-Specific Models to Bind a Service to an AC 4.4.1. Tree Structure ACs created using the "ietf-ac-svc" module can be referenced in other modules (e.g., L2SM, L3SM, L2NM, L3NM, and Slicing). Some augmentations are required to that aim as shown in Figure 14. Boucadair, et al. Expires 2 September 2023 [Page 80] Internet-Draft ACaaS March 2023 module: ietf-ac-glue augment /l3vpn-svc:l3vpn-svc/l3vpn-svc:sites/l3vpn-svc:site /l3vpn-svc:site-network-accesses /l3vpn-svc:site-network-access: +--rw ac-ref* ac-svc:attachment-circuit-reference augment /l2vpn-svc:l2vpn-svc/l2vpn-svc:sites/l2vpn-svc:site /l2vpn-svc:site-network-accesses /l2vpn-svc:site-network-access: +--rw ac-ref* ac-svc:attachment-circuit-reference augment /l3nm:l3vpn-ntw/l3nm:vpn-services/l3nm:vpn-service /l3nm:vpn-nodes/l3nm:vpn-node/l3nm:vpn-network-accesses /l3nm:vpn-network-access: +--rw ac-ref* ac-svc:attachment-circuit-reference augment /l2nm:l2vpn-ntw/l2nm:vpn-services/l2nm:vpn-service /l2nm:vpn-nodes/l2nm:vpn-node/l2nm:vpn-network-accesses /l2nm:vpn-network-access: +--rw ac-ref* ac-svc:attachment-circuit-reference augment /ietf-nss:network-slice-services/ietf-nss:slice-service /ietf-nss:sdps/ietf-nss:sdp: +--rw ac-ref* ac-svc:attachment-circuit-reference Figure 14: Augmenting Other Service-Specific Modules 4.4.2. YANG Module file "ietf-ac-glue@2022-11-30.yang" module ietf-ac-glue { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-ac-glue"; prefix ac-glue; import ietf-l3vpn-svc { prefix l3vpn-svc; reference "RFC 8299: xxxx"; } import ietf-l2vpn-svc { prefix l2vpn-svc; reference "RFC 8466: xxxx"; } import ietf-l3vpn-ntw { prefix l3nm; reference "RFC 9182: xxxx"; } import ietf-l2vpn-ntw { prefix l2nm; Boucadair, et al. Expires 2 September 2023 [Page 81] Internet-Draft ACaaS March 2023 reference "RFC 9291: xxxx"; } import ietf-network-slice-service { prefix ietf-nss; reference "RFC XXXX: xxxx"; } import ietf-ac-svc { prefix ac-svc; reference "RFC xxx: XXXX"; } organization "IETF OPSAWG (Operations and Management Area Working Group)"; contact "WG Web: WG List: Editor: Mohamed Boucadair Author: Richard Roberts "; description "This YANG module defines a generic YANG model for the configuration of attachment circuits. 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 xxx; see the RFC itself for full legal notices."; revision 2022-11-30 { description "Initial revision."; reference "RFC xxxx: A YANG Network Data Model for Attachment Circuits"; } Boucadair, et al. Expires 2 September 2023 [Page 82] Internet-Draft ACaaS March 2023 grouping ac-glue { description "A set of AC-related data."; leaf-list ac-ref { type ac-svc:attachment-circuit-reference; description "A reference to the AC as exposed at the service that was provisionned using the AC module."; } } augment "/l3vpn-svc:l3vpn-svc" + "/l3vpn-svc:sites/l3vpn-svc:site" + "/l3vpn-svc:site-network-accesses/l3vpn-svc:site-network-access" { description "Augments VPN network access with AC provisioning details."; uses ac-glue; } augment "/l2vpn-svc:l2vpn-svc" + "/l2vpn-svc:sites/l2vpn-svc:site" + "/l2vpn-svc:site-network-accesses/l2vpn-svc:site-network-access" { description "Augments VPN network access with AC provisioning details."; uses ac-glue; } augment "/l3nm:l3vpn-ntw/l3nm:vpn-services/l3nm:vpn-service" + "/l3nm:vpn-nodes/l3nm:vpn-node" + "/l3nm:vpn-network-accesses/l3nm:vpn-network-access" { description "Augments VPN network access with AC provisioning details."; uses ac-glue; } augment "/l2nm:l2vpn-ntw/l2nm:vpn-services/l2nm:vpn-service" + "/l2nm:vpn-nodes/l2nm:vpn-node" + "/l2nm:vpn-network-accesses/l2nm:vpn-network-access" { description "Augments VPN network access with AC provisioning details."; uses ac-glue; } Boucadair, et al. Expires 2 September 2023 [Page 83] Internet-Draft ACaaS March 2023 augment "/ietf-nss:network-slice-services/ietf-nss:slice-service" + "/ietf-nss:sdps/ietf-nss:sdp" { description "Augments VPN network access with AC provisioning details."; uses ac-glue; } } 5. Security Considerations The YANG modules specified in this document define schema for data that is designed to be accessed via network management protocols such as NETCONF [RFC6241] or RESTCONF [RFC8040]. The lowest NETCONF layer is the secure transport layer, and the mandatory-to-implement secure transport is Secure Shell (SSH) [RFC6242]. The lowest RESTCONF layer is HTTPS, and the mandatory-to-implement secure transport is TLS [RFC8446]. The Network Configuration Access Control Model (NACM) [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. There are a number of data nodes defined in these YANG modules that are writable/creatable/deletable (i.e., config true, which is the default). These data nodes may be considered sensitive or vulnerable in some network environments. Write operations (e.g., edit-config) and delete operations to these data nodes without proper protection or authentication can have a negative effect on network operations. These are the subtrees and data nodes and their sensitivity/ vulnerability in the "ietf-ac-svc" module: * TBC * TBC Some of the readable data nodes in these 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 in the "ietf-ac-svc" module: * TBC * TBC Boucadair, et al. Expires 2 September 2023 [Page 84] Internet-Draft ACaaS March 2023 Several data nodes ('bgp', 'ospf', 'isis', and 'rip') rely upon [RFC8177] for authentication purposes. As such, the AC service module inherits the security considerations discussed in Section 5 of [RFC8177]. Also, these data nodes support supplying explicit keys as strings in ASCII format. The use of keys in hexadecimal string format would afford greater key entropy with the same number of key- string octets. However, such a format is not included in this version of the AC service model, because it is not supported by the underlying device modules (e.g., [RFC8695]). 6. IANA Considerations IANA is requested to register the following URIs in the "ns" subregistry within the "IETF XML Registry" [RFC3688]: URI: urn:ietf:params:xml:ns:yang:ietf-ac-common Registrant Contact: The IESG. XML: N/A; the requested URI is an XML namespace. URI: urn:ietf:params:xml:ns:yang:ietf-bearer-svc Registrant Contact: The IESG. XML: N/A; the requested URI is an XML namespace. URI: urn:ietf:params:xml:ns:yang:ietf-ac-svc Registrant Contact: The IESG. XML: N/A; the requested URI is an XML namespace. URI: urn:ietf:params:xml:ns:yang:ietf-ac-glue Registrant Contact: The IESG. XML: N/A; the requested URI is an XML namespace. IANA is requested to register the following YANG module in the "YANG Module Names" subregistry [RFC6020] within the "YANG Parameters" registry. Boucadair, et al. Expires 2 September 2023 [Page 85] Internet-Draft ACaaS March 2023 Name: ietf-ac-common Maintained by IANA? N Namespace: urn:ietf:params:xml:ns:yang:ietf-ac-common Prefix: ac-common Reference: RFC xxxx Name: ietf-bearer-svc Maintained by IANA? N Namespace: urn:ietf:params:xml:ns:yang:ietf-bearer-svc Prefix: bearer-svc Reference: RFC xxxx Name: ietf-ac-svc Maintained by IANA? N Namespace: urn:ietf:params:xml:ns:yang:ietf-ac-svc Prefix: ac-svc Reference: RFC xxxx Name: ietf-ac-glue Maintained by IANA? N Namespace: urn:ietf:params:xml:ns:yang:ietf-ac-glue Prefix: ac-glue Reference: RFC xxxx 7. References 7.1. Normative References [I-D.ietf-opsawg-sap] Boucadair, M., de Dios, O. G., Barguil, S., Wu, Q., and V. Lopez, "A YANG Network Model for Service Attachment Points (SAPs)", Work in Progress, Internet-Draft, draft-ietf- opsawg-sap-15, 18 January 2023, . [ISO10589] ISO, "Information technology - Telecommunications and information exchange between systems - Intermediate System to Intermediate System intra-domain routeing information exchange protocol for use in conjunction with the protocol for providing the connectionless-mode network service (ISO8473)", 2002, . [RFC1195] Callon, R., "Use of OSI IS-IS for routing in TCP/IP and dual environments", RFC 1195, DOI 10.17487/RFC1195, December 1990, . Boucadair, et al. Expires 2 September 2023 [Page 86] Internet-Draft ACaaS March 2023 [RFC2080] Malkin, G. and R. Minnear, "RIPng for IPv6", RFC 2080, DOI 10.17487/RFC2080, January 1997, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC2453] Malkin, G., "RIP Version 2", STD 56, RFC 2453, DOI 10.17487/RFC2453, November 1998, . [RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, DOI 10.17487/RFC3688, January 2004, . [RFC4271] Rekhter, Y., Ed., Li, T., Ed., and S. Hares, Ed., "A Border Gateway Protocol 4 (BGP-4)", RFC 4271, DOI 10.17487/RFC4271, January 2006, . [RFC4364] Rosen, E. and Y. Rekhter, "BGP/MPLS IP Virtual Private Networks (VPNs)", RFC 4364, DOI 10.17487/RFC4364, February 2006, . [RFC4577] Rosen, E., Psenak, P., and P. Pillay-Esnault, "OSPF as the Provider/Customer Edge Protocol for BGP/MPLS IP Virtual Private Networks (VPNs)", RFC 4577, DOI 10.17487/RFC4577, June 2006, . [RFC5308] Hopps, C., "Routing IPv6 with IS-IS", RFC 5308, DOI 10.17487/RFC5308, October 2008, . [RFC5798] Nadas, S., Ed., "Virtual Router Redundancy Protocol (VRRP) Version 3 for IPv4 and IPv6", RFC 5798, DOI 10.17487/RFC5798, March 2010, . [RFC5880] Katz, D. and D. Ward, "Bidirectional Forwarding Detection (BFD)", RFC 5880, DOI 10.17487/RFC5880, June 2010, . [RFC5925] Touch, J., Mankin, A., and R. Bonica, "The TCP Authentication Option", RFC 5925, DOI 10.17487/RFC5925, June 2010, . Boucadair, et al. Expires 2 September 2023 [Page 87] Internet-Draft ACaaS March 2023 [RFC6020] Bjorklund, M., Ed., "YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)", RFC 6020, DOI 10.17487/RFC6020, October 2010, . [RFC6241] Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed., and A. Bierman, Ed., "Network Configuration Protocol (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011, . [RFC6242] Wasserman, M., "Using the NETCONF Protocol over Secure Shell (SSH)", RFC 6242, DOI 10.17487/RFC6242, June 2011, . [RFC6565] Pillay-Esnault, P., Moyer, P., Doyle, J., Ertekin, E., and M. Lundberg, "OSPFv3 as a Provider Edge to Customer Edge (PE-CE) Routing Protocol", RFC 6565, DOI 10.17487/RFC6565, June 2012, . [RFC6991] Schoenwaelder, J., Ed., "Common YANG Data Types", RFC 6991, DOI 10.17487/RFC6991, July 2013, . [RFC8040] Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF Protocol", RFC 8040, DOI 10.17487/RFC8040, January 2017, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . [RFC8177] Lindem, A., Ed., Qu, Y., Yeung, D., Chen, I., and J. Zhang, "YANG Data Model for Key Chains", RFC 8177, DOI 10.17487/RFC8177, June 2017, . [RFC8341] Bierman, A. and M. Bjorklund, "Network Configuration Access Control Model", STD 91, RFC 8341, DOI 10.17487/RFC8341, March 2018, . [RFC8342] Bjorklund, M., Schoenwaelder, J., Shafer, P., Watsen, K., and R. Wilton, "Network Management Datastore Architecture (NMDA)", RFC 8342, DOI 10.17487/RFC8342, March 2018, . Boucadair, et al. Expires 2 September 2023 [Page 88] Internet-Draft ACaaS March 2023 [RFC8446] Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018, . [RFC9181] Barguil, S., Gonzalez de Dios, O., Ed., Boucadair, M., Ed., and Q. Wu, "A Common YANG Data Model for Layer 2 and Layer 3 VPNs", RFC 9181, DOI 10.17487/RFC9181, February 2022, . [RFC9182] Barguil, S., Gonzalez de Dios, O., Ed., Boucadair, M., Ed., Munoz, L., and A. Aguado, "A YANG Network Data Model for Layer 3 VPNs", RFC 9182, DOI 10.17487/RFC9182, February 2022, . 7.2. Informative References [I-D.boro-opsawg-ntw-attachment-circuit] Boucadair, M., Roberts, R., de Dios, O. G., Barguil, S., and B. Wu, "A Network YANG Data Model for Attachment Circuits", Work in Progress, Internet-Draft, draft-boro- opsawg-ntw-attachment-circuit-00, 27 January 2023, . [I-D.ietf-idr-bgp-model] Jethanandani, M., Patel, K., Hares, S., and J. Haas, "BGP YANG Model for Service Provider Networks", Work in Progress, Internet-Draft, draft-ietf-idr-bgp-model-15, 13 October 2022, . [I-D.ietf-teas-ietf-network-slice-nbi-yang] Wu, B., Dhody, D., Rokui, R., Saad, T., Han, L., and J. Mullooly, "IETF Network Slice Service YANG Model", Work in Progress, Internet-Draft, draft-ietf-teas-ietf-network- slice-nbi-yang-03, 24 October 2022, . [RFC3644] Snir, Y., Ramberg, Y., Strassner, J., Cohen, R., and B. Moore, "Policy Quality of Service (QoS) Information Model", RFC 3644, DOI 10.17487/RFC3644, November 2003, . [RFC3849] Huston, G., Lord, A., and P. Smith, "IPv6 Address Prefix Reserved for Documentation", RFC 3849, DOI 10.17487/RFC3849, July 2004, . Boucadair, et al. Expires 2 September 2023 [Page 89] Internet-Draft ACaaS March 2023 [RFC5398] Huston, G., "Autonomous System (AS) Number Reservation for Documentation Use", RFC 5398, DOI 10.17487/RFC5398, December 2008, . [RFC5737] Arkko, J., Cotton, M., and L. Vegoda, "IPv4 Address Blocks Reserved for Documentation", RFC 5737, DOI 10.17487/RFC5737, January 2010, . [RFC6151] Turner, S. and L. Chen, "Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithms", RFC 6151, DOI 10.17487/RFC6151, March 2011, . [RFC6952] Jethanandani, M., Patel, K., and L. Zheng, "Analysis of BGP, LDP, PCEP, and MSDP Issues According to the Keying and Authentication for Routing Protocols (KARP) Design Guide", RFC 6952, DOI 10.17487/RFC6952, May 2013, . [RFC7665] Halpern, J., Ed. and C. Pignataro, Ed., "Service Function Chaining (SFC) Architecture", RFC 7665, DOI 10.17487/RFC7665, October 2015, . [RFC8299] Wu, Q., Ed., Litkowski, S., Tomotaki, L., and K. Ogaki, "YANG Data Model for L3VPN Service Delivery", RFC 8299, DOI 10.17487/RFC8299, January 2018, . [RFC8340] Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams", BCP 215, RFC 8340, DOI 10.17487/RFC8340, March 2018, . [RFC8349] Lhotka, L., Lindem, A., and Y. Qu, "A YANG Data Model for Routing Management (NMDA Version)", RFC 8349, DOI 10.17487/RFC8349, March 2018, . [RFC8466] Wen, B., Fioccola, G., Ed., Xie, C., and L. Jalil, "A YANG Data Model for Layer 2 Virtual Private Network (L2VPN) Service Delivery", RFC 8466, DOI 10.17487/RFC8466, October 2018, . [RFC8695] Liu, X., Sarda, P., and V. Choudhary, "A YANG Data Model for the Routing Information Protocol (RIP)", RFC 8695, DOI 10.17487/RFC8695, February 2020, . Boucadair, et al. Expires 2 September 2023 [Page 90] Internet-Draft ACaaS March 2023 [RFC8969] Wu, Q., Ed., Boucadair, M., Ed., Lopez, D., Xie, C., and L. Geng, "A Framework for Automating Service and Network Management with YANG", RFC 8969, DOI 10.17487/RFC8969, January 2021, . Appendix A. Reusable Grouping in The "ietf-ac-svc" Module The reusable groupings defined in the ACaaS module are shown in Figure 15. module: ietf-ac-svc grouping l2-connection-basic +-- encapsulation +-- type? identityref +-- dot1q | +-- tag-type? identityref | +-- cvlan-id? uint16 +-- qinq +-- tag-type? identityref +-- svlan-id uint16 +-- cvlan-id uint16 grouping l2-connection +-- encapsulation | +-- type? identityref | +-- dot1q | | +-- tag-type? identityref | | +-- cvlan-id? uint16 | +-- priority-tagged | | +-- tag-type? identityref | +-- qinq | +-- tag-type? identityref | +-- svlan-id uint16 | +-- cvlan-id uint16 +-- (l2-service)? | +--:(l2-tunnel-service) | | +-- l2-tunnel-service | | +-- type? identityref | | +-- pseudowire | | | +-- vcid? uint32 | | | +-- far-end? union | | +-- vpls | | | +-- vcid? uint32 | | | +-- far-end* union | | +-- vxlan | | +-- vni-id uint32 | | +-- peer-mode? identityref | | +-- peer-ip-address* inet:ip-address Boucadair, et al. Expires 2 September 2023 [Page 91] Internet-Draft ACaaS March 2023 | +--:(l2vpn) | +-- l2vpn-id? vpn-common:vpn-id +-- bearer-reference? string {vpn-common:bearer-reference}? grouping ip-connection-basic +-- ipv4 {vpn-common:ipv4}? | +-- prefix-length? uint8 | +-- address-allocation-type? identityref | +-- (allocation-type)? | +--:(dynamic) | +-- (provider-dhcp)? | | +--:(dhcp-service-type) | | +-- dhcp-service-type? enumeration | +-- (dhcp-relay)? | +--:(customer-dhcp-servers) | +-- customer-dhcp-servers | +-- server-ip-address* inet:ipv4-address +-- ipv6 {vpn-common:ipv6}? +-- prefix-length? uint8 +-- address-allocation-type? identityref +-- (allocation-type)? +--:(dynamic) +-- (provider-dhcp)? | +--:(dhcp-service-type) | +-- dhcp-service-type? enumeration +-- (dhcp-relay)? +--:(customer-dhcp-servers) +-- customer-dhcp-servers +-- server-ip-address* inet:ipv6-address grouping ip-connection +-- ipv4 {vpn-common:ipv4}? | +-- local-address? inet:ipv4-address | +-- virtual-address? inet:ipv4-address | +-- prefix-length? uint8 | +-- address-allocation-type? identityref | +-- (allocation-type)? | +--:(dynamic) | | +-- (address-assign)? | | | +--:(number) | | | | +-- number-of-dynamic-address? uint16 | | | +--:(explicit) | | | +-- customer-addresses | | | +-- address-pool* [pool-id] | | | +-- pool-id? string | | | +-- start-address inet:ipv4-address | | | +-- end-address? inet:ipv4-address | | +-- (provider-dhcp)? | | | +--:(dhcp-service-type) Boucadair, et al. Expires 2 September 2023 [Page 92] Internet-Draft ACaaS March 2023 | | | +-- dhcp-service-type? enumeration | | +-- (dhcp-relay)? | | +--:(customer-dhcp-servers) | | +-- customer-dhcp-servers | | +-- server-ip-address* inet:ipv4-address | +--:(static-addresses) | +-- address* [address-id] | +-- address-id? string | +-- customer-address? inet:ipv4-address +-- ipv6 {vpn-common:ipv6}? +-- local-address? inet:ipv6-address +-- virtual-address? inet:ipv6-address +-- prefix-length? uint8 +-- address-allocation-type? identityref +-- (allocation-type)? +--:(dynamic) | +-- (address-assign)? | | +--:(number) | | | +-- number-of-dynamic-address? uint16 | | +--:(explicit) | | +-- customer-addresses | | +-- address-pool* [pool-id] | | +-- pool-id? string | | +-- start-address inet:ipv6-address | | +-- end-address? inet:ipv6-address | +-- (provider-dhcp)? | | +--:(dhcp-service-type) | | +-- dhcp-service-type? enumeration | +-- (dhcp-relay)? | +--:(customer-dhcp-servers) | +-- customer-dhcp-servers | +-- server-ip-address* inet:ipv6-address +--:(static-addresses) +-- address* [address-id] +-- address-id? string +-- customer-address? inet:ipv6-address grouping routing-protocol-list +-- type? identityref +-- routing-profiles* [id] +-- id? routing-profile-reference +-- type? identityref grouping routing-basic +-- routing-protocol* [id] +-- id? string +-- type? identityref +-- routing-profiles* [id] | +-- id? routing-profile-reference | +-- type? identityref Boucadair, et al. Expires 2 September 2023 [Page 93] Internet-Draft ACaaS March 2023 +-- bgp | +-- peer-groups | +-- peer-group* [name] | +-- name? string | +--ro local-as? inet:as-number | +-- peer-as? inet:as-number | +-- address-family? identityref +-- ospf | +-- address-family? identityref | +-- area-id yang:dotted-quad | +-- metric? uint16 +-- isis | +-- address-family? identityref | +-- area-address area-address +-- rip | +-- address-family? identityref +-- vrrp +-- address-family? identityref grouping routing +-- routing-protocol* [id] +-- id? string +-- type? identityref +-- routing-profiles* [id] | +-- id? routing-profile-reference | +-- type? identityref +-- static | +-- cascaded-lan-prefixes | +-- ipv4-lan-prefixes* [lan next-hop] {vpn-common:ipv4}? | | +-- lan? inet:ipv4-prefix | | +-- lan-tag? string | | +-- next-hop? union | | +-- metric? uint32 | | +-- status | | +-- admin-status | | | +-- status? identityref | | | +-- last-change? yang:date-and-time | | +--ro oper-status | | +--ro status? identityref | | +--ro last-change? yang:date-and-time | +-- ipv6-lan-prefixes* [lan next-hop] {vpn-common:ipv6}? | +-- lan? inet:ipv6-prefix | +-- lan-tag? string | +-- next-hop? union | +-- metric? uint32 | +-- status | +-- admin-status | | +-- status? identityref | | +-- last-change? yang:date-and-time Boucadair, et al. Expires 2 September 2023 [Page 94] Internet-Draft ACaaS March 2023 | +--ro oper-status | +--ro status? identityref | +--ro last-change? yang:date-and-time +-- bgp | +-- peer-groups | | +-- peer-group* [name] | | +-- name? string | | +--ro local-as? inet:as-number | | +-- peer-as? inet:as-number | | +-- address-family? identityref | | +--ro local-address? inet:ip-address | | +-- authentication | | +-- enable? boolean | | +-- keying-material | | +-- (option)? | | +--:(ao) | | | +-- enable-ao? boolean | | | +-- ao-keychain? | | | key-chain:key-chain-ref | | +--:(md5) | | | +-- md5-keychain? | | | key-chain:key-chain-ref | | +--:(explicit) | | +-- key-id? uint32 | | +-- key? string | | +-- crypto-algorithm? identityref | +-- neighbor* [id] | +-- id? string | +-- remote-address? inet:ip-address | +--ro local-address? inet:ip-address | +-- peer-group? | | -> ../../peer-groups/peer-group/name | +--ro local-as? inet:as-number | +-- peer-as? inet:as-number | +-- address-family? identityref | +-- authentication | | +-- enable? boolean | | +-- keying-material | | +-- (option)? | | +--:(ao) | | | +-- enable-ao? boolean | | | +-- ao-keychain? | | | key-chain:key-chain-ref | | +--:(md5) | | | +-- md5-keychain? | | | key-chain:key-chain-ref | | +--:(explicit) | | +-- key-id? uint32 Boucadair, et al. Expires 2 September 2023 [Page 95] Internet-Draft ACaaS March 2023 | | +-- key? string | | +-- crypto-algorithm? identityref | +-- status | +-- admin-status | | +-- status? identityref | | +-- last-change? yang:date-and-time | +--ro oper-status | +--ro status? identityref | +--ro last-change? yang:date-and-time +-- ospf | +-- address-family? identityref | +-- area-id yang:dotted-quad | +-- metric? uint16 | +-- authentication | | +-- enable? boolean | | +-- keying-material | | +-- (option)? | | +--:(auth-key-chain) | | | +-- key-chain? key-chain:key-chain-ref | | +--:(auth-key-explicit) | | +-- key-id? uint32 | | +-- key? string | | +-- crypto-algorithm? identityref | +-- status | +-- admin-status | | +-- status? identityref | | +-- last-change? yang:date-and-time | +--ro oper-status | +--ro status? identityref | +--ro last-change? yang:date-and-time +-- isis | +-- address-family? identityref | +-- area-address area-address | +-- authentication | | +-- enable? boolean | | +-- keying-material | | +-- (option)? | | +--:(auth-key-chain) | | | +-- key-chain? key-chain:key-chain-ref | | +--:(auth-key-explicit) | | +-- key-id? uint32 | | +-- key? string | | +-- crypto-algorithm? identityref | +-- status | +-- admin-status | | +-- status? identityref | | +-- last-change? yang:date-and-time | +--ro oper-status Boucadair, et al. Expires 2 September 2023 [Page 96] Internet-Draft ACaaS March 2023 | +--ro status? identityref | +--ro last-change? yang:date-and-time +-- rip | +-- address-family? identityref | +-- authentication | | +-- enable? boolean | | +-- keying-material | | +-- (option)? | | +--:(auth-key-chain) | | | +-- key-chain? key-chain:key-chain-ref | | +--:(auth-key-explicit) | | +-- key? string | | +-- crypto-algorithm? identityref | +-- status | +-- admin-status | | +-- status? identityref | | +-- last-change? yang:date-and-time | +--ro oper-status | +--ro status? identityref | +--ro last-change? yang:date-and-time +-- vrrp +-- address-family? identityref +-- status +-- admin-status | +-- status? identityref | +-- last-change? yang:date-and-time +--ro oper-status +--ro status? identityref +--ro last-change? yang:date-and-time grouping encryption-choice +-- (profile)? +--:(provider-profile) | +-- provider-profile? encryption-profile-reference +--:(customer-profile) +-- customer-key-chain? key-chain:key-chain-ref grouping ac-security-basic +-- encryption {vpn-common:encryption}? | +-- enabled? boolean | +-- layer? enumeration +-- encryption-profile +-- (profile)? +--:(provider-profile) | +-- provider-profile? encryption-profile-reference +--:(customer-profile) +-- customer-key-chain? key-chain:key-chain-ref grouping ac-basic +-- id? string +-- l2-connection Boucadair, et al. Expires 2 September 2023 [Page 97] Internet-Draft ACaaS March 2023 | +-- encapsulation | +-- type? identityref | +-- dot1q | | +-- tag-type? identityref | | +-- cvlan-id? uint16 | +-- qinq | +-- tag-type? identityref | +-- svlan-id uint16 | +-- cvlan-id uint16 +-- ip-connection | +-- ipv4 {vpn-common:ipv4}? | | +-- prefix-length? uint8 | | +-- address-allocation-type? identityref | | +-- (allocation-type)? | | +--:(dynamic) | | +-- (provider-dhcp)? | | | +--:(dhcp-service-type) | | | +-- dhcp-service-type? enumeration | | +-- (dhcp-relay)? | | +--:(customer-dhcp-servers) | | +-- customer-dhcp-servers | | +-- server-ip-address* inet:ipv4-address | +-- ipv6 {vpn-common:ipv6}? | +-- prefix-length? uint8 | +-- address-allocation-type? identityref | +-- (allocation-type)? | +--:(dynamic) | +-- (provider-dhcp)? | | +--:(dhcp-service-type) | | +-- dhcp-service-type? enumeration | +-- (dhcp-relay)? | +--:(customer-dhcp-servers) | +-- customer-dhcp-servers | +-- server-ip-address* inet:ipv6-address +-- routing-protocols | +-- routing-protocol* [id] | +-- id? string | +-- type? identityref | +-- routing-profiles* [id] | | +-- id? routing-profile-reference | | +-- type? identityref | +-- bgp | | +-- peer-groups | | +-- peer-group* [name] | | +-- name? string | | +--ro local-as? inet:as-number | | +-- peer-as? inet:as-number | | +-- address-family? identityref Boucadair, et al. Expires 2 September 2023 [Page 98] Internet-Draft ACaaS March 2023 | +-- ospf | | +-- address-family? identityref | | +-- area-id yang:dotted-quad | | +-- metric? uint16 | +-- isis | | +-- address-family? identityref | | +-- area-address area-address | +-- rip | | +-- address-family? identityref | +-- vrrp | +-- address-family? identityref +-- oam | +-- bfd {vpn-common:bfd}? | +-- holdtime? uint32 +-- security +-- encryption {vpn-common:encryption}? | +-- enabled? boolean | +-- layer? enumeration +-- encryption-profile +-- (profile)? +--:(provider-profile) | +-- provider-profile? | encryption-profile-reference +--:(customer-profile) +-- customer-key-chain? key-chain:key-chain-ref grouping ac +-- name? string +-- l2-connection | +-- encapsulation | | +-- type? identityref | | +-- dot1q | | | +-- tag-type? identityref | | | +-- cvlan-id? uint16 | | +-- priority-tagged | | | +-- tag-type? identityref | | +-- qinq | | +-- tag-type? identityref | | +-- svlan-id uint16 | | +-- cvlan-id uint16 | +-- (l2-service)? | | +--:(l2-tunnel-service) | | | +-- l2-tunnel-service | | | +-- type? identityref | | | +-- pseudowire | | | | +-- vcid? uint32 | | | | +-- far-end? union | | | +-- vpls | | | | +-- vcid? uint32 Boucadair, et al. Expires 2 September 2023 [Page 99] Internet-Draft ACaaS March 2023 | | | | +-- far-end* union | | | +-- vxlan | | | +-- vni-id uint32 | | | +-- peer-mode? identityref | | | +-- peer-ip-address* inet:ip-address | | +--:(l2vpn) | | +-- l2vpn-id? vpn-common:vpn-id | +-- bearer-reference? string | {vpn-common:bearer-reference}? +-- ip-connection | +-- ipv4 {vpn-common:ipv4}? | | +-- local-address? | | | inet:ipv4-address | | +-- virtual-address? | | | inet:ipv4-address | | +-- prefix-length? uint8 | | +-- address-allocation-type? identityref | | +-- (allocation-type)? | | +--:(dynamic) | | | +-- (address-assign)? | | | | +--:(number) | | | | | +-- number-of-dynamic-address? uint16 | | | | +--:(explicit) | | | | +-- customer-addresses | | | | +-- address-pool* [pool-id] | | | | +-- pool-id? string | | | | +-- start-address inet:ipv4-address | | | | +-- end-address? inet:ipv4-address | | | +-- (provider-dhcp)? | | | | +--:(dhcp-service-type) | | | | +-- dhcp-service-type? enumeration | | | +-- (dhcp-relay)? | | | +--:(customer-dhcp-servers) | | | +-- customer-dhcp-servers | | | +-- server-ip-address* inet:ipv4-address | | +--:(static-addresses) | | +-- address* [address-id] | | +-- address-id? string | | +-- customer-address? inet:ipv4-address | +-- ipv6 {vpn-common:ipv6}? | +-- local-address? | | inet:ipv6-address | +-- virtual-address? | | inet:ipv6-address | +-- prefix-length? uint8 | +-- address-allocation-type? identityref | +-- (allocation-type)? | +--:(dynamic) Boucadair, et al. Expires 2 September 2023 [Page 100] Internet-Draft ACaaS March 2023 | | +-- (address-assign)? | | | +--:(number) | | | | +-- number-of-dynamic-address? uint16 | | | +--:(explicit) | | | +-- customer-addresses | | | +-- address-pool* [pool-id] | | | +-- pool-id? string | | | +-- start-address inet:ipv6-address | | | +-- end-address? inet:ipv6-address | | +-- (provider-dhcp)? | | | +--:(dhcp-service-type) | | | +-- dhcp-service-type? enumeration | | +-- (dhcp-relay)? | | +--:(customer-dhcp-servers) | | +-- customer-dhcp-servers | | +-- server-ip-address* inet:ipv6-address | +--:(static-addresses) | +-- address* [address-id] | +-- address-id? string | +-- customer-address? inet:ipv6-address +-- routing-protocols | +-- routing-protocol* [id] | +-- id? string | +-- type? identityref | +-- routing-profiles* [id] | | +-- id? routing-profile-reference | | +-- type? identityref | +-- static | | +-- cascaded-lan-prefixes | | +-- ipv4-lan-prefixes* [lan next-hop] | | | {vpn-common:ipv4}? | | | +-- lan? inet:ipv4-prefix | | | +-- lan-tag? string | | | +-- next-hop? union | | | +-- metric? uint32 | | | +-- status | | | +-- admin-status | | | | +-- status? identityref | | | | +-- last-change? yang:date-and-time | | | +--ro oper-status | | | +--ro status? identityref | | | +--ro last-change? yang:date-and-time | | +-- ipv6-lan-prefixes* [lan next-hop] | | {vpn-common:ipv6}? | | +-- lan? inet:ipv6-prefix | | +-- lan-tag? string | | +-- next-hop? union | | +-- metric? uint32 Boucadair, et al. Expires 2 September 2023 [Page 101] Internet-Draft ACaaS March 2023 | | +-- status | | +-- admin-status | | | +-- status? identityref | | | +-- last-change? yang:date-and-time | | +--ro oper-status | | +--ro status? identityref | | +--ro last-change? yang:date-and-time | +-- bgp | | +-- peer-groups | | | +-- peer-group* [name] | | | +-- name? string | | | +--ro local-as? inet:as-number | | | +-- peer-as? inet:as-number | | | +-- address-family? identityref | | | +--ro local-address? inet:ip-address | | | +-- authentication | | | +-- enable? boolean | | | +-- keying-material | | | +-- (option)? | | | +--:(ao) | | | | +-- enable-ao? boolean | | | | +-- ao-keychain? | | | | key-chain:key-chain-ref | | | +--:(md5) | | | | +-- md5-keychain? | | | | key-chain:key-chain-ref | | | +--:(explicit) | | | +-- key-id? uint32 | | | +-- key? string | | | +-- crypto-algorithm? identityref | | +-- neighbor* [id] | | +-- id? string | | +-- remote-address? inet:ip-address | | +--ro local-address? inet:ip-address | | +-- peer-group? | | | -> ../../peer-groups/peer-group/name | | +--ro local-as? inet:as-number | | +-- peer-as? inet:as-number | | +-- address-family? identityref | | +-- authentication | | | +-- enable? boolean | | | +-- keying-material | | | +-- (option)? | | | +--:(ao) | | | | +-- enable-ao? boolean | | | | +-- ao-keychain? | | | | key-chain:key-chain-ref | | | +--:(md5) Boucadair, et al. Expires 2 September 2023 [Page 102] Internet-Draft ACaaS March 2023 | | | | +-- md5-keychain? | | | | key-chain:key-chain-ref | | | +--:(explicit) | | | +-- key-id? uint32 | | | +-- key? string | | | +-- crypto-algorithm? identityref | | +-- status | | +-- admin-status | | | +-- status? identityref | | | +-- last-change? yang:date-and-time | | +--ro oper-status | | +--ro status? identityref | | +--ro last-change? yang:date-and-time | +-- ospf | | +-- address-family? identityref | | +-- area-id yang:dotted-quad | | +-- metric? uint16 | | +-- authentication | | | +-- enable? boolean | | | +-- keying-material | | | +-- (option)? | | | +--:(auth-key-chain) | | | | +-- key-chain? | | | | key-chain:key-chain-ref | | | +--:(auth-key-explicit) | | | +-- key-id? uint32 | | | +-- key? string | | | +-- crypto-algorithm? identityref | | +-- status | | +-- admin-status | | | +-- status? identityref | | | +-- last-change? yang:date-and-time | | +--ro oper-status | | +--ro status? identityref | | +--ro last-change? yang:date-and-time | +-- isis | | +-- address-family? identityref | | +-- area-address area-address | | +-- authentication | | | +-- enable? boolean | | | +-- keying-material | | | +-- (option)? | | | +--:(auth-key-chain) | | | | +-- key-chain? | | | | key-chain:key-chain-ref | | | +--:(auth-key-explicit) | | | +-- key-id? uint32 | | | +-- key? string Boucadair, et al. Expires 2 September 2023 [Page 103] Internet-Draft ACaaS March 2023 | | | +-- crypto-algorithm? identityref | | +-- status | | +-- admin-status | | | +-- status? identityref | | | +-- last-change? yang:date-and-time | | +--ro oper-status | | +--ro status? identityref | | +--ro last-change? yang:date-and-time | +-- rip | | +-- address-family? identityref | | +-- authentication | | | +-- enable? boolean | | | +-- keying-material | | | +-- (option)? | | | +--:(auth-key-chain) | | | | +-- key-chain? | | | | key-chain:key-chain-ref | | | +--:(auth-key-explicit) | | | +-- key? string | | | +-- crypto-algorithm? identityref | | +-- status | | +-- admin-status | | | +-- status? identityref | | | +-- last-change? yang:date-and-time | | +--ro oper-status | | +--ro status? identityref | | +--ro last-change? yang:date-and-time | +-- vrrp | +-- address-family? identityref | +-- status | +-- admin-status | | +-- status? identityref | | +-- last-change? yang:date-and-time | +--ro oper-status | +--ro status? identityref | +--ro last-change? yang:date-and-time +-- oam | +-- bfd {vpn-common:bfd}? | +-- holdtime? uint32 | +-- status | +-- admin-status | | +-- status? identityref | | +-- last-change? yang:date-and-time | +--ro oper-status | +--ro status? identityref | +--ro last-change? yang:date-and-time +-- security +-- encryption {vpn-common:encryption}? Boucadair, et al. Expires 2 September 2023 [Page 104] Internet-Draft ACaaS March 2023 | +-- enabled? boolean | +-- layer? enumeration +-- encryption-profile +-- (profile)? +--:(provider-profile) | +-- provider-profile? | encryption-profile-reference +--:(customer-profile) +-- customer-key-chain? key-chain:key-chain-ref Figure 15: Tree Structure of the ACaaS Reusable Groupings Appendix B. Full Tree of The "ietf-ac-svc" Module The full tree of the ACaaS module is shown in Figure 16. module: ietf-ac-svc +--rw specific-provisioning-profiles | +--rw valid-provider-identifiers | +--rw external-connectivity-identifier* [id] | | {external-connectivity}? | | +--rw id string | +--rw encryption-profile-identifier* [id] | | +--rw id string | +--rw qos-profile-identifier* [id] | | +--rw id string | +--rw bfd-profile-identifier* [id] | | +--rw id string | +--rw forwarding-profile-identifier* [id] | | +--rw id string | +--rw routing-profile-identifier* [id] | +--rw id string +--rw service-provisioning-profiles | +--rw service-profile-identifier* [id] | +--rw id string +--rw attachment-circuits +--rw ac-group-profile* [id] | +--rw id string | +--rw name? string | +--rw l2-connection | | +--rw encapsulation | | | +--rw type? identityref | | | +--rw dot1q | | | | +--rw tag-type? identityref | | | | +--rw cvlan-id? uint16 | | | +--rw priority-tagged | | | | +--rw tag-type? identityref | | | +--rw qinq Boucadair, et al. Expires 2 September 2023 [Page 105] Internet-Draft ACaaS March 2023 | | | +--rw tag-type? identityref | | | +--rw svlan-id uint16 | | | +--rw cvlan-id uint16 | | +--rw (l2-service)? | | | +--:(l2-tunnel-service) | | | | +--rw l2-tunnel-service | | | | +--rw type? identityref | | | | +--rw pseudowire | | | | | +--rw vcid? uint32 | | | | | +--rw far-end? union | | | | +--rw vpls | | | | | +--rw vcid? uint32 | | | | | +--rw far-end* union | | | | +--rw vxlan | | | | +--rw vni-id uint32 | | | | +--rw peer-mode? identityref | | | | +--rw peer-ip-address* inet:ip-address | | | +--:(l2vpn) | | | +--rw l2vpn-id? vpn-common:vpn-id | | +--rw bearer-reference? string | | {vpn-common:bearer-reference}? | +--rw ip-connection | | +--rw ipv4 {vpn-common:ipv4}? | | | +--rw local-address? | | | | inet:ipv4-address | | | +--rw virtual-address? | | | | inet:ipv4-address | | | +--rw prefix-length? uint8 | | | +--rw address-allocation-type? | | | | identityref | | | +--rw (allocation-type)? | | | +--:(dynamic) | | | | +--rw (address-assign)? | | | | | +--:(number) | | | | | | +--rw number-of-dynamic-address? uint16 | | | | | +--:(explicit) | | | | | +--rw customer-addresses | | | | | +--rw address-pool* [pool-id] | | | | | +--rw pool-id string | | | | | +--rw start-address | | | | | | inet:ipv4-address | | | | | +--rw end-address? | | | | | inet:ipv4-address | | | | +--rw (provider-dhcp)? | | | | | +--:(dhcp-service-type) | | | | | +--rw dhcp-service-type? | | | | | enumeration | | | | +--rw (dhcp-relay)? Boucadair, et al. Expires 2 September 2023 [Page 106] Internet-Draft ACaaS March 2023 | | | | +--:(customer-dhcp-servers) | | | | +--rw customer-dhcp-servers | | | | +--rw server-ip-address* | | | | inet:ipv4-address | | | +--:(static-addresses) | | | +--rw address* [address-id] | | | +--rw address-id string | | | +--rw customer-address? inet:ipv4-address | | +--rw ipv6 {vpn-common:ipv6}? | | +--rw local-address? | | | inet:ipv6-address | | +--rw virtual-address? | | | inet:ipv6-address | | +--rw prefix-length? uint8 | | +--rw address-allocation-type? | | | identityref | | +--rw (allocation-type)? | | +--:(dynamic) | | | +--rw (address-assign)? | | | | +--:(number) | | | | | +--rw number-of-dynamic-address? uint16 | | | | +--:(explicit) | | | | +--rw customer-addresses | | | | +--rw address-pool* [pool-id] | | | | +--rw pool-id string | | | | +--rw start-address | | | | | inet:ipv6-address | | | | +--rw end-address? | | | | inet:ipv6-address | | | +--rw (provider-dhcp)? | | | | +--:(dhcp-service-type) | | | | +--rw dhcp-service-type? | | | | enumeration | | | +--rw (dhcp-relay)? | | | +--:(customer-dhcp-servers) | | | +--rw customer-dhcp-servers | | | +--rw server-ip-address* | | | inet:ipv6-address | | +--:(static-addresses) | | +--rw address* [address-id] | | +--rw address-id string | | +--rw customer-address? inet:ipv6-address | +--rw routing-protocols | | +--rw routing-protocol* [id] | | +--rw id string | | +--rw type? identityref | | +--rw routing-profiles* [id] | | | +--rw id routing-profile-reference Boucadair, et al. Expires 2 September 2023 [Page 107] Internet-Draft ACaaS March 2023 | | | +--rw type? identityref | | +--rw static | | | +--rw cascaded-lan-prefixes | | | +--rw ipv4-lan-prefixes* [lan next-hop] | | | | {vpn-common:ipv4}? | | | | +--rw lan inet:ipv4-prefix | | | | +--rw lan-tag? string | | | | +--rw next-hop union | | | | +--rw metric? uint32 | | | | +--rw 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 | | | +--rw ipv6-lan-prefixes* [lan next-hop] | | | {vpn-common:ipv6}? | | | +--rw lan inet:ipv6-prefix | | | +--rw lan-tag? string | | | +--rw next-hop union | | | +--rw metric? uint32 | | | +--rw 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 | | +--rw bgp | | | +--rw peer-groups | | | | +--rw peer-group* [name] | | | | +--rw name string | | | | +--ro local-as? inet:as-number | | | | +--rw peer-as? inet:as-number | | | | +--rw address-family? identityref | | | | +--ro local-address? inet:ip-address | | | | +--rw authentication | | | | +--rw enable? boolean | | | | +--rw keying-material | | | | +--rw (option)? | | | | +--:(ao) | | | | | +--rw enable-ao? boolean | | | | | +--rw ao-keychain? | | | | | key-chain:key-chain-ref | | | | +--:(md5) | | | | | +--rw md5-keychain? | | | | | key-chain:key-chain-ref Boucadair, et al. Expires 2 September 2023 [Page 108] Internet-Draft ACaaS March 2023 | | | | +--:(explicit) | | | | +--rw key-id? uint32 | | | | +--rw key? string | | | | +--rw crypto-algorithm? | | | | identityref | | | +--rw neighbor* [id] | | | +--rw id string | | | +--rw remote-address? inet:ip-address | | | +--ro local-address? inet:ip-address | | | +--rw peer-group? | | | | -> ../../peer-groups/peer-group/name | | | +--ro local-as? inet:as-number | | | +--rw peer-as? inet:as-number | | | +--rw address-family? identityref | | | +--rw authentication | | | | +--rw enable? boolean | | | | +--rw keying-material | | | | +--rw (option)? | | | | +--:(ao) | | | | | +--rw enable-ao? boolean | | | | | +--rw ao-keychain? | | | | | key-chain:key-chain-ref | | | | +--:(md5) | | | | | +--rw md5-keychain? | | | | | key-chain:key-chain-ref | | | | +--:(explicit) | | | | +--rw key-id? uint32 | | | | +--rw key? string | | | | +--rw crypto-algorithm? identityref | | | +--rw 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 | | +--rw ospf | | | +--rw address-family? identityref | | | +--rw area-id yang:dotted-quad | | | +--rw metric? uint16 | | | +--rw authentication | | | | +--rw enable? boolean | | | | +--rw keying-material | | | | +--rw (option)? | | | | +--:(auth-key-chain) | | | | | +--rw key-chain? | | | | | key-chain:key-chain-ref | | | | +--:(auth-key-explicit) Boucadair, et al. Expires 2 September 2023 [Page 109] Internet-Draft ACaaS March 2023 | | | | +--rw key-id? uint32 | | | | +--rw key? string | | | | +--rw crypto-algorithm? identityref | | | +--rw 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 | | +--rw isis | | | +--rw address-family? identityref | | | +--rw area-address area-address | | | +--rw authentication | | | | +--rw enable? boolean | | | | +--rw keying-material | | | | +--rw (option)? | | | | +--:(auth-key-chain) | | | | | +--rw key-chain? | | | | | key-chain:key-chain-ref | | | | +--:(auth-key-explicit) | | | | +--rw key-id? uint32 | | | | +--rw key? string | | | | +--rw crypto-algorithm? identityref | | | +--rw 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 | | +--rw rip | | | +--rw address-family? identityref | | | +--rw authentication | | | | +--rw enable? boolean | | | | +--rw keying-material | | | | +--rw (option)? | | | | +--:(auth-key-chain) | | | | | +--rw key-chain? | | | | | key-chain:key-chain-ref | | | | +--:(auth-key-explicit) | | | | +--rw key? string | | | | +--rw crypto-algorithm? identityref | | | +--rw status | | | +--rw admin-status | | | | +--rw status? identityref | | | | +--rw last-change? yang:date-and-time | | | +--ro oper-status Boucadair, et al. Expires 2 September 2023 [Page 110] Internet-Draft ACaaS March 2023 | | | +--ro status? identityref | | | +--ro last-change? yang:date-and-time | | +--rw vrrp | | +--rw address-family? identityref | | +--rw 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 | +--rw oam | | +--rw bfd {vpn-common:bfd}? | | +--rw holdtime? uint32 | | +--rw 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 | +--rw security | +--rw encryption {vpn-common:encryption}? | | +--rw enabled? boolean | | +--rw layer? enumeration | +--rw encryption-profile | +--rw (profile)? | +--:(provider-profile) | | +--rw provider-profile? | | encryption-profile-reference | +--:(customer-profile) | +--rw customer-key-chain? | key-chain:key-chain-ref +--rw placement-constraints | +--rw constraint* [constraint-type] | +--rw constraint-type identityref | +--rw target | +--rw (target-flavor)? | +--:(id) | | +--rw group* [group-id] | | +--rw group-id string | +--:(all-accesses) | | +--rw all-other-accesses? empty | +--:(all-groups) | +--rw all-other-groups? empty +--rw ac* [name] +--rw customer-name? string +--rw description? string Boucadair, et al. Expires 2 September 2023 [Page 111] Internet-Draft ACaaS March 2023 +--rw requested-start? yang:date-and-time +--rw requested-stop? yang:date-and-time +--ro actual-start? yang:date-and-time +--ro actual-stop? yang:date-and-time +--rw peer-sap-id* string +--rw ac-group-profile* ac-group-reference +--rw group* [group-id] | +--rw group-id string | +--rw precedence? identityref +--rw name string +--rw l2-connection | +--rw encapsulation | | +--rw type? identityref | | +--rw dot1q | | | +--rw tag-type? identityref | | | +--rw cvlan-id? uint16 | | +--rw priority-tagged | | | +--rw tag-type? identityref | | +--rw qinq | | +--rw tag-type? identityref | | +--rw svlan-id uint16 | | +--rw cvlan-id uint16 | +--rw (l2-service)? | | +--:(l2-tunnel-service) | | | +--rw l2-tunnel-service | | | +--rw type? identityref | | | +--rw pseudowire | | | | +--rw vcid? uint32 | | | | +--rw far-end? union | | | +--rw vpls | | | | +--rw vcid? uint32 | | | | +--rw far-end* union | | | +--rw vxlan | | | +--rw vni-id uint32 | | | +--rw peer-mode? identityref | | | +--rw peer-ip-address* inet:ip-address | | +--:(l2vpn) | | +--rw l2vpn-id? vpn-common:vpn-id | +--rw bearer-reference? string | {vpn-common:bearer-reference}? +--rw ip-connection | +--rw ipv4 {vpn-common:ipv4}? | | +--rw local-address? | | | inet:ipv4-address | | +--rw virtual-address? | | | inet:ipv4-address | | +--rw prefix-length? uint8 | | +--rw address-allocation-type? Boucadair, et al. Expires 2 September 2023 [Page 112] Internet-Draft ACaaS March 2023 | | | identityref | | +--rw (allocation-type)? | | +--:(dynamic) | | | +--rw (address-assign)? | | | | +--:(number) | | | | | +--rw number-of-dynamic-address? uint16 | | | | +--:(explicit) | | | | +--rw customer-addresses | | | | +--rw address-pool* [pool-id] | | | | +--rw pool-id string | | | | +--rw start-address | | | | | inet:ipv4-address | | | | +--rw end-address? | | | | inet:ipv4-address | | | +--rw (provider-dhcp)? | | | | +--:(dhcp-service-type) | | | | +--rw dhcp-service-type? | | | | enumeration | | | +--rw (dhcp-relay)? | | | +--:(customer-dhcp-servers) | | | +--rw customer-dhcp-servers | | | +--rw server-ip-address* | | | inet:ipv4-address | | +--:(static-addresses) | | +--rw address* [address-id] | | +--rw address-id string | | +--rw customer-address? inet:ipv4-address | +--rw ipv6 {vpn-common:ipv6}? | +--rw local-address? | | inet:ipv6-address | +--rw virtual-address? | | inet:ipv6-address | +--rw prefix-length? uint8 | +--rw address-allocation-type? | | identityref | +--rw (allocation-type)? | +--:(dynamic) | | +--rw (address-assign)? | | | +--:(number) | | | | +--rw number-of-dynamic-address? uint16 | | | +--:(explicit) | | | +--rw customer-addresses | | | +--rw address-pool* [pool-id] | | | +--rw pool-id string | | | +--rw start-address | | | | inet:ipv6-address | | | +--rw end-address? | | | inet:ipv6-address Boucadair, et al. Expires 2 September 2023 [Page 113] Internet-Draft ACaaS March 2023 | | +--rw (provider-dhcp)? | | | +--:(dhcp-service-type) | | | +--rw dhcp-service-type? | | | enumeration | | +--rw (dhcp-relay)? | | +--:(customer-dhcp-servers) | | +--rw customer-dhcp-servers | | +--rw server-ip-address* | | inet:ipv6-address | +--:(static-addresses) | +--rw address* [address-id] | +--rw address-id string | +--rw customer-address? inet:ipv6-address +--rw routing-protocols | +--rw routing-protocol* [id] | +--rw id string | +--rw type? identityref | +--rw routing-profiles* [id] | | +--rw id routing-profile-reference | | +--rw type? identityref | +--rw static | | +--rw cascaded-lan-prefixes | | +--rw ipv4-lan-prefixes* [lan next-hop] | | | {vpn-common:ipv4}? | | | +--rw lan inet:ipv4-prefix | | | +--rw lan-tag? string | | | +--rw next-hop union | | | +--rw metric? uint32 | | | +--rw 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 | | +--rw ipv6-lan-prefixes* [lan next-hop] | | {vpn-common:ipv6}? | | +--rw lan inet:ipv6-prefix | | +--rw lan-tag? string | | +--rw next-hop union | | +--rw metric? uint32 | | +--rw 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 Boucadair, et al. Expires 2 September 2023 [Page 114] Internet-Draft ACaaS March 2023 | +--rw bgp | | +--rw peer-groups | | | +--rw peer-group* [name] | | | +--rw name string | | | +--ro local-as? inet:as-number | | | +--rw peer-as? inet:as-number | | | +--rw address-family? identityref | | | +--ro local-address? inet:ip-address | | | +--rw authentication | | | +--rw enable? boolean | | | +--rw keying-material | | | +--rw (option)? | | | +--:(ao) | | | | +--rw enable-ao? boolean | | | | +--rw ao-keychain? | | | | key-chain:key-chain-ref | | | +--:(md5) | | | | +--rw md5-keychain? | | | | key-chain:key-chain-ref | | | +--:(explicit) | | | +--rw key-id? uint32 | | | +--rw key? string | | | +--rw crypto-algorithm? | | | identityref | | +--rw neighbor* [id] | | +--rw id string | | +--rw remote-address? inet:ip-address | | +--ro local-address? inet:ip-address | | +--rw peer-group? | | | -> ../../peer-groups/peer-group/name | | +--ro local-as? inet:as-number | | +--rw peer-as? inet:as-number | | +--rw address-family? identityref | | +--rw authentication | | | +--rw enable? boolean | | | +--rw keying-material | | | +--rw (option)? | | | +--:(ao) | | | | +--rw enable-ao? boolean | | | | +--rw ao-keychain? | | | | key-chain:key-chain-ref | | | +--:(md5) | | | | +--rw md5-keychain? | | | | key-chain:key-chain-ref | | | +--:(explicit) | | | +--rw key-id? uint32 | | | +--rw key? string | | | +--rw crypto-algorithm? identityref Boucadair, et al. Expires 2 September 2023 [Page 115] Internet-Draft ACaaS March 2023 | | +--rw 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 | +--rw ospf | | +--rw address-family? identityref | | +--rw area-id yang:dotted-quad | | +--rw metric? uint16 | | +--rw authentication | | | +--rw enable? boolean | | | +--rw keying-material | | | +--rw (option)? | | | +--:(auth-key-chain) | | | | +--rw key-chain? | | | | key-chain:key-chain-ref | | | +--:(auth-key-explicit) | | | +--rw key-id? uint32 | | | +--rw key? string | | | +--rw crypto-algorithm? identityref | | +--rw 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 | +--rw isis | | +--rw address-family? identityref | | +--rw area-address area-address | | +--rw authentication | | | +--rw enable? boolean | | | +--rw keying-material | | | +--rw (option)? | | | +--:(auth-key-chain) | | | | +--rw key-chain? | | | | key-chain:key-chain-ref | | | +--:(auth-key-explicit) | | | +--rw key-id? uint32 | | | +--rw key? string | | | +--rw crypto-algorithm? identityref | | +--rw status | | +--rw admin-status | | | +--rw status? identityref | | | +--rw last-change? yang:date-and-time | | +--ro oper-status Boucadair, et al. Expires 2 September 2023 [Page 116] Internet-Draft ACaaS March 2023 | | +--ro status? identityref | | +--ro last-change? yang:date-and-time | +--rw rip | | +--rw address-family? identityref | | +--rw authentication | | | +--rw enable? boolean | | | +--rw keying-material | | | +--rw (option)? | | | +--:(auth-key-chain) | | | | +--rw key-chain? | | | | key-chain:key-chain-ref | | | +--:(auth-key-explicit) | | | +--rw key? string | | | +--rw crypto-algorithm? identityref | | +--rw 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 | +--rw vrrp | +--rw address-family? identityref | +--rw 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 +--rw oam | +--rw bfd {vpn-common:bfd}? | +--rw holdtime? uint32 | +--rw 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 +--rw security +--rw encryption {vpn-common:encryption}? | +--rw enabled? boolean | +--rw layer? enumeration +--rw encryption-profile +--rw (profile)? +--:(provider-profile) | +--rw provider-profile? Boucadair, et al. Expires 2 September 2023 [Page 117] Internet-Draft ACaaS March 2023 | encryption-profile-reference +--:(customer-profile) +--rw customer-key-chain? key-chain:key-chain-ref Figure 16: Full Tree Structure of the ACaaS Module Appendix C. Examples This section includes a non-exhaustive list of examples to illustrate the use of the service models defined in this document. C.1. Request A New Bearer An example of a request message body to create a bearer is shown in Figure 17. { "ietf-bearer-svc:bearers": { "bearer": [ { "id": "an-identifier", "description": "A bearer example", "customer-device": { "device-id": "CE_X_SITE_Y", "requested-type": "ietf-bearer-svc:ethernet"; } } ] } } Figure 17: Example of a Message Body to Create A New Bearer A bearer-reference is then generated by the controller for this bearer. Figure 18 shows the example of a response message body that is sent by the controller to reply to a GET request: Boucadair, et al. Expires 2 September 2023 [Page 118] Internet-Draft ACaaS March 2023 { "ietf-bearer-svc:bearers": { "bearer": [ { "id": "an-identifier", "description": "A bearer example", "customer-device": { "device-id": "CE_X_SITE_Y", "requested-type": "ietf-bearer-svc:ethernet" }, "bearer-reference": "line-156" } ] } } Figure 18: Example of a Response Message Body with the Bearer Reference C.2. Request An AC over An Existing Bearer An example of a request message body to create a simple AC over an existing bearer is shown in Figure 19. The bearer reference is assumed to be known to both the customer and the network provider. Such a reference can be retrieved, e.g., following the example described in Appendix C.1 or using other means (including, exchanged out-of-band or via proprietary APIs). Boucadair, et al. Expires 2 September 2023 [Page 119] Internet-Draft ACaaS March 2023 { "ietf-ac-svc:attachment-circuits": { "ac": [ { "name": "ac4585", "description": "An AC on an existing bearer", "requested-ac-start": "2023-12-12T05:00:00.00Z", "l2-connection": { "encapsulation": { "type": "ietf-vpn-common:dot1q", "dot1q": { "tag-type": "ietf-vpn-common:c-vlan", "cvlan-id": 550 } }, "bearer-reference": "line-156" } } ] } } Figure 19: Example of a Message Body to Request an AC over an Existing Bearer C.3. Request An AC for a Knwon Peer SAP An example of a request to create a simple AC, when the peer SAP is known, is shown in Figure 20. In this example, the peer SAP identifier points to an identifier of a service function. The (topological) location of that service function is assumed to be known to the network controller. For example, this can be determined as part of an on-demand procedure to instantiate a service function in a cloud. That instantiated service function can be granted a connectivity service via the provider network. Boucadair, et al. Expires 2 September 2023 [Page 120] Internet-Draft ACaaS March 2023 { "ietf-ac-svc:attachment-circuits": { "ac": [ { "name": "ac4585", "description": "An AC on an existing bearer", "requested-ac-start": "2023-12-12T05:00:00.00Z", "peer-sap-id": [ "nf-termination-ip" ], "l2-connection": { "encapsulation": { "type": "ietf-vpn-common:dot1q", "dot1q": { "tag-type": "ietf-vpn-common:c-vlan", "cvlan-id": 550 } } } } ] } } Figure 20: Example of a Message Body to Request an AC with a Peer SAP C.4. One CE, Two ACs Lets consider the example of an eNodeB (CTP) that is directly connected to the access routers of the mobile backhaul (see Figure 21). In this example, two ACs are needed to service the eNodeB. +-------------+ +------------------+ | | | PE | | | | 192.0.2.1 | | eNodeB |==================| 2001:db8::1 | | | vlan 1 | | | |==================| | | | vlan 2 | | | | Direct | | +-------------+ Routing | | | | | | | | +------------------+ Figure 21: Example of a CE-PE ACs Boucadair, et al. Expires 2 September 2023 [Page 121] Internet-Draft ACaaS March 2023 An example of a request to create the ACs to service the eNodeB is shown in Figure 22. This example assumes that static addressing is used for both ACs. { "ietf-ac-svc:attachment-circuits": { "ac": [ { "name": "ac1", "description": "a first ac with a same peer node", "l2-connection": { "encapsulation": { "type": "ietf-vpn-common:dot1q", "dot1q": { "cvlan-id": 1 } }, "bearer-reference": "line-156" }, "ip-connection": { "ipv4": { "local-address": "192.0.2.1", "prefix-length": 30, "address": [ { "address-id": "1", "customer-address": "192.0.2.2" } ] }, "ipv6": { "local-address": "2001:db8::1", "prefix-length": 64, "address": [ { "address-id": "1", "customer-address": "2001:db8::2" } ] } }, "routing-protocols": { "routing-protocol": [ { "id": "1", "type": "ietf-vpn-common:direct-routing" } ] Boucadair, et al. Expires 2 September 2023 [Page 122] Internet-Draft ACaaS March 2023 } }, { "name": "ac2", "description": "a second ac with a same peer node", "l2-connection": { "encapsulation": { "type": "ietf-vpn-common:dot1q", "dot1q": { "cvlan-id": 2 } }, "bearer-reference": "line-156" }, "ip-connection": { "ipv4": { "local-address": "192.0.2.1", "prefix-length": 30, "address": [ { "address-id": "1", "customer-address": "192.0.2.2" } ] }, "ipv6": { "local-address": "2001:db8::1", "prefix-length": 64, "address": [ { "address-id": "1", "customer-address": "2001:db8::2" } ] } }, "routing-protocols": { "routing-protocol": [ { "id": "1", "type": "ietf-vpn-common:direct-routing" } ] } } ] } } Boucadair, et al. Expires 2 September 2023 [Page 123] Internet-Draft ACaaS March 2023 Figure 22: Example of a Message Body to Request Two ACes on The Same Link C.5. Control Precedence over Multiple ACs When multiple ACs are requested by the same customer (for the same site), the request can tag one of these ACes as "primary" and the other ones as "secondary". An example of such a request is shown in Figure 23. In this example, both ACes are bound to the same "group- id", and the "precedence" data node is set as a function of the intended role of each AC (primary or secondary). { "ietf-ac-svc:attachment-circuits": { "ac": [ { "name": "ac1", "description": "Example to illustrate AC precedence usage", "group": [ { "group-id": "1", "precedence": "ietf-ac-common:primary" } ], "l2-connection": { "bearer-reference": "bearerX@site1" } }, { "name": "ac2", "description": "Example to illustrate AC precedence usage", "group": [ { "group-id": "1", "precedence": "ietf-ac-common:secondary" } ], "l2-connection": { "bearer-reference": "bearerY@site1" } } ] } } Figure 23: Example of a Message Body to Associate a Precedence Level with ACes Boucadair, et al. Expires 2 September 2023 [Page 124] Internet-Draft ACaaS March 2023 C.6. Illustrate the Use of Global Profiles An example of a request to create two ACs to service the same CE on the same link is shown in Figure 24. Unlike Figure 22, this example factorizes some of the redundant data. { "ietf-ac-svc:attachment-circuits": { "ac-group-profile": [ { "id": "simple-profile", "l2-connection": { "encapsulation": { "type": "ietf-vpn-common:dot1q" } }, "routing-protocols": { "routing-protocol": [ { "id": "1", "type": "ietf-vpn-common:direct-routing" } ] } } ], "ac": [ { "name": "ac1", "description": "a first ac with a same peer node", "ac-group-profile": ["simple-profile"], "l2-connection": { "encapsulation": { "dot1q": { "cvlan-id": 1 } } }, "ip-connection": { "ipv4": { "local-address": "192.0.2.1", "prefix-length": 30, "address": [ { "address-id": "1", "customer-address": "192.0.2.2" } ] Boucadair, et al. Expires 2 September 2023 [Page 125] Internet-Draft ACaaS March 2023 }, "ipv6": { "local-address": "2001:db8::1", "prefix-length": 64, "address": [ { "address-id": "1", "customer-address": "2001:db8::2" } ] } } }, { "name": "ac2", "description": "a second ac with a same peer node", "ac-group-profile": ["simple-profile"], "l2-connection": { "encapsulation": { "dot1q": { "cvlan-id": 2 } } }, "ip-connection": { "ipv4": { "local-address": "192.0.2.1", "prefix-length": 30, "address": [ { "address-id": "1", "customer-address": "192.0.2.2" } ] }, "ipv6": { "local-address": "2001:db8::1", "prefix-length": 64, "address": [ { "address-id": "1", "customer-address": "2001:db8::2" } ] } } } ] Boucadair, et al. Expires 2 September 2023 [Page 126] Internet-Draft ACaaS March 2023 } } Figure 24: Example of a Message Body to Request Two ACes on The Same Link (Global Profile) C.7. Illustrate the Use of Per-Node Profiles An example of a request to create two ACs to service the same CE on the same link is shown in Figure 25. Unlike Figure 22, this example factorizes all redundant data. { "ietf-ac-svc:attachment-circuits": { "ac-group-profile": [ { "id": "simple-node-profile", "l2-connection": { "encapsulation": { "type": "ietf-vpn-common:dot1q" } }, "ip-connection": { "ipv4": { "local-address": "192.0.2.1", "prefix-length": 30, "address": [ { "address-id": "1", "customer-address": "192.0.2.2" } ] }, "ipv6": { "local-address": "2001:db8::1", "prefix-length": 64, "address": [ { "address-id": "1", "customer-address": "2001:db8::2" } ] } }, "routing-protocols": { "routing-protocol": [ { "id": "1", Boucadair, et al. Expires 2 September 2023 [Page 127] Internet-Draft ACaaS March 2023 "type": "ietf-vpn-common:direct-routing" } ] } } ], "ac": [ { "name": "ac1", "description": "a first ac with a same peer node", "ac-group-profile": ["simple-node-profile"], "l2-connection": { "encapsulation": { "dot1q": { "cvlan-id": 1 } } } }, { "name": "ac2", "description": "a second ac with a same peer node", "ac-group-profile": ["simple-node-profile"], "l2-connection": { "encapsulation": { "dot1q": { "cvlan-id": 2 } } } } ] } } Figure 25: Example of a Message Body to Request Two ACes on The Same Link (Node Profile) A customer may request adding a new AC by simply referring to an existing per-node AC profile as shown in Figure 26. This AC inherites all the data that was enclosed in the indicated per-node AC profile (IP addressing, routing, etc.). Boucadair, et al. Expires 2 September 2023 [Page 128] Internet-Draft ACaaS March 2023 { "ietf-ac-svc:attachment-circuits": { "ac": [ { "name": "ac3", "description": "a third AC with a same peer node", "ac-group-profile": [ "simple-node-profile" ], "l2-connection": { "encapsulation": { "dot1q": { "cvlan-id": 3 } }, "bearer-reference": "line-156" } } ] } } Figure 26: Example of a Message Body to Add a new AC over an existing link (Node Profile) C.8. Multiple CEs Figure 27 shows an example of CEs that are interconnected by a service provider network. +----------------------------------+ +----+ | | +----+ | CE1+-------+ +-------+ CE3| +----+ | | +----+ | Network | +----+ | | +----+ |CE2 +-------+ +-------+ CE4| +----+ | | +----+ +----------------------------------+ Figure 27: Network Topology Example Figure 28 depicts an example of the message body of a request to instantiate the various ACs that are shown in Figure 27. Boucadair, et al. Expires 2 September 2023 [Page 129] Internet-Draft ACaaS March 2023 { "ietf-ac-svc:attachment-circuits": { "ac-group-profile": [ { "id": "simple-profile", "l2-connection": { "encapsulation": { "type": "ietf-vpn-common:dot1q", "dot1q": { "cvlan-id": 1 } } } } ], "ac": [ { "name": "ac1", "description": "First site", "ac-group-profile": [ "simple-profile" ], "l2-connection": { "bearer-reference": "ce1-network" } }, { "name": "ac2", "description": "Second Site", "ac-group-profile": [ "simple-profile" ], "l2-connection": { "bearer-reference": "ce1-network" } }, { "name": "ac3", "description": "Third site", "ac-group-profile": [ "simple-profile" ], "l2-connection": { "bearer-reference": "ce3-network" } }, { "name": "ac4", Boucadair, et al. Expires 2 September 2023 [Page 130] Internet-Draft ACaaS March 2023 "description": "Another site", "ac-group-profile": [ "simple-profile" ], "l2-connection": { "bearer-reference": "ce4-network" } } ] } } Figure 28: Example of a Message Body of a Request to Create Multiple ACs bound to Multiple CEs C.9. Binding Attachment Circuits to an IETF Network Slice This example shows how the AC service model complements [I-D.ietf-teas-ietf-network-slice-nbi-yang] to connect a site to a slice service. First, Figure 29 describes the end-to-end network topology as well the orchestration scopes: * The topology is made up of two sites (site1 and site2), interconnected via a Transport Network (e.g. IP/MPLS Network). A Network Function is deployed within each site in a dedicated IP Subnet. * A 5G SMO is responsible for the deployment Network Functions and the indirect management of a local Gateway (i.e., CE device). * An IETF Network Slice Controller is responsible for the deployment of IETF Network Slices accross the TN. Network Functions are deployed within each site. Boucadair, et al. Expires 2 September 2023 [Page 131] Internet-Draft ACaaS March 2023 5G SMO IETF NSC 5G SMO │ (TN ORCHESTRATOR) │ │ │ │ ◄─────┴─────► ◄─────────┴────────► ◄────┴─────► Site1 TRANSPORT NETWORK Site2 ┌───┐ ┌──────────────┐ ┌───┐ │NF1│ │ │ │NF2│ └─┬─┘ ┌───┐ ┌─┴─┐ ┌─┴─┐ ┌───┐ └─┬─┘ │ │ │ │ │ │ │ │ │ │ ──┴─────┤GW1├────────┤PE1│ │PE2├────────┤GW2├────┴── ▲ │ │ ▲ │ │ │ │ ▲ │ │ ▲ │ └───┘ │ └─┬─┘ └─┬─┘ │ └───┘ │ │ │ │ │ │ │ │ │ └──────────────┘ │ │ LAN1 │ │ LAN2 198.51.100.0/24 │ │ 203.0.113.0/24 │ │ │ │ Physical Link ID: Physical Link ID: bearerX@site1 bearerX@site2 Figure 29: An Example of a Network Topology Used to Deploy Slices Figure 30 describes the logical connectivity enforced thanks to both IETF Network Slice and Attachment Circuit models. Boucadair, et al. Expires 2 September 2023 [Page 132] Internet-Draft ACaaS March 2023 AS 65536 ◄────BGP───► AS 65550 ┌───┐ ┌────────┐ ┌───┐ │NF1│ 192.0.2.0/30 │ │ 192.0.2.4/30 │NF2│ └─┬─┘ ┌───┐ ┌──┴┐ ┌┴──┐ ┌───┐ └─┬─┘ │ │ │.1 .2│ │ │ │.5 .6│ │ │ ──┴─────┤GW1│----------│PE1│ │PE2│----------│GW2├────┴── │ │ vlan-id │ │ │ │ vlan-id │ │ └───┘ 100 └──┬┘ └┬──┘ 200 └───┘ 198.51.100.0/24 │ │ 203.0.113.0/24 └────────┘ sdp1 sdp2 ◄─────────► ◄────────────► ◄─────────► Attachment Ietf Network Attachment Circuit Slice Circuit ac1 EMBB_UP ac2 ac1 properties: - bearer-reference: bearerX@site1 - vlan-id: 100 - CE-address: 192.0.2.1/30 - PE-address: 192.0.2.2/30 - Routing: static 198.51.100.0/24 via 192.0.2.1 tag primary_UP_slice ac2 properties: - bearer-reference: bearerY@site2 - vlan-id: 200 - CE-address: 192.0.2.5/30 - PE-address: 192.0.2.6/30 - Routing: BGP local-as:65536 customer-as:65550 customer-address: 192.0.2.6 Figure 30: Logical Overview Figure 31 shows the message body of the request to create the required ACs using the Attachment Circuit module. =============== NOTE: '\' line wrapping per RFC 8792 ================ { "ietf-ac-svc:attachment-circuits": { "ac": [ { "name": "ac1", Boucadair, et al. Expires 2 September 2023 [Page 133] Internet-Draft ACaaS March 2023 "description": "Connection to site1 on vlan 100 for slice \ EMBB_UP", "requested-ac-start": "2023-12-12T05:00:00.00Z", "l2-connection": { "encapsulation": { "type": "ietf-vpn-common:dot1q", "dot1q": { "tag-type": "ietf-vpn-common:c-vlan", "cvlan-id": 100 } }, "bearer-reference": "bearerX@site1" }, "ip-connection": { "ipv4": { "local-address": "192.0.2.2", "prefix-length": 30, "address": [ { "address-id": "1", "customer-address": "192.0.2.1" } ] } }, "routing-protocols": { "routing-protocol": [ { "id": "1", "type": "ietf-vpn-common:static-routing", "static": { "cascaded-lan-prefixes": { "ipv4-lan-prefixes": [ { "lan": "198.51.100.0/24", "next-hop": "192.0.2.1", "lan-tag": "primary_UP_slice" } ] } } } ] } }, { "name": "ac2", "description": "Connection to site2 on vlan 200 for slice \ Boucadair, et al. Expires 2 September 2023 [Page 134] Internet-Draft ACaaS March 2023 EMBB_UP", "requested-ac-start": "2023-12-12T05:00:00.00Z", "l2-connection": { "encapsulation": { "type": "ietf-vpn-common:dot1q", "dot1q": { "tag-type": "ietf-vpn-common:c-vlan", "cvlan-id": 200 } }, "bearer-reference": "bearerY@site2" }, "ip-connection": { "ipv4": { "local-address": "192.0.2.6", "prefix-length": 30, "address": [ { "address-id": "1", "customer-address": "192.0.2.5" } ] } }, "routing-protocols": { "routing-protocol": [ { "id": "1", "type": "ietf-vpn-common:bgp-routing", "bgp": { "neighbor": [ { "id": "1", "local-as": "65536", "peer-as": "65550" } ] } } ] } } ] } } Figure 31: Message Body of a Request to Create Required ACs Boucadair, et al. Expires 2 September 2023 [Page 135] Internet-Draft ACaaS March 2023 Figure 32 shows the message body of the request to create the a slice service bound to the ACs created using Figure 31. Only references to these ACs are included in the Slice Service request. This example assumes that the module defined Section 4.4 is also supported by the NSC. =============== NOTE: '\' line wrapping per RFC 8792 ================ { "ietf-network-slice-service:network-slice-services": { "slo-sle-templates": { "slo-sle-template": [ { "id": "low-latency-template", "template-description": "Lowest possible latencey \ forwarding behavior" } ] }, "slice-service": [ { "service-id": "Slice EMBB_UP", "service-description": "Dedicate TN Slice for EMBB-UP", "slo-sle-template": "low-latency-template", "status": {}, "sdps": { "sdp": [ { "sdp-id": "sdp1", "ietf-ac-glue:ac-ref": [ "ac1" ] }, { "sdp-id": "sdp2", "ietf-ac-glue:ac-ref": [ "ac2" ] } ] } } ] } } Figure 32: Message Body of a Request to Create a Slice Service Referring to the ACs Boucadair, et al. Expires 2 September 2023 [Page 136] Internet-Draft ACaaS March 2023 C.10. Connecting a Virtualized Environment Running in a Cloud Provider This example (Figure 33) shows how the AC service model can be used to connect a Cloud Infrastructure to a service provider network. This example makes the following assumptions: 1. A customer (e.g., Mobile Network Team or partner) has a virtualized infrastructure running in a Cloud Provider. A simplistic deployment is represented here with a set of Virtual Machines running in a Virtual Private Environment. The deployment and management of this infrastructure is achieved via private APIs that are supported by the Cloud Provider: this realization is out of the scope of this document. 2. The connectivity to the Data Center is achieved thanks to a service based on direct attachment (physical connection), which is delivered upon ordering via an API exposed by the Cloud Provider. When ordering that connection, a unique "Connection Identifier" is generated and returned via the API. 3. The customer provisions the networking logic within the Cloud Provider based on that unique connection Identifier (i.e., logical interfaces, IP addressing, and routing). Boucadair, et al. Expires 2 September 2023 [Page 137] Internet-Draft ACaaS March 2023 .--------------------------------------------------------. | Cloud Provider DC | | | | | | ┌───┐ ┌───┐ ┌───┐ | | │VM1│ │VM2│ │VM3│ Virtual Private Cloud | | └─┬─┘ └─┬─┘ └─┬─┘ | | │.2 │.5 │.12 198.51.100.0/24 | | ─┴─────┴─────┴───┬─────────────────────── | | │.1 | | ┌───┴────┐ | | │ CLOUD │ BGP_ASN: 65536 | | │PROVIDER│ BGP md5: | | │ GW │ "nyxNER_c5sdn608fFQl3331d" | | └───┬────┘ | | │ ▲ .2 | '--------------------│-│---------------------------------' │ │ Direct Interconnection │ │ connection_id: │BGP vlan-id:50 1234-56789 │ │ 192.0.2.0/24 │ │ │ │ .1 .--------------------│-▼---------------------------------. | If-A┌──┴──┐ Service Provider Network | | │ │ | | │ PE1 │ BGP_ASN: 65550 | | │ │ | | └─────┘ | | | | | | | | | '--------------------------------------------------------' Figure 33: An Example of Realization for Connecting a Cloud Site Figure 34 illustrates the pre-provisioning logic for the physical connection to the Cloud Provider. After this connection is delivered to the service provider, the network inventory is updated with "bearer-reference" set to the value of the "Connection Identifier". Boucadair, et al. Expires 2 September 2023 [Page 138] Internet-Draft ACaaS March 2023 Customer Cloud Orchestration DIRECT INTERCONNECTION ORDERING (API) Provider ──────────────────────────────────────────────► Connection Created with "Connection ID:1234-56789 ◄─────────────────────────────────────────────── x x x x Physical Connection 1234-56789 is delivered and connected to PE1 Network Inventory Upated with: bearer-reference: 1234-56789 for PE1/Interface If-A Figure 34: Illustration of Pre-provisioning Next, API workflows can be initiated: * Cloud Provider for the configuration as per (3) above. * Service provider network via the Attachment Circuit model. This request can be used in conjunction with additional requests based on L3SM (VPN provisioning) or Network Slice Service model (5G hybrid Cloud deployment). Figure 35 shows the message body of the request to create the required ACs to connect the Cloud Provider Virtualized (VM) using the Attachment Circuit module. Note that this Cloud Provider mandates the use of MD5 authentication for establishing BGP connections. The module supports MD5 to basically accommodate the installed BGP base (including by some Cloud Providers). Note that MD5 suffers from the security weaknesses discussed in Section 2 of [RFC6151] and Section 2.1 of [RFC6952]. =============== NOTE: '\' line wrapping per RFC 8792 ================ { "ietf-ac-svc:attachment-circuits": { "ac": [ { "name": "ac--BXT-DC-customer-VPC-foo", "description": "Connection to Cloud Provider BXT on \ connection 1234-56789", "requested-ac-start": "2023-12-12T05:00:00.00Z", Boucadair, et al. Expires 2 September 2023 [Page 139] Internet-Draft ACaaS March 2023 "l2-connection": { "encapsulation": { "type": "ietf-vpn-common:dot1q", "dot1q": { "tag-type": "ietf-vpn-common:c-vlan", "cvlan-id": 50 } }, "bearer-reference": "1243-56789" }, "ip-connection": { "ipv4": { "local-address": "192.0.2.1", "prefix-length": 24, "address": [ { "address-id": "1", "customer-address": "192.0.2.2" } ] } }, "routing-protocols": { "routing-protocol": [ { "id": "1", "type": "ietf-vpn-common:bgp-routing", "bgp": { "neighbor": [ { "id": "1", "local-as": "65550", "peer-as": "65536", "authentication": { "keying-material": "\ nyxNER_c5sdn608fFQl3331d" } } ] } } ] } } ] } } Boucadair, et al. Expires 2 September 2023 [Page 140] Internet-Draft ACaaS March 2023 Figure 35: Message Body of a Request to Create the ACs for Connecting to the Cloud Provider Acknowledgments TBC. Contributors Victor Lopez Nokia Email: victor.lopez@nokia.com Ivan Bykov Ribbon Communications Email: Ivan.Bykov@rbbn.com Qin Wu Huawei Email: bill.wu@huawei.com Authors' Addresses Mohamed Boucadair (editor) Orange Email: mohamed.boucadair@orange.com Richard Roberts (editor) Juniper Email: rroberts@juniper.net Oscar Gonzalez de Dios Telefonica Email: oscar.gonzalezdedios@telefonica.com Samier Barguil Giraldo Nokia Email: samier.barguil_giraldo@nokia.com Bo Wu Huawei Technologies Boucadair, et al. Expires 2 September 2023 [Page 141] Internet-Draft ACaaS March 2023 Email: lana.wubo@huawei.com Boucadair, et al. Expires 2 September 2023 [Page 142]