RFC 9833

A Common YANG Data Model for Attachment Circuits

πŸ“… published September 2025, from ietf

RFC 9833: A Common YANG Data Model for Attachment Circuits πŸŽ€

Internet Engineering Task Force (IETF) πŸ’– Request for Comments: 9833 ✨ Category: Standards Track πŸ‘‘ ISSN: 2070-1721 Date: September 2025 🌸

Authors: M. Boucadair, Ed. (Orange) 🧚, R. Roberts, Ed. (Juniper) πŸ¦‹, O. Gonzalez de Dios (Telefonica) πŸ“, S. Barguil (Nokia) 🌈, and B. Wu (Huawei Technologies) πŸ’œ

Okay bestie, this is the spec that gives attachment circuits (ACs) a shared YANG data model. YANG is the modelling language people use to describe network config and state. Its header lists no Obsoletes or Updates entries, so it's a fresh doc that doesn't replace or patch anything. It's on the Standards Track, so it's an official Internet standard, which is so iconic πŸ”₯

Abstract

The document specifies a common attachment circuits (ACs) YANG data model, which is designed to be reusable by other models. This design is meant to ensure consistent AC structures among models that manipulate ACs. For example, this common model can be reused by service models to expose ACs as a service, service models that require binding a service to a set of ACs, network and device models to provision ACs, etc.

Basically, the whole point is that every model dealing with ACs can share one common AC structure instead of each doing its own thing πŸ’…

Status of This Memo

This is an Internet Standards Track document.

This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.

Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at https://www.rfc-editor.org/info/rfc9833.

Copyright (c) 2025 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
2.  Conventions and Definitions
3.  Relationship to Other AC Data Models
4.  Description of the AC Common YANG Module
  4.1.  Features
  4.2.  Identities
  4.3.  Reusable Groupings
5.  Common Attachment Circuit YANG Module
6.  Security Considerations
7.  IANA Considerations
8.  References
  8.1.  Normative References
  8.2.  Informative References
Appendix A.  Full Tree
Acknowledgments
Contributors
Authors' Addresses

1. Introduction ✨

Okay so, connectivity services are how networks hook customers up, and they plug in at dedicated terminating points. Think Service Functions (SFs), Customer Premises Equipment (CPE), Autonomous System Border Routers (ASBRs), data center gateways, or Internet Exchange Points (IXPs). A connectivity service moves data to and from those terminating points, and the goals for it can be negotiated and agreed between a customer and a network provider 🀝

For that data to actually flow inside the provider network, the links between the customer's terminating points and the provider network (usually a Provider Edge (PE)) need proper setup first. That setup is what this doc calls an "attachment circuit" (AC), and the underlying link is called the "bearer" 🧚

When a customer asks for a new service, it can ride on existing ACs or need brand new ones. Whether an AC is dedicated to one service or shared across several just depends on the deployment πŸ’–

Here's the vibe in Figure 1. A Customer Edge (CE) can be a physical box or a logical entity. From the network's side, a CE is treated as a peer Service Attachment Point (SAP) [RFC9408]. A CE can be dedicated to one service (like a Layer 3 Virtual Private Network (VPN) or Layer 2 VPN) or host multiple services (like SFs [RFC7665]). A single AC, from the provider's point of view, can be bound to one or more peer SAPs, like "CE1" and "CE2". As [RFC4364] explains, multiple CEs can attach to a PE over the same AC, which usually happens when the Layer 2 infrastructure between the CE and the network supports a multipoint service. A single CE can also terminate multiple ACs, like "CE3" and "CE4", and those may be carried over the same bearers or different ones 🌸

                             .--------------------.
                             |                    |
       .------.              |                   .--.  (b1)   .-----.
      |       +----.         |                   |  +---AC---+      |
      |  CE1  |    |         |                   |PE+---AC---+  CE3 |
      '------'     |       .--.                  '--'  (b2)  '-----'
                   +---AC--+PE|     Network       |
       .------.    |       '--'                  .--.  (b3)   .-----.
      |       |    |         |                   |  +---AC---+      |
      |  CE2  +----'         |                   |PE+---AC---+  CE4 |
      '------'               |                   '--'  (b3)  '---+-'
                             |          .--.      |              |
                             '----------+PE+------'              |
                                        '--'                     |
                                         |                       |
                                         '-----------AC----------'
      (bx) = bearer Id x

Figure 1: Examples of ACs

This doc specifies a common module, called "ietf-ac-common", for ACs (Section 5). It's built to be reused by other models so every AC-handling module stays consistent 🫢 For example, service models can reuse it to expose AC as a Service (ACaaS) (e.g., [RFC9834]), or to bind a service to a set of ACs (e.g., RFC 9543 Network Slice Service [YANG-NSS])). Network models can use it to provision ACs (e.g., [RFC9835]), and device models can too, among others ✨

The common AC module also makes data inheritance between modules easier, like going from service models to network models as per [RFC8969] πŸ¦‹

The YANG data model in this document conforms to the Network Management Datastore Architecture (NMDA) defined in [RFC8342] πŸ’œ

2. Conventions and Definitions 🌈

The meanings of the symbols in the YANG tree diagrams are defined in [RFC8340].

LxSM refers to both the L2VPN Service Model (L2SM) [RFC8466] and the L3VPN Service Model (L3SM) [RFC8299].

LxNM refers to both the L2VPN Network Model (L2NM) [RFC9291] and the L3VPN Network Model (L3NM) [RFC9182].

This document uses the following term:

