[Docs] [txt|pdf] [Tracker] [Email] [Nits]

Versions: 00

Internet                                                       A. Lindem
Internet-Draft                                                 S. Palani
Intended status: Informational                             Cisco Systems
Expires: December 29, 2018                                 June 27, 2018


                  Yang Model for OSPFv3 Extended LSAs
               draft-acee-lsr-ospfv3-extended-lsa-yang-00

Abstract

   This document defines a YANG data model augmenting the IETF OSPF YANG
   model to provide support for OSPFv3 Link State Advertisment (LSA)
   Extensibility as defined in RFC 8263.  OSPFv3 Extended LSAs provide
   extensible TLV-based LSAs for the base LSA types defined in RFC 5340.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on December 29, 2018.

Copyright Notice

   Copyright (c) 2018 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
   (http://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 Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.




Lindem & Palani         Expires December 29, 2018               [Page 1]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


Table of Contents

   1.  Overview  . . . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.1.  Requirements Language . . . . . . . . . . . . . . . . . .   2
   2.  OSPFv3 Extended LSAs  . . . . . . . . . . . . . . . . . . . .   2
   3.  OSPFv3 Extended LSA Yang Module . . . . . . . . . . . . . . .  11
   4.  Security Considerations . . . . . . . . . . . . . . . . . . .  29
   5.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  29
   6.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .  30
   7.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  30
     7.1.  Normative References  . . . . . . . . . . . . . . . . . .  30
     7.2.  Informative References  . . . . . . . . . . . . . . . . .  31
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  31

1.  Overview

   YANG [RFC6020]  [RFC7950] is a data definition language used to
   define the contents of a conceptual data store that allows networked
   devices to be managed using NETCONF [RFC6241].  YANG is proving
   relevant beyond its initial confines, as bindings to other interfaces
   (e.g., ReST) and encodings other than XML (e.g., JSON) are being
   defined.  Furthermore, YANG data models can be used as the basis for
   implementation of other interfaces, such as CLI and programmatic
   APIs.

   This document defines a YANG data model augmenting the IETF OSPF YANG
   model [I-D.ietf-ospf-yang], which itself augments [RFC8349], to
   provide support for configuration and operational state for OSPFv3
   Extended LSAs as defined in [RFC8362].

1.1.  Requirements Language

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in [RFC2119].

2.  OSPFv3 Extended LSAs

   This document defines a model for the OSPFv3 Extended LSA feature.
   It is an augmentation of the OSPF base model provided support for
   OSPFv3 Link State Advertisement (LSA) Extensibility [RFC8362].
   OSPFv3 Extended LSAs provide extensible TLV-based LSAs for the base
   LSA types defined in [RFC5340].

   The OSPFv3 Extended LSA YANG module requires support for the OSPF
   base model[I-D.ietf-ospf-yang] which defines basic OSPF configuration
   and state.  The OSPF YANG model augments the ietf-routing YANG model
   defined in [RFC8022].  The augmentations defined in the ietf-ospfv3-



Lindem & Palani         Expires December 29, 2018               [Page 2]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


   extended-lsa YANG model will provide global configuration, area
   configuration, and addition of OSPFv3 Extended LSAs to the Link State
   Database (LSDB) operational state.

   augment /rt:routing/rt:control-plane-protocols
            /rt:control-plane-protocol/ospf:ospf:
    +--rw extended-lsa-support?   boolean {extended-lsa-support}?
   augment /rt:routing/rt:control-plane-protocols
            /rt:control-plane-protocol/ospf:ospf/ospf:areas
            /ospf:area:
    +--rw extended-lsa-support?   boolean {extended-lsa-support}?
   augment /rt:routing/rt:control-plane-protocols
            /rt:control-plane-protocol/ospf:ospf/ospf:areas
            /ospf:area/ospf:interfaces/ospf:interface/ospf:database
            /ospf:link-scope-lsa-type/ospf:link-scope-lsas
            /ospf:link-scope-lsa/ospf:version/ospf:ospfv3
            /ospf:ospfv3/ospf:body:
   augment /rt:routing/rt:control-plane-protocols
            /rt:control-plane-protocol/ospf:ospf/ospf:areas
            /ospf:area/ospf:database/ospf:area-scope-lsa-type
            /ospf:area-scope-lsas/ospf:area-scope-lsa/ospf:version
            /ospf:ospfv3/ospf:ospfv3/ospf:body:
    +--ro e-router
    |  +--ro flags?           bits
    |  +--ro options          bits
    |  +--ro e-router-tlvs* []
    |     +--ro unknown-tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro link-tlv
    |        +--ro link-tlv-type?           identityref
    |        +--ro link-tlv-length?         uint16
    |        +--ro interface-id?            uint32
    |        +--ro neighbor-interface-id?   uint32
    |        +--ro neighbor-router-id?      rt-types:router-id
    |        +--ro type?                    uint8
    |        +--ro metric?                  uint16
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |              +--ro type?     uint16
    |              +--ro length?   uint16
    |              +--ro value?    yang:hex-string
    +--ro e-network
    |  +--ro options           bits
    |  +--ro e-network-tlvs* []
    |     +--ro unknown--tlv
    |     |  +--ro type?     uint16



Lindem & Palani         Expires December 29, 2018               [Page 3]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro attached-router-tlv
    |        +--ro attached-router-tlv-type?      identityref
    |        +--ro attached-router-tlv-length?    uint16
    |        +--ro Adjacent-neighbor-router-id?   rt-types:router-id
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |              +--ro type?     uint16
    |              +--ro length?   uint16
    |              +--ro value?    yang:hex-string
    +--ro e-inter-area-prefix
    |  +--ro e-inter-prefix-tlvs* []
    |     +--ro unknown--tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro inter-prefix-tlv
    |        +--ro inter-prefix-tlv-type?     identityref
    |        +--ro inter-prefix-tlv-length?   uint16
    |        +--ro metric?                    rt-types:uint24
    |        +--ro prefix?                    inet:ip-prefix
    |        +--ro prefix-options?            bits
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |              +--ro type?     uint16
    |              +--ro length?   uint16
    |              +--ro value?    yang:hex-string
    +--ro e-inter-area-router
    |  +--ro e-inter-router-tlvs* []
    |     +--ro unknown-tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro inter-router-tlv
    |        +--ro inter-routerx-tlv-type?    identityref
    |        +--ro inter-router-tlv-length?   uint16
    |        +--ro flags?                     bits
    |        +--ro options                    bits
    |        +--ro metric?                    rt-types:uint24
    |        +--ro destination-router-id?     rt-types:router-id
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |              +--ro type?     uint16
    |              +--ro length?   uint16
    |              +--ro value?    yang:hex-string
    +--ro e-as-external
    |  +--ro e-external-tlvs* []



Lindem & Palani         Expires December 29, 2018               [Page 4]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


    |     +--ro unknown-tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro external-prefix-tlv
    |        +--ro external-prefix-tlv-type?     identityref
    |        +--ro external-prefix-tlv-length?   uint16
    |        +--ro flags?                        bits
    |        +--ro metric?                       rt-types:uint24
    |        +--ro prefix?                       inet:ip-prefix
    |        +--ro prefix-options?               bits
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |           |  +--ro type?     uint16
    |           |  +--ro length?   uint16
    |           |  +--ro value?    yang:hex-string
    |           +--ro ipv6-fwd-addr-sub-tlv
    |           |  +--ro ipv6-fwd-addr-sub-tlv-type?     identityref
    |           |  +--ro ipv6-fwd-addr-sub-tlv-length?   uint16
    |           |  +--ro forwarding-address?
    |           |          inet:ipv6-address
    |           +--ro ipv4-fwd-addr-sub-tlv
    |           |  +--ro ipv4-fwd-addr-sub-tlv-type?     identityref
    |           |  +--ro ipv4-fwd-addr-sub-tlv-length?   uint16
    |           |  +--ro forwarding-address?
    |           |          inet:ipv4-address
    |           +--ro route-tag-sub-tlv
    |              +--ro route-tag-sub-tlv-type?     identityref
    |              +--ro route-tag-sub-tlv-length?   uint16
    |              +--ro route-tag?                  uint32
    +--ro e-nssa
    |  +--ro e-external-tlvs* []
    |     +--ro unknown-tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro external-prefix-tlv
    |        +--ro external-prefix-tlv-type?     identityref
    |        +--ro external-prefix-tlv-length?   uint16
    |        +--ro flags?                        bits
    |        +--ro metric?                       rt-types:uint24
    |        +--ro prefix?                       inet:ip-prefix
    |        +--ro prefix-options?               bits
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |           |  +--ro type?     uint16
    |           |  +--ro length?   uint16
    |           |  +--ro value?    yang:hex-string



Lindem & Palani         Expires December 29, 2018               [Page 5]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


    |           +--ro ipv6-fwd-addr-sub-tlv
    |           |  +--ro ipv6-fwd-addr-sub-tlv-type?     identityref
    |           |  +--ro ipv6-fwd-addr-sub-tlv-length?   uint16
    |           |  +--ro forwarding-address?
    |           |          inet:ipv6-address
    |           +--ro ipv4-fwd-addr-sub-tlv
    |           |  +--ro ipv4-fwd-addr-sub-tlv-type?     identityref
    |           |  +--ro ipv4-fwd-addr-sub-tlv-length?   uint16
    |           |  +--ro forwarding-address?
    |           |          inet:ipv4-address
    |           +--ro route-tag-sub-tlv
    |              +--ro route-tag-sub-tlv-type?     identityref
    |              +--ro route-tag-sub-tlv-length?   uint16
    |              +--ro route-tag?                  uint32
    +--ro e-link
    |  +--ro rtr-priority?   uint8
    |  +--ro options         bits
    |  +--ro e-link-tlvs* []
    |     +--ro unknown-tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro intra-prefix-tlv
    |     |  +--ro intra-prefix-tlv-type?     identityref
    |     |  +--ro intra-prefix-tlv-length?   uint16
    |     |  +--ro metric?                    rt-types:uint24
    |     |  +--ro prefix?                    inet:ip-prefix
    |     |  +--ro prefix-options?            bits
    |     |  +--ro sub-tlvs* []
    |     |     +--ro unknown-sub-tlv
    |     |        +--ro type?     uint16
    |     |        +--ro length?   uint16
    |     |        +--ro value?    yang:hex-string
    |     +--ro ipv6-link-local-tlv
    |     |  +--ro ipv6-link-local-tlv-type?     identityref
    |     |  +--ro ipv6-link-local-tlv-length?   uint16
    |     |  +--ro link-local-address?           inet:ipv6-address
    |     |  +--ro sub-tlvs* []
    |     |     +--ro unknown-sub-tlv
    |     |        +--ro type?     uint16
    |     |        +--ro length?   uint16
    |     |        +--ro value?    yang:hex-string
    |     +--ro ipv4-link-local-tlv
    |        +--ro ipv4-link-local-tlv-type?     identityref
    |        +--ro ipv4-link-local-tlv-length?   uint16
    |        +--ro link-local-address?           inet:ipv4-address
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv



Lindem & Palani         Expires December 29, 2018               [Page 6]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


    |              +--ro type?     uint16
    |              +--ro length?   uint16
    |              +--ro value?    yang:hex-string
    +--ro e-intra-area-prefix
       +--ro referenced-ls-type?         uint16
       +--ro referenced-link-state-id?   uint32
       +--ro referenced-adv-router?      rt-types:router-id
       +--ro e-intra-prefix-tlvs* []
          +--ro unknown-tlv
          |  +--ro type?     uint16
          |  +--ro length?   uint16
          |  +--ro value?    yang:hex-string
          +--ro intra-prefix-tlv
             +--ro intra-prefix-tlv-type?     identityref
             +--ro intra-prefix-tlv-length?   uint16
             +--ro metric?                    rt-types:uint24
             +--ro prefix?                    inet:ip-prefix
             +--ro prefix-options?            bits
             +--ro sub-tlvs* []
                +--ro unknown-sub-tlv
                   +--ro type?     uint16
                   +--ro length?   uint16
                   +--ro value?    yang:hex-string
   augment /rt:routing/rt:control-plane-protocols
            /rt:control-plane-protocol/ospf:ospf/ospf:database
            /ospf:as-scope-lsa-type/ospf:as-scope-lsas
            /ospf:as-scope-lsa/ospf:version/ospf:ospfv3/ospf:ospfv3
            /ospf:body:
    +--ro e-router
    |  +--ro flags?           bits
    |  +--ro options          bits
    |  +--ro e-router-tlvs* []
    |     +--ro unknown-tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro link-tlv
    |        +--ro link-tlv-type?           identityref
    |        +--ro link-tlv-length?         uint16
    |        +--ro interface-id?            uint32
    |        +--ro neighbor-interface-id?   uint32
    |        +--ro neighbor-router-id?      rt-types:router-id
    |        +--ro type?                    uint8
    |        +--ro metric?                  uint16
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |              +--ro type?     uint16
    |              +--ro length?   uint16



Lindem & Palani         Expires December 29, 2018               [Page 7]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


    |              +--ro value?    yang:hex-string
    +--ro e-network
    |  +--ro options           bits
    |  +--ro e-network-tlvs* []
    |     +--ro unknown--tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro attached-router-tlv
    |        +--ro attached-router-tlv-type?      identityref
    |        +--ro attached-router-tlv-length?    uint16
    |        +--ro Adjacent-neighbor-router-id?   rt-types:router-id
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |              +--ro type?     uint16
    |              +--ro length?   uint16
    |              +--ro value?    yang:hex-string
    +--ro e-inter-area-prefix
    |  +--ro e-inter-prefix-tlvs* []
    |     +--ro unknown--tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro inter-prefix-tlv
    |        +--ro inter-prefix-tlv-type?     identityref
    |        +--ro inter-prefix-tlv-length?   uint16
    |        +--ro metric?                    rt-types:uint24
    |        +--ro prefix?                    inet:ip-prefix
    |        +--ro prefix-options?            bits
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |              +--ro type?     uint16
    |              +--ro length?   uint16
    |              +--ro value?    yang:hex-string
    +--ro e-inter-area-router
    |  +--ro e-inter-router-tlvs* []
    |     +--ro unknown-tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro inter-router-tlv
    |        +--ro inter-routerx-tlv-type?    identityref
    |        +--ro inter-router-tlv-length?   uint16
    |        +--ro flags?                     bits
    |        +--ro options                    bits
    |        +--ro metric?                    rt-types:uint24
    |        +--ro destination-router-id?     rt-types:router-id
    |        +--ro sub-tlvs* []



Lindem & Palani         Expires December 29, 2018               [Page 8]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


    |           +--ro unknown-sub-tlv
    |              +--ro type?     uint16
    |              +--ro length?   uint16
    |              +--ro value?    yang:hex-string
    +--ro e-as-external
    |  +--ro e-external-tlvs* []
    |     +--ro unknown-tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro external-prefix-tlv
    |        +--ro external-prefix-tlv-type?     identityref
    |        +--ro external-prefix-tlv-length?   uint16
    |        +--ro flags?                        bits
    |        +--ro metric?                       rt-types:uint24
    |        +--ro prefix?                       inet:ip-prefix
    |        +--ro prefix-options?               bits
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |           |  +--ro type?     uint16
    |           |  +--ro length?   uint16
    |           |  +--ro value?    yang:hex-string
    |           +--ro ipv6-fwd-addr-sub-tlv
    |           |  +--ro ipv6-fwd-addr-sub-tlv-type?     identityref
    |           |  +--ro ipv6-fwd-addr-sub-tlv-length?   uint16
    |           |  +--ro forwarding-address?
    |           |          inet:ipv6-address
    |           +--ro ipv4-fwd-addr-sub-tlv
    |           |  +--ro ipv4-fwd-addr-sub-tlv-type?     identityref
    |           |  +--ro ipv4-fwd-addr-sub-tlv-length?   uint16
    |           |  +--ro forwarding-address?
    |           |          inet:ipv4-address
    |           +--ro route-tag-sub-tlv
    |              +--ro route-tag-sub-tlv-type?     identityref
    |              +--ro route-tag-sub-tlv-length?   uint16
    |              +--ro route-tag?                  uint32
    +--ro e-nssa
    |  +--ro e-external-tlvs* []
    |     +--ro unknown-tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro external-prefix-tlv
    |        +--ro external-prefix-tlv-type?     identityref
    |        +--ro external-prefix-tlv-length?   uint16
    |        +--ro flags?                        bits
    |        +--ro metric?                       rt-types:uint24
    |        +--ro prefix?                       inet:ip-prefix



Lindem & Palani         Expires December 29, 2018               [Page 9]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


    |        +--ro prefix-options?               bits
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |           |  +--ro type?     uint16
    |           |  +--ro length?   uint16
    |           |  +--ro value?    yang:hex-string
    |           +--ro ipv6-fwd-addr-sub-tlv
    |           |  +--ro ipv6-fwd-addr-sub-tlv-type?     identityref
    |           |  +--ro ipv6-fwd-addr-sub-tlv-length?   uint16
    |           |  +--ro forwarding-address?
    |           |          inet:ipv6-address
    |           +--ro ipv4-fwd-addr-sub-tlv
    |           |  +--ro ipv4-fwd-addr-sub-tlv-type?     identityref
    |           |  +--ro ipv4-fwd-addr-sub-tlv-length?   uint16
    |           |  +--ro forwarding-address?
    |           |          inet:ipv4-address
    |           +--ro route-tag-sub-tlv
    |              +--ro route-tag-sub-tlv-type?     identityref
    |              +--ro route-tag-sub-tlv-length?   uint16
    |              +--ro route-tag?                  uint32
    +--ro e-link
    |  +--ro rtr-priority?   uint8
    |  +--ro options         bits
    |  +--ro e-link-tlvs* []
    |     +--ro unknown-tlv
    |     |  +--ro type?     uint16
    |     |  +--ro length?   uint16
    |     |  +--ro value?    yang:hex-string
    |     +--ro intra-prefix-tlv
    |     |  +--ro intra-prefix-tlv-type?     identityref
    |     |  +--ro intra-prefix-tlv-length?   uint16
    |     |  +--ro metric?                    rt-types:uint24
    |     |  +--ro prefix?                    inet:ip-prefix
    |     |  +--ro prefix-options?            bits
    |     |  +--ro sub-tlvs* []
    |     |     +--ro unknown-sub-tlv
    |     |        +--ro type?     uint16
    |     |        +--ro length?   uint16
    |     |        +--ro value?    yang:hex-string
    |     +--ro ipv6-link-local-tlv
    |     |  +--ro ipv6-link-local-tlv-type?     identityref
    |     |  +--ro ipv6-link-local-tlv-length?   uint16
    |     |  +--ro link-local-address?           inet:ipv6-address
    |     |  +--ro sub-tlvs* []
    |     |     +--ro unknown-sub-tlv
    |     |        +--ro type?     uint16
    |     |        +--ro length?   uint16
    |     |        +--ro value?    yang:hex-string



Lindem & Palani         Expires December 29, 2018              [Page 10]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


    |     +--ro ipv4-link-local-tlv
    |        +--ro ipv4-link-local-tlv-type?     identityref
    |        +--ro ipv4-link-local-tlv-length?   uint16
    |        +--ro link-local-address?           inet:ipv4-address
    |        +--ro sub-tlvs* []
    |           +--ro unknown-sub-tlv
    |              +--ro type?     uint16
    |              +--ro length?   uint16
    |              +--ro value?    yang:hex-string
    +--ro e-intra-area-prefix
       +--ro referenced-ls-type?         uint16
       +--ro referenced-link-state-id?   uint32
       +--ro referenced-adv-router?      rt-types:router-id
       +--ro e-intra-prefix-tlvs* []
          +--ro unknown-tlv
          |  +--ro type?     uint16
          |  +--ro length?   uint16
          |  +--ro value?    yang:hex-string
          +--ro intra-prefix-tlv
             +--ro intra-prefix-tlv-type?     identityref
             +--ro intra-prefix-tlv-length?   uint16
             +--ro metric?                    rt-types:uint24
             +--ro prefix?                    inet:ip-prefix
             +--ro prefix-options?            bits
             +--ro sub-tlvs* []
                +--ro unknown-sub-tlv
                   +--ro type?     uint16
                   +--ro length?   uint16
                   +--ro value?    yang:hex-string

3.  OSPFv3 Extended LSA Yang Module

   module ietf-ospfv3-extended-lsa {
     yang-version 1.1;
     namespace
      "urn:ietf:params:xml:ns:yang:ietf-ospfv3-extended-lsa";

     prefix ospfv3-e-lsa;

     import ietf-routing-types {
       prefix "rt-types";
     }

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




Lindem & Palani         Expires December 29, 2018              [Page 11]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


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

     import ietf-ospf {
       prefix "ospf";
       reference "RFC XXXX - A YANG Data Model for OSPF
                  Protocol";
     }

     organization
       "IETF OSPF - OSPF Working Group";

     contact
        "WG Web:   <http://tools.ietf.org/wg/ospf/>
         WG List:  <mailto:ospf@ietf.org>

         Author:   Acee Lindem
                   <mailto:acee@cisco.com>
         Author:   Sharmila Palani
                   <mailto:shpalani@cisco.com>";

     description
       "This YANG module defines the configuration
        and operational state for OSPFv3 Extended LSAs, which is
        common across all of the vendor implementations.

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

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

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

     reference "RFC XXXX";

     revision 2018-06-27 {
       description
         "Initial revision.";
       reference



Lindem & Palani         Expires December 29, 2018              [Page 12]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


         "RFC XXXX: A YANG Data Model for OSPFv3 Extended LSAs.";
     }

     feature extended-lsa-support {
       description
         "Support for OSPFv3 Extended LSAs";
       reference
          "RFC 8362 - OSPFv3 Link State Advertisement (LSA)
           Extensibility";
     }

     /*
      * OSPFv3 Extend LSA Type Identities
      */
     identity ospfv3-e-router-lsa {
       base ospf:ospfv3-lsa-type;
       description
         "OSPFv3 Extended Router LSA - Type 0xA021";
     }

     identity ospfv3-e-network-lsa {
       base ospf:ospfv3-lsa-type;
       description
         "OSPFv3 Extended Network LSA - Type 0xA022";
     }

     identity ospfv3-e-summary-lsa-type {
       base ospf:ospfv3-lsa-type;
       description
         "OSPFv3 Extended Summary LSA types";
     }

     identity ospfv3-e-inter-area-prefix-lsa {
       base ospfv3-e-summary-lsa-type;
       description
         "OSPFv3 Extended Inter-area Prefix LSA - Type 0xA023";
     }

     identity ospfv3-e-inter-area-router-lsa {
       base ospfv3-e-summary-lsa-type;
       description
         "OSPFv3 Exteneded Inter-area Router LSA - Type 0xA024";
     }

     identity ospfv3-e-external-lsa-type {
       base ospf:ospfv3-lsa-type;
       description
         "OSPFv3 Extended External LSA types";



Lindem & Palani         Expires December 29, 2018              [Page 13]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


     }

     identity ospfv3-e-as-external-lsa {
       base ospfv3-e-external-lsa-type;
       description
         "OSPFv3 Extended AS-External LSA - Type 0xC025";
     }

     identity ospfv3-e-nssa-lsa {
       base ospfv3-e-external-lsa-type;
       description
         "OSPFv3 Extended Not-So-Stubby-Area (NSSA) LSA -
          Type 0xA027";
     }

     identity ospfv3-e-link-lsa {
       base ospf:ospfv3-lsa-type;
       description
         "OSPFv3 Extended Link LSA - Type 0x8028";
     }

     identity ospfv3-e-intra-area-prefix-lsa {
       base ospf:ospfv3-lsa-type;
       description
         "OSPFv3 Extended Intra-area Prefix LSA - Type 0xA029";
     }

     /*
      * OSPFv3 Extended LSA TLV Type Identities
      */
     identity ospfv3-e-lsa-tlv-type {
       description
         "Base identity for OSPFv3 LSA TLV Types";
     }

     identity ospfv3-e-lsa-router-link-tlv {
       base ospfv3-e-lsa-tlv-type;
       description
         "OSPFv3 Extended LSA Router-Link TLV";
     }

     identity ospfv3-e-lsa-attached-routers-tlv {
       base ospfv3-e-lsa-tlv-type;
       description
         "OSPFv3 Extended LSA Attached-Routers TLV";
     }

     identity ospfv3-e-lsa-inter-area-prefix-tlv {



Lindem & Palani         Expires December 29, 2018              [Page 14]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


       base ospfv3-e-lsa-tlv-type;
       description
         "OSPFv3 Extended LSA Inter-Area-Prefix TLV";
     }

     identity ospfv3-e-lsa-inter-area-router-tlv {
       base ospfv3-e-lsa-tlv-type;
       description
         "OSPFv3 Extended LSA Inter-Area-Router TLV";
     }

     identity ospfv3-e-lsa-external-prefix-tlv {
       base ospfv3-e-lsa-tlv-type;
       description
         "OSPFv3 Extended LSA External-Prefix TLV";
     }

     identity ospfv3-e-lsa-intra-area-prefix-tlv {
       base ospfv3-e-lsa-tlv-type;
       description
         "OSPFv3 Extended LSA Intra-Area-Prefix TLV";
     }

     identity ospfv3-e-lsa-ipv6-link-local-addr-tlv {
       base ospfv3-e-lsa-tlv-type;
       description
         "OSPFv3 Extended LSA IPv6 Link-Local Address TLV";
     }

     identity ospfv3-e-lsa-ipv4-link-local-addr-tlv {
       base ospfv3-e-lsa-tlv-type;
       description
         "OSPFv3 Extended LSA IPv4 Link-Local Address TLV";
     }

     /*
      * OSPFv3 Extended LSA Sub-TLV Type Identities
      */
     identity ospfv3-e-lsa-sub-tlv-type {
       description
         "Base identity for OSPFv3 LSA Sub-TLV Types";
     }

     identity ospfv3-e-lsa-ipv6-fwd-addr-sub-tlv {
       base ospfv3-e-lsa-sub-tlv-type;
       description
         "OSPFv3 Extended LSA IPv6 forwarding Address Sub-TLV";
     }



Lindem & Palani         Expires December 29, 2018              [Page 15]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


     identity ospfv3-e-lsa-ipv4-fwd-addr-sub-tlv {
       base ospfv3-e-lsa-sub-tlv-type;
       description
         "OSPFv3 Extended LSA IPv4 forwarding Address Sub-TLV";
     }

     identity ospfv3-e-lsa-tag-sub-tlv {
       base ospfv3-e-lsa-sub-tlv-type;
       description
         "OSPFv3 Extended LSA Tag Sub-TLV";
     }

     grouping unknown-sub-tlv {
       description
         "Unknown TLV grouping";
       container unknown-sub-tlv {
         uses ospf:tlv;
         description "Unknown External TLV Sub-TLV";
       }
     }

     grouping ospfv3-lsa-prefix {
       description
         "OSPFv3 LSA prefix";

       leaf prefix {
         type inet:ip-prefix;
         description
           "LSA Prefix";
       }
       leaf prefix-options {
         type bits {
           bit NU {
             description
               "When set, the prefix should be excluded
                from IPv6 unicast calculations.";
           }
           bit LA {
             description
               "When set, the prefix is actually an IPv6 interface
                address of the Advertising Router.";
           }
           bit P {
             description
               "When set, the NSSA area prefix should be
                translated to an AS External LSA and readvertised
                by the translating NSSA Border Router.";
           }



Lindem & Palani         Expires December 29, 2018              [Page 16]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


           bit DN {
             description
               "When set, the inter-area-prefix LSA or
                AS-external LSA prefix has been advertised as an
                L3VPN prefix.";
           }
         }
         description "Prefix options";
       }
     }

     grouping ipv6-fwd-addr-sub-tlv {
       container ipv6-fwd-addr-sub-tlv {
         description
           "IPv6 Forwarding Address Sub-TLV";
         leaf ipv6-fwd-addr-sub-tlv-type {
           type identityref {
             base ospfv3-e-lsa-ipv6-fwd-addr-sub-tlv;
           }
           description "IPv6 Forwarding Address Sub-TLV Type - 1";
         }
         leaf ipv6-fwd-addr-sub-tlv-length {
           type uint16;
           description
             "IPv6 Forwarding Addrss Sub-TLV Length - 16
              for IPv6 address";
         }
         leaf forwarding-address {
           type inet:ipv6-address;
           description
             "Forwarding address";
         }
       }
       description
         "IPv6 Forwarding Address Sub-TLV grouping";
     }

     grouping ipv4-fwd-addr-sub-tlv {
       container ipv4-fwd-addr-sub-tlv {
         description
           "IPv4 Forwarding Address Sub-TLV";
         leaf ipv4-fwd-addr-sub-tlv-type {
           type identityref {
             base ospfv3-e-lsa-ipv4-fwd-addr-sub-tlv;
           }
           description "IPv4 Forwarding Address Sub-TLV Type - 2";
         }
         leaf ipv4-fwd-addr-sub-tlv-length {



Lindem & Palani         Expires December 29, 2018              [Page 17]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


           type uint16;
           description
             "IPv4 Forwarding Addrss Sub-TLV Length - 4
              for IPv4 address";
         }
         leaf forwarding-address {
           type inet:ipv4-address;
           description
             "Forwarding address";
         }
       }
       description
         "IPv4 Forwarding Address Sub-TLV grouping";
     }

     grouping route-tag-sub-tlv {
       container route-tag-sub-tlv {
         description
           "Route Tag Sub-TLV";
         leaf route-tag-sub-tlv-type {
           type identityref {
             base ospfv3-e-lsa-tag-sub-tlv;
           }
           description "Route Tag Sub-TLV Type - 3";
         }
         leaf route-tag-sub-tlv-length {
           type uint16;
           description
             "Route Tag Sub-TLV Length - 4 for 32-bit tag";
         }
         leaf route-tag {
           type uint32;
           description
             "Route Tag";
         }
       }
       description
         "Route Tag Sub-TLV grouping";
     }

     grouping external-prefix-tlv {
       container external-prefix-tlv {
         description "External Prefix LSA TLV";
         leaf external-prefix-tlv-type {
           type identityref {
             base ospfv3-e-lsa-external-prefix-tlv;
           }
           description "External Prefix TLV Type - 5";



Lindem & Palani         Expires December 29, 2018              [Page 18]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


         }
         leaf external-prefix-tlv-length {
           type uint16;
           description
             "External Prefix TLV Length - Variable dependent
                  on sub-TLVs";
         }
         leaf flags {
           type bits {
             bit E {
               description
                 "When set, the metric specified is a Type 2
                external metric.";
             }
           }
           description "External Prefix Flags";
         }
         leaf metric {
           type rt-types:uint24;
           description "External Prefix Metric";
         }
         uses ospfv3-lsa-prefix;
         list sub-tlvs {
           description "External Prefix TLV Sub-TLVs";
           uses unknown-sub-tlv;
           uses ipv6-fwd-addr-sub-tlv;
           uses ipv4-fwd-addr-sub-tlv;
           uses route-tag-sub-tlv;
         }
       }
       description "External Prefix TLV Grouping";
     }

     grouping intra-area-prefix-tlv {
       container intra-prefix-tlv {
         description "Intra-Area Prefix LSA TLV";
         leaf intra-prefix-tlv-type {
           type identityref {
             base ospfv3-e-lsa-intra-area-prefix-tlv;
           }
           description "Intra-Area Prefix TLV Type - 6";
         }
         leaf intra-prefix-tlv-length {
           type uint16;
           description
             "Intra-Area Prefix TLV Length - Variable dependent
              on sub-TLVs";
         }



Lindem & Palani         Expires December 29, 2018              [Page 19]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


         leaf metric {
           type rt-types:uint24;
           description "Intra-Area Prefix Metric";
         }
         uses ospfv3-lsa-prefix;
         list sub-tlvs {
           description "Intra-Area Prefix TLV Sub-TLVs";
           uses unknown-sub-tlv;
         }
       }
       description "Intra-Area Prefix TLV Grouping";
     }

     grouping ipv6-link-local-tlv {
       container ipv6-link-local-tlv {
         description "IPv6 Link-Local LSA TLV";
         leaf ipv6-link-local-tlv-type {
           type identityref {
             base ospfv3-e-lsa-ipv6-link-local-addr-tlv;
           }
           description "IPv6 Link-Local TLV Type - 7";
         }
         leaf ipv6-link-local-tlv-length {
           type uint16;
           description
             "IPv6 Link-Local TLV Length - Variable dependent
              on sub-TLVs";
         }
         leaf link-local-address {
           type inet:ipv6-address;
           description
             "IPv6 Link Local address";
         }
         list sub-tlvs {
           description "IPv6 Link Local TLV Sub-TLVs";
           uses unknown-sub-tlv;
         }
       }
       description "IPv6 Link-Local TLV Grouping";
     }

     grouping ipv4-link-local-tlv {
       container ipv4-link-local-tlv {
         description "IPv6 Link-Local LSA TLV";
         leaf ipv4-link-local-tlv-type {
           type identityref {
             base ospfv3-e-lsa-ipv4-link-local-addr-tlv;
           }



Lindem & Palani         Expires December 29, 2018              [Page 20]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


           description "IPv4 Link-Local TLV Type - 8";
         }
         leaf ipv4-link-local-tlv-length {
           type uint16;
           description
             "IPv4 Link-Local TLV Length - Variable dependent
              on sub-TLVs";
         }
         leaf link-local-address {
           type inet:ipv4-address;
           description
             "IPv4 Link Local address";
         }
         list sub-tlvs {
           description "IPv4 Link Local TLV Sub-TLVs";
           uses unknown-sub-tlv;
         }
       }
       description "IPv4 Link-Local TLV Grouping";
     }

     grouping ospfv3-e-lsa-body {
       description "OSPFv3 Extended LSA body.";
       container e-router {
         when  "derived-from(../header/type, "
           + "'ospfv3-e-router-lsa')" {
           description "Only valid for OSPFv3 Extended-Router LSAs";
         }
         description "OSPv3 Extended Router LSA";
         uses ospf:ospf-router-lsa-flags;
         uses ospf:ospfv3-lsa-options;

         list e-router-tlvs {
           description "E-Router LSA TLVs";
           container unknown-tlv {
             uses ospf:tlv;
             description "Unknown E-Router TLV";
           }
           container link-tlv {
             description "E-Router LSA TLV";
             leaf link-tlv-type {
               type identityref {
                 base ospfv3-e-lsa-router-link-tlv;
               }
               description "Link TLV Type - 1";
             }
             leaf link-tlv-length {
               type uint16;



Lindem & Palani         Expires December 29, 2018              [Page 21]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


               description
                 "Link TLV Length - Variable dependent on sub-TLVs";
             }
             leaf interface-id {
               type uint32;
               description "Interface ID for link";
             }
             leaf neighbor-interface-id {
               type uint32;
               description "Neighbor's Interface ID for link";
             }
             leaf neighbor-router-id {
               type rt-types:router-id;
               description "Neighbor's Router ID for link";
             }
             leaf type {
               type uint8;
               description "Link type: 1 - Point-to-Point Link
                                       2 - Transit Network Link
                                       3 - Stub Network Link Link
                                       4 - Virtual Link";
             }
             leaf metric {
               type uint16;
                 description "Link Metric";
             }
             list sub-tlvs {
               description "Link TLV Sub-TLVs";
               uses unknown-sub-tlv;
             }
           }
         }
       }

       container e-network {
         when "derived-from(../../header/type, "
            + "'ospfv3-e-network-lsa')" {
           description
             "Only applies to E-Network LSAs.";
         }
         description "Extended Network LSA";
         uses ospf:ospfv3-lsa-options;
         list e-network-tlvs {
           description "E-Network LSA TLVs";
           container unknown--tlv {
             uses ospf:tlv;
             description "Unknown E-Network TLV";
           }



Lindem & Palani         Expires December 29, 2018              [Page 22]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


           container attached-router-tlv {
             description "Attached Router TLV";
             leaf attached-router-tlv-type {
               type identityref {
                 base ospfv3-e-lsa-attached-routers-tlv;
               }
               description "Attached Router TLV Type - 2";
             }
             leaf attached-router-tlv-length {
               type uint16;
               description
                 "Attached Router TLV Length - Variable dependent
                  on sub-TLVs";
             }
             leaf Adjacent-neighbor-router-id {
               type rt-types:router-id;
               description "Adjacent Neighbor's Router ID";
             }
             list sub-tlvs {
               description "Attached Router TLV Sub-TLVs";
               uses unknown-sub-tlv;
             }
           }
         }
       }

       container e-inter-area-prefix {
         when "derived-from(../../header/type, "
            + "'ospfv3-e-inter-area-prefix-lsa')" {
           description
             "Only applies to E-Inter-Area-Prefix LSAs.";
         }
         description "Extended Inter-Area Prefix LSA";
         list e-inter-prefix-tlvs {
           description "E-Inter-Area-Prefix LSA TLVs";
           container unknown--tlv {
             uses ospf:tlv;
             description "Unknown E-Inter-Area-Prefix TLV";
           }
           container inter-prefix-tlv {
             description "Unknown E-Inter-Area-Prefix LSA TLV";
             leaf inter-prefix-tlv-type {
               type identityref {
                 base ospfv3-e-lsa-inter-area-prefix-tlv;
               }
               description "Inter-Area Prefix TLV Type - 3";
             }
             leaf inter-prefix-tlv-length {



Lindem & Palani         Expires December 29, 2018              [Page 23]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


               type uint16;
               description
                 "Inter-Area-Prefix TLV Length - Variable dependent
                  on sub-TLVs";
             }
             leaf metric {
               type rt-types:uint24;
                 description "Inter-Area Prefix Metric";
             }
             uses ospfv3-lsa-prefix;
             list sub-tlvs {
               description "Inter-Area Prefix TLV Sub-TLVs";
               uses unknown-sub-tlv;
             }
           }
         }
       }

       container e-inter-area-router {
         when "derived-from(../../header/type, "
            + "'ospfv3-e-inter-area-router-lsa')" {
           description
             "Only applies to E-Inter-Area-Router LSAs.";
         }
         description "Extended Inter-Area Router LSA";
         list e-inter-router-tlvs {
           description "E-Inter-Area-Router LSA TLVs";
           container unknown-tlv {
             uses ospf:tlv;
             description "Unknown E-Inter-Area-Router TLV";
           }
           container inter-router-tlv {
             description "Unknown E-Inter-Area-Router LSA TLV";
             leaf inter-routerx-tlv-type {
               type identityref {
                 base ospfv3-e-lsa-inter-area-router-tlv;
               }
               description "Inter-Area Router TLV Type - 4";
             }
             leaf inter-router-tlv-length {
               type uint16;
               description
                 "Inter-Area-Router TLV Length - Variable dependent
                  on sub-TLVs";
             }
             uses ospf:ospf-router-lsa-flags;
             uses ospf:ospfv3-lsa-options;
             leaf metric {



Lindem & Palani         Expires December 29, 2018              [Page 24]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


               type rt-types:uint24;
                 description "Inter-Area Router Metric";
             }
             leaf destination-router-id {
               type rt-types:router-id;
               description "Destination Router ID";
             }
             list sub-tlvs {
               description "Inter-Area Router TLV Sub-TLVs";
               uses unknown-sub-tlv;
             }
           }
         }
       }

       container e-as-external {
         when "derived-from-or-self(../../header/type, "
            + "'ospfv3-e-as-external-lsa')" {
           description
             "Only applies to E-AS-external LSAs.";
         }
         list e-external-tlvs {
           description "E-External LSA TLVs";
           container unknown-tlv {
             uses ospf:tlv;
             description "Unknown E-External TLV";
           }
           uses external-prefix-tlv;
         }
         description "E-AS-External LSA.";
       }

       container e-nssa {
         when "derived-from-or-self(../../header/type, "
            + "'ospfv3-e-nssa-lsa')" {
           description
             "Only applies to E-NSSA LSAs.";
         }
         list e-external-tlvs {
           description "E-NSSA LSA TLVs";
           container unknown-tlv {
             uses ospf:tlv;
             description "Unknown E-External TLV";
           }
           uses external-prefix-tlv;
         }
         description "E-NSSA LSA.";
       }



Lindem & Palani         Expires December 29, 2018              [Page 25]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


       container e-link {
         when "derived-from-or-self(../../header/type, "
            + "'ospfv3-e-link-lsa')" {
           description
             "Only applies to Extended Link LSAs.";
         }
         description "E-Link LSA";
         leaf rtr-priority {
           type uint8;
           description "Router Priority for the interface.";
         }
         uses ospf:ospfv3-lsa-options;
         list e-link-tlvs {
           description "E-Link LSA TLVs";
           container unknown-tlv {
             uses ospf:tlv;
             description "Unknown E-Link TLV";
           }
           uses intra-area-prefix-tlv;
           uses ipv6-link-local-tlv;
           uses ipv4-link-local-tlv;
         }
       }

       container e-intra-area-prefix {
         when "derived-from-or-self(../../header/type, "
            + "'ospfv3-e-intra-area-prefix-lsa')" {
           description
             "Only applies to E-Intra-Area-Prefix LSAs.";
         }
         description "E-Intra-Area-Prefix LSA";
         leaf referenced-ls-type {
           type uint16;
           description "Referenced Link State type";
         }
         leaf referenced-link-state-id {
           type uint32;
           description
             "Referenced Link State ID";
         }
         leaf referenced-adv-router {
           type rt-types:router-id;
           description
             "Referenced Advertising Router";
         }
         list e-intra-prefix-tlvs {
           description "E-Intra-Area-Prefix LSA TLVs";
           container unknown-tlv {



Lindem & Palani         Expires December 29, 2018              [Page 26]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


             uses ospf:tlv;
             description "Unknown E-Intra-Area-Prefix TLV";
           }
           uses intra-area-prefix-tlv;
         }
       }
     }

     /* Configuration */
     augment "/rt:routing/rt:control-plane-protocols"
           + "/rt:control-plane-protocol/ospf:ospf" {
       when "../rt:type = 'ospf:ospfv3'"  {
         description
           "This augments the OSPFv3 routing protocol when used.";
       }
       description
         "This augments the OSPFv3 protocol configuration
          with segment routing.";
       leaf extended-lsa-support {
         if-feature extended-lsa-support;
         type boolean;
         default false;
         description
           "Enable OSPFv3 Extended LSA Support for the OSPFv3
            domain";
       }
     }

     augment "/rt:routing/rt:control-plane-protocols/"
       + "rt:control-plane-protocol/ospf:ospf/ospf:areas/ospf:area" {
       when "../../../../../rt:type = 'ospf:ospfv3'" {
         description
           "This augments the OSPFv3 area configuration
            when used.";
       }
       description
         "This augments the OSPFv3 protocol area
          configuration with Extend LSA support";
       leaf extended-lsa-support {
         if-feature extended-lsa-support;
         type boolean;
         default false;
         description
           "Enable OSPFv3 Extended LSA Support for the OSPFv3 area";
       }
     }

     /*



Lindem & Palani         Expires December 29, 2018              [Page 27]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


      * Link State Database (LSDB) Augmentations
     */
     augment "/rt:routing/"
       + "rt:control-plane-protocols/rt:control-plane-protocol/"
       + "ospf:ospf/ospf:areas/ospf:area/"
       + "ospf:interfaces/ospf:interface/ospf:database/"
       + "ospf:link-scope-lsa-type/ospf:link-scope-lsas/"
       + "ospf:link-scope-lsa/ospf:version/ospf:ospfv3/"
       + "ospf:ospfv3/ospf:body" {
       when "../../../../../../../../../../../../"
          + "rt:type = 'ospf:ospfv3'" {
         description
           "This augmentation is only valid for OSPFv3.";
       }
       description
         "OSPFv3 Link-Scoped Extended LSAs";
     }

     augment "/rt:routing/"
       + "rt:control-plane-protocols/rt:control-plane-protocol/"
       + "ospf:ospf/ospf:areas/ospf:area/ospf:database/"
       + "ospf:area-scope-lsa-type/ospf:area-scope-lsas/"
       + "ospf:area-scope-lsa/ospf:version/ospf:ospfv3/"
       + "ospf:ospfv3/ospf:body" {
       when "../../../../../../../../../"
         + "rt:type = 'ospf:ospfv3'" {
         description
           "This augmentation is only valid for OSPFv3
            E-Router LSAs";
       }
       uses ospfv3-e-lsa-body;
       description
         "OSPFv3 Area-Scoped Extended LSAs";
     }

     augment "/rt:routing/"
       + "rt:control-plane-protocols/rt:control-plane-protocol/"
       + "ospf:ospf/ospf:database/"
       + "ospf:as-scope-lsa-type/ospf:as-scope-lsas/"
       + "ospf:as-scope-lsa/ospf:version/ospf:ospfv3/"
       + "ospf:ospfv3/ospf:body" {
       when "../../../../../../../../../"
         + "rt:type = 'ospf:ospfv3'" {
         description
           "This augmentation is only valid for OSPFv3.";
       }
       uses ospfv3-e-lsa-body;
       description



Lindem & Palani         Expires December 29, 2018              [Page 28]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


         "OSPFv3 AS-Scoped Extended LSAs";
     }
   }

4.  Security Considerations

   The YANG modules specified in this document define a schema for data
   that is designed to be accessed via network management protocols such
   as NETCONF [RFC6241] or RESTCONF [RFC8040].  The lowest NETCONF layer
   is the secure transport layer, and the mandatory-to-implement secure
   transport is Secure Shell (SSH) [RFC6242].  The lowest RESTCONF layer
   is HTTPS, and the mandatory-to-implement secure transport is TLS
   [RFC5246].

   The NETCONF access control model [RFC6536] provides the means to
   restrict access for particular NETCONF or RESTCONF users to a pre-
   configured subset of all available NETCONF or RESTCONF protocol
   operations and content.

   There are a number of data nodes defined in ietf-ospfv3-extended-
   lsa.yang module that are writable/creatable/deletable (i.e., config
   true, which is the default).  These data nodes may be considered
   sensitive or vulnerable in some network environments.  Write
   operations (e.g., edit-config) to these data nodes without proper
   protection can have a negative effect on network operations.  For
   OSPFv3 Extended LSAs, the ability to disable OSPFv3 Extended LSA
   support result in a denial of service.

   Some of the readable data nodes in the ietf-ospfv3-extended-lsa.yang
   module may be considered sensitive or vulnerable in some network
   environments.  It is thus important to control read access (e.g., via
   get, get-config, or notification) to these data nodes.  The exposure
   of the Link State Database (LSDB) will expose the detailed topology
   of the network.  This may be undesirable since both due to the fact
   that exposure may facilitate other attacks.  Additionally, network
   operators may consider their topologies to be sensitive confidential
   data.

5.  IANA Considerations

   This document registers a URI in the IETF XML registry [RFC3688].
   Following the format in [RFC3688], the following registration is
   requested to be made:

      URI: urn:ietf:params:xml:ns:yang:ietf-ospfv3-extended-lsa
      Registrant Contact: The IESG.
      XML: N/A, the requested URI is an XML namespace.




Lindem & Palani         Expires December 29, 2018              [Page 29]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


   This document registers a YANG module in the YANG Module Names
   registry [RFC6020].

      name: ietf-ospfv3-extended-lsa
      namespace: urn:ietf:params:xml:ns:yang:ietf-ospfv3-extended-lsa
      prefix: ospfv3-e-lsa
      reference: RFC XXXX

6.  Acknowledgements

   This document was produced using Marshall Rose's xml2rfc tool.

   The YANG model was developed using the suite of YANG tools written
   and maintained by numerous authors.

7.  References

7.1.  Normative References

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997, <https://www.rfc-
              editor.org/info/rfc2119>.

   [RFC3688]  Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688,
              DOI 10.17487/RFC3688, January 2004, <https://www.rfc-
              editor.org/info/rfc3688>.

   [RFC5246]  Dierks, T. and E. Rescorla, "The Transport Layer Security
              (TLS) Protocol Version 1.2", RFC 5246,
              DOI 10.17487/RFC5246, August 2008, <https://www.rfc-
              editor.org/info/rfc5246>.

   [RFC5340]  Coltun, R., Ferguson, D., Moy, J., and A. Lindem, "OSPF
              for IPv6", RFC 5340, DOI 10.17487/RFC5340, July 2008,
              <https://www.rfc-editor.org/info/rfc5340>.

   [RFC6020]  Bjorklund, M., Ed., "YANG - A Data Modeling Language for
              the Network Configuration Protocol (NETCONF)", RFC 6020,
              DOI 10.17487/RFC6020, October 2010, <https://www.rfc-
              editor.org/info/rfc6020>.

   [RFC6241]  Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed.,
              and A. Bierman, Ed., "Network Configuration Protocol
              (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011,
              <https://www.rfc-editor.org/info/rfc6241>.





Lindem & Palani         Expires December 29, 2018              [Page 30]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


   [RFC6242]  Wasserman, M., "Using the NETCONF Protocol over Secure
              Shell (SSH)", RFC 6242, DOI 10.17487/RFC6242, June 2011,
              <https://www.rfc-editor.org/info/rfc6242>.

   [RFC6536]  Bierman, A. and M. Bjorklund, "Network Configuration
              Protocol (NETCONF) Access Control Model", RFC 6536,
              DOI 10.17487/RFC6536, March 2012, <https://www.rfc-
              editor.org/info/rfc6536>.

   [RFC7950]  Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language",
              RFC 7950, DOI 10.17487/RFC7950, August 2016,
              <https://www.rfc-editor.org/info/rfc7950>.

   [RFC8022]  Lhotka, L. and A. Lindem, "A YANG Data Model for Routing
              Management", RFC 8022, DOI 10.17487/RFC8022, November
              2016, <https://www.rfc-editor.org/info/rfc8022>.

   [RFC8040]  Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF
              Protocol", RFC 8040, DOI 10.17487/RFC8040, January 2017,
              <https://www.rfc-editor.org/info/rfc8040>.

   [RFC8349]  Lhotka, L., Lindem, A., and Y. Qu, "A YANG Data Model for
              Routing Management (NMDA Version)", RFC 8349,
              DOI 10.17487/RFC8349, March 2018, <https://www.rfc-
              editor.org/info/rfc8349>.

   [RFC8362]  Lindem, A., Roy, A., Goethals, D., Reddy Vallem, V., and
              F. Baker, "OSPFv3 Link State Advertisement (LSA)
              Extensibility", RFC 8362, DOI 10.17487/RFC8362, April
              2018, <https://www.rfc-editor.org/info/rfc8362>.

7.2.  Informative References

   [I-D.ietf-ospf-yang]
              Yeung, D., Qu, Y., Zhang, Z., Chen, I., and A. Lindem,
              "Yang Data Model for OSPF Protocol", draft-ietf-ospf-
              yang-11 (work in progress), April 2018.

Authors' Addresses

   Acee Lindem
   Cisco Systems
   301 Midenhall Way
   Cary, NC 27513

   EMail: acee@cisco.com





Lindem & Palani         Expires December 29, 2018              [Page 31]


Internet-Draft          OSPFv3 Extended LSAs Yang              June 2018


   Sharmila Palani
   Cisco Systems
   170 West Tasman Drive
   San Jose, CA 95134

   EMail: shpalani@cisco.com













































Lindem & Palani         Expires December 29, 2018              [Page 32]


Html markup produced by rfcmarkup 1.127, available from https://tools.ietf.org/tools/rfcmarkup/