Bearer: A physical or logical link that connects a CE (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 bearer within its network (e.g., customer line identifier). Such a reference can be retrieved by a customer and then 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 AC.

One or multiple ACs may be hosted over the same bearer (e.g., multiple Virtual Local Area Networks (VLANs) on the same bearer that is provided by a physical link).

The names of data nodes are prefixed using the prefix associated with the corresponding imported YANG module as shown in Table 1. πŸ“

     +============+==================+========================+
     | Prefix     | Module           | Reference              |
     +============+==================+========================+
     | inet       | ietf-inet-types  | Section 4 of [RFC6991] |
     +------------+------------------+------------------------+
     | key-chain  | ietf-key-chain   | [RFC8177]              |
     +------------+------------------+------------------------+
     | nacm       | ietf-netconf-acm | [RFC8341]              |
     +------------+------------------+------------------------+
     | vpn-common | ietf-vpn-common  | [RFC9181]              |
     +------------+------------------+------------------------+
     | yang       | ietf-yang-types  | Section 3 of [RFC6991] |
     +------------+------------------+------------------------+

Table 1: Modules and Their Associated Prefixes

3. Relationship to Other AC Data Models 🧚

Figure 2 shows how all the AC data models fit together πŸ’–

  • "ietf-ac-common" (Section 5)
  • "ietf-bearer-svc" (Section 6.1 of [RFC9834])
  • "ietf-ac-svc" (Section 6.2 of [RFC9834])
  • "ietf-ac-ntw" [RFC9835]
  • "ietf-ac-glue" [RFC9836]
                           ietf-ac-common
                            ^     ^     ^
                            |     |     |
                 .----------'     |     '----------.
                 |                |                |
                 |                |                |
           ietf-ac-svc <--- ietf-bearer-svc        |
              ^    ^                               |
              |    |                               |
              |    '------------------------ ietf-ac-ntw
              |                                    ^
              |                                    |
              |                                    |
              '------------ ietf-ac-glue ----------'

           X --> Y: X imports Y

Figure 2: AC Data Models

Here's the tea πŸ«– The "ietf-ac-common" module is imported by the "ietf-bearer-svc", "ietf-ac-svc", and "ietf-ac-ntw" modules. Bearers managed using "ietf-bearer-svc" can be referenced by service ACs managed using "ietf-ac-svc". And a bearer managed using "ietf-bearer-svc" can list the set of ACs that use it. To make it easy to match an AC service request with the AC actually provisioned in the network, "ietf-ac-ntw" leverages the AC references exposed by "ietf-ac-svc". Lastly, to bind Layer 2 VPN or Layer 3 VPN services to ACs, "ietf-ac-glue" augments the LxSM and LxNM with AC service references exposed by "ietf-ac-svc" and AC network references exposed by "ietf-ac-ntw" πŸ‘‘

4. Description of the AC Common YANG Module πŸ’…

The full tree diagram of the module is provided in Appendix A. Subtrees are provided in the following subsections for the reader's convenience. 🌟

4.1. Features ✨

okay bestie, this module has a few features πŸ’… (basically the yes/no switches a server can flip to say what it supports):

  • layer2-ac: used to say "yep, I support ACs with Layer 2 properties" πŸŽ€
  • layer3-ac: same energy, but for ACs with Layer 3 properties πŸ¦‹
  • server-assigned-reference: used to say the server can make its own references so the client can reach the relevant resources 🌐 Typically, that server is a network controller or a router in a provider network.

ok so for server-assigned-reference, the client first makes a bearer request using a name it picked πŸ’­ but if this feature is supported, the request also includes a server-generated reference 🧚 and that reference can be used later when you ask for an AC to be created over the existing bearer. main character energy, fr πŸ‘‘

4.2. Identities

the module defines a whole set of identities 🌈 including these:

  • address-allocation-type: used to specify the IP address allocation type in an AC 🏠 For example, it's how you indicate whether the provider network gives you DHCP service, DHCP relay, or static addressing. Also, for IPv6, Stateless Address Autoconfiguration (SLAAC) [RFC4862] can be used.
  • local-defined-next-hop: used to specify next-hop actions 🚧 For example, this can say "discard traffic for a given destination," or "treat traffic toward addresses within the specified next-hop prefix as though they're connected to a local link." πŸ”—
  • l2-tunnel-type: used to control the Layer 2 tunnel selection for an AC 🎯 The current version supports pseudowire, Virtual Private LAN Service (VPLS), and Virtual eXtensible Local Area Network (VXLAN). 🌸
  • l3-tunnel-type: used to control the Layer 3 tunnel selection for an AC 🧁 Examples of this type are IP-in-IP [RFC2003], IPsec [RFC4301], and Generic Routing Encapsulation (GRE) [RFC1701][RFC1702][RFC7676].
  • precedence-type: used to indicate the redundancy type when requesting ACs πŸ‘― For example, this identity can tag primary and secondary ACs.
  • role: used to indicate the type of an AC 🎭 That's User-to-Network Interface (UNI), Network-to-Network Interface (NNI), or public NNI.

The reader may refer to [MEF6], [MEF17], [RFC6004], or [RFC6215] for examples of discussions about how UNI and NNI reference points get used πŸ“š

  • New administrative status types: okay so, on top of the status types already defined in [RFC9181], this document defines these ones 🫢
    • awaiting-validation: reports that a request is pending an administrator approval ⏳
    • awaiting-processing: reports that a request was approved and validated but is still waiting for more processing before activation πŸ› οΈ
    • admin-prohibited: reports that a request can't be handled because of administrative policies 🚫
    • rejected: reports that a request was rejected for reasons not covered by the other status types πŸ’€
  • bgp-role: used to indicate the BGP role when establishing a BGP session per [RFC9234] 🀝

4.3. Reusable Groupings

the module also defines a set of reusable groupings ♻️ including the following:

  • service-status (Figure 3): controls the administrative service status and reports the operational service status 🚦
  • ac-profile-cfg (Figure 3): a grouping with a set of valid provider profile identifiers πŸ—‚οΈ These profiles are supported:
    • 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]) 🎚️
    • failure-detection-profile-identifier: refers to a set of failure detection policies (e.g., 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 of, for example, 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 πŸ—ΊοΈ
  • op-instructions (Figure 3): defines a set of parameters to specify basic scheduling instructions and report related events for a service request (e.g., AC or bearer) (service-status) ⏰ Advanced scheduling groupings are defined in [YANG-SCHEDULE].
        grouping service-status:
          +-- status
             +-- admin-status
             |  +-- status?        identityref
             |  +--ro last-change?   yang:date-and-time
             +--ro oper-status
                +--ro status?        identityref
                +--ro last-change?   yang:date-and-time
        grouping ac-profile-cfg:
          +-- valid-provider-identifiers
             +-- encryption-profile-identifier* [id]
             |  +-- id   string
             +-- qos-profile-identifier* [id]
             |  +-- id   string
             +-- failure-detection-profile-identifier* [id]
             |  +-- id   string
             +-- forwarding-profile-identifier* [id]
             |  +-- id   string
             +-- routing-profile-identifier* [id]
                +-- id   string
        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

             Figure 3: Service Status, Profiles, and Operational
                            Instructions Groupings
  • Layer 2 encapsulations (Figure 4): groupings for these encapsulation schemes are supported: dot1Q, QinQ, and priority-tagged 🏷️
  • Layer 2 tunnel services (Figure 4): these groupings define Layer 2 tunnel services that may be needed for activating an AC πŸš‡ Examples of supported Layer 2 services are the pseudowire (Section 6.1 of [RFC8077]), VPLS, or VXLAN [RFC7348]. 🌊
        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

                    Figure 4: Layer 2 Connection Groupings
  • Layer 3 address allocation (Figure 5): defines both IPv4 and IPv6 groupings to specify IP address allocation over an AC 🌍 Both dynamic and static address schemes are supported. πŸ”„

For both IPv4 and IPv6, address-allocation-type is used to indicate the IP address allocation mode to activate. When address-allocation-type is set to provider-dhcp, DHCP assignments can be made locally or by an external DHCP server 🏒 That behavior is controlled by setting dhcp-service-type.

Note that if address-allocation-type is set to slaac, the Prefix Information option of Router Advertisements that will be issued for SLAAC purposes will carry the IPv6 prefix determined by local-address and prefix-length πŸ“‘

  • IP connections (Figure 5): defines IPv4 and IPv6 groupings for managing Layer 3 connectivity over an AC πŸ›°οΈ Both basic and more elaborated IP connection groupings are supported. ✨

Okay bestie, now we're in the Layer 3 connection groupings πŸ¦‹ these are the building blocks for IP stuff, and it's giving very structured ✨

      grouping ipv4-allocation-type:
        +-- prefix-length?             uint8
        +-- 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)?
           |     +--:(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

Figure 5: Layer 3 Connection Groupings

Routing parameters & Operations, Administration, and Maintenance (OAM) (Figure 6): this is where the protocol drama lives πŸ›£οΈ In addition to static routing, the module supports the following routing protocols: BGP [RFC4271], OSPF [RFC4577] [RFC6565], IS-IS [ISO10589][RFC1195][RFC5308], and RIP [RFC2453]. 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]. More details about supported routing groupings are provided hereafter:

  • Authentication: These groupings include the required information to manage the authentication of OSPF, IS-IS, BGP, and RIP. The groupings support local specification of authentication keys and the associated authentication algorithm to accommodate legacy implementations that do not support key chains [RFC8177].

Note that this version of the common AC model covers authentication options that are common to both OSPFv2 [RFC4577] and OSPFv3 [RFC6565]; as such, the model does not support [RFC4552].

Similar to [RFC9182], this version of the common AC model assumes that parameters specific to the TCP Authentication Option (TCP-AO) are preconfigured as part of the key chain that is referenced in the model. 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]).

  • BGP peer groups ('bgp-peer-group-without-name' and 'bgp-peer-group-with-name'): Includes a set of parameters to identify a BGP peer group. Such a group can be defined by providing a local Autonomous System Number (ASN), a customer's ASN, and the address families to be activated for this group. BGP peer groups can be identified by a name ('bgp-peer-group-with-name').
  • Basic OSPF and IS-IS parameters ('ospf-basic' and 'isis-basic'): These groupings include the minimal set of routing configuration that is required for the activation of OSPF and IS-IS.
  • Static routing: Parameters to configure an entry or a list of IP static routing entries.

The 'redundancy-group' grouping lists the groups to which an AC belongs [RFC9181]. For example, the 'group-id' is used to associate redundancy or protection constraints of ACs.

        grouping bgp-authentication:
          +-- authentication
             +-- enabled?           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
        grouping ospf-authentication:
          +-- authentication
             +-- enabled?           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
             +-- enabled?           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
             +-- enabled?           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:
          +-- local-as?         inet:as-number
          +-- peer-as?          inet:as-number
          +-- address-family?   identityref
          +-- role?             identityref
        grouping bgp-peer-group-with-name:
          +-- name?             string
          +-- local-as?         inet:as-number
          +-- peer-as?          inet:as-number
          +-- address-family?   identityref
          +-- role?             identityref
        grouping ospf-basic:
          +-- address-family?   identityref
          +-- area-id           yang:dotted-quad
          +-- metric?           uint16
        grouping isis-basic:
          +-- address-family?   identityref
          +-- area-address      area-address
        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
                |  +--ro 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
                |  +--ro last-change?   yang:date-and-time
                +--ro oper-status
                   +--ro status?        identityref
                   +--ro last-change?   yang:date-and-time
        grouping bfd:
          +-- holdtime?   uint32
        grouping redundancy-group:
          +-- group* [group-id]
             +-- group-id?     string
             +-- precedence?   identityref

Figure 6: Routing & OAM Groupings

Bandwidth parameters (Figure 7): ooh, the money stuff πŸ’… Bandwidth parameters can be represented using the Committed Information Rate (CIR), the Excess Information Rate (EIR), or the Peak Information Rate (PIR).

These parameters can be provided per bandwidth type. Type values are taken from [RFC9181]. For example, the following values can be used:

  • 'bw-per-cos': The bandwidth is per Class of Service (CoS).
  • 'bw-per-site': The bandwidth is for all ACs that belong to the same site.
        grouping bandwidth-parameters:
          +-- cir?   uint64
          +-- cbs?   uint64
          +-- eir?   uint64
          +-- ebs?   uint64
          +-- pir?   uint64
          +-- pbs?   uint64
        grouping bandwidth-per-type:
          +-- bandwidth* [bw-type]
             +-- bw-type      identityref
             +-- (type)?
                +--:(per-cos)
                |  +-- cos* [cos-id]
                |     +-- cos-id    uint8
                |     +-- cir?      uint64
                |     +-- cbs?      uint64
                |     +-- eir?      uint64
                |     +-- ebs?      uint64
                |     +-- pir?      uint64
                |     +-- pbs?      uint64
                +--:(other)
                   +-- cir?   uint64
                   +-- cbs?   uint64
                   +-- eir?   uint64
                   +-- ebs?   uint64
                   +-- pir?   uint64
                   +-- pbs?   uint64

Figure 7: Bandwidth Groupings πŸŽ€

5. Common Attachment Circuit YANG Module ✨

Okay so this is where the actual YANG module lives, bestie πŸ’– It pulls in types from [RFC6991], [RFC8177], [RFC9181], and [IEEE_802.1Q], so you'll see those imports popping up right away. Here's the whole thing, verbatim, so you can see every single line πŸ‘€

   This module uses types defined in [RFC6991], [RFC8177], [RFC9181],
   and [IEEE_802.1Q].

   <CODE BEGINS> file "ietf-ac-common@2025-09-29.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-netconf-acm {
       prefix nacm;
       reference
         "RFC 8341: Network Configuration Access Control Model";
     }
     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:   <https://datatracker.ietf.org/wg/opsawg/>
        WG List:  <mailto:opsawg@ietf.org>

        Editor:   Mohamed Boucadair
                  <mailto:mohamed.boucadair@orange.com>
        Editor:   Richard Roberts
                  <mailto:rroberts@juniper.net>
        Author:   Oscar Gonzalez de Dios
                  <mailto:oscar.gonzalezdedios@telefonica.com>
        Author:   Samier Barguil
                  <mailto:ssamier.barguil_giraldo@nokia.com>
        Author:   Bo Wu
                  <mailto:lana.wubo@huawei.com>";
     description
       "This YANG module defines a common attachment circuit (AC)
        YANG module with a set of reusable features, types,
        identities, and groupings.

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

     revision 2025-09-29 {
       description
         "Initial revision.";
       reference
         "RFC 9833: A Common YANG Data Model for Attachment Circuits";
     }

     /****************************Features************************/

     feature layer2-ac {
       description
         "Indicates support of Layer 2 ACs.";
     }

     feature layer3-ac {
       description
         "Indicates support of Layer 3 ACs.";
     }

     feature server-assigned-reference {
       description
         "Indicates support for server-generated references and use
          of such references to access related resources.";
     }

     /****************************Identities************************/
     // IP address allocation types

     identity address-allocation-type {
       description
         "Base identity for address allocation type on 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).";
       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
          infrastructure.";
     }

     // next-hop actions

     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.";
     }

     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.";
     }

     // Layer 2 tunnel types

     identity l2-tunnel-type {
       description
         "Base identity for Layer 2 tunnel selection for an AC.";
     }

     identity pseudowire {
       base l2-tunnel-type;
       description
         "Pseudowire tunnel termination for the AC.";
     }

     identity vpls {
       base l2-tunnel-type;
       description
         "Virtual Private LAN Service (VPLS) tunnel termination for
          the AC.";
     }

     identity vxlan {
       base l2-tunnel-type;
       description
         "Virtual eXtensible Local Area Network (VXLAN) tunnel
          termination for the AC.";
     }

     // Layer 3 tunnel types

     identity l3-tunnel-type {
       description
         "Base identity for Layer 3 tunnel selection for an AC.";
     }

     identity ip-in-ip {
       base l3-tunnel-type;
       description
         "IP-in-IP tunneling.";
       reference
         "RFC 2003: IP Encapsulation within IP";
     }

     identity ipsec {
       base l3-tunnel-type;
       description
         "IP Security (IPsec).";
       reference
         "RFC 4301: Security Architecture for the Internet
                    Protocol";
     }

     identity gre {
       base l3-tunnel-type;
       description
         "Generic Routing Encapsulation (GRE).";
       reference
         "RFC 1701: Generic Routing Encapsulation (GRE)
          RFC 1702: Generic Routing Encapsulation over IPv4 networks
          RFC 7676: IPv6 Support for Generic Routing Encapsulation
                    (GRE)";
     }

     // Tagging precedence

     identity precedence-type {
       description
         "Redundancy type.  Attachment to a network can be created
          with primary and secondary tagging.";
     }

     identity primary {
       base precedence-type;
       description
         "Identifies the main AC.";
     }

     identity secondary {
       base precedence-type;
       description
         "Identifies a secondary AC.";
     }

     // AC type

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

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

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

     identity public-nni {
       base role;
       description
         "Public peering.  This is typically set using a shared
          network, such as an Internet Exchange Point (IXP).";
     }

     // More Admin status types

     identity awaiting-validation {
       base vpn-common:administrative-status;
       description
         "This administrative status reflects that a request is
          pending an administrator approval.";
     }

     identity awaiting-processing {
       base vpn-common:administrative-status;
       description
         "This administrative status reflects that a request was
          approved and validated but is awaiting more processing
          before activation.";
     }

     identity admin-prohibited {
       base vpn-common:administrative-status;
       description
         "This administrative status reflects that a request cannot
          be handled because of administrative policies.";
     }

     identity rejected {
       base vpn-common:administrative-status;
       description
         "This administrative status reflects that a request was
          rejected because, e.g., there are no sufficient resources
          or other reasons not covered by the other status types.";
     }

     // BGP role

     identity bgp-role {
       description
         "Used to indicate the BGP role when establishing a BGP
          session.";
       reference
         "RFC 9234: Route Leak Prevention and Detection Using
                    Roles in UPDATE and OPEN Messages, Section 4";
     }

     identity provider {
       base bgp-role;
       description
         "The local AS is a transit provider of the remote AS.";
     }

     identity client {
       base bgp-role;
       description
         "The local AS is a transit customer of the remote AS.";
     }

     identity rs {
       base bgp-role;
       description
         "The local AS is a Route Server (RS).";
     }

     identity rs-client {
       base bgp-role;
       description
         "The local AS is a client of an RS, and the RS is the
          remote AS.";
     }

     identity peer {
       base bgp-role;
       description
         "The local and remote ASes have a peering relationship.";
     }

     /****************************Typedefs************************/

     typedef predefined-next-hop {
       type identityref {
         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********************/
     /**** Service Status ****/

Okay bestie, the next chunk is all about the building blocks: service status, AC profiles, operational schedules, and the Layer 2 and Layer 3 groupings. Let's gooo πŸŽ€βœ¨

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

     /**** A set of profiles ****/

     grouping ac-profile-cfg {
       description
         "Grouping for AC profile configuration.";
       container valid-provider-identifiers {
         description
           "Container for valid provider profile identifiers.
            The profiles only have significance within the service
            provider's administrative domain.";
         list encryption-profile-identifier {
           key "id";
           description
             "List of encryption profile identifiers.";
           leaf id {
             type string;
             description
               "Identification of the encryption profile to be used.";
           }
         }
         list qos-profile-identifier {
           key "id";
           description
             "List of QoS profile identifiers.";
           leaf id {
             type string;
             description
               "Identification of the QoS profile to be used.";
           }
         }
         list failure-detection-profile-identifier {
           key "id";
           description
             "List of BFD profile identifiers.";
           leaf id {
             type string;
             description
               "Identification of the failure detection (e.g., BFD)
                profile to be used.";
           }
         }
         list forwarding-profile-identifier {
           key "id";
           description
             "List of forwarding profile identifiers.";
           leaf id {
             type string;
             description
               "Identification of the forwarding profile to be used.";
           }
         }
         list routing-profile-identifier {
           key "id";
           description
             "List of routing profile identifiers.";
           leaf id {
             type string;
             description
               "Identification of the routing profile to be used by
                the routing protocols over an AC.";
           }
         }
         nacm:default-deny-write;
       }
     }

     /**** 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
           "Indicates the actual date and time when the service
            actually was enabled.";
       }
       leaf actual-stop {
         type yang:date-and-time;
         config false;
         description
           "Indicates the actual date and time when the service
            actually was disabled.";
       }
     }

     /**** Layer 2 encapsulations ****/
     // Dot1q

     grouping dot1q {
       description
         "Defines a grouping for tagged interfaces.";
       leaf tag-type {
         type identityref {
           base vpn-common:tag-type;
         }
         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;
         }
         description
           "Tag type.";
       }
     }

     // QinQ

     grouping qinq {
       description
         "Includes QinQ parameters.";
       leaf tag-type {
         type identityref {
           base vpn-common:tag-type;
         }
         description
           "Tag type.";
       }
       leaf svlan-id {
         type uint16 {
           range "1..4094";
         }
         description
           "Service VLAN (S-VLAN) identifier.";
       }
       leaf cvlan-id {
         type uint16 {
           range "1..4094";
         }
         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 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.";
       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;
         description
           "VXLAN Network Identifier (VNI).";
       }
       leaf peer-mode {
         type identityref {
           base vpn-common:vxlan-peer-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.";
       }
     }

     // Layer 2 Tunnel service

     grouping l2-tunnel-service {
       description
         "Defines a Layer 2 tunnel termination.";
       leaf type {
         type identityref {
           base l2-tunnel-type;
         }
         description
           "Selects the tunnel termination type for an AC.";
       }
       container pseudowire {
         when "derived-from-or-self(../type, 'ac-common: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, 'ac-common: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, 'ac-common: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";
         }
         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(), 'ac-common:slaac') "
            + "or derived-from-or-self(current(), "
            + "'ac-common:provider-dhcp-slaac'))" {
           error-message "SLAAC is only applicable to IPv6.";
         }
         description
           "Defines how IPv4 addresses are allocated to the peer
            termination points.";
       }
     }

     // 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
            termination points.";
       }
     }

     // Basic parameters for an IPv4 connection

     grouping ipv4-connection-basic {
       description
         "Basic set for IPv4-specific parameters for the connection.";
       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 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
                  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 parameters for an IPv6 connection

Okay so this is the IPv6 and IPv4 connection stuff, and it's giving ✨ total DHCP-and-address-pool drama πŸ’…

     grouping ipv6-connection-basic {
       description
         "Basic set for 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, 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
                  the 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:ipv6-address;
                 description
                   "IPv6 addresses of the customer's DHCP server.";
               }
             }
           }
         }
       }
     }

     // Full parameters for the IPv4 connection

     grouping ipv4-connection {
       description
         "IPv4-specific connection 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 address 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 {
             description
               "A choice for how IPv4 addresses are assigned.";
             case number {
               leaf number-of-dynamic-address {
                 type uint16;
                 description
                   "Specifies the number of IP addresses to be assigned
                    to the customer on the AC.";
               }
             }
             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 dynamically
                      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: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
               "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 parameters for the IPv6 connection

     grouping ipv6-connection {
       description
         "IPv6-specific connection parameters.";
       leaf local-address {
         type inet:ipv6-address;
         description
           "IPv6 address of the provider side.";
       }
       leaf virtual-address {
         type inet:ipv6-address;
         description
           "This address 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 {
             description
               "A choice for how IPv6 addresses are assigned.";
             case number {
               leaf number-of-dynamic-address {
                 type uint16;
                 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 dynamically
                      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;
                     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.";
               }
             }
           }
         }
         case static-addresses {
           description
             "Lists the IPv6 addresses that are used by the customer.";
           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

okay bestie, we're still in the YANG module and the authentication groupings are giving glow-up πŸ”πŸ’…

The BGP one is the main character πŸ‘‘ It has an enabled leaf, and the keying-material container only shows up when enabled is 'true' ✨ After that you pick one option from three cases: ao (TCP-AO from RFC 5925), md5 (RFC 4364 Section 13.2), or explicit, which takes a key-id, a key, and a crypto-algorithm πŸ¦‹

     grouping bgp-authentication {
       description
         "Grouping for BGP authentication parameters.";
       container authentication {
         description
           "Container for BGP authentication parameters.";
         leaf enabled {
           type boolean;
           description
             "Enables or disables authentication.";
         }
         container keying-material {
           when "../enabled = 'true'";
           description
             "Container for describing how a BGP routing session is to
              be secured on an AC.";
           choice option {
             description
               "Choice of authentication options.";
             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
                   "Specifies a reference to the MD5 key chain.";
                 reference
                   "RFC 8177: YANG Data Model for Key Chains";
               }
             }
             case explicit {
               leaf key-id {
                 type uint32;
                 description
                   "Specifies a 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 {
                   base key-chain:crypto-algorithm;
                 }
                 description
                   "Indicates the cryptographic algorithm associated
                    with the key.";
               }
             }
           }
         }
       }
     }

OSPF gets the same vibe but with its own flavour 🌸 It has auth-key-chain (just a key-chain name) or auth-key-explicit (same key-id, key, and crypto-algorithm set as BGP) πŸ’–

     grouping ospf-authentication {
       description
         "Authentication configuration.";
       container authentication {
         description
           "Container for OSPF authentication parameters.";
         leaf enabled {
           type boolean;
           description
             "Enables or disables authentication.";
         }
         container keying-material {
           when "../enabled = 'true'";
           description
             "Container for describing how an OSPF session is to be
              secured for an AC.";
           choice option {
             description
               "Options for OSPF authentication.";
             case auth-key-chain {
               leaf key-chain {
                 type key-chain:key-chain-ref;
                 description
                   "Specifies the name of the key chain.";
               }
             }
             case auth-key-explicit {
               leaf key-id {
                 type uint32;
                 description
                   "Specifies a key identifier.";
               }
               leaf key {
                 type string;
                 description
                   "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.";
               }
             }
           }
         }
       }
     }

IS-IS is basically OSPF's twin πŸ‘―β€β™€οΈ Same enabled switch, same two cases, and the only real differences are the wording in the descriptions 🧚

     grouping isis-authentication {
       description
         "IS-IS authentication configuration.";
       container authentication {
         description
           "Container for IS-IS authentication parameters.";
         leaf enabled {
           type boolean;
           description
             "Enables or disables authentication.";
         }
         container keying-material {
           when "../enabled = 'true'";
           description
             "Describes how an IS-IS session is secured
              over an AC.";
           choice option {
             description
               "Options for IS-IS authentication.";
             case auth-key-chain {
               leaf key-chain {
                 type key-chain:key-chain-ref;
                 description
                   "Specifies the name of the key chain.";
               }
             }
             case auth-key-explicit {
               leaf key-id {
                 type uint32;
                 description
                   "Indicates a 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.";
               }
             }
           }
         }
       }
     }

RIP is the cute minimalist of the group πŸ“ It has the same key-chain option, but its explicit case skips key-id entirely and only has key and crypto-algorithm 🌈

     grouping rip-authentication {
       description
         "RIP authentication configuration.";
       container authentication {
         description
           "Includes RIP authentication parameters.";
         leaf enabled {
           type boolean;
           description
             "Enables or disables authentication.";
         }
         container keying-material {
           when "../enabled = 'true'";
           description
             "Describes how a RIP session is to be secured
              on an AC.";
           choice option {
             description
               "Specifies the authentication scheme.";
             case auth-key-chain {
               leaf key-chain {
                 type key-chain:key-chain-ref;
                 description
                   "Indicates the name of the key chain.";
               }
             }
             case auth-key-explicit {
               leaf key {
                 type string;
                 description
                   "Specifies a 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;
         description
           "Indicates a local Autonomous System 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.";
       }
       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 IPv6 will be
            activated.";
       }
       leaf role {
         type identityref {
           base ac-common:bgp-role;
         }
         description
           "Specifies the BGP role (provider, customer, peer, etc.).";
         reference
           "RFC 9234: Route Leak Prevention and Detection Using
                      Roles in UPDATE and OPEN Messages, Section 4";
       }
     }

     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
           "Specifies the name of the BGP peer-group.";
       }
       uses bgp-peer-group-without-name;
     }

     grouping ospf-basic {
       description
         "Includes 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
           "Specifies an 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;
         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
           "Specifies an area address.";
       }
     }

     // Static routing

     grouping ipv4-static-rtg-entry {
       description
         "Parameters to configure a specific IPv4 static routing
          entry.";
       leaf lan {
         type inet:ipv4-prefix;
         description
           "Indicates an IPv4 LAN prefix.";
       }
       leaf lan-tag {
         type string;
         description
           "Internal tag to be used in service 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;
         description
           "Indicates the metric associated with the static route.";
       }
     }

     grouping ipv4-static-rtg {
       description
         "A set of parameters 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.";
         uses ipv4-static-rtg-entry;
         uses ac-common:service-status;
       }
     }

Static routing is up next, and it's where the LAN prefix, its tag, next hop, and metric all live together πŸ›£οΈβœ¨

     grouping ipv6-static-rtg-entry {
       description
         "Parameters to configure a specific IPv6 static routing
          entry.";
       leaf lan {
         type inet:ipv6-prefix;
         description
           "Indicates an IPv6 LAN prefix.";
       }
       leaf lan-tag {
         type string;
         description
           "Internal tag to be used in service (e.g., 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;
         description
           "Indicates the metric associated with the static route.";
       }
     }

     grouping ipv6-static-rtg {
       description
         "A set of parameters 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 customer-terminating points.";
         uses ipv6-static-rtg-entry;
         uses ac-common:service-status;
       }
     }

     // OAM

     grouping bfd {
       description
         "Groups a set of basic BFD parameters.";
       leaf holdtime {
         type uint32;
         units "milliseconds";
         description
           "Specifies the 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";
       }
     }

     // redundancy

     grouping redundancy-group {
       description
         "A grouping for redundancy group.";
       list group {
         key "group-id";
         description
           "Specifies a list of group identifiers.";
         leaf group-id {
           type string;
           description
             "Indicates the group-id to which an AC belongs.";
         }
         leaf precedence {
           type identityref {
             base ac-common:precedence-type;
           }
           description
             "Defines redundancy of an AC.";
         }
       }
     }

     // QoS

     grouping bandwidth-parameters {
       description
         "A grouping for bandwidth parameters.";
       leaf cir {
         type uint64;
         units "bps";
         description
           "Committed Information Rate (CIR).  The maximum number of
            bits that a port can receive or send during one second over
            an interface.";
       }
       leaf cbs {
         type uint64;
         units "bytes";
         description
           "Committed Burst Size (CBS).  CBS controls the bursty nature
            of the traffic.  Traffic that does not use the configured
            CIR accumulates credits until the credits reach the
            configured CBS.";
       }
       leaf eir {
         type uint64;
         units "bps";
         description
           "Excess Information Rate (EIR), i.e., excess frame delivery
            allowed not subject to a Service Level Agreement (SLA).
            The traffic rate can be limited by EIR.";
       }
       leaf ebs {
         type uint64;
         units "bytes";
         description
           "Excess Burst Size (EBS).  The bandwidth available for burst
            traffic from the EBS is subject to the amount of bandwidth
            that is accumulated during periods when traffic allocated
            by the EIR policy is not used.";
       }
       leaf pir {
         type uint64;
         units "bps";
         description
           "Peak Information Rate (PIR), i.e., maximum frame delivery
            allowed.  It is equal to or less than the sum of the CIR and
            EIR.";
       }
       leaf pbs {
         type uint64;
         units "bytes";
         description
           "Peak Burst Size (PBS).";
       }
     }

     grouping bandwidth-per-type {
       description
         "Grouping for bandwidth per type.";
       list bandwidth {
         key "bw-type";
         description
           "List for bandwidth per type parameters.";
         leaf bw-type {
           type identityref {
             base vpn-common:bw-type;
           }
           description
             "Indicates the bandwidth type.";
         }
         choice type {
           description
             "Choice based upon bandwidth type.";
           case per-cos {
             description
               "Bandwidth per Class of Service (CoS).";
             list cos {
               key "cos-id";
               description
                 "List of CoSes.";
               leaf cos-id {
                 type uint8;
                 description
                   "Identifier of the CoS, indicated by a Differentiated
                    Services Code Point (DSCP) or a CE-CLAN CoS (802.1p)
                    value in the service frame.";
                 reference
                   "IEEE Std 802.1Q: Bridges and Bridged Networks";
               }
               uses bandwidth-parameters;
             }
           }
           case other {
             description
               "Other bandwidth types.";
             uses bandwidth-parameters;
           }
         }
       }
     }
   }
   <CODE ENDS>

6. Security Considerations πŸ”’

okay so the security part is seriously important, bestie πŸ’…. The "ietf-ac-common" YANG module is built to be accessed through YANG-based management protocols, like NETCONF [RFC6241] and RESTCONF [RFC8040]. These protocols have to use a secure transport layer (e.g., SSH [RFC4252], TLS [RFC8446], and QUIC [RFC9000]) and have to use mutual authentication 🫢.

The Network Configuration Access Control Model (NACM) [RFC8341] is the bouncer here πŸšͺ. It lets you restrict access for particular NETCONF or RESTCONF users to a preconfigured subset of all the available NETCONF or RESTCONF protocol operations and content.

The YANG module defines a set of identities, types, and groupings, and these are meant to be reused by other YANG modules ✨. By itself, the module does not expose any data nodes that are writable, any data nodes that contain read-only state, or any RPCs. So, no additional security issues related to the YANG module need to be considered 🌸.

Modules that use the groupings defined in this document should identify the corresponding security considerations. For example, reusing some of these groupings will expose privacy-related information (e.g., 'ipv6-lan-prefixes' or 'ipv4-lan-prefixes') πŸ™ˆ. Disclosing that kind of info may be considered a violation of the customer-provider trust relationship, and that is not it πŸ’€.

Several groupings ('bgp-authentication', 'ospf-authentication', 'isis-authentication', and 'rip-authentication') rely upon [RFC8177] for authentication purposes. So modules that reuse these groupings will inherit the security considerations discussed in Section 5 of [RFC8177] πŸ”. These groupings also support supplying explicit keys as strings in ASCII format. Using keys in hexadecimal string format would give greater key entropy with the same number of key-string octets. Still, that format is not included in this version of the common AC model, because it is not supported by the underlying device modules (e.g., [RFC8695]). Just a heads up, bestie 🧚.

7. IANA Considerations 🌈

IANA has registered the following URI 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.

IANA has registered the following YANG module in the "YANG Module Names" subregistry [RFC6020] within the "YANG Parameters" registry:

Name:  ietf-ac-common
Maintained by IANA?  N
Namespace:  urn:ietf:params:xml:ns:yang:ietf-ac-common
Prefix:  ac-common
Reference:  RFC 9833

8. References πŸ“š

8.1. Normative References

okay bestie, this is the reading list πŸ“šπŸ’– every single one of these shows up in the main text, so no skipping 🫢

that's the whole list, bestie πŸ¦‹βœ¨ the references are literally where the citations in the rest of the doc send you, so keep these handy πŸ’…

8.2. Informative References ✨

Okay bestie, here are the informative references, the extra reading list that backs up the spec πŸ“šπŸ«Ά

Appendix A. Full Tree ✨

okay bestie, here's the whole tree, every branch and leaf, all laid out like a family tree at a reunion πŸŒ³πŸ’…

module: ietf-ac-common

  grouping service-status:
    +-- status
       +-- admin-status
       |  +-- status?        identityref
       |  +--ro last-change?   yang:date-and-time
       +--ro oper-status
          +--ro status?        identityref
          +--ro last-change?   yang:date-and-time
  grouping ac-profile-cfg:
    +-- valid-provider-identifiers
       +-- encryption-profile-identifier* [id]
       |  +-- id   string
       +-- qos-profile-identifier* [id]
       |  +-- id   string
       +-- failure-detection-profile-identifier* [id]
       |  +-- id   string
       +-- forwarding-profile-identifier* [id]
       |  +-- id   string
       +-- routing-profile-identifier* [id]
          +-- id   string
  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
    +-- 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)?
       |     +--:(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
       +-- enabled?           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
  grouping ospf-authentication:
    +-- authentication
       +-- enabled?           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
       +-- enabled?           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
       +-- enabled?           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:
    +-- local-as?         inet:as-number
    +-- peer-as?          inet:as-number
    +-- address-family?   identityref
    +-- role?             identityref
  grouping bgp-peer-group-with-name:
    +-- name?             string
    +-- local-as?         inet:as-number
    +-- peer-as?          inet:as-number
    +-- address-family?   identityref
    +-- role?             identityref
  grouping ospf-basic:
    +-- address-family?   identityref
    +-- area-id           yang:dotted-quad
    +-- metric?           uint16
  grouping isis-basic:
    +-- address-family?   identityref
    +-- area-address      area-address
  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
          |  +--ro 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
          |  +--ro last-change?   yang:date-and-time
          +--ro oper-status
             +--ro status?        identityref
             +--ro last-change?   yang:date-and-time
  grouping bfd:
    +-- holdtime?   uint32
  grouping redundancy-group:
    +-- group* [group-id]
       +-- group-id      string
       +-- precedence?   identityref
  grouping bandwidth-parameters:
    +-- cir?   uint64
    +-- cbs?   uint64
    +-- eir?   uint64
    +-- ebs?   uint64
    +-- pir?   uint64
    +-- pbs?   uint64
  grouping bandwidth-per-type:
    +-- bandwidth* [bw-type]
       +-- bw-type      identityref
       +-- (type)?
          +--:(per-cos)
          |  +-- cos* [cos-id]
          |     +-- cos-id    uint8
          |     +-- cir?      uint64
          |     +-- cbs?      uint64
          |     +-- eir?      uint64
          |     +-- ebs?      uint64
          |     +-- pir?      uint64
          |     +-- pbs?      uint64
          +--:(other)
             +-- cir?   uint64
             +-- cbs?   uint64
             +-- eir?   uint64
             +-- ebs?   uint64
             +-- pir?   uint64
             +-- pbs?   uint64

Acknowledgments 🫢

this doc totally borrows a bunch of structures that were already defined in [RFC9181] and [RFC9182], so shoutout to those ✨

big thanks to Ebben Aries for the YANG Doctors review πŸ™Œ and to Andy Smith and Gyanh Mishra for the RTGDIR reviews 🌸. Watson Ladd gets a huge thank-you for the SECDIR review πŸ”₯, and Behcet Sarikaya for the GENART review πŸ’œ.

thanks to Reza Rokui for the shepherd review πŸ¦‹

thanks to Mahesh Jethanandani for the AD review πŸ‘‘

and a big group hug for Γ‰ric Vyncke, Gunter Van de Velde, Orie Steele, and Paul Wouters for the IESG review πŸŒˆπŸ’–


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

Kenichi Ogaki πŸŽ€ KDDI Email: ke-oogaki@kddi.com

Luis Angel Munoz ⭐ Vodafone Email: luis-angel.munoz@vodafone.com

Okay bestie, this is the very last bit of the doc and it's giving "wrap-up with the squad" energy 🫢✨

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 🌸 Nokia Email: samier.barguil_giraldo@nokia.com

Bo Wu 🧚 Huawei Technologies Email: lana.wubo@huawei.com

That's the whole squad, periodt πŸ’–

πŸ“¦ where this page comes from