TEAS Working Group                                             V. Beeram
Internet-Draft                                          Juniper Networks
Intended status: Standards Track                            T. Saad, Ed.
Expires: May 3, September 11, 2017                                    R. Gandhi
                                                     Cisco Systems Inc Systems, Inc.
                                                                  X. Liu
                                                                Ericsson
                                                                   Jabil
                                                              I. Bryskin
                                                     Huawei Technologies
                                                                 H. Shah
                                                                   Ciena
                                                                 X. Chen
                                                     Huawei Technologies
                                                                R. Jones
                                                                 Brocade
                                                                  B. Wen
                                                                 Comcast
                                                        October 30, 2016
                                                          March 10, 2017

       A YANG Data Model for Resource Reservation Protocol (RSVP)
                      draft-ietf-teas-yang-rsvp-06
                      draft-ietf-teas-yang-rsvp-07

Abstract

   This document defines a YANG data model for the configuration and
   management of RSVP Protocol.  The model defines generic RSVP protocol covers the building blocks of
   the RSVP protocol that can be augmented and used by other RSVP
   extension models such as RVSP extensions to Traffic-Engineering
   (RSVP-TE).  The model covers the RSVP protocol configuration, operational state,
   remote procedural calls, and event notifications data.

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 May 3, September 11, 2017.

Copyright Notice

   Copyright (c) 2016 2017 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.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3   2
     1.1.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   3
     1.2.  Tree Diagram  . . . . . . . . . . . . . . . . . . . . . .   3
     1.3.  Prefixes in Data Node Names . . . . . . . . . . . . . . .   4
     1.4.  Open Issues and Next Steps  . . . . . . . . . . . . . . .   5
       1.4.1.  Module Hierarchy  . . . . . . . . . . . . . . . . . .   5
       1.4.2.  Model Data Organization . . . . . . . . . . . . . . .   5
       1.4.3.  State Data  . . . . . . . . . . . . . . . . . . . . .   5
   2.  Design Considerations . . . . . . . . . . . . . . . . . . . .   6   5
     2.1.  Base Model(s) . .  Module Hierarchy  . . . . . . . . . . . . . . . . . . . .   6   5
     2.2.  Extended Model(s)  Data Organization . . . . . . . . . . . . . . . . . . . .   7   6
     2.3.  Configuration Inheritance . . . . . . . . . . . . . . . .   7
     2.4.  Routing Instance Support  . . . . . . . . . . . . . . . .   8
   3.  Model Organization  . . . . . . . . . . . . . . . . . . . . .   8   7
     3.1.  RSVP Base YANG Model  . . . . . . . . . . . . . . . . . .   8   7
       3.1.1.  Configuration and State  Global Data . . . . . . . . . . . .  10
       3.1.2.  RPC and Notification Data . . . . . . . . . . . .   9
       3.1.2.  Interface Data  . .  15
       3.1.3.  YANG Module . . . . . . . . . . . . . . . . .   9
       3.1.3.  Neighbor Data . . . .  15
     3.2.  RSVP Extended YANG Model . . . . . . . . . . . . . . . .  32
       3.2.1.  Configuration and State   9
       3.1.4.  Session Data  . . . . . . . . . . . .  32
       3.2.2.  YANG Module . . . . . . . . . . . . . . . . . . . . .  35
     3.3.  RSVP-TE Generic YANG Model   9
       3.1.5.  Tree Diagram  . . . . . . . . . . . . . . .  46
       3.3.1.  Configuration and State Data . . . . .   9
       3.1.6.  YANG Module . . . . . . .  47
       3.3.2.  RPC and Notification Data . . . . . . . . . . . . . .  50
       3.3.3.  14
     3.2.  RSVP Extended YANG Module . . . . . . Model  . . . . . . . . . . . . . . .  50
     3.4.  RSVP-TE MPLS Model .  33
       3.2.1.  Tree Diagram  . . . . . . . . . . . . . . . . . .  58
       3.4.1.  Configuration and State Data . .  34
       3.2.2.  YANG Module . . . . . . . . . .  58
       3.4.2.  RPC and Notification Data . . . . . . . . . . .  40
   4.  IANA Considerations . . .  62
       3.4.3.  YANG Module . . . . . . . . . . . . . . . . . .  52
   5.  Security Considerations . . .  62
   4.  IANA Considerations . . . . . . . . . . . . . . . .  52
   6.  Acknowledgement . . . . .  75
   5.  Security Considerations . . . . . . . . . . . . . . . . . .  52
   7.  Contributors  .  75
   6.  Acknowledgement . . . . . . . . . . . . . . . . . . . . . . .  76
   7.  53
   8.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  76
     7.1.  53
     8.1.  Normative References  . . . . . . . . . . . . . . . . . .  76
     7.2.  53
     8.2.  Informative References  . . . . . . . . . . . . . . . . .  77  54
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  78  55

1.  Introduction

   YANG [RFC6020] is a data definition language that was introduced 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 encoding other than XML (e.g.  JSON) are being
   defined.  Furthermore, YANG data models can be used as the basis of
   implementation for other interface, interfaces, such as CLI and programmatic
   APIs.

   This document defines a YANG data model that can be used to configure
   and manage the RSVP protocol. protocol [RFC2205].  This model covers generic RSVP
   protocol building blocks that can be augmented and used by other RSVP
   extension models- such as extensions for signaling RSVP-TE MPLS (or other
   technology specific) Label Switched Paths (LSP)s.

1.1.  Terminology

   In this document, the key words "MUST", "MUST NOT", "REQUIRED",
   "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY",
   and "OPTIONAL" are to be interpreted as described in BCP 14, RFC 2119
   [RFC2119].

1.2.  Tree Diagram

   A simplified graphical representation of the data model is presented
   in each section of the model.  The following notations are used for
   the YANG model data tree representation.

   <status> <flags> <name> <opts> <type>

    <status> is one of:
      +  for current
      x  for deprecated
      o  for obsolete

    <flags> is one of:
      rw  for read-write configuration data
      ro  for read-only non-configuration data
      -x  for execution rpcs
      -n  for notifications

    <name> is the name of the node

   If the node is augmented into the tree from another module, its name
   is printed as <prefix>:<name>

    <opts> is one of:
      ? for an optional leaf or node
      ! for a presence container
      * for a leaf-list or list
      Brackets [<keys>] for a list's keys
      Curly braces {<condition>} for optional feature that make node
   conditional
      Colon : for marking case nodes
      Ellipses ("...") subtree contents not shown

      Parentheses enclose choice and case nodes, and case nodes are also
      marked with a colon (":").

    <type> is the name of the type for leafs and leaf-lists.

1.3.  Prefixes in Data Node Names

   In this document, names of data nodes and other data model objects
   are prefixed using the standard prefix associated with the
   corresponding YANG imported modules, as shown in Table 1.

                   +--------+-----------------+-----------+

               +-----------+--------------------+-----------+
               | Prefix    | YANG module        | Reference |
                   +--------+-----------------+-----------+
               +-----------+--------------------+-----------+
               | yang      | ietf-yang-types    | [RFC6991] |
               | inet      | ietf-inet-types    | [RFC6991] |
                   +--------+-----------------+-----------+

               Table 1:
               | rt-type   | ietf-routing-types | XX        |
               | key-chain | ietf-key-chain     | XX        |
               +---------+----------------------+-----------+

               Table 1: Prefixes and corresponding YANG modules

1.4.  Open Issues and Next Steps

   This document covers

2.  Design Considerations

2.1.  Module Hierarchy

   The RSVP base YANG models for data pertaining to module augments the "control-plane-protocol" list
   in ietf-routing [RFC8022] module with specific RSVP parameters in an
   "rsvp" container.  It also defines an extensiion identity "rsvp" of
   base
   RSVP, "rt:routing-protocol" to identify the generic RSVP-TE, and RSVP protocol.

   During modeling discussion, some RSVP features are categorized as
   core to the MPLS RSVP-TE.  The current
   revision functionality of this draft covers the protocol, and hence, are supported
   by all vendors claiming the support for RSVP.  These features'
   configuration and state data, but
   future revisions were grouped in the RSVP base module.

   Other extended RSVP features are expected categorized as either optional or
   providing additional knobs to cover data for RPCs, and
   notifications.

1.4.1.  Module Hierarchy

   During discussions, some provide better tune basic functionality
   of the RSVP protocol.  The support for extended RSVP features by all
   vendors was considered optional.  Such features were debated whether
   they should be present grouped in the base a
   separate RSVP model or in extension extended module.

   The augmentation of the RSVP model by other models (e.g.  RSVP-TE model) especially that some features were
   defined in RSVP extension drafts for GMPLS
   MPLS or RSVP-TE states.  For
   example, other technologies) are considered outside the RSVP Hello extensions defined scope of this
   document and discussed in [RFC3209] with
   extensions to separate document(s).

                   +--------------+
          Routing  | ietf-routing |
                   +--------------+
                         o
                         |
                    +-----------+
     RSVP for TE states.  However, module    | ietf-rsvp |
                    +-----------+
                         o
                         |
     RSVP extended       |
       module       +--------------------+
                    | ietf-rsvp-extended |
                    +--------------------+

    Figure 1: Relationship of RSVP Hellos extension can
   also apply to non RSVP-TE states, and some vendor implementations,
   allow it RSVP extended modules with other
                             protocol modules

   The RSVP base model does not aim to be enabled independent of RSVP-TE features.

1.4.2.  Model Data Organization

   Throughout the model, the approach described in
   [I-D.openconfig-netmod-opstate] feature complete.  The primary
   intent is adopted to represent data
   pertaining to configuration intended state, applied state and derived
   state data elements.  Each container in cover a set of standard core features (listed below)
   that are commonly in use.

   o  Authentication ([RFC2747])

   o  Refresh Reduction ([RFC2961])

   o  Hellos ([RFC3209])

   o  Graceful Restart ([RFC3473], [RFC5063])

   The extended RSVP YANG model covers non-basic configuration(s) for
   RSVP feature(s) as well as optional RSVP feature that are not a must
   for basic RSVP operation.

2.2.  Data Organization

   Throughout the model, the approach described in
   [I-D.openconfig-netmod-opstate] is adopted to represent data
   pertaining to configuration intended state, applied state and derived
   state data elements.  Each container in the model hold a "config" and
   "state" sub-container.

   The "config" sub-container is used to represent the intended
   configurable parameters, and the state sub-
   container sub-container is used to
   represent both the applied configurable parameters and any derived
   state, such as counters or statistical information.

   The decision to use this approach was made to better align with the
   MPLS consolidated model in [I-D.openconfig-mpls-consolidated-model],
   and maximize reusability of groupings defined in this document and
   allow for possible convergence between the two models.

1.4.3.

   The approach described in [I-D.openconfig-netmod-opstate] allows for
   modeling the respective intended and applied configuration and
   derived state.  The state data can be categorized into one of the
   following:

   o  State Data corresponding to applied configuration

   o  State corresponding to derived state, counters, stats, etc.

   Pure state data (for example, protocol derived data) can be modeled
   using two options:

   o  Contained is placed inside
   the read-write container, under the "state" sub-
      container, sub-container, as shown in Figure 2

   o  Contained inside a separate read-only container 2.

2.3.  Configuration Inheritance

   The first option allows for reusing the same containers that hold
   configuration read-write data under a "config" sub-container, and by
   adding the state defined data under the read-only "state" sub-container of
   the container.  For ephemeral or purely derived states (e.g.  RSVP
   sessions), model supports configuration inheritance for
   neighbors, and since interfaces.  Data elements defined in this case the state would hang off a read-
   write parent container, it will be possible to delete the parent
   container and removing such state.

   The second option entails defining a new read-only parent main
   container
   in the model (e.g. neighbors-state) the container that holds encompasses the data.

   This revision list of
   interfaces, or neighbors) are assumed to apply equally to all
   elements of the draft adopts the first option.  Further
   discussions on this topic list, unless overridden explicitly for a certain
   element (e.g. interface).  Vendors are expected to close on augment the best choice above
   container(s) to
   adopt.

2.  Design Considerations

2.1.  Base Model(s)

   The base provide the list of inheritance command for their
   implementations.

3.  Model Organization

   This document divides the RSVP model into two modules: the RSVP base
   and extended.  Each module covers core features with the minimal set configuration, state,
   notification and RPCs of
   configuration parameters needed to operate them.  Additional core
   RSVP parameter configuration(s) as well as extended RSVP feature(s)
   are covered in a separate RSVP extended model. data.  The RSVP-TE [RFC3209] and other traffic-engineering specific
   enhancements are also addressed relationship between the
   different modules is depicted in separate module(s).  The generic
   and MPLS Figure 1.

3.1.  RSVP traffic-engineering models are augmentations to Base YANG Model

   This section describes the RSVP base model and are discussed YANG data model.  The container
   "rsvp" is the top level container in this revision data model.  The presence
   of this container enables the document in
   Section 3.3.

   Currently, the RSVP-TE module RSVP protocol functionality.

   Data for such state is presented as part contained under the respective "state" sub-
   container of this draft, and
   is mostly packet centric.  It is expected that the RSVP-TE YANG model
   will move to a separate document intended object (e.g. interface) as shown in
   Figure 2.

   module: ietf-rsvp
      +--rw rsvp!
         +--rw globals
               +-- rw config
                  <<intended configuration>>
               .
               +-- ro state
                  <<applied configuration>>
                  <<derived state associated with the next revision.

     TE basic       +---------+        ^: import
     module         | ietf-te |        o: augment
                    +---------+
                       |   o
                       |   |
                       v   |
                    +--------------+
     RSVP-TE module | ietf-rsvp-te |o tunnel>>
            .
            .
         +--rw interfaces
               +-- rw config
                  <<intended configuration>>
               .
                    +--------------+         \
                       ^   |                  \
                       |   o               +-------------------+
                    +-----------+          | ietf-rsvp-otn-te  |
     RSVP module    | ietf-rsvp |          +-------------------+
                    +-----------+             RSVP-TE with OTN
                         o                    extensions
                         |                   (shown for illustration
     RSVP extended       |                    not in this document)
       module       +--------------------+
                    | ietf-rsvp-extended |
                    +--------------------+

       Figure 1: Relationship of RSVP and RSVP-TE modules
               +-- ro state
                  <<applied configuration>>
                  <<derived state associated with other
                             protocol modules

   The RSVP base model in this revision of the document does not aim to
   be feature complete. tunnel>>
            .
            .
         +--rw neighbors
               +-- rw config
                  <<intended configuration>>
               .
               +-- ro state
                  <<applied configuration>>
                  <<derived state associated with the tunnel>>
            .
            .
         +--rw sessions
               +-- rw config
                  <<intended configuration>>
               .
               +-- ro state
                  <<applied configuration>>
                  <<derived state associated with the tunnel>>
            .
      rpcs:
         +--x global-rpc
         +--x interfaces-rpc
         +--x neighbors-rpc
         +--x sessions-rpc
      notifications:
         +--n global-notif
         +--n interfaces-notif
         +--n neighbors-notif
         +--n sessions-notif

                 Figure 2: RSVP high-level tree model view

   The primary intent is to cover a set following subsections provide overview of
   standard core features (listed below) that the parts of the model
   pertaining to configuration and state data.

   Configuration and state data are commonly in use.

   o  Authentication ([RFC2747])

   o  Refresh Reduction ([RFC2961])

   o  Hellos ([RFC3209])

   o  Graceful Restart ([RFC3473], [RFC5063])

2.2.  Extended Model(s)

   The extended RSVP YANG organized into those applicable
   globally (node scope), per interfaces, per neighbors, or per session.

3.1.1.  Global Data

   This branch of the data model covers non-basic configuration(s) for
   RSVP core feature(s) as well as optional RSVP feature global configuration and states
   that are not a
   must for basic control RSVP operation.

2.3.  Configuration Inheritance

   The defined protocol behavior.

3.1.2.  Interface Data

   This branch of the data model supports covers configuration inheritance for
   neighbors, and interfaces.  Data state elements defined in the main
   container (e.g.
   relevant to one or all RSVP interfaces.  Any data configuration
   applied at the "interfaces" container that encompasses the list of
   interfaces, or neighbors) level are assumed to apply equally applicable to
   all
   elements of the list, interfaces - unless overridden explicitly for by explicit configuration under a certain
   element (e.g. interface).  Vendors are expected to augment the above
   container(s) to provide the list of inheritance command for their
   implementations.

2.4.  Routing Instance Support

   There two main popular types
   specific interface.

3.1.3.  Neighbor Data

   This branch of routing protocol configuration that
   vendors may support:

   o  protocol centric - all the protocol related data model covers configuration is
      contained within the protocol itself.  Configuration belonging to
      multiple instances of the protocol running in different routing-
      instances (e.g.  VRFs) are contained under the default routing
      instance [I-D.ietf-netmod-routing-cfg]:

   o  VRF centric - all the protocol related configuration for a
      routing- instance is contained within this routing-instance.

   On-going discussions within the IETF community have converged on
   adopting the VRF centric approach.  The proposed model in this
   document adheres elements
   relevant to this conclusion.

3.  Model Organization

   This document defines YANG data models for RSVP base, RSVP extended,
   RSVP-TE generic, and RSVP-TE MPLS configuration, state, notification
   and RPCs.  The relationship between the different modules is depicted neighbors.  This would be discussed in Figure 1.

3.1.  RSVP Base YANG Model detail in
   future revisions.

3.1.4.  Session Data

   This section describes branch of the RSVP base YANG data model.  It model covers base
   RSVP protocol data defined by RSVP [RFC2205], and enhancements that
   pertain to the base protocol operation.

   The container "rsvp" is the top level container in this data model.
   The presence configuration of this container is expected elements
   relevant to enable RSVP protocol
   functionality.

   The approach described in [I-D.openconfig-netmod-opstate] allows for
   modeling the intended and respective applied and derived state.  The
   TE state data sessions.  This would be discussed in this model falls into one of the following
   categpries:

   o  State corresponding to applied configuration

   o  State corrsponding to derived state, counters, stats, etc.

   Data for such state is contained under the respective "state" sub-
   container of the intended object (e.g. interface) as shown detail in
   Figure 2.
   future revisions.

3.1.5.  Tree Diagram

module: ietf-rsvp
  augment
  /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol:
    +--rw rsvp!
       +--rw globals
               +-- rw config
                  <<intended configuration>>
               .
               +-- ro state
                  <<applied configuration>>
                  <<derived state associated with the tunnel>>
            .
            .
         +--rw interfaces
               +-- rw config
                  <<intended configuration>>
               .
               +-- ro state
                  <<applied configuration>>
                  <<derived state associated with the tunnel>>
            .
            .
         +--rw neighbors
               +-- rw config
                  <<intended configuration>>
               .
               +-- ro state
                  <<applied configuration>>
                  <<derived state associated with the tunnel>>
            .
            .
       |  +--rw sessions
               +-- rw config
                  <<intended configuration>>
               .
               +-- ro state
                  <<applied configuration>>
                  <<derived state associated with the tunnel>>
            .
      rpcs:
         +--x global-rpc
         +--x interfaces-rpc
         +--x neighbors-rpc
         +--x sessions-rpc
      notifications:
         +--n global-notif
         +--n interfaces-notif
         +--n neighbors-notif
         +--n sessions-notif

                    Figure 2: RSVP highlevel model view

   The following subsections provide overview of the parts of the model
   pertaining to configuration and state data.

3.1.1.  Configuration and State Data

3.1.1.1.  Global Data

   This branch of the data model covers global configuration and states
   that control RSVP protocol behavior.

   module: ietf-rsvp
   augment /rt:routing/rt:control-plane-protocols/
   rt:control-plane-protocol:
      +--rw rsvp!
         +--rw globals
       |  +--rw config  |  +--ro session* [local-index]
       |  +--rw graceful-restart  |     +--ro local-index    -> ../state/local-index
       |     +--rw enabled?   boolean  |     +--ro state
       |  |        +--ro graceful-restart local-index?        uint64
       |  |        +--ro enabled?   boolean destination-port?   inet:port-number
       |  |        +--ro packets-stats source?             inet:ip-address
       |  |        +--ro sent?   yang:counter32 destination?        inet:ip-address
       |  |        +--ro rcvd?   yang:counter32 session-name?       string
       |  |        +--ro protocol-stats session-state?      enumeration
       |  |        +--ro ack-sent?                   yang:counter32 session-type?       identityref
       |  |        +--ro ack-rcvd?                   yang:counter32 psbs
       |  |        |  +--ro bundle-sent?                yang:counter32 psb*
       |  |        |     +--ro bundle-rcvd?                yang:counter32 source-port?   inet:port-number
       |  |        |     +--ro hello-sent?                 yang:counter32 expires-in?    uint32
       |  |        +--ro hello-rcvd?                 yang:counter32 rsbs
       |  |           +--ro integrity-challenge-sent?   yang:counter32 rsb*
       |  |              +--ro integrity-challenge-rcvd?   yang:counter32 source-port?         inet:port-number
       |  |              +--ro integrity-response-sent?    yang:counter32 reservation-style?   identityref
       |  |              +--ro integrity-response-rcvd?    yang:counter32 expires-in?          uint32
       |  +--rw statistics
       |  |  +--ro notify-sent?                yang:counter32 state
       |  |     +--ro notify-rcvd?                yang:counter32 messages
       |  |     |  +--ro path-sent?                  yang:counter32 ack-sent?                       yang:counter64
       |  |     |  +--ro path-rcvd?                  yang:counter32 ack-received?                   yang:counter64
       |  |     |  +--ro path-err-sent?              yang:counter32 bundle-sent?                    yang:counter64
       |  |     |  +--ro path-err-rcvd?              yang:counter32 bundle-received?                yang:counter64
       |  |     |  +--ro path-tear-sent?             yang:counter32 hello-sent?                     yang:counter64
       |  |     |  +--ro path-tear-rcvd?             yang:counter32 hello-received?                 yang:counter64
       |  |     |  +--ro resv-sent?                  yang:counter32 integrity-challenge-sent?       yang:counter64
       |  |     |  +--ro resv-rcvd?                  yang:counter32 integrity-challenge-received?   yang:counter64
       |  |     |  +--ro resv-confirm-sent?          yang:counter32 integrity-response-sent?        yang:counter64
       |  |     |  +--ro resv-confirm-rcvd?          yang:counter32 integrity-response-received?    yang:counter64
       |  |     |  +--ro resv-err-sent?              yang:counter32 notify-sent?                    yang:counter64
       |  |     |  +--ro resv-err-rcvd?              yang:counter32 notify-received?                yang:counter64
       |  |     |  +--ro resv-tear-sent?             yang:counter32 path-sent?                      yang:counter64
       |  |     |  +--ro resv-tear-rcvd?             yang:counter32 path-received?                  yang:counter64
       |  |     |  +--ro summary-refresh-sent?       yang:counter32 path-err-sent?                  yang:counter64
       |  |     |  +--ro summary-refresh-rcvd?       yang:counter32 path-err-received?              yang:counter64
       |  |  +--ro unknown-recv?               yang:counter32     |  +--ro errors-stats path-tear-sent?                 yang:counter64
       |  |     |  +--ro path-tear-received?             yang:counter64
       |  |     |  +--ro resv-sent?                      yang:counter64
       |  |     |  +--ro resv-received?                  yang:counter64
       |  |     |  +--ro resv-confirm-sent?              yang:counter64
       |  |     |  +--ro resv-confirm-received?          yang:counter64
       |  |     |  +--ro resv-err-sent?                  yang:counter64
       |  |     |  +--ro resv-err-received?              yang:counter64
       |  |     |  +--ro resv-tear-sent?                 yang:counter64
       |  |     |  +--ro resv-tear-received?             yang:counter64
       |  |     |  +--ro summary-refresh-sent?           yang:counter64
       |  |     |  +--ro summary-refresh-received?       yang:counter64
       |  |     |  +--ro unknown-messages-received?      yang:counter64
       |  |     +--ro packets
       |  |     |  +--ro sent?       yang:counter64
       |  |     |  +--ro received?   yang:counter64
       |  |     +--ro errors
       |  |        +--ro authenticate?   yang:counter64
       |  |        +--ro checksum?       yang:counter64
       |  |        +--ro packet-len?     yang:counter64

3.1.1.2.  Interface Data

   This branch of the data model covers configuration and state elements
   relevant to one or all RSVP interfaces.  Any data configuration
   applied at the "interfaces" container level are equally applicable to
   all interfaces - unless overridden by explicit configuration under a
   specific interface.

         +--rw interfaces
       |  +--rw config
         | graceful-restart
       |     +--rw refresh-reduction
         | config
       |     |  +--rw enabled?   boolean
       |     +--ro state
       |        +--ro enabled?   boolean
       +--rw rsvp-hellos interfaces
       |  +--rw config
       |  +--ro state
       |  +--rw enabled?   boolean refresh-reduction
       |  |  +--rw authentication config
       |  |  |  +--rw enabled?   boolean
       |  |     +--rw password?    string
         |  |     +--rw algorithm?   identityref
         |  +--ro state
       |  |     +--ro refresh-reduction enabled?   boolean
       |  +--rw hellos
       |  |  +--rw config
       |  +--ro  |  |  +--rw enabled?   boolean
       |  |  +--ro rsvp-hellos
         | state
       |  |     +--ro enabled?   boolean
       |  |  +--ro  +--rw authentication
       |  |  +--rw config
       |  +--ro  |  |  +--rw enabled?              boolean
       |  |  |  +--ro password?  +--rw authentication-key?   string
       |  |  |  +--ro algorithm?  +--rw crypto-algorithm      identityref
       |  |  +--ro packets-stats state
       |  |     +--ro enabled?              boolean
       |  |     +--ro authentication-key?   string
       |  |     +--ro sent?   yang:counter32 crypto-algorithm      identityref
       |  +--rw statistics
       |  |  +--ro rcvd?   yang:counter32 state
       |  |     +--ro protocol-stats messages
       |  |     |  +--ro ack-sent?                   yang:counter32                       yang:counter64
       |  |     |  +--ro ack-rcvd?                   yang:counter32 ack-received?                   yang:counter64
       |  |     |  +--ro bundle-sent?                yang:counter32                    yang:counter64
       |  |     |  +--ro bundle-rcvd?                yang:counter32 bundle-received?                yang:counter64
       |  |     |  +--ro hello-sent?                 yang:counter32                     yang:counter64
       |  |     |  +--ro hello-rcvd?                 yang:counter32 hello-received?                 yang:counter64
       |  |     |  +--ro integrity-challenge-sent?   yang:counter32       yang:counter64
       |  |     |  +--ro integrity-challenge-rcvd?   yang:counter32 integrity-challenge-received?   yang:counter64
       |  |     |  +--ro integrity-response-sent?    yang:counter32        yang:counter64
       |  |     |  +--ro integrity-response-rcvd?    yang:counter32 integrity-response-received?    yang:counter64
       |  |     |  +--ro notify-sent?                yang:counter32                    yang:counter64
       |  |     |  +--ro notify-rcvd?                yang:counter32 notify-received?                yang:counter64
       |  |     |  +--ro path-sent?                  yang:counter32                      yang:counter64
       |  |     |  +--ro path-rcvd?                  yang:counter32 path-received?                  yang:counter64
       |  |     |  +--ro path-err-sent?              yang:counter32                  yang:counter64
       |  |     |  +--ro path-err-rcvd?              yang:counter32 path-err-received?              yang:counter64
       |  |     |  +--ro path-tear-sent?             yang:counter32                 yang:counter64
       |  |     |  +--ro path-tear-rcvd?             yang:counter32 path-tear-received?             yang:counter64
       |  |     |  +--ro resv-sent?                  yang:counter32                      yang:counter64
       |  |     |  +--ro resv-rcvd?                  yang:counter32 resv-received?                  yang:counter64
       |  |     |  +--ro resv-confirm-sent?          yang:counter32              yang:counter64
       |  |     |  +--ro resv-confirm-rcvd?          yang:counter32 resv-confirm-received?          yang:counter64
       |  |     |  +--ro resv-err-sent?              yang:counter32                  yang:counter64
       |  |     |  +--ro resv-err-rcvd?              yang:counter32 resv-err-received?              yang:counter64
       |  |     |  +--ro resv-tear-sent?             yang:counter32                 yang:counter64
       |  |     |  +--ro resv-tear-rcvd?             yang:counter32 resv-tear-received?             yang:counter64
       |  |     |  +--ro summary-refresh-sent?       yang:counter32           yang:counter64
       |  |     |  +--ro summary-refresh-rcvd?       yang:counter32 summary-refresh-received?       yang:counter64
       |  |     |  +--ro unknown-recv?               yang:counter32 unknown-messages-received?      yang:counter64
       |  |     +--ro packets
       |  |     |  +--ro sent?       yang:counter64
       |  |     |  +--ro received?   yang:counter64
       |  |     +--ro errors-stats errors
       |  |        +--ro authenticate?   yang:counter64
       |  |        +--ro checksum?       yang:counter64
       |  |        +--ro packet-len?     yang:counter64
       |  +--rw interface* [interface]
       |     +--rw interface            if:interface-ref
       |     +--rw config
       |     +--ro state
       |     +--rw refresh-reduction
       |     |  |  +--rw enabled?   boolean
         |     |  +--rw rsvp-hellos config
       |     |  |  +--rw enabled?   boolean
       |     |  +--rw authentication  +--ro state
       |     |     +--rw     +--ro enabled?   boolean
       |     |     +--rw password?    string hellos
       |     |  +--rw algorithm?   identityref
         |     +--ro state config
       |        +--ro refresh-reduction     |  |  +--ro  +--rw enabled?   boolean
       |     |  +--ro rsvp-hellos state
       |     |     +--ro enabled?   boolean
       |        +--ro     +--rw authentication
       |     |  +--ro  +--rw config
       |     |  |  +--rw enabled?              boolean
       |     |  +--ro password?  |  +--rw authentication-key?   string
       |     |  +--ro algorithm?  |  +--rw crypto-algorithm      identityref
       |     |  +--ro packets-stats state
       |     |     +--ro sent?   yang:counter32 enabled?              boolean
       |     |     +--ro rcvd?   yang:counter32 authentication-key?   string
       |     |     +--ro crypto-algorithm      identityref
       |     +--rw statistics
       |        +--ro protocol-stats state
       |           +--ro messages
       |           |  +--ro ack-sent?                   yang:counter32                     yang:counter64
       |           |  +--ro ack-rcvd?                   yang:counter32 ack-received?                 yang:counter64
       |           |  +--ro bundle-sent?                yang:counter32                  yang:counter64
       |           |  +--ro bundle-rcvd?                yang:counter32 bundle-received?              yang:counter64
       |           |  +--ro hello-sent?                 yang:counter32                   yang:counter64
       |           |  +--ro hello-rcvd?                 yang:counter32 hello-received?               yang:counter64
       |           |  +--ro integrity-challenge-sent?   yang:counter32     yang:counter64
       |           |  +--ro integrity-challenge-rcvd?   yang:counter32 integrity-challenge-received? yang:counter64
       |           |  +--ro integrity-response-sent?    yang:counter32      yang:counter64
       |           |  +--ro integrity-response-rcvd?    yang:counter32 integrity-response-received?  yang:counter64
       |           |  +--ro notify-sent?                yang:counter32                  yang:counter64
       |           |  +--ro notify-rcvd?                yang:counter32 notify-received?              yang:counter64
       |           |  +--ro path-sent?                  yang:counter32                    yang:counter64
       |           |  +--ro path-rcvd?                  yang:counter32 path-received?                yang:counter64
       |           |  +--ro path-err-sent?              yang:counter32                yang:counter64
       |           |  +--ro path-err-rcvd?              yang:counter32 path-err-received?            yang:counter64
       |           |  +--ro path-tear-sent?             yang:counter32               yang:counter64
       |           |  +--ro path-tear-rcvd?             yang:counter32 path-tear-received?           yang:counter64
       |           |  +--ro resv-sent?                  yang:counter32                    yang:counter64
       |           |  +--ro resv-rcvd?                  yang:counter32 resv-received?                yang:counter64
       |           |  +--ro resv-confirm-sent?          yang:counter32            yang:counter64
       |           |  +--ro resv-confirm-rcvd?          yang:counter32 resv-confirm-received?        yang:counter64
       |           |  +--ro resv-err-sent?              yang:counter32                yang:counter64
       |           |  +--ro resv-err-rcvd?              yang:counter32 resv-err-received?            yang:counter64
       |           |  +--ro resv-tear-sent?             yang:counter32               yang:counter64
       |           |  +--ro resv-tear-rcvd?             yang:counter32 resv-tear-received?           yang:counter64
       |           |  +--ro summary-refresh-sent?       yang:counter32         yang:counter64
       |           |  +--ro summary-refresh-rcvd?       yang:counter32 summary-refresh-received?     yang:counter64
       |           |  +--ro unknown-recv?               yang:counter32 unknown-messages-received?    yang:counter64
       |           +--ro errors-stats packets
       |           +--ro authenticate?   yang:counter64           |  +--ro checksum? sent?       yang:counter64
       |           |  +--ro packet-len? received?   yang:counter64

3.1.1.3.  Session Data

   This branch of the data model covers configuration of elements
   relevant to RSVP neighbors.  This would be discussed in detail in
   future revisions.

   module: ietf-rsvp
      +--rw rsvp!
         +--rw sessions
         |  +--rw session* [dst_port source destination]
         |     +--rw dst_port       uint16
       |     +--rw source         inet:ip-address           +--ro errors
       |     +--rw destination    inet:ip-address              +--ro authenticate?   yang:counter64
       |     +--rw config              +--ro checksum?       yang:counter64
       |              +--ro state

3.1.1.4.  Neighbor Data

   This branch of the data model covers configuration of elements
   relevant to RSVP sessions.  This would be discussed in detail in
   future revisions.

 module: ietf-rsvp
    +--rw rsvp! packet-len?     yang:counter64
       +--rw neighbors
          +--rw neighbor* [address]
             +--rw address                inet:ip-address
             +--rw neighbor-attributes    -> ../config/address
             +--rw config
             |  +--rw address?   inet:ip-address
             +--ro state
                +--ro address?                     inet:ip-address
                +--ro epoch?                       uint32
                +--ro expiry-time?                 uint32
                +--ro graceful-restart
                |  +--ro enabled?                  boolean
                |  +--ro local-restart-time?       uint32
                |  +--ro local-recovery-time?      uint32
                |  +--ro nbr-restart-time? neighbor-restart-time?    uint32
                |  +--ro nbr-recovery-time? neighbor-recovery-time?   uint32
                |  +--ro helper-mode
                |     +--ro helper-mode? enabled?                            boolean
                |     +--ro max-helper-restart-time?            uint32
                |     +--ro max-helper-recovery-time?           uint32
                |     +--ro nbr-restart-ttd? neighbor-restart-time-remaining?    uint32
                |     +--ro nbr-recovery-ttd? neighbor-recovery-time-remaining?   uint32
                +--ro hello-status?                enumeration {hellos}?
                +--ro interface?                   if:interface-ref
                +--ro neighbor-state?              enumeration
                +--ro psb-count?                   uint32
                   +--ro rsb-count?                   uint32
                   +--ro refresh-reduction-capable?   boolean
                +--ro restart-count?               uint32               yang:counter32
                +--ro restart-time?                yang:date-and-time

3.1.2.  RPC and Notification Data

   TBD.

3.1.3.

                     Figure 3: RSVP model tree diagram

3.1.6.  YANG Module

   <CODE BEGINS> file "ietf-rsvp@2016-10-29.yang" "ietf-rsvp@2017-03-10.yang"
   module ietf-rsvp {

     namespace "urn:ietf:params:xml:ns:yang:ietf-rsvp";

     /* Replace with IANA when assigned */
     prefix "rsvp";

     import ietf-interfaces {
       prefix "if";
     }

     import ietf-inet-types {
       prefix inet;
     }

     import ietf-yang-types {
       prefix "yang";
     }

     import ietf-routing {
       prefix "rt";
     }

     import ietf-key-chain {
       prefix "key-chain";
     }

     organization
       "IETF Traffic Engineering Architecture and Signaling (TEAS)
        Working Group";

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

        WG Chair: Lou Berger
                  <mailto:lberger@labn.net>

        WG Chair: Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Tarek Saad
                  <mailto:tsaad@cisco.com>

        Editor:   Rakesh Gandhi
                  <mailto:rgandhi@cisco.com>

        Editor:   Himanshu Shah
                  <mailto:hshah@ciena.com>

        Editor:   Xufeng Liu
                  <mailto:xliu@kuatrotech.com>
                  <mailto:Xufeng_Liu@jabil.com>

        Editor:   Xia Chen
                  <mailto:jescia.chenxia@huawei.com>

        Editor:   Raqib Jones
                  <mailto:raqib@Brocade.com>

        Editor:   Bin Wen
                  <mailto:Bin_Wen@cable.comcast.com>";

     description
       "This module contains the RSVP YANG data model.";

     revision "2016-10-29" "2017-03-10" {
       description "Latest revision of RSVP yang module.";
       reference "RFC2205";
     }

     identity rsvp {
       base "rt:routing-protocol";
       description "RSVP protocol";
     }

     identity hash-algorithm rsvp-session-type {
       description "Base RSVP session type";
     }

     identity rsvp-session-ipv4 {
       base rsvp-session-type;
       description "RSVP IPv4 session type";
     }

     identity rsvp-session-ipv6 {
       base rsvp-session-type;
       description "RSVP IPv4 session type";
     }

     identity reservation-style {
       description "Base identity for message-digest algorithm"; reservation style";
     }

     identity MD5 reservation-wildcard-filter {
       base hash-algorithm; reservation-style;
       description
         "MD5 hash algorithm"; "Wildcard-Filter (WF) Style";
       reference "RFC1321"; "RFC2205";
     }

     identity SHA-1 reservation-fixed-filter {
       base hash-algorithm; reservation-style;
       description
         "SHA-1 hash algorithm"; "Fixed-Filter (FF) Style";
       reference "NIST, FIPS PUB 180-1: Secure Hash Standard"; "RFC2205";
     }

     identity reservation-shared-explicit {
       base reservation-style;
       description "Shared Explicit (SE) Style";
       reference "RFC2205";
     }

     grouping graceful-restart_config {
       description
         "Base configuration parameters relating to RSVP
          Graceful-Restart";
       leaf enabled {
         type boolean;
         description
           "'true' if RSVP Graceful Restart is enabled.
            'false' if RSVP Graceful Restart is disabled.";
       }
     }

     grouping graceful-restart {
       description
         "Top level grouping for RSVP graceful-restart
         parameters";
         "RSVP graceful restart parameters grouping";
       container graceful-restart {
         description
           "Top level
           "RSVP graceful restart parameters container";
         container config {
           description
             "Configuration parameters for RSVP graceful-restart"; graceful restart
              properties";
           uses graceful-restart_config;
         }
         container state {
           config false;
           description
             "State parameters for graceful restart
              properties";
           uses graceful-restart_config;
         }
       }
     }

     grouping refresh-reduction_config {
       description
         "Configuration parameters relating to RSVP
          refresh reduction";

       leaf enabled {
         type boolean;
         description
           "'true' if RSVP Refresh Reduction is enabled.
            'false' if RSVP Refresh Reduction is disabled.";
       }
     }

     grouping refresh-reduction {
       description
         "Top level grouping for RSVP refresh reduction
          parameters";
       container refresh-reduction {
         description
           "Top level container for RSVP refresh reduction
            parameters";
         container config {
           description
             "Configuration parameters relating to
              RSVP refresh reduction parameters";
           uses refresh-reduction_config;
         }
         container state {
           config false;
           description
             "State information associated with RSVP
              refresh reduction parameters";
           uses refresh-reduction_config;
         }
       }
     }

     grouping authentication_config {
       description
         "Configuration parameters relating to RSVP
          authentication";
       leaf enabled {
         type boolean;
         description
           "'true' if RSVP Authenticaiton Authentication is enabled.
            'false' if RSVP Authenticaiton Authentication is disabled.";
       }
       leaf password authentication-key {
         type string;
         description
           "An authentication key string";
         reference
           "RFC 2747: RSVP Cryptographic Authentication";
       }
       leaf algorithm crypto-algorithm {
        type identityref {
          base hash-algorithm; key-chain:crypto-algorithm;
        }
        mandatory true;
        description
          "Cryptographic hash algorithm"; algorithm associated with key.";
       }
     }

     grouping authentication {
       description
         "Top level grouping for RSVP authentication parameters";
       container authentication {
         description
           "Top level container for RSVP authentication
            parameters";
         container config {
           description
             "Configuration parameters relating to
              RSVP authentication parameters";

           uses authentication_config;
         }
         container state {
           config false;
           description
             "State information associated with RSVP
              authentication parameters";
           uses authentication_config;
         }
       }
     }

     grouping rsvp-hellos_config hellos_config {
       description
         "Configuration parameters relating to RSVP
         hellos";
       leaf enabled {
         type boolean;
         description
           "'true' if RSVP Hello is enabled.
            'false' if RSVP Hello is disabled.";
       }
     }

     grouping rsvp-hellos hellos {
       description
         "Top level grouping for RSVP hellos parameters";
       container rsvp-hellos hellos {
         description
           "Top level container for RSVP hello parameters";
         container config {
           description
             "Configuration parameters relating to
              RSVP hello parameters";
           uses hellos_config;
         }
         container state {
           config false;
           description
             "State information associated with RSVP
              hello parameters";
           uses rsvp-hellos_config; hellos_config;
         }
       }
     }

     grouping signaling-parameters_config {
       description
         "Configuration parameters relating to RSVP
         signaling";
     }

     grouping signaling-parameters {
       description
         "Top level grouping for RSVP signaling  parameters";
       uses signaling-parameters_config;
     }

     grouping session-attributes {
       description
         "Top level grouping for RSVP session properties";
       container config {
         description
           "Configuration for session properties"; parameters relating to
            RSVP signaling parameters";
         uses signaling-parameters_config;
       }
       container state {
         config false;
         description
           "State information associated with RSVP
            session properties";
            signaling parameters";
         uses signaling-parameters_config;
       }
     }

     grouping neighbor-attributes session-attributes_state {
       description
         "Top level grouping for RSVP neighbor session properties";
       container neighbor-attributes
       leaf local-index {
         type uint64;
         description
           "Top level container for
           "The index used to identify the RSVP neighbor properties";
         container config session
            on the local network element. This index is
            generated by the device and is unique only
            to the local network element.";
       }
       leaf destination-port {
         type inet:port-number;
         description "RSVP destination port";
         reference "RFC2205";
       }
       leaf source {
         type inet:ip-address;
         description "RSVP source address";
         reference "RFC2205";
       }
       leaf destination {
         type inet:ip-address;
         description "RSVP destination address";
         reference "RFC2205";
       }
       leaf session-name {
         type string;
         description
           "The signaled name of this RSVP session.";
       }
       leaf session-state {
         type enumeration {
           enum "up" {
             description
               "RSVP session is up";
           }
           enum "down" {
             description
               "RSVP session is down";
           }
         }
         description
           "Enumeration of RSVP session states";
       }
       leaf session-type {
         type identityref {
           base rsvp-session-type;
         }
         description "RSVP session type";
       }
       container psbs {
         description "Path State Block container";
         list psb {
           description "List of path state blocks";
           leaf source-port {
             type inet:port-number;
             description "RSVP source port";
             reference "RFC2205";
           }
           leaf expires-in {
             type uint32;
             units seconds;
             description "Time to reservation expiry (in seconds)";
           }
         }
       }
       container rsbs {
         description "Reservation State Block container";
         list rsb {
           description "List of reservation state blocks";
           leaf source-port {
             type inet:port-number;
             description "RSVP source port";
             reference "RFC2205";
           }
           leaf reservation-style {
             type identityref {
               base reservation-style;
             }
             description "RSVP reservation style";
           }
           leaf expires-in {
             type uint32;
             units seconds;
             description "Time to reservation expiry (in seconds)";
           }
         }
       }
     }

     grouping neighbor-attributes {
       description
         "Top level grouping for RSVP neighbor properties";
       container config {
         description
           "Configuration for neighbor properties";
         leaf address {
           type inet:ip-address;
           description
             "Address of RSVP neighbor";
         }
       }
       container state {
         config false;
         description
           "State information associated with RSVP
            neighbor properties";
         uses neighbor-derived_state;
       }
     }
     }

     grouping statistics-packets_state packets_state {
       description
         "Packet statistics grouping";
       container packets-stats packets {
         description
           "Packet statistics container";
         leaf sent {
           type yang:counter32; yang:counter64;
           description
             "Packet sent count";

         }

         leaf rcvd received {
           type yang:counter32; yang:counter64;
           description
             "Packet received count";
         }
       }
     }

     grouping statistics-protocol_state protocol_state {
       description
         "RSVP protocol statistics grouping";
       container protocol-stats messages {
         description
           "RSVP protocol statistics container";
         leaf ack-sent {
           type yang:counter32; yang:counter64;
           description
             "Hello sent count";
         }

         leaf ack-rcvd ack-received {
           type yang:counter32; yang:counter64;
           description
             "Hello received count";
         }

         leaf bundle-sent {
           type yang:counter32; yang:counter64;
           description
             "Bundle sent count";
         }

         leaf bundle-rcvd bundle-received {
           type yang:counter32; yang:counter64;
           description
             "Bundle received count";
         }

         leaf hello-sent {
           type yang:counter32; yang:counter64;
           description
             "Hello sent count";
         }

         leaf hello-rcvd hello-received {
           type yang:counter32; yang:counter64;
           description
             "Hello received count";
         }

         leaf integrity-challenge-sent {
           type yang:counter32; yang:counter64;
           description
             "Integrity Challenge sent count";
         }

         leaf integrity-challenge-rcvd integrity-challenge-received {
           type yang:counter32; yang:counter64;
           description
             "Integrity Challenge received count";
         }

         leaf integrity-response-sent {
           type yang:counter32; yang:counter64;
           description
             "Integrity Response sent count";
         }

         leaf integrity-response-rcvd integrity-response-received {
           type yang:counter32; yang:counter64;
           description
             "Integrity Response received count";
         }

         leaf notify-sent {
           type yang:counter32; yang:counter64;
           description
             "Notify sent count";
         }

         leaf notify-rcvd notify-received {
           type yang:counter32; yang:counter64;
           description
             "Notify received count";
         }

         leaf path-sent {
           type yang:counter32; yang:counter64;
           description
             "Path sent count";
         }

         leaf path-rcvd path-received {
           type yang:counter32; yang:counter64;
           description
             "Path received count";
         }

         leaf path-err-sent {
           type yang:counter32; yang:counter64;
           description
             "Path error sent count";
         }

         leaf path-err-rcvd path-err-received {
           type yang:counter32; yang:counter64;
           description
             "Path error received count";
         }

         leaf path-tear-sent {
           type yang:counter32; yang:counter64;
           description
             "Path tear sent count";
         }

         leaf path-tear-rcvd path-tear-received {
           type yang:counter32; yang:counter64;
           description
             "Path tear received count";
         }

         leaf resv-sent {
           type yang:counter32; yang:counter64;
           description
             "Resv sent count";
         }

         leaf resv-rcvd resv-received {
           type yang:counter32; yang:counter64;
           description
             "Resv received count";
         }

         leaf resv-confirm-sent {
           type yang:counter32; yang:counter64;
           description
             "Confirm sent count";
         }

         leaf resv-confirm-rcvd resv-confirm-received {
           type yang:counter32; yang:counter64;
           description
             "Confirm received count";
         }

         leaf resv-err-sent {
           type yang:counter32; yang:counter64;
           description
             "Resv error sent count";
         }

         leaf resv-err-rcvd resv-err-received {
           type yang:counter32; yang:counter64;
           description
             "Resv error received count";
         }

         leaf resv-tear-sent {
           type yang:counter32; yang:counter64;
           description
             "Resv tear sent count";
         }

         leaf resv-tear-rcvd resv-tear-received {
           type yang:counter32; yang:counter64;
           description
             "Resv tear received count";
         }

         leaf summary-refresh-sent {
           type yang:counter32; yang:counter64;
           description
             "Summary refresh sent count";
         }

         leaf summary-refresh-rcvd summary-refresh-received {
           type yang:counter32; yang:counter64;
           description
             "Summary refresh received count";
         }

         leaf unknown-recv unknown-messages-received {
           type yang:counter32; yang:counter64;
           description
             "Unknown packet received count";
         }
       }
     }
     grouping statistics-errors_state errors_state {
       description
         "Error statistics state grouping";
       container errors-stats errors {
         description
           "Error statistics state container";
         leaf authenticate {
           type yang:counter64;
           description
             "The total number of packets received with an
             authentication failure.";
         }

         leaf checksum {
           type yang:counter64;
           description
             "The total number of packets received with an invalid
             checksum value.";
         }

         leaf packet-len {
           type yang:counter64;
           description
             "The total number of packets received with an invalid
             packet length.";
         }
       }
     } // statistics_state

     grouping statistics_state {
       description "RSVP statistic attributes.";
       container statistics {
         description
           "statistics state container";
         container state {
           config false;
           description
             "State information associated with RSVP
              hello parameters";
           uses statistics-packets_state; protocol_state;
           uses statistics-protocol_state; packets_state;
           uses statistics-errors_state; errors_state;
         }
       }
     }

     grouping neighbor-derived_state {
       description
         "Derived state at neighbor level.";

       leaf address {
         type inet:ip-address;
         description
           "Address of RSVP neighbor";
       }

       leaf epoch {
         type uint32;
         description
           "Neighbor epoch.";
       }

       leaf expiry-time {
         type uint32;
         units seconds;
         description
           "Neighbor expiry time after which the neighbor state
           is purged if no states associated with it";
       }

       container graceful-restart {
         description
           "Graceful restart information.";

         leaf enabled {
           type boolean;
           description
             "'true' if graceful restart is enabled for the
             neighbor.";
         }

         leaf local-restart-time {
           type uint32;
           units seconds;
           description
             "Local node restart time";
         }

         leaf local-recovery-time {
           type uint32;
           units seconds;
           description
             "Local node recover time";
         }

         leaf nbr-restart-time neighbor-restart-time {
           type uint32;
           units seconds;
           description
             "Neighbor restart time";
         }

         leaf nbr-recovery-time neighbor-recovery-time {
           type uint32;
           units seconds;
           description
             "Neighbor recover time";
         }

         container helper-mode {
           description
             "Helper mode information ";

           leaf helper-mode enabled {
             type boolean;
             description
               "'true' if helper mode is enabled.";
           }

           leaf max-helper-restart-time {
             type uint32;
             units seconds;
             description
               "The time the router or switch waits after it
                discovers that a neighboring router has gone down
                before it declares the neighbor down";
           }

           leaf max-helper-recovery-time {
             type uint32;
             units seconds;
             description
               "The amount of time the router retains the state of its
                RSVP neighbors while they undergo a graceful restart";
           }

           leaf nbr-restart-ttd neighbor-restart-time-remaining {
             type uint32;
             units seconds;
             description
               "Number of seconds remaining for neighbor to send
                Hello message after restart.";
           }
           leaf nbr-recovery-ttd neighbor-recovery-time-remaining {
             type uint32;
             units seconds;
             description
               "Number of seconds remaining for neighbor to
               refresh.";
           }
         } // helper-mode
       } // graceful-restart

       leaf hello-status {
         type enumeration {
           enum "enabled" {
             description
               "Enabled";
           }
           enum "disabled" {
             description
               "Disabled";
           }
           enum "restarting" {
             description
               "Restarting";
           }
         }
         description
           "Hello status";
       }

       leaf interface {
         type if:interface-ref;
         description
           "Interface to this neighbor."; where RSVP neighbor was detected";
       }

       leaf neighbor-state {
         type enumeration {
           enum "up" {
             description
               "up";
           }
           enum "down" {
             description
               "down";
           }
           enum "hello-disable" {
             description
               "hello-disable";

           }
           enum "restarting" {
             description
               "restarting";
           }
         }
         description
           "Neighbor state";
       }

       leaf psb-count {
         type uint32;
         description
           "Number of PSB state currently referencing the
           neighbor.";
       }

       leaf rsb-count {
         type uint32;
         description
           "Number of RSB state currently referencing the
           neighbor.";
       }

       leaf refresh-reduction-capable {
         type boolean;
         description
           "Whether neighbor is
           "enables all RSVP refresh reduction capable."; message
            bundling, RSVP message ID, reliable message delivery
            and summary refresh";
         reference
           "RFC 2961 RSVP Refresh Overhead Reduction
            Extensions";
       }

       leaf restart-count {
         type uint32; yang:counter32;
         description
           "Number of times this neighbor restart";
       }

       leaf restart-time {
         type yang:date-and-time;
         description
           "Last restart time of the neighbor";
       }
     } // neighbor-derived_state

     grouping global-attributes {
       description
         "Top level grouping for RSVP global properties";
       container sessions {
         description
           "RSVP sessions container";
         list session {
           key "local-index";
           config false;
           description
             "List of RSVP sessions";

           leaf local-index {
             type leafref {
               path "../state/local-index";
             }
             description
           "Configuration globals properties";
         uses graceful-restart;
               "Reference to the local index for the RSVP
               session";
           }
           container state {
             config false;
             description
               "State information associated with RSVP
            global properties";
                session parameters";
             uses graceful-restart; session-attributes_state;
           }
         }
       }
       uses statistics_state;
     }
     }

     grouping intf-attributes {
       description
         "Top level grouping for RSVP interface properties";
       container config {
         description
           "Configuration parameters relating to
           RSVP interface parameters";
         uses signaling-parameters;
         uses refresh-reduction;
         uses rsvp-hellos;
         uses authentication;
       }
       container state {
         config false;
         description
           "State information associated with RSVP
            interface parameters";
       uses signaling-parameters;
       uses refresh-reduction;
       uses rsvp-hellos; hellos;
       uses authentication;
       uses statistics_state;
     }
     }

     augment "/rt:routing/rt:control-plane-protocols/"
       + "rt:control-plane-protocol" {
       when "rt:type = 'rsvp:rsvp'" {
       description
        "This augment is only valid when routing protocol
         instance type is RSVP.";
       }
       description
         "RSVP protocol augmentation";
       container rsvp {
         presence "Enable RSVP feature";
         description "RSVP feature container";
         container globals {
           description "RSVP global properties.";
           uses global-attributes;
           uses graceful-restart;
         }

         container interfaces {
           description
             "RSVP interfaces container";
           uses intf-attributes;

           list interface {
             key "interface";
             description
               "RSVP interfaces.";
             leaf interface {
               type if:interface-ref;
               description
                 "RSVP interface.";
             }
             uses intf-attributes;
           }
         }

         container sessions {
           description
             "RSVP sessions container";
           list session {
             key "dst_port source destination";
             description
               "List of RSVP sessions";
             leaf dst_port {
               type uint16;
               description "RSVP destination port";
               reference "RFC2205";
             }
             leaf source {
               type inet:ip-address;
               description "RSVP source address";
               reference "RFC2205";
             }
             leaf destination {
               type inet:ip-address;
               description "RSVP destination address";
               reference "RFC2205";
             }
             uses session-attributes;
           }
         }

         container neighbors {
           description
             "RSVP neighbors container";
           list neighbor {
             key "address";
             description
               "List of RSVP neighbors";
             leaf address {
               type inet:ip-address; leafref {
                 path "../config/address";
               }
               description
                 "Neighbor address";
                 "Address of RSVP neighbor";
             }
             uses neighbor-attributes;
           }
         }
       }
     }
   }
   <CODE ENDS>

3.2.  RSVP Extended YANG Model

   The RSVP extended YANG model covers optional configuration(s) for or non-core RSVP core
   feature(s).  It also covers non-core RSVP feature(s) that are negotiated not necessarily
   supported by all vendors, and hence, guarded with "if-feature"
   checks.

3.2.1.  Configuration and State Data  Tree Diagram

   Figure 3 4 shows the YANG tree representation for configuration and
   state data that is augmenting the RSVP basic module:

module: ietf-rsvp-extended ietf-rsvp
  augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:globals/rsvp:config/rsvp:graceful-restart:
    /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol:
    +--rw restart-time?    uint32 rsvp!
       +--rw recovery-time?   uint32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:globals/rsvp:state/rsvp:graceful-restart:
   +--ro restart-time?    uint32
   +--ro recovery-time?   uint32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:globals/rsvp:state/rsvp:packets-stats: globals
       |  +--rw sessions
       |  |  +--ro discontinuity-time?   yang:date-and-time session* [local-index]
       |  |     +--ro tx-dropped?           yang:counter32 local-index    -> ../state/local-index
       |  |     +--ro rx-dropped?           yang:counter32 state
       |  |        +--ro tx-error?             yang:counter32 local-index?        uint64
       |  |        +--ro rx-error?             yang:counter32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:globals/rsvp:state/rsvp:protocol-stats:
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:globals/rsvp:state/rsvp:errors-stats:
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:config:
   +--rw refresh-interval?        uint32
   +--rw refresh-misses?          uint32
   +--rw checksum?                uint32
   +--rw patherr-state-removal?   empty
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:state: destination-port?   inet:port-number
       |  |        +--ro refresh-interval?        uint32 source?             inet:ip-address
       |  |        +--ro refresh-misses?          uint32 destination?        inet:ip-address
       |  |        +--ro checksum?                uint32 session-name?       string
       |  |        +--ro patherr-state-removal?   empty
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:config/rsvp:refresh-reduction:
   +--rw bundle-message-max-size?    uint32
   +--rw reliable-ack-hold-time?     uint32
   +--rw reliable-ack-max-size?      uint32
   +--rw reliable-retransmit-time?   uint32
   +--rw reliable-srefresh?          empty
   +--rw summary-max-size?           uint32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:state/rsvp:refresh-reduction: session-state?      enumeration
       |  |        +--ro bundle-message-max-size?    uint32 session-type?       identityref
       |  |        +--ro reliable-ack-hold-time?     uint32 psbs
       |  |        |  +--ro reliable-ack-max-size?      uint32 psb*
       |  |        |     +--ro source-port?   inet:port-number
       |  |        |     +--ro reliable-retransmit-time? expires-in?    uint32
       |  |        +--ro reliable-srefresh?          empty rsbs
       |  |           +--ro summary-max-size?           uint32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:config/rsvp:rsvp-hellos:
   +--rw interface-based?   empty
   +--rw hello-interval?    uint32
   +--rw hello-misses?      uint32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:state/rsvp:rsvp-hellos: rsb*
       |  |              +--ro interface-based?   empty source-port?         inet:port-number
       |  |              +--ro hello-interval?    uint32 reservation-style?   identityref
       |  |              +--ro hello-misses?      uint32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:config/rsvp:authentication:
   +--rw lifetime?      uint32
   +--rw window-size?   uint32
   +--rw challenge?     empty
   +--rw retransmits? expires-in?          uint32
       |  +--rw key-chain?     string
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:state/rsvp:authentication: statistics
       |  |  +--ro lifetime?      uint32 state
       |  |     +--ro window-size?   uint32 messages
       |  |     |  +--ro challenge?     empty ack-sent?                       yang:counter64
       |  |     |  +--ro retransmits?   uint32 ack-received?                   yang:counter64
       |  |     |  +--ro key-chain?     string
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:interface/rsvp:config:
   +--rw refresh-interval?        uint32
   +--rw refresh-misses?          uint32
   +--rw checksum?                uint32
   +--rw patherr-state-removal?   empty
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:interface/rsvp:state: bundle-sent?                    yang:counter64
       |  |     |  +--ro refresh-interval?        uint32 bundle-received?                yang:counter64
       |  |     |  +--ro refresh-misses?          uint32 hello-sent?                     yang:counter64
       |  |     |  +--ro checksum?                uint32 hello-received?                 yang:counter64
       |  |     |  +--ro patherr-state-removal?   empty
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:interface/rsvp:config/
rsvp:refresh-reduction:
   +--rw bundle-message-max-size?    uint32
   +--rw reliable-ack-hold-time?     uint32
   +--rw reliable-ack-max-size?      uint32
   +--rw reliable-retransmit-time?   uint32
   +--rw reliable-srefresh?          empty
   +--rw summary-max-size?           uint32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:interface/rsvp:state/
rsvp:refresh-reduction: integrity-challenge-sent?       yang:counter64
       |  |     |  +--ro bundle-message-max-size?    uint32 integrity-challenge-received?   yang:counter64
       |  |     |  +--ro reliable-ack-hold-time?     uint32 integrity-response-sent?        yang:counter64
       |  |     |  +--ro reliable-ack-max-size?      uint32 integrity-response-received?    yang:counter64
       |  |     |  +--ro reliable-retransmit-time?   uint32 notify-sent?                    yang:counter64
       |  |     |  +--ro reliable-srefresh?          empty notify-received?                yang:counter64
       |  |     |  +--ro summary-max-size?           uint32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:interface/rsvp:config/rsvp:rsvp-hellos:
   +--rw interface-based?   empty
   +--rw hello-interval?    uint32
   +--rw hello-misses?      uint32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:interface/rsvp:state/rsvp:rsvp-hellos: path-sent?                      yang:counter64
       |  |     |  +--ro interface-based?   empty path-received?                  yang:counter64
       |  |     |  +--ro hello-interval?    uint32 path-err-sent?                  yang:counter64
       |  |     |  +--ro hello-misses?      uint32
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:interface/rsvp:config/
rsvp:authentication:
   +--rw lifetime?      uint32
   +--rw window-size?   uint32 path-err-received?              yang:counter64
       |  |     |  +--ro path-tear-sent?                 yang:counter64
       |  |     |  +--ro path-tear-received?             yang:counter64
       |  |     |  +--ro resv-sent?                      yang:counter64
       |  |     |  +--ro resv-received?                  yang:counter64
       |  |     |  +--ro resv-confirm-sent?              yang:counter64
       |  |     |  +--ro resv-confirm-received?          yang:counter64
       |  |     |  +--ro resv-err-sent?                  yang:counter64
       |  |     |  +--ro resv-err-received?              yang:counter64
       |  |     |  +--ro resv-tear-sent?                 yang:counter64
       |  |     |  +--ro resv-tear-received?             yang:counter64
       |  |     |  +--ro summary-refresh-sent?           yang:counter64
       |  |     |  +--ro summary-refresh-received?       yang:counter64
       |  |     |  +--ro unknown-messages-received?      yang:counter64
       |  |     +--ro packets
       |  |     |  +--ro sent?                          yang:counter64
       |  |     |  +--ro received?                      yang:counter64
       |  |     |  +--ro rsvp-ext:discontinuity-time? yang:date-and-time
       |  |     |  +--ro rsvp-ext:out-dropped?          yang:counter64
       |  |     |  +--ro rsvp-ext:in-dropped?           yang:counter64
       |  |     |  +--ro rsvp-ext:out-error?            yang:counter64
       |  |     |  +--ro rsvp-ext:in-error?             yang:counter64
       |  |     +--ro errors
       |  |        +--ro authenticate?   yang:counter64
       |  |        +--ro checksum?       yang:counter64
       |  |        +--ro packet-len?     yang:counter64
       |  +--rw challenge?     empty graceful-restart
       |     +--rw config
       |     |  +--rw enabled?                  boolean
       |     |  +--rw retransmits? rsvp-ext:restart-time?    uint32
       |     |  +--rw key-chain?     string
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:interface/rsvp:state/rsvp:authentication rsvp-ext:recovery-time?   uint32
       |     +--ro state
       |        +--ro enabled?                  boolean
       |        +--ro rsvp-ext:restart-time?    uint32
       |        +--ro lifetime? rsvp-ext:recovery-time?   uint32
       +--rw interfaces
       |  +--rw config
       |  |  +--rw rsvp-ext:refresh-interval?        uint32
       |  |  +--rw rsvp-ext:refresh-misses?          uint32
       |  |  +--rw rsvp-ext:checksum?                boolean
       |  |  +--rw rsvp-ext:patherr-state-removal?   empty
       |  +--ro state
       |  |  +--ro rsvp-ext:refresh-interval?        uint32
       |  |  +--ro window-size? rsvp-ext:refresh-misses?          uint32
       |  |  +--ro challenge? rsvp-ext:checksum?                boolean
       |  |  +--ro rsvp-ext:patherr-state-removal?   empty
       |  +--rw refresh-reduction
       |  |  +--rw config
       |  |  |  +--rw enabled?                             boolean
       |  |  |  +--rw rsvp-ext:bundle-message-max-size?    uint32
       |  |  |  +--rw rsvp-ext:reliable-ack-hold-time?     uint32
       |  |  |  +--rw rsvp-ext:reliable-ack-max-size?      uint32
       |  |  |  +--rw rsvp-ext:reliable-retransmit-time?   uint32
       |  |  |  +--rw rsvp-ext:reliable-srefresh?          empty
       |  |  |  +--rw rsvp-ext:summary-max-size?           uint32
       |  |  +--ro state
       |  |     +--ro enabled?                             boolean
       |  |     +--ro retransmits? rsvp-ext:bundle-message-max-size?    uint32

             Figure 3: RSVP extended YANG Tree representation

3.2.2.  YANG Module

   Figure 4 shows the RSVP extended YANG module:

   <CODE BEGINS> file "ietf-rsvp-extended@2016-10-29.yang"

   module ietf-rsvp-extended {

     namespace "urn:ietf:params:xml:ns:yang:ietf-rsvp-extended";

     prefix "rsvp-ext";

     import ietf-rsvp {
       prefix "rsvp";
     }

     import ietf-routing {
       prefix "rt";
     }

     import ietf-yang-types {
       prefix "yang";
     }

     organization
       "IETF Traffic Engineering Architecture and Signaling (TEAS)
        Working Group";

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

        WG Chair: Lou Berger
                  <mailto:lberger@labn.net>

        WG Chair: Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Tarek Saad
                  <mailto:tsaad@cisco.com>

        Editor:   Rakesh Gandhi
                  <mailto:rgandhi@cisco.com>

        Editor:   Himanshu Shah
                  <mailto:hshah@ciena.com>

        Editor:   Xufeng Liu
                  <mailto:xliu@kuatrotech.com>

        Editor:   Xia Chen
                  <mailto:jescia.chenxia@huawei.com>

        Editor:   Raqib Jones
                  <mailto:raqib@Brocade.com>

        Editor:   Bin Wen
                  <mailto:Bin_Wen@cable.comcast.com>";

     description
       "This module contains the Extended RSVP YANG data model.";

     revision "2016-10-29" {
       description "Latest revision of RSVP extended yang module.";
       reference "RFC2205";
     }

     /* RSVP features */
     feature authentication {
       description
         "Indicates support for RSVP authentication";
     }

     feature error-statistics {
       description
         "Indicates support for error statistics";
     }

     feature global-statistics {
       description
         "Indicates support for global statistics";
     }
     feature graceful-restart {
       description
         "Indicates support for RSVP graceful restart";
     }

     feature hellos {
       description
         "Indicates support for RSVP hellos (RFC3209).";
     }

     feature notify {
       description
         "Indicates support for RSVP notify message (RFC3473).";
     }

     feature refresh-reduction {
       description
         "Indicates support for RSVP refresh reduction
         (RFC2961).";
     }

     feature refresh-reduction-extended {
       description
         "Indicates support for RSVP refresh reduction
         (RFC2961).";
     }

     feature per-interface-statistics {
       description
         "Indicates support for per interface statistics";
     }

     grouping graceful-restart-extended_config {
       description
         "Configuration parameters relating to RSVP
         Graceful-Restart";
       leaf restart-time {
         type uint32;
         units seconds;
         description
           "Graceful restart time (seconds).";
         reference
           "RFC 5495: Description of the Resource
           Reservation Protocol - Traffic-Engineered
           (RSVP-TE) Graceful Restart Procedures";
       }
       leaf recovery-time {
         type uint32;
         description
           "RSVP state recovery time";
       }
     }

     grouping authentication-extended_config {
       description
         "Configuration parameters relating to RSVP
         authentication";
       leaf lifetime {
         type uint32 {
           range "30..86400";
         }
         description
           "Life time for each security association";
         reference
           "RFC 2747: RSVP Cryptographic
           Authentication";
       }
       leaf window-size {
         type uint32 {
           range "1..64";
         }
         description
           "Window-size to limit number of out-of-order
           messages.";
         reference
           "RFC 2747: RSVP Cryptographic
           Authentication";
       }
       leaf challenge {
         type empty;
         description
           "Enable challenge messages.";
         reference
           "RFC 2747: RSVP Cryptographic
           Authentication";
       }
       leaf retransmits {
         type uint32 {
           range "1..10000";
         }
         description
           "Number of retransmits when messages are
           dropped.";
         reference
           "RFC 2747: RSVP Cryptographic
           Authentication";

       }
       leaf key-chain {
         type string {
           length "1..32";
         }
         description
           "Key chain name to authenticate RSVP
           signaling messages.";
         reference
           "RFC 2747: RSVP Cryptographic
           Authentication";
       }
     }

     grouping rsvp-hellos-extended_config {
       description
         "Configuration parameters relating to RSVP
         hellos";
       leaf interface-based {
         type empty;
         description "Enable interface-based
           Hello adjacency if present.";
       }
       leaf hello-interval {
         type uint32;
         units milliseconds;
         description
           "Configure interval between successive Hello
           messages in milliseconds.";
         reference
           "RFC 3209: RSVP-TE: Extensions to RSVP for
           LSP Tunnels.
           RFC 5495: Description of the Resource
           Reservation Protocol - Traffic-Engineered
           (RSVP-TE) Graceful Restart Procedures";
       }
       leaf hello-misses {
         type uint32 {
           range "1..10";
         }
         description
           "Configure max number of consecutive missed
           Hello messages.";
         reference
           "RFC 3209: RSVP-TE: Extensions to RSVP for
           LSP Tunnels RFC 5495: Description of the
           Resource Reservation Protocol - Traffic-
           Engineered (RSVP-TE) Graceful Restart
           Procedures";
       }
     }

     grouping signaling-parameters-extended_config {
       description
         "Configuration parameters relating to RSVP
         signaling";
       leaf refresh-interval {
         type uint32;
         description
           "Set interval between successive refreshes";
       }
       leaf refresh-misses {
         type uint32;
         description
           "Set max number of consecutive missed
           messages for state expiry";
       }
       leaf checksum {
         type uint32;
         description
           "Enable RSVP message checksum computation";
       }
       leaf patherr-state-removal {
         type empty;
         description
           "State-Removal flag in Path Error message
           if present.";
       }
     }

     grouping refresh-reduction-extended_config {
       description
         "Configuration parameters relating to RSVP
         refresh reduction";

       leaf bundle-message-max-size {
         type uint32 {
           range "512..65000";
         }
         description
           "Configure maximum size (bytes) of a
           single RSVP Bundle message.";
       }
       leaf reliable-ack-hold-time {
         type uint32;
         units milliseconds;
         description
           "Configure hold time in milliseconds for
           sending RSVP ACK message(s).";
       }
       leaf reliable-ack-max-size {
         type uint32;
         description
           "Configure max size of a single RSVP ACK
           message.";
       }
       leaf reliable-retransmit-time {
         type uint32;
         units milliseconds;
         description
           "Configure min delay in milliseconds to
           wait for an ACK before a retransmit.";
       }
       leaf reliable-srefresh {
         type empty;
         description
           "Configure use of reliable messaging for
           summary refresh if present.";
       }
       leaf summary-max-size {
         type uint32 {
           range "20..65000";
         }
         description
           "Configure max size (bytes) of a single
           RSVP summary refresh message.";
       }
     }

     grouping statistics-packets-extended_state {
       description
         "Packet statistics.";
       leaf discontinuity-time {
         type yang:date-and-time;
         description
           "The time on the most recent occasion at which any one
           or more of the statistic counters suffered a
           discontinuity. If no such discontinuities have occurred
           since the last re-initialization of the local
           management subsystem, then this node contains the time
           the local management subsystem re-initialized itself.";
       }
       leaf tx-dropped {
         type yang:counter32;
         description
           "Packet tx dropped count";
       }

       leaf rx-dropped {
         type yang:counter32;
         description
           "Packet rx dropped count";
       }

       leaf tx-error {
         type yang:counter32;
         description
           "Packet tx error count";
       }

       leaf rx-error {
         type yang:counter32;
         description
           "Packet rx error count";
       }
     }

     grouping statistics-protocol-extended_state {
       description
         "RSVP protocol statistics.";
     }

     grouping statistics-errors-extended_state {
       description
         "Error statistics.";
     }

     grouping statistics-extended_state {
       description "RSVP statistic attributes.";
       uses statistics-packets-extended_state;
       uses statistics-protocol-extended_state;
       uses statistics-errors-extended_state;
     }

     /**
      * RSVP extensions augmentations
      */

     /* RSVP globals graceful restart*/

     augment "/rt:routing/rt:control-plane-protocols/" +
             "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals/" +
             "rsvp:config/rsvp:graceful-restart" {
       description
         "RSVP globals configuration extensions";
       uses graceful-restart-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/" +
             "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals/" +
             "rsvp:state/rsvp:graceful-restart" {
       description
         "RSVP globals state extensions";
       uses graceful-restart-extended_config;
     }

     /* RSVP statistics augmentation */
     augment "/rt:routing/rt:control-plane-protocols/" +
             "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals/" +
             "rsvp:state/rsvp:packets-stats" {
       description
         "RSVP packet stats extensions";
       uses statistics-packets-extended_state;
     }
     augment "/rt:routing/rt:control-plane-protocols/" +
             "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals/" +
             "rsvp:state/rsvp:protocol-stats" {
       description
         "RSVP protocol message stats extensions";
       uses statistics-protocol-extended_state;
     }
     augment "/rt:routing/rt:control-plane-protocols/" +
             "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals/" +
             "rsvp:state/rsvp:errors-stats" {
       description
         "RSVP errors stats extensions";
       uses statistics-errors-extended_state;
     }

     /**
      * RSVP all interfaces extensions
      */

     /* RSVP interface signaling extensions */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:config" {
       description
         "RSVP signaling all interfaces configuration extensions";
       uses signaling-parameters-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:state" {
       description
         "RSVP signaling all interfaces state extensions";
       uses signaling-parameters-extended_config;
     }

     /* RSVP refresh reduction extension */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:config/rsvp:refresh-reduction" {
       description
         "RSVP refresh-reduction all interface configuration
          extensions";
       uses refresh-reduction-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:state/rsvp:refresh-reduction" {
       description
         "RSVP refresh-reduction all interfaces state extensions";
       uses refresh-reduction-extended_config;
     }

     /* RSVP hellos extension */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:config/rsvp:rsvp-hellos" {
       description
         "RSVP hello all interfaces configuration extensions";
       uses rsvp-hellos-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:state/rsvp:rsvp-hellos" {
       description
         "RSVP hello all interfaces state extensions";
       uses rsvp-hellos-extended_config;
     }

     /* RSVP authentication extension */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:config/rsvp:authentication" {
       description
         "RSVP authentication all interfaces configuration extensions";
       uses authentication-extended_config;

     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:state/rsvp:authentication" {
       description
         "RSVP authentication all interfaces state extensions";
       uses authentication-extended_config;
     }

     /**
      * RSVP interface extensions
      */

     /* RSVP interface signaling extensions */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:config" {
       description
         "RSVP signaling interface configuration extensions";
       uses signaling-parameters-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:state" {
       description
         "RSVP signaling interface state extensions";
       uses signaling-parameters-extended_config;
     }

     /* RSVP refresh reduction extension */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:config/rsvp:refresh-reduction" {
       description
         "RSVP refresh-reduction interface configuration extensions";
       uses refresh-reduction-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:state/rsvp:refresh-reduction" {
       description
         "RSVP refresh-reduction interface state extensions";
       uses refresh-reduction-extended_config;
     }

     /* RSVP hellos extension */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:config/rsvp:rsvp-hellos" {
       description
         "RSVP hello interface configuration extensions";
       uses rsvp-hellos-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:state/rsvp:rsvp-hellos" {
       description
         "RSVP hello interface state extensions";
       uses rsvp-hellos-extended_config;
     }

     /* RSVP authentication extension */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:config/rsvp:authentication" {
       description
         "RSVP authentication interface configuration extensions";
       uses authentication-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:state/rsvp:authentication" {
       description
         "RSVP authentication interface state extensions";
       uses authentication-extended_config;
     }
   }

   <CODE ENDS>

                    Figure 4: RSVP extended YANG module

3.3.  RSVP-TE Generic YANG Model

   This section contains the augmentation of the RSVP base YANG model
   for signalling Traffic-Engineering (RSVP-TE) Label Switched Paths
   (LSPs).  New module is introduced that augment the RSVP-TE generic
   module to cover data items that are technology agnostic.

   This model imports and augments the base RSVP YANG model (presented
   in Section 3.1.3).  It also imports and augments the TE YANG model
   defined in [I-D.ietf-teas-yang-te] to enable configuration of RSVP-TE
   attributes on TE tunnels.

   The following subsections provide overview of the parts of the RSVP-
   TE generic model pertaining to configuration and state data.

3.3.1.  Configuration and State Data

   There are three types of configuration and state data nodes in this
   module:

   o  those augmenting or extending the base RSVP module

   o  those augmenting or extending the base TE generic module

   o  those that are specific to the RSVP-TE module

   Below is a YANG tree representation for data items defined in the
   RSVP-TE generic module:

module: ietf-rsvp-te
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:globals:
   +--rw global-soft-preemption!
      +--rw config
      |  +--rw soft-preemption-timeout?   uint16
      +--rw state
         +--rw soft-preemption-timeout?   uint16
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces:
   +--rw rsvp-te-interface-attributes
      +--rw config
      +--ro state
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:interfaces/rsvp:interface:
   +--rw rsvp-te-interface-attributes
      +--rw config
      +--ro state
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:sessions:
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp/rsvp:neighbors:
augment /te:te/te:tunnels/te:tunnel:
   +--rw config
   |  +--rw lsp-signaled-name?           string
   |  +--rw local-recording-desired?     boolean
   |  +--rw se-style-desired?            boolean
   |  +--rw path-reevaluation-request?   boolean
   |  +--rw soft-preemption-desired?     boolean
   |  +--rw lsp-rerouting?               enumeration
   |  +--rw lsp-integrety-required?      boolean
   |  +--rw lsp-contiguous?              boolean
   |  +--rw lsp-stitching-desired?       boolean
   |  +--rw lsp-preplanned?              boolean
   |  +--rw lsp-oob-mapping?             boolean
   +--ro state
      +--ro lsp-signaled-name?           string
      +--ro local-recording-desired?     boolean
      +--ro se-style-desired?            boolean
      +--ro path-reevaluation-request?   boolean
      +--ro soft-preemption-desired?     boolean
      +--ro lsp-rerouting?               enumeration
      +--ro lsp-integrety-required?      boolean
      +--ro lsp-contiguous?              boolean
      +--ro lsp-stitching-desired?       boolean
      +--ro lsp-preplanned?              boolean
      +--ro lsp-oob-mapping?             boolean
augment /te:te/te:lsps-state/te:lsp:
   +--ro lsp-signaled-name?           string
   +--ro local-recording-desired?     boolean
   +--ro se-style-desired?            boolean
   +--ro path-reevaluation-request?   boolean
   +--ro soft-preemption-desired?     boolean
   +--ro lsp-rerouting?               enumeration
   +--ro lsp-integrety-required?      boolean
   +--ro lsp-contiguous?              boolean
   +--ro lsp-stitching-desired?       boolean
   +--ro lsp-preplanned?              boolean
   +--ro lsp-oob-mapping?             boolean
   +--ro explicit-route-object
   |  +--ro incoming-explicit-route-subobjects* [subobject-index]
   |  |  +--ro subobject-index     uint32
   |  |  +--ro (type)?
   |  |     +--:(ipv4-address)
   |  |     |  +--ro v4-address?         inet:ipv4-address
   |  |     |  +--ro v4-prefix-length?   uint8
   |  |     |  +--ro v4-loose?           boolean
   |  |     +--:(ipv6-address)
   |  |     |  +--ro v6-address?         inet:ipv6-address
   |  |     |  +--ro v6-prefix-length?   uint8
   |  |     |  +--ro v6-loose?           boolean
   |  |     +--:(as-number)
   |  |     |  +--ro as-number?          uint16
   |  |     +--:(unnumbered-link)
   |  |     |  +--ro router-id?          inet:ip-address
   |  |     |  +--ro interface-id?       uint32
   |  |     +--:(label)
   |  |        +--ro value?              uint32
   |  +--ro outgoing-explicit-route-subobjects* [subobject-index]
   |     +--ro subobject-index     uint32
   |     +--ro (type)?
   |        +--:(ipv4-address)
   |        |  +--ro v4-address?         inet:ipv4-address
   |        |  +--ro v4-prefix-length?   uint8
   |        |  +--ro v4-loose?           boolean
   |        +--:(ipv6-address)
   |        |  +--ro v6-address?         inet:ipv6-address
   |        |  +--ro v6-prefix-length?   uint8
   |        |  +--ro v6-loose?           boolean
   |        +--:(as-number)
   |        |  +--ro as-number?          uint16
   |        +--:(unnumbered-link)
   |        |  +--ro router-id?          inet:ip-address
   |        |  +--ro interface-id?       uint32
   |        +--:(label)
   |           +--ro value?              uint32
   +--ro record-route-object
      +--ro path-record-route-subobjects* [subobject-index]
      |  +--ro subobject-index     uint32
      |  +--ro (type)?
      |     +--:(ipv4-address)
      |     |  +--ro v4-address?         inet:ipv4-address
      |     |  +--ro v4-prefix-length?   uint8
      |     |  +--ro v4-flags?           uint8
      |     +--:(ipv6-address)
      |     |  +--ro v6-address?         inet:ipv6-address
      |     |  +--ro v6-prefix-length?   uint8
      |     |  +--ro v6-flags?           uint8
      |     +--:(unnumbered-link)
      |     |  +--ro router-id?          inet:ip-address
      |     |  +--ro interface-id?       uint32
      |     +--:(label)
      |        +--ro value?              uint32
      |        +--ro flags?              uint8
      +--ro resv-record-route-subobjects* [subobject-index]
         +--ro subobject-index     uint32
         +--ro (type)?
            +--:(ipv4-address)
            |  +--ro v4-address?         inet:ipv4-address
            |  +--ro v4-prefix-length?   uint8
            |  +--ro v4-flags?           uint8
            +--:(ipv6-address)
            |  +--ro v6-address?         inet:ipv6-address
            |  +--ro v6-prefix-length?   uint8
            |  +--ro v6-flags?           uint8
            +--:(unnumbered-link)
            |  +--ro router-id?          inet:ip-address
            |  +--ro interface-id?       uint32
            +--:(label)
               +--ro value?              uint32
               +--ro flags?              uint8
augment /te:te/te-dev:interfaces/te-dev:interface:

                Figure 5: RSVP-TE YANG Tree representation

3.3.2.  RPC and Notification Data

   TBD.

3.3.3.  YANG Module

   <CODE BEGINS> file "ietf-rsvp-te@2016-10-29.yang"

   module ietf-rsvp-te {

     namespace "urn:ietf:params:xml:ns:yang:ietf-rsvp-te";

     prefix "rsvp-te";

     import ietf-rsvp {
       prefix rsvp;
     }

     import ietf-routing {
       prefix "rt";
     }

     import ietf-te {
       prefix te;
     }

     import ietf-te-device {
       prefix te-dev;
     }

     /* Import TE generic types */
     import ietf-te-types {
       prefix te-types;
     }

     organization
       "IETF Traffic Engineering Architecture and Signaling (TEAS)
        Working Group";

     contact
       "WG Web:   <http://tools.ietf.org/wg/teas/>
        WG List:  <mailto:teas@ietf.org>
        WG Chair: Lou Berger
                  <mailto:lberger@labn.net>

        WG Chair: Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Tarek Saad
                  <mailto:tsaad@cisco.com>

        Editor:   Rakesh Gandhi
                  <mailto:rgandhi@cisco.com>

        Editor:   Himanshu Shah
                  <mailto:hshah@ciena.com>

        Editor:   Xufeng Liu
                  <mailto:xliu@kuatrotech.com>

        Editor:   Xia Chen
                  <mailto:jescia.chenxia@huawei.com>

        Editor:   Raqib Jones
                  <mailto:raqib@Brocade.com>

        Editor:   Bin Wen
                  <mailto:Bin_Wen@cable.comcast.com>";

     description
       "This module contains the RSVP-TE YANG generic data model.";

     revision "2016-10-29" {
       description "Latest revision to RSVP-TE generic YANG module";
       reference "RFC2205, RFC3209, etc.";
     }

     /**
      * RSVP-TE LSPs groupings.
      */

     grouping lsp-record-route-information_state {
       description "recorded route information grouping";
       container record-route-object {
         description "RSVP recorded route object information";
         list path-record-route-subobjects {
           when "../../te:origin-type != 'ingress'" {
             description "Applicable on non-ingress LSPs only";
           }
           key "subobject-index";
           description
             "List of RSVP Path record-route objects";
           leaf subobject-index {
             type uint32;
             description "RRO subobject index";
           }
           uses te-types:record-route-subobject;
         }
         list resv-record-route-subobjects {
           when "../../te:origin-type != 'egress'" {
             description "Applicable on non-egress LSPs only";
           }
           key "subobject-index";
           description
             "List of RSVP Resv record-route objects";
           leaf subobject-index {
             type uint32;
             description "RRO subobject index";
           }
           uses te-types:record-route-subobject;
         }
       }
     }

     grouping lsp-explicit-route-information_state {
       description "RSVP-TE LSP explicit-route information";
       container explicit-route-object {
         description "Explicit route object information";
         list incoming-explicit-route-subobjects {
           when "../../te:origin-type != 'ingress'" {
             description "Applicable on non-ingress LSPs only";
           }
           key "subobject-index";
           description
             "List of incoming RSVP Path explicit-route objects";
           leaf subobject-index {
             type uint32;
             description "ERO subobject index";
           }
           uses te-types:explicit-route-subobject;
         }
         list outgoing-explicit-route-subobjects {
           when "../../te:origin-type != 'egress'" {
             description "Applicable on non-egress LSPs only";

           }
           key "subobject-index";
           description
             "List of outgoing RSVP Path explicit-route objects";
           leaf subobject-index {
             type uint32;
             description "ERO subobject index";
           }
           uses te-types:explicit-route-subobject;
         }
       }
     }

     grouping lsp-attributes-flags_config {
       description
         "Configuration parameters relating to RSVP-TE LSP
         attribute flags";
       leaf lsp-rerouting {
         type enumeration {
           enum end-to-end-routing {
             description
               "End-to-end routing desired";
             reference "RFC4920, RFC5420";
           }
           enum boundary-rerouting {
             description
               "Boundary rerouting desired";
             reference "RFC4920, RFC5420";
           }
           enum segment-based-rerouting {
             description
               "Segment-based rerouting desired";
             reference "RFC4920, RFC5420";
           }
         }
         description "LSP rerouting types";
       }
       leaf lsp-integrety-required {
         type boolean;
         description "LSP integrity desired";
         reference "RFC4875";
       }
       leaf lsp-contiguous {
         type boolean;
         description "Contiguous LSP";
         reference "RFC5151";
       }
       leaf lsp-stitching-desired {
         type boolean;
         description "Stitched LSP";
         reference "RFC5150";
       }
       leaf lsp-preplanned {
         type boolean;
         description "Preplanned LSP";
         reference "RFC6001";
       }
       leaf lsp-oob-mapping {
         type boolean;
         description
           "Mapping is done out-of-band";
         reference "RFC6511";
       }
     }

     grouping lsp-session-attributes-obj-flags_config {
       description
         "Configuration parameters relating to RSVP-TE LSP
         session attribute flags";
       reference
         "RFC4859: Registry for RSVP-TE Session Flags";
       leaf local-recording-desired {
         type boolean;
         description "Path recording is desired.";
         reference "RFC3209";
       }
       leaf se-style-desired {
         type boolean;
         description "SE Style desired";
         reference "RFC3209";
       }
       leaf path-reevaluation-request {
         type boolean;
         description "Path re-evaluation request";
         reference "RFC4736";
       }
       leaf soft-preemption-desired {
         type boolean;
         description "Soft-preemption is desired";
         reference "RFC5712";
       }
     }

     grouping lsp-properties_config {
       description
         "Configuration parameters relating to RSVP-TE LSP
         session attribute flags";
       leaf lsp-signaled-name {
         type string;
         description
           "Sets the session name to use in the session
           attribute object.";
       }
       uses lsp-session-attributes-obj-flags_config;
       uses lsp-attributes-flags_config;
     }

     grouping tunnel-properties {
       description
         "Top level grouping for LSP properties.";
       container config {
         description
           "Configuration parameters relating to
           LSP properties";
         uses lsp-properties_config;
       }
       container state {
         config false;
         description
           "State information associated with LSP
           properties";
         uses lsp-properties_config;
       }
     }
     /*** End of RSVP-TE LSP groupings ***/

     /**
      * RSVP-TE generic global properties.
      */

     grouping global-soft-preemption_config {
       description
         "Configuration for global RSVP-TE soft preemption";
       leaf soft-preemption-timeout {
         type uint16 {
           range 0..300;
         }
         default 0;
         description
           "Timeout value for soft preemption to revert
           to hard preemption";
       }
     }
     grouping global-soft-preemption {
       description
         "Top level group for RSVP-TE soft-preemption";
       container global-soft-preemption {
         presence "Enables soft preemption on a node.";
         description
           "Top level container for RSVP-TE soft-preemption";
         container config {
           description
             "Configuration parameters relating to RSVP
             soft preemption support";
           uses global-soft-preemption_config;
         }
         container state {
           description "State parameters relating to RSVP
             soft preemption support";
           uses global-soft-preemption_config;
         }
       }
     }
     /*** End of RSVP-TE generic global properties. ***/

     /**
      * RSVP-TE interface generic groupings.
      */

     grouping rsvp-te-interface-attributes {
       description
         "Top level grouping for RSVP-TE interface properties.";
       container rsvp-te-interface-attributes {
         description
           "Top level container for RSVP-TE interface
           properties";
         container config {
           description
             "Configuration parameters relating to RSVP-TE
             bandwidth";
         }
         container state {
           config false;
           description
             "State information associated with RSVP-TE
             bandwidth";
         }
       }
     }
     /*** End of RSVP-TE generic groupings ***/
     /* RSVP-TE global propeerties */
     augment "/rt:routing/rt:control-plane-protocols/"
     + "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals" {
       description
         "RSVP-TE augmentation to RSVP globals";
         uses global-soft-preemption;
     }

     /* Linkage to the base RSVP all links */
     augment "/rt:routing/rt:control-plane-protocols/"
     + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces" {
       description
         "RSVP-TE generic data augmentation pertaining to interfaces";
       uses rsvp-te-interface-attributes;
     }

     /* Linkage to per RSVP interface */
     augment "/rt:routing/rt:control-plane-protocols/"
     + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
     "rsvp:interface" {
       description
         "RSVP-TE generic data augmentation pertaining to specific
          interface";
       uses rsvp-te-interface-attributes;
     }

     /* add augmentation for sessions neighbors */
     augment "/rt:routing/rt:control-plane-protocols/"
     + "rt:control-plane-protocol/rsvp:rsvp/rsvp:sessions" {
       description
         "RSVP-TE generic data augmentation pertaining to session";
       /* To be added */
     }

     augment "/rt:routing/rt:control-plane-protocols/"
     + "rt:control-plane-protocol/rsvp:rsvp/rsvp:neighbors" {
       description
         "RSVP-TE generic data augmentation pertaining to neighbors";
       /* To be added */
     }

     /**
      * RSVP-TE generic augmentations of generic TE model.
      */

     /* TE tunnel augmentation */
     augment "/te:te/te:tunnels/te:tunnel" {
       description
         "RSVP-TE generic data augmentation pertaining to TE tunnels";
       uses tunnel-properties;
     }

     /* TE LSP augmentation */
     augment "/te:te/te:lsps-state/te:lsp" {
       description
         "RSVP-TE generic data augmentation pertaining to specific TE
          LSP";
       uses lsp-properties_config;
       uses lsp-explicit-route-information_state;
       uses lsp-record-route-information_state;
     }

     /* TE interface augmentation */
     augment "/te:te/te-dev:interfaces/te-dev:interface" {
       description
         "RSVP-TE generic data augmentation pertaining to specific TE
          interface";
     }

   }

   <CODE ENDS>

3.4.  RSVP-TE MPLS Model

   This section describes the MPLS RSVP-TE YANG module that augments the
   RSVP-TE generic module to signal MPLS LSPs.  RSVP-TE YANG modules for
   other dataplane technologies (e.g.  OTN or WDM) will be defined in
   separate modules and in other drafts.

   The following subsections describe the configuration and state data .
   pertaining to RSVP-TE MPLS YANG data model.

3.4.1.  Configuration and State Data

   The following are possible types of configuration and
       |  |     +--ro rsvp-ext:reliable-ack-hold-time?     uint32
       |  |     +--ro rsvp-ext:reliable-ack-max-size?      uint32
       |  |     +--ro rsvp-ext:reliable-retransmit-time?   uint32
       |  |     +--ro rsvp-ext:reliable-srefresh?          empty
       |  |     +--ro rsvp-ext:summary-max-size?           uint32
       |  +--rw hellos
       |  |  +--rw config
       |  |  |  +--rw enabled?                    boolean
       |  |  |  +--rw rsvp-ext:interface-based?   empty
       |  |  |  +--rw rsvp-ext:hello-interval?    uint32
       |  |  |  +--rw rsvp-ext:hello-misses?      uint32
       |  |  +--ro state data
   nodes in this module:

   o  those augmenting or extending the generic RSVP-TE module

   o  those augmenting or extending the base TE generic module

   o  those that are specific to the RSVP-TE MPLS module

   Below is a YANG tree representation for data items defined in the
   RSVP-TE MPLS module:

module: ietf-rsvp-te-mpls
augment /rt:routing/rt:control-plane-protocols/rt:control-plane-protocol
/rsvp:rsvp:
       |  |     +--ro enabled?                    boolean
       |  |     +--ro rsvp-ext:interface-based?   empty
       |  |     +--ro rsvp-ext:hello-interval?    uint32
       |  |     +--ro rsvp-ext:hello-misses?      uint32
       |  +--rw authentication
       |  |  +--rw config
       |  +--rw rsvp-frr-local-revert!  |     +--rw rsvp-frr-local-revert-delay?   uint32  |  +--rw enabled?                boolean
       |  |  |  +--rw authentication-key?     string
       |  |  |  +--rw crypto-algorithm        identityref
       |  |  |  +--rw rsvp-ext:lifetime?      uint32
       |  |  |  +--rw rsvp-ext:window-size?   uint32
       |  |  |  +--rw rsvp-ext:challenge?     empty
       |  |  |  +--rw rsvp-ext:retransmits?   uint32
       |  |  |  +--rw rsvp-ext:key-chain?     key-chain:key-chain-ref
       |  |  +--ro state
       |  |     +--ro enabled?                boolean
       |  |     +--ro authentication-key?     string
       |  |     +--ro crypto-algorithm        identityref
       |  |     +--ro rsvp-ext:lifetime?      uint32
       |  |     +--ro rsvp-ext:window-size?   uint32
       |  |     +--ro rsvp-ext:challenge?     empty
       |  |     +--ro rsvp-ext:retransmits?   uint32
       |  |     +--ro rsvp-ext:key-chain?     key-chain:key-chain-ref
       |  +--rw statistics
       |  |  +--ro state
       |  |     +--ro messages
       |  |     |  +--ro ack-sent?                       yang:counter64
       |  |     |  +--ro ack-received?                   yang:counter64
       |  |     |  +--ro bundle-sent?                    yang:counter64
       |  |     |  +--ro bundle-received?                yang:counter64
       |  |     |  +--ro state hello-sent?                     yang:counter64
       |  |     |  +--ro rsvp-frr-local-revert! hello-received?                 yang:counter64
       |  |     |  +--ro rsvp-frr-local-revert-delay?   uint32
augment /rt:routing/rt:control-plane-protocols/
rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces:
augment /rt:routing/rt:control-plane-protocols/
rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/rsvp:interface:
augment /rt:routing/rt:control-plane-protocols/
rt:control-plane-protocol/rsvp:rsvp/rsvp:sessions:
augment /rt:routing/rt:control-plane-protocols/
rt:control-plane-protocol/rsvp:rsvp/rsvp:neighbors:
augment /te:te/te:tunnels/te:tunnel:
   +--rw config integrity-challenge-sent?       yang:counter64
       |  +--rw static-bandwidth?               uint32  |  +--rw auto-bandwidth     |  +--ro integrity-challenge-received?   yang:counter64
       |  +--rw enabled?            boolean  |     |  +--rw min-bw?             uint32  +--ro integrity-response-sent?        yang:counter64
       |  |  +--rw max-bw?             uint32     |  +--ro integrity-response-received?    yang:counter64
       |  +--rw adjust-interval?    uint32  |     |  +--rw adjust-threshold?   uint32  +--ro notify-sent?                    yang:counter64
       |  |  +--rw overflow     |  +--ro notify-received?                yang:counter64
       |  |  +--rw enabled?               boolean     |  +--ro path-sent?                      yang:counter64
       |  |     |  +--rw overflow-threshold?    uint32  +--ro path-received?                  yang:counter64
       |  |     |  +--rw trigger-event-count?   uint16  +--ro path-err-sent?                  yang:counter64
       |  |  +--rw underflow     |  +--ro path-err-received?              yang:counter64
       |     +--rw enabled?               boolean  |     |     +--rw underflow-threshold?   uint32  +--ro path-tear-sent?                 yang:counter64
       |  |     +--rw trigger-event-count?   uint16     |  +--rw local-protection-desired?       empty  +--ro path-tear-received?             yang:counter64
       |  +--rw bandwidth-protection-desired?   empty  |  +--rw node-protection-desired?        empty     |  +--rw non-php-desired?                empty  +--ro resv-sent?                      yang:counter64
       |  +--rw entropy-label-cap?              empty  |     |  +--ro resv-received?                  yang:counter64
       |  |     |  +--ro resv-confirm-sent?              yang:counter64
       |  |     |  +--ro resv-confirm-received?          yang:counter64
       |  |     |  +--ro resv-err-sent?                  yang:counter64
       |  |     |  +--ro resv-err-received?              yang:counter64
       |  |     |  +--ro resv-tear-sent?                 yang:counter64
       |  |     |  +--ro resv-tear-received?             yang:counter64
       |  |     |  +--ro summary-refresh-sent?           yang:counter64
       |  |     |  +--ro summary-refresh-received?       yang:counter64
       |  |     |  +--ro unknown-messages-received?      yang:counter64
       |  |     +--ro packets
       |  |     |  +--ro sent?       yang:counter64
       |  |     |  +--ro received?   yang:counter64
       |  |     +--ro errors
       |  |        +--ro authenticate?   yang:counter64
       |  |        +--ro checksum?       yang:counter64
       |  |        +--ro packet-len?     yang:counter64
       |  +--rw oam-mep-entities-desired?       empty interface* [interface]
       |     +--rw oam-mip-entities-desired?       empty interface            if:interface-ref
       |     +--rw state config
       |     |  +--rw static-bandwidth? rsvp-ext:refresh-interval?        uint32
       |     |  +--rw auto-bandwidth rsvp-ext:refresh-misses?          uint32
       |     |  +--rw enabled? rsvp-ext:checksum?                boolean
       |  +--rw min-bw?             uint32     |  +--rw max-bw? rsvp-ext:patherr-state-removal?   empty
       |     +--ro state
       |     |  +--ro rsvp-ext:refresh-interval?        uint32
       |  +--rw adjust-interval?     |  +--ro rsvp-ext:refresh-misses?          uint32
       |     |  +--ro rsvp-ext:checksum?                boolean
       |     |  +--ro rsvp-ext:patherr-state-removal?   empty
       |     +--rw adjust-threshold?   uint32 refresh-reduction
       |     |  +--rw overflow config
       |     |  |  +--rw enabled?                             boolean
       |     |  |  +--rw overflow-threshold? rsvp-ext:bundle-message-max-size?    uint32
       |     |  +--rw trigger-event-count?   uint16  |  +--rw underflow rsvp-ext:reliable-ack-hold-time?     uint32
       |     |     +--rw enabled?               boolean  |  +--rw underflow-threshold? rsvp-ext:reliable-ack-max-size?      uint32
       |     |  |  +--rw trigger-event-count?   uint16
      +--rw local-protection-desired?       empty
      +--rw bandwidth-protection-desired?   empty
      +--rw node-protection-desired?        empty
      +--rw non-php-desired?                empty
      +--rw entropy-label-cap?              empty
      +--rw oam-mep-entities-desired?       empty
      +--rw oam-mip-entities-desired?       empty
augment /te:te/te:lsps-state/te:lsp:
   +--ro static-bandwidth? rsvp-ext:reliable-retransmit-time?   uint32
   +--ro auto-bandwidth
       |  +--ro enabled?            boolean     |  +--ro min-bw?             uint32  |  +--ro max-bw?             uint32  +--rw rsvp-ext:reliable-srefresh?          empty
       |     |  +--ro adjust-interval?    uint32  |  +--ro adjust-threshold?  +--rw rsvp-ext:summary-max-size?           uint32
       |     |  +--ro overflow state
       |     |     +--ro enabled?                             boolean
       |     |     +--ro overflow-threshold? rsvp-ext:bundle-message-max-size?    uint32
       |     |     +--ro trigger-event-count?   uint16 rsvp-ext:reliable-ack-hold-time?     uint32
       |  +--ro underflow     |     +--ro enabled?               boolean rsvp-ext:reliable-ack-max-size?      uint32
       |     |     +--ro underflow-threshold? rsvp-ext:reliable-retransmit-time?   uint32
       |     |     +--ro trigger-event-count?   uint16
   +--ro local-protection-desired?       empty
   +--ro bandwidth-protection-desired?   empty
   +--ro node-protection-desired?        empty
   +--ro non-php-desired?                empty
   +--ro entropy-label-cap?              empty
   +--ro oam-mep-entities-desired?       empty
   +--ro oam-mip-entities-desired? rsvp-ext:reliable-srefresh?          empty
       |     |     +--ro backup-info
      +--ro backup-tunnel-name?         string
      +--ro backup-frr-on?              uint8
      +--ro backup-protected-lsp-num? rsvp-ext:summary-max-size?           uint32
augment /te:te/te-dev:interfaces/te-dev:interface:
       |     +--rw hellos
       |     |  +--rw config
       |     |  |  +--rw (bandwidth-value)? enabled?                    boolean
       |     |  +--:(absolute)  |  +--rw rsvp-ext:interface-based?   empty
       |     |  |  +--rw absolute-value? rsvp-ext:hello-interval?    uint32
       |     |  +--:(precentage)
   |  |  +--rw percent-value? rsvp-ext:hello-misses?      uint32
       |  +--rw (bc-model-type)?     |     +--:(bc-model-rdm)  +--ro state
       |     |     +--ro enabled?                    boolean
       |     |  +--rw bc-model-rdm     +--ro rsvp-ext:interface-based?   empty
       |     |     +--ro rsvp-ext:hello-interval?    uint32
       |     |     +--ro rsvp-ext:hello-misses?      uint32
       |     +--rw bandwidth-mpls-constraints authentication
       |     |  +--rw maximum-reservable?   uint32 config
       |     |  |  +--rw bc-value*             uint32 enabled?                boolean
       |     +--:(bc-model-mam)     |  |  +--rw bc-model-mam authentication-key?     string
       |     |  |  +--rw bandwidth-mpls-constraints crypto-algorithm        identityref
       |     |  |  +--rw maximum-reservable? rsvp-ext:lifetime?      uint32
       |     |  |  +--rw bc-value* rsvp-ext:window-size?   uint32
       |     +--:(bc-model-mar)     |        +--rw bc-model-mar  |  +--rw bandwidth-mpls-constraints rsvp-ext:challenge?     empty
       |     |  |  +--rw maximum-reservable? rsvp-ext:retransmits?   uint32
       |     |  |  +--rw bc-value*             uint32 rsvp-ext:key-chain?     key-chain:key-chain-ref
       |     |  +--ro state
       |     |     +--ro enabled?                boolean
       |     |     +--ro (bandwidth-value)? authentication-key?     string
       |     |  +--:(absolute)     +--ro crypto-algorithm        identityref
       |     |     +--ro rsvp-ext:lifetime?      uint32
       |     |     +--ro absolute-value? rsvp-ext:window-size?   uint32
       |     |  +--:(precentage)     +--ro rsvp-ext:challenge?     empty
       |     |     +--ro percent-value? rsvp-ext:retransmits?   uint32
       |     |     +--ro rsvp-ext:key-chain?     key-chain:key-chain-ref
       |     +--rw statistics
       |        +--ro (bc-model-type)? state
       |           +--ro messages
       |  +--:(bc-model-rdm)           |  +--ro ack-sent?                     yang:counter64
       |           |  +--ro bc-model-rdm ack-received?                 yang:counter64
       |           |  +--ro bundle-sent?                  yang:counter64
       |           |  +--ro bandwidth-mpls-constraints bundle-received?              yang:counter64
       |           |  +--ro hello-sent?                   yang:counter64
       |           |  +--ro maximum-reservable?   uint32 hello-received?               yang:counter64
       |           |  +--ro integrity-challenge-sent?     yang:counter64
       |           |  +--ro bc-value*             uint32 integrity-challenge-received? yang:counter64
       |           |  +--ro integrity-response-sent?      yang:counter64
       |  +--:(bc-model-mam)           |  +--ro integrity-response-received?  yang:counter64
       |           |  +--ro bc-model-mam notify-sent?                  yang:counter64
       |           |  +--ro notify-received?              yang:counter64
       |           |  +--ro bandwidth-mpls-constraints path-sent?                    yang:counter64
       |           |  +--ro path-received?                yang:counter64
       |           |  +--ro maximum-reservable?   uint32 path-err-sent?                yang:counter64
       |           |  +--ro path-err-received?            yang:counter64
       |           |  +--ro bc-value*             uint32 path-tear-sent?               yang:counter64
       |           |  +--:(bc-model-mar)  +--ro path-tear-received?           yang:counter64
       |           |  +--ro bc-model-mar resv-sent?                    yang:counter64
       |           |  +--ro bandwidth-mpls-constraints resv-received?                yang:counter64
       |           |  +--ro maximum-reservable?   uint32 resv-confirm-sent?            yang:counter64
       |           |  +--ro bc-value*             uint32 resv-confirm-received?        yang:counter64
       |           |  +--ro interface-softpreemption-state resv-err-sent?                yang:counter64
       |           |  +--ro soft-preempted-bandwidth?   uint32 resv-err-received?            yang:counter64
       |           |  +--ro lsps*
 [source destination tunnel-id lsp-id extended-tunnel-id] resv-tear-sent?               yang:counter64
       |           |  +--ro source                -> /te:te/lsps-state/lsp/source resv-tear-received?           yang:counter64
       |           |  +--ro destination -> /te:te/lsps-state/lsp/destination summary-refresh-sent?         yang:counter64
       |           |  +--ro tunnel-id   -> /te:te/lsps-state/lsp/tunnel-id summary-refresh-received?     yang:counter64
       |           |  +--ro lsp-id      -> /te:te/lsps-state/lsp/lsp-id unknown-messages-received?    yang:counter64
       |           +--ro packets
       |           |  +--ro extended-tunnel-id
    -> /te:te/lsps-state/lsp/extended-tunnel-id sent?       yang:counter64
       |           |  +--ro type?                 -> /te:te/lsps-state/lsp/type received?   yang:counter64
       |           +--ro over-subscribed-bandwidth?        uint32 errors
       |              +--ro authenticate?   yang:counter64
       |              +--ro checksum?       yang:counter64
       |              +--ro packet-len?     yang:counter64
       +--rw neighbors
          +--rw neighbor* [address]
             +--rw rsvp-te-frr-backups {te-types:frr-te}? address    -> ../config/address
             +--rw config
             |  +--rw backup-bandwidth? address?   inet:ip-address
             +--ro state
                +--ro address?                     inet:ip-address
                +--ro epoch?                       uint32
      |  +--rw backup-bandwidth-classtype?
                +--ro expiry-time?                 uint32
                +--ro graceful-restart
                |  +--rw (type)?  +--ro enabled?                  boolean
                |     +--:(static-tunnel)  +--ro local-restart-time?       uint32
                |  +--ro local-recovery-time?      uint32
                |  +--rw static-backups* [tunnel-name]  +--ro neighbor-restart-time?    uint32
                |  +--ro neighbor-recovery-time?   uint32
                |     +--rw tunnel-name    string  +--ro helper-mode
                |     +--:(auto-tunnel)     +--ro enabled?                            boolean
                |        +--rw auto-backup-protection?         identityref     +--ro max-helper-restart-time?            uint32
                |        +--rw auto-backup-path-computation?   identityref     +--ro state max-helper-recovery-time?           uint32
                |     +--ro backup-bandwidth? neighbor-restart-time-remaining?    uint32
                |     +--ro backup-bandwidth-classtype? neighbor-recovery-time-remaining?   uint32
                +--ro (type)?
            +--:(static-tunnel)
            | hello-status?                enumeration
                +--ro static-backups* [tunnel-name]
            | interface?                   if:interface-ref
                +--ro tunnel-name    string
            +--:(auto-tunnel) neighbor-state?              enumeration
                +--ro auto-backup-protection?         identityref refresh-reduction-capable?   boolean
                +--ro restart-count?               yang:counter32
                +--ro restart-time?                yang:date-and-time

                Figure 6: MPLS RSVP-TE YANG Tree representation

3.4.2.  RPC and Notification Data

   TBD.

3.4.3.  YANG Module

   <CODE BEGINS> file "ietf-rsvp-te-mpls@2016-10-29.yang"

   module ietf-rsvp-te-mpls {

     namespace "urn:ietf:params:xml:ns:yang:ietf-rsvp-te-mpls";

     prefix "rsvp-te-mpls";

     import ietf-rsvp {
       prefix "rsvp";
     }

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

     import ietf-te-types {
       prefix "te-types";
     }

     import ietf-te {
       prefix "te";
     }

     import ietf-te-device {
       prefix "te-dev";
     }

     organization
       "IETF Traffic Engineering Architecture and Signaling (TEAS)
        Working Group";

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

        WG Chair: Lou Berger
                  <mailto:lberger@labn.net>

        WG Chair: Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Tarek Saad
                  <mailto:tsaad@cisco.com>

        Editor:   Rakesh Gandhi
                  <mailto:rgandhi@cisco.com>

        Editor:   Himanshu Shah
                  <mailto:hshah@ciena.com>

        Editor:   Xufeng Liu
                  <mailto:xliu@kuatrotech.com>

        Editor:   Xia Chen
                  <mailto:jescia.chenxia@huawei.com>

        Editor:   Raqib Jones
                  <mailto:raqib@Brocade.com>

        Editor:   Bin Wen
                  <mailto:Bin_Wen@cable.comcast.com>";

     description
       "Latest update to MPLS RSVP-TE YANG data model.";

     revision "2016-10-29" {
       description "Update to MPLS RSVP-TE YANG initial revision.";
       reference "RFC3209, RFC6511, RFC6790, RFC7260, RFC4859, RFC4090";
     }

     /* RSVP-TE MPLS LSPs groupings */
     grouping lsp-attributes-flags-mpls_config {
       description
         "Configuration parameters relating to RSVP-TE MPLS LSP
         attribute flags";
       leaf non-php-desired {
         type empty;
         description
           "Non-PHP is desired";
         reference "RFC6511";
       }
       leaf entropy-label-cap {
         type empty;
         description "Entropy label capability";
         reference "RFC6790";
       }
       leaf oam-mep-entities-desired {
         type empty;
         description "OAM MEP entities desired";
         reference "RFC7260";
       }
       leaf oam-mip-entities-desired {
         type empty;
         description "OAM MIP entities desired";
         reference "RFC7260";
       }
     }

     grouping lsp-session-attributes-obj-flags-mpls_config {
       description
         "Configuration parameters relating to RSVP-TE MPLS LSP
          session attribute flags";
       reference
         "RFC4859: Registry for RSVP-TE Session Flags";

       leaf local-protection-desired {
         type empty;
         description "Fastreroute local protection is desired.";
         reference
           "RFC4859: Registry for RSVP-TE Session Flags";
       }
       leaf bandwidth-protection-desired {
         type empty;
         description
           "Request FRR bandwidth protection on LSRs if
           present.";
         reference "RFC4090";
       }
       leaf node-protection-desired {
         type empty;
         description
           "Request FRR node protection on LSRs if
           present.";
         reference "RFC4090";
       }
     }

     grouping  lsp-overflow_config {
       description "configuration for mpls lsp bandwidth
         overflow adjustment";

       leaf enabled {
         type boolean;
         default false;
         description "enables mpls lsp bandwidth overflow
           adjustment on 4: RSVP extended model tree diagram

3.2.2.  YANG Module

   Figure 5 shows the lsp";
       }

       leaf overflow-threshold RSVP extended YANG module:

   <CODE BEGINS> file "ietf-rsvp-extended@2017-03-10.yang"
   module ietf-rsvp-extended {
         type uint32;
         description "bandwidth percentage change to trigger
           an overflow event";

       }

       leaf trigger-event-count

     namespace "urn:ietf:params:xml:ns:yang:ietf-rsvp-extended";

     prefix "rsvp-ext";

     import ietf-rsvp {
         type uint16;
         description "number of consecutive overflow sample
           events needed to trigger an overflow adjustment";
       }
       prefix "rsvp";
     }

     grouping lsp-underflow_config {
       description
         "configuration for mpls lsp bandwidth
         underflow adjustment";

       leaf enabled

     import ietf-routing {
         type boolean;
         default false;
         description "enables bandwidth underflow
           adjustment on the lsp";
       prefix "rt";
     }

       leaf underflow-threshold

     import ietf-yang-types {
         type uint32;
         description "bandwidth percentage change to trigger
           and underflow event";
       prefix "yang";
     }

       leaf trigger-event-count

     import ietf-key-chain {
         type uint16;
         description "number of consecutive underflow sample
           events needed to trigger an underflow adjustment";
       }
       prefix "key-chain";
     }

     grouping lsp-auto-bandwidth_config {
       description
         "Auto-Bandwidth grouping";
       container auto-bandwidth {
         description "configure auto-bandwidth operation in
           which devices automatically adjust bandwidth to meet
           requirements";

         leaf enabled {
           type boolean;
           default false;

     organization
       "IETF Traffic Engineering Architecture and Signaling (TEAS)
        Working Group";

     contact
       "WG Web:   <http://tools.ietf.org/wg/teas/>

        WG List:  <mailto:teas@ietf.org>

        WG Chair: Lou Berger
                  <mailto:lberger@labn.net>

        WG Chair: Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Vishnu Pavan Beeram
                  <mailto:vbeeram@juniper.net>

        Editor:   Tarek Saad
                  <mailto:tsaad@cisco.com>

        Editor:   Rakesh Gandhi
                  <mailto:rgandhi@cisco.com>

        Editor:   Himanshu Shah
                  <mailto:hshah@ciena.com>

        Editor:   Xufeng Liu
                  <mailto:Xufeng_Liu@jabil.com>

        Editor:   Xia Chen
                  <mailto:jescia.chenxia@huawei.com>

        Editor:   Raqib Jones
                  <mailto:raqib@Brocade.com>

        Editor:   Bin Wen
                  <mailto:Bin_Wen@cable.comcast.com>";

     description "enables mpls auto-bandwidth on
       "This module contains the
             lsp";
         }

         leaf min-bw Extended RSVP YANG data model.";

     revision "2017-03-10" {
           type uint32;
       description "set the minimum bandwidth in Mbps for an
             auto-bandwidth LSP"; "Latest revision of RSVP extended yang module.";
       reference "RFC2205";
     }

         leaf max-bw

     /* RSVP features */
     feature authentication {
           type uint32;
       description "set the maximum bandwidth in Mbps
         "Indicates support for an
             auto-bandwidth LSP";
         }

         leaf adjust-interval {
           type uint32;
           description "time in seconds between adjustments to
             LSP bandwidth";
         }

         leaf adjust-threshold {
           type uint32;
           description "percentage difference between the LSP's
             specified bandwidth and its current bandwidth
             allocation -- if the difference is greater than the
             specified percentage, auto-bandwidth adjustment is
             triggered"; RSVP authentication";
     }

         container overflow

     feature error-statistics {
       description "configuration of MPLS overflow bandwidth
             adjustement
         "Indicates support for the LSP";
           uses lsp-overflow_config; error statistics";
     }

         container underflow

     feature global-statistics {
       description "configuration of MPLS underflow bandwidth
             adjustement
         "Indicates support for the LSP";
           uses lsp-underflow_config;
         }
       } global statistics";
     }

     grouping lsp-bandwidth_config

     feature graceful-restart {
       description
         "LSP bandwidth grouping";
       leaf static-bandwidth
         "Indicates support for RSVP graceful restart";
     }

     feature hellos {
         type uint32;
       description
           "Static bandwidth, e.g., using
            offline calculation";
       }
       uses lsp-auto-bandwidth_config;
         "Indicates support for RSVP hellos (RFC3209).";
     }

     grouping tunnel-properties-mpls

     feature notify {
       description
         "Top level grouping
         "Indicates support for LSP properties.";
         container config RSVP notify message (RFC3473).";
     }

     feature refresh-reduction {
       description
             "Configuration parameters
         "Indicates support for tunnel RSVP-TE
             properties";
           uses lsp-bandwidth_config;
           uses lsp-session-attributes-obj-flags-mpls_config;
           uses lsp-attributes-flags-mpls_config; RSVP refresh reduction
          (RFC2961).";
     }
         container state

     feature refresh-reduction-extended {
       description
             "State parameters
         "Indicates support for tunnel RSVP-TE
             properties";
           uses lsp-bandwidth_config;
           uses lsp-session-attributes-obj-flags-mpls_config;
           uses lsp-attributes-flags-mpls_config;
         } RSVP refresh reduction
          (RFC2961).";
     }

     grouping lsp-properties-mpls

     feature per-interface-statistics {
       description
         "Top level grouping
         "Indicates support for LSP properties.";
         uses lsp-bandwidth_config;
         uses lsp-session-attributes-obj-flags-mpls_config;
         uses lsp-attributes-flags-mpls_config;
     }
     /* End of RSVP-TE MPLS LSPs groupings */

     /* MPLS RSVP-TE per interface groupings */ statistics";
     }

     grouping rsvp-te-interface_state graceful-restart-extended_config {
       description
         "The RSVP-TE interface state grouping";
         "Configuration parameters relating to RSVP
          Graceful-Restart";
       leaf over-subscribed-bandwidth restart-time {
         type uint32;
         units seconds;
         description
           "The amount
           "Graceful restart time (seconds).";
         reference
           "RFC 5495: Description of over-subscribed bandwidth on the interface";
       } Resource
            Reservation Protocol - Traffic-Engineered
            (RSVP-TE) Graceful Restart Procedures";
       }

     grouping rsvp-te-interface-softpreemption_state
       leaf recovery-time {
         type uint32;
         units seconds;
         description
         "The RSVP-TE interface preeemptions
           "RSVP state grouping";
       container interface-softpreemption-state recovery time";
       }
     }

     grouping authentication-extended_config {
       description
           "The RSVP-TE interface preeemptions state grouping";
         "Configuration parameters relating to RSVP
         authentication";
       leaf soft-preempted-bandwidth lifetime {
         type uint32; uint32 {
           range "30..86400";
         }
                           units seconds;
         description
             "The amount of soft-preempted bandwidth on
             this interface";
           "Life time for each security association";
         reference
           "RFC 2747: RSVP Cryptographic
           Authentication";
       }
         list lsps
       leaf window-size {
           key
             "source destination tunnel-id lsp-id "+
             "extended-tunnel-id";
         type uint32 {
           range "1..64";
         }
         description
             "List
           "Window-size to limit number of LSPs that are soft-preempted"; out-of-order
            messages.";
         reference
           "RFC 2747: RSVP Cryptographic
            Authentication";
       }
       leaf source challenge {
         type leafref {
               path "/te:te/te:lsps-state/te:lsp/"+
                    "te:source";
             } empty;
         description
               "Tunnel sender address extracted from
               SENDER_TEMPLATE  object";
           "Enable challenge messages.";
         reference "RFC3209";
           "RFC 2747: RSVP Cryptographic
            Authentication";
       }
       leaf destination retransmits {
         type leafref uint32 {
               path "/te:te/te:lsps-state/te:lsp/"+
                    "te:destination";
           range "1..10000";
         }
         description
               "Tunnel endpoint address extracted from
               SESSION object";
           "Number of retransmits when messages are
            dropped.";
         reference "RFC3209";
           "RFC 2747: RSVP Cryptographic
            Authentication";
       }
       leaf tunnel-id key-chain {
                           type leafref {
               path "/te:te/te:lsps-state/te:lsp/"+
                 "te:tunnel-id";
             } key-chain:key-chain-ref;
         description
               "Tunnel identifier used in the SESSION
               that remains constant over the life
               of the tunnel.";
           "Key chain name to authenticate RSVP
            signaling messages.";
         reference "RFC3209";
           "RFC 2747: RSVP Cryptographic
            Authentication";
       }
     }

     grouping hellos-extended_config {
       description
         "Configuration parameters relating to RSVP
          hellos";
       leaf lsp-id interface-based {
         type leafref {
               path "/te:te/te:lsps-state/te:lsp/"+
                    "te:lsp-id";
             } empty;
         description
               "Identifier used in the SENDER_TEMPLATE
               and the FILTER_SPEC that can be changed
               to allow a sender to share resources with
               itself.";
             reference "RFC3209";
           "Enable interface-based Hello adjacency if present.";
       }
       leaf extended-tunnel-id hello-interval {
         type leafref {
               path "/te:te/te:lsps-state/te:lsp/"+
                 "te:extended-tunnel-id";
             } uint32;
         units milliseconds;
         description
               "Extended Tunnel ID
           "Configure interval between successive Hello
            messages in milliseconds.";
         reference
           "RFC 3209: RSVP-TE: Extensions to RSVP for LSP Tunnels.
            RFC 5495: Description of the LSP.";
             reference "RFC3209"; Resource
            Reservation Protocol - Traffic-Engineered
            (RSVP-TE) Graceful Restart Procedures";

       }
       leaf type hello-misses {
         type leafref uint32 {
               path "/te:te/te:lsps-state/te:lsp/"+
                 "te:type";
           range "1..10";
         }
         description "LSP type P2P or P2MP";
           }
         }
           "Configure max number of consecutive missed
            Hello messages.";
         reference
           "RFC 3209: RSVP-TE: Extensions to RSVP for
            LSP Tunnels RFC 5495: Description of the
            Resource Reservation Protocol - Traffic-
            Engineered (RSVP-TE) Graceful Restart
            Procedures";
       }
     }
     /* End of RSVP-TE interface groupings */

     /* RSVP-TE FRR groupings */

     grouping rsvp-te-frr-backups_config signaling-parameters-extended_config {
       description
         "Top level container for RSVP-TE FRR backup parameters";
         "Configuration parameters relating to RSVP
          signaling";
       leaf backup-bandwidth refresh-interval {
         type uint32;
         description
           "Maximum bandwidth this facility backup
           is allowed to protect";
           "Set interval between successive refreshes";
       }
       leaf backup-bandwidth-classtype refresh-misses {
         type uint32;
         description
           "Type
           "Set max number of primary LSP bandwidth that the
           backup is allowed to protect."; consecutive missed
           messages for state expiry";
       }
       choice
       leaf checksum {
         type boolean;
         description
           "Enable RSVP message checksum computation";
       }
       leaf patherr-state-removal {
         type empty;
         description
           "FRR backup tunnel type";
         case static-tunnel
           "State-Removal flag in Path Error message
           if present.";
       }
     }

     grouping refresh-reduction-extended_config {
           list static-backups
       description
         "Configuration parameters relating to RSVP
         refresh reduction";

       leaf bundle-message-max-size {
             key "tunnel-name";
         type uint32 {
           range "512..65000";
         }
         description
               "List
           "Configure maximum size (bytes) of static backup tunnels that
               protect the RSVP-TE interface."; a
           single RSVP Bundle message.";
       }
       leaf tunnel-name reliable-ack-hold-time {
         type string; uint32;
         units milliseconds;
         description "FRR Backup tunnel";
             }
           }
           "Configure hold time in milliseconds for
           sending RSVP ACK message(s).";
       }
         case auto-tunnel {
       leaf auto-backup-protection reliable-ack-max-size {
         type identityref {
               base te-mpls-types:backup-protection-type;
             }
             default
               te-mpls-types:backup-protection-node-link; uint32;
         description
               "Describes whether the backup should offer
               protection against link, node, or either";
           "Configure max size of a single RSVP ACK
           message.";
       }
       leaf auto-backup-path-computation reliable-retransmit-time {
         type identityref {
               base
                 te-types:path-computation-srlg-type;
             } uint32;
         units milliseconds;
         description
               "FRR backup computation type";
           }
         }
       }
           "Configure min delay in milliseconds to
           wait for an ACK before a retransmit.";
       }

     grouping rsvp-te-frr-backups
       leaf reliable-srefresh {
         type empty;
         description
         "Top level grouping
           "Configure use of reliable messaging for RSVP-TE FRR backup properties.";
       container rsvp-te-frr-backups
           summary refresh if present.";
       }
       leaf summary-max-size {
         if-feature te-types:frr-te;
         description
           "Top level container for RSVP-TE FRR backup
           properties.";
         container config
         type uint32 {
           description
             "Configuration parameters for interface RSVP-TE
             FRR backup properties";
           uses rsvp-te-frr-backups_config;
           range "20..65000";
         }
         container state {
           config false;
         description
             "State parameters for interface RSVP-TE
             FRR backup properties";
           uses rsvp-te-frr-backups_config;
         }
           "Configure max size (bytes) of a single
           RSVP summary refresh message.";
       }
     }

     grouping lps-backup-info_state {
       description "Backup/bypass LSP related information";
       container backup-info packets-extended_state {
       description
           "backup information";
         "Packet statistics.";
       leaf backup-tunnel-name discontinuity-time {
         type string; yang:date-and-time;
         description
             "If an LSP has an FRR backup LSP that can protect it,
             this field identifies
           "The time on the tunnel name most recent occasion at which any one
           or more of the statistic counters suffered a
           discontinuity. If no such discontinuities have occurred
           since the last re-initialization of the backup LSP.
             Otherwise, local
           management subsystem, then this field is empty."; node contains the time
           the local management subsystem re-initialized itself.";
       }
       leaf backup-frr-on out-dropped {
         type uint8; yang:counter64;
         description
             "Whether currently this backup is carrying traffic";
           "Out packet drop count";
       }

       leaf backup-protected-lsp-num in-dropped {
         type uint32; yang:counter64;
         description
             "Number of LSPs protected by this backup";
         }
       }
           "In packet drop count";
       }

     grouping rsvp-frr-local-revert_config {
       description "RSVP-TE FRR local revertive grouping";
       container rsvp-frr-local-revert

       leaf out-error {
         presence "Enable RSVP FRR local revertive recovery
           mode.";
         type yang:counter64;
         description
           "RSVP-TE FRR local revertive container";
           "Out packet error count";
       }

       leaf rsvp-frr-local-revert-delay in-error {
         type uint32; yang:counter64;
         description
             "Time to wait after primary link is restored
             before node attempts local revertive
             procedures.";
         }
           "In packet rx error count";
       }
     }

     /*** End of RSVP-TE FRR backup information ***/

     grouping globals-properties protocol-extended_state {
       description
         "RSVP protocol statistics.";
     }

     grouping errors-extended_state {
       description
         "Top level
         "Error statistics.";
     }

     grouping for globals properties";
       container config extended_state {
       description
           "Configuration parameters relating to
            global MPLS RSVP-TE properties"; "RSVP statistic attributes.";
       uses packets-extended_state;
       uses protocol-extended_state;
       uses rsvp-frr-local-revert_config; errors-extended_state;
     }
       container state

     /**
      * RSVP extensions augmentations
      */

     /* RSVP globals graceful restart*/

     augment "/rt:routing/rt:control-plane-protocols/" +
             "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals/" +
             "rsvp:graceful-restart/rsvp:config" {
         config false;
       description
           "State parameters relating to
            global MPLS RSVP-TE properties";
         "RSVP globals configuration extensions";
       uses rsvp-frr-local-revert_config; graceful-restart-extended_config;
     }

     augment "/rt:routing/rt:control-plane-protocols/" +
             "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals/" +
             "rsvp:graceful-restart/rsvp:state" {
       description
         "RSVP globals configuration extensions";
       uses graceful-restart-extended_config;
     }

     /* RSVP-TE global propeerties RSVP statistics augmentation */
     augment "/rt:routing/rt:control-plane-protocols/" + "rt:control-plane-protocol/rsvp:rsvp"
             "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals/" +
             "rsvp:statistics/rsvp:state/rsvp:packets" {
       description
         "RSVP-TE augmentation to RSVP globals";
         "RSVP packet stats extensions";
       uses globals-properties; packets-extended_state;
     }

     grouping rsvp-te-interface-attributes-mpls
     augment "/rt:routing/rt:control-plane-protocols/" +
             "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals/" +
             "rsvp:statistics/rsvp:state/rsvp:messages" {
       description
         "Top level grouping for MPLS RSVP-TE
         "RSVP protocol message stats extensions";
       uses protocol-extended_state;
     }
     augment "/rt:routing/rt:control-plane-protocols/" +
             "rt:control-plane-protocol/rsvp:rsvp/rsvp:globals/" +
             "rsvp:statistics/rsvp:state/rsvp:errors" {
       description
         "RSVP errors stats extensions";
       uses errors-extended_state;

     }

     /**
      * RSVP all interfaces extensions
      */

     /* RSVP interface
         properties.";
       container config signaling extensions */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:config" {
       description
           "Configuration parameters relating to RSVP-TE
           bandwidth";
         "RSVP signaling all interfaces configuration extensions";
       uses te-mpls-types:bandwidth-mpls-reservable; signaling-parameters-extended_config;
     }
       container
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:state" {
       description
         "RSVP signaling all interfaces state extensions";
       uses signaling-parameters-extended_config;
     }

     /* RSVP refresh reduction extension */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:refresh-reduction/rsvp:config" {
         config false;
       description
           "State information associated with RSVP-TE
           bandwidth";
         "RSVP refresh-reduction all interface configuration
          extensions";
       uses te-mpls-types:bandwidth-mpls-reservable; refresh-reduction-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:refresh-reduction/rsvp:state" {
       description
         "RSVP refresh-reduction all interfaces state extensions";
       uses rsvp-te-interface-softpreemption_state; refresh-reduction-extended_config;
     }

     /* RSVP hellos extension */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:hellos/rsvp:config" {
       description
         "RSVP hello all interfaces configuration extensions";
       uses rsvp-te-interface_state; hellos-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:hellos/rsvp:state" {
       description
         "RSVP hello all interfaces state extensions";
       uses hellos-extended_config;
     }

     /* Linkage to the base RSVP authentication extension */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:authentication/rsvp:config" {
       description
         "RSVP authentication all interfaces */ configuration extensions";
       uses authentication-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces" "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/"
         + "rsvp:authentication/rsvp:state" {
       description
         "Augmentations for RSVP-TE MPLS
         "RSVP authentication all interfaces properties";
       /* To be added */ state extensions";
       uses authentication-extended_config;
     }

     /**
      * RSVP interface extensions
      */

     /* Linkage to per RSVP interface signaling extensions */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
     "rsvp:interface"
         "rsvp:interface/rsvp:config" {
       description
         "Augmentations for RSVP-TE MPLS per
         "RSVP signaling interface properties";
       /* To be added */ configuration extensions";
       uses signaling-parameters-extended_config;
     }

     /* add augmentation for sessions neighbors */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:sessions" "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:state" {
       description
         "Augmentations for RSVP-TE MPLS sessions";
         "RSVP signaling interface state extensions";
       uses signaling-parameters-extended_config;
     }

     /* To be added RSVP refresh reduction extension */
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:refresh-reduction/rsvp:config" {
       description
         "RSVP refresh-reduction interface configuration extensions";
       uses refresh-reduction-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:neighbors" "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:refresh-reduction/rsvp:state" {
       description
         "Augmentations for RSVP-TE MPLS neighbors properties";
       /* To be added */
         "RSVP refresh-reduction interface state extensions";
       uses refresh-reduction-extended_config;
     }

     /**
      * Augmentation to TE generic module

     /* RSVP hellos extension */
     augment "/te:te/te:tunnels/te:tunnel" "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:hellos/rsvp:config" {
       description
         "Augmentations for RSVP-TE MPLS TE tunnel properties";
         "RSVP hello interface configuration extensions";
       uses tunnel-properties-mpls; hellos-extended_config;
     }
     augment "/te:te/te:lsps-state/te:lsp" "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:hellos/rsvp:state" {
       description
         "RSVP-TE MPLS LSP
         "RSVP hello interface state properties";

       uses lsp-properties-mpls; extensions";
       uses lps-backup-info_state; hellos-extended_config;
     }

     /* RSVP authentication extension */
     augment "/te:te/te-dev:interfaces/te-dev:interface" "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:authentication/rsvp:config" {
       description
         "RSVP reservable bandwidth authentication interface configuration properties"; extensions";
       uses rsvp-te-interface-attributes-mpls; authentication-extended_config;
     }
     augment "/rt:routing/rt:control-plane-protocols/"
         + "rt:control-plane-protocol/rsvp:rsvp/rsvp:interfaces/" +
         "rsvp:interface/rsvp:authentication/rsvp:state" {
       description
         "RSVP authentication interface state extensions";
       uses rsvp-te-frr-backups; authentication-extended_config;
     }
   }
   <CODE ENDS>

                    Figure 5: RSVP extended YANG module

4.  IANA Considerations

   This document registers the following URIs 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-rsvp XML: N/A, the requested
   URI is an XML namespace.

   URI: urn:ietf:params:xml:ns:yang:ietf-rsvp-te urn:ietf:params:xml:ns:yang:ietf-rsvp-extended XML: N/A, the
   requested URI is an XML namespace.

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

   name: ietf-rsvp namespace: urn:ietf:params:xml:ns:yang:ietf-rsvp
   prefix: ietf-rsvp reference: RFC3209

   name: ietf-rsvp-te ietf-rsvp-extended namespace: urn:ietf:params:xml:ns:yang:ietf-rsvp-
   te urn:ietf:params:xml:ns:yang:ietf-
   rsvp-extended prefix: ietf-rsvp-te ietf-rsvp-extendeed reference: RFC3209

5.  Security Considerations

   The YANG module defined in this memo is designed to be accessed via
   the NETCONF protocol [RFC6241].  The lowest NETCONF layer is the
   secure transport layer and the mandatory-to-implement secure
   transport is SSH [RFC6242].  The NETCONF access control model
   [RFC6536] provides means to restrict access for particular NETCONF

   users to a pre-configured subset of all available NETCONF protocol
   operations and content.

   There are a number of data nodes defined in the YANG module which 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.

6.  Acknowledgement

   The authors would like to thank Lou Berger Berger, for reviewing and
   providing valuable feedback on this document.

7.  Contributors

      Xia Chen
      Huawei Technologies

      Email: jescia.chenxia@huawei.com

      Raqib Jones
      Brocade

      Email: raqib@Brocade.com

      Bin Wen
      Comcast

      Email: Bin_Wen@cable.comcast.com

8.  References

7.1.

8.1.  Normative References

   [I-D.ietf-netmod-routing-cfg]
              Lhotka, L. and A. Lindem, "A YANG Data Model for Routing
              Management", draft-ietf-netmod-routing-cfg-24 (work in
              progress), October 2016.

   [I-D.ietf-teas-yang-te]
              Saad, T., Gandhi, R., Liu, X., Beeram, V., Shah, H.,
              Bryskin, I., Chen, X., Jones, R., and B. Wen, "A YANG Data
              Model for Traffic Engineering Tunnels and Interfaces",
              draft-ietf-teas-yang-te-05 (work in progress), October
              2016.

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

   [RFC2205]  Braden, R., Ed., Zhang, L., Berson, S., Herzog, S., and S.
              Jamin, "Resource ReSerVation Protocol (RSVP) -- Version 1
              Functional Specification", RFC 2205, DOI 10.17487/RFC2205,
              September 1997, <http://www.rfc-editor.org/info/rfc2205>.

   [RFC2747]  Baker, F., Lindell, B., and M. Talwar, "RSVP Cryptographic
              Authentication", RFC 2747, DOI 10.17487/RFC2747, January
              2000, <http://www.rfc-editor.org/info/rfc2747>.

   [RFC2961]  Berger, L., Gan, D., Swallow, G., Pan, P., Tommasi, F.,
              and S. Molendini, "RSVP Refresh Overhead Reduction
              Extensions", RFC 2961, DOI 10.17487/RFC2961, April 2001,
              <http://www.rfc-editor.org/info/rfc2961>.

   [RFC3209]  Awduche, D., Berger, L., Gan, D., Li, T., Srinivasan, V.,
              and G. Swallow, "RSVP-TE: Extensions to RSVP for LSP
              Tunnels", RFC 3209, DOI 10.17487/RFC3209, December 2001,
              <http://www.rfc-editor.org/info/rfc3209>.

   [RFC3473]  Berger, L., Ed., "Generalized Multi-Protocol Label
              Switching (GMPLS) Signaling Resource ReserVation Protocol-
              Traffic Engineering (RSVP-TE) Extensions", RFC 3473, DOI
              10.17487/RFC3473, January 2003,
              <http://www.rfc-editor.org/info/rfc3473>.

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

   [RFC5063]  Satyanarayana, A., Ed. and R. Rahman, Ed., "Extensions to
              GMPLS Resource Reservation Protocol (RSVP) Graceful
              Restart", RFC 5063, DOI 10.17487/RFC5063, October 2007,
              <http://www.rfc-editor.org/info/rfc5063>.

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

   [RFC6242]  Wasserman, M., "Using the NETCONF Protocol over Secure
              Shell (SSH)", RFC 6242, DOI 10.17487/RFC6242, June 2011,
              <http://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,
              <http://www.rfc-editor.org/info/rfc6536>.

   [RFC6991]  Schoenwaelder, J., Ed., "Common YANG Data Types", RFC
              6991, DOI 10.17487/RFC6991, July 2013,
              <http://www.rfc-editor.org/info/rfc6991>.

7.2.

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

8.2.  Informative References

   [I-D.openconfig-mpls-consolidated-model]
              George, J., Fang, L., eric.osborne@level3.com, e., and R.
              Shakir, "MPLS / TE Model for Service Provider Networks",
              draft-openconfig-mpls-consolidated-model-02 (work in
              progress), October 2015.

   [I-D.openconfig-netmod-opstate]
              Shakir, R., Shaikh, A., and M. Hines, "Consistent Modeling
              of Operational State Data in YANG", draft-openconfig-
              netmod-opstate-01 (work in progress), July 2015.

Authors' Addresses

   Vishnu Pavan Beeram
   Juniper Networks

   Email: vbeeram@juniper.net

   Tarek Saad (editor)
   Cisco Systems Inc Systems, Inc.

   Email: tsaad@cisco.com

   Rakesh Gandhi
   Cisco Systems Inc Systems, Inc.

   Email: rgandhi@cisco.com

   Xufeng Liu
   Ericsson
   Jabil

   Email: Xufeng_Liu@jabil.com

   Igor Bryskin
   Huawei Technologies

   Email: xliu@kuatrotech.com Igor.Bryskin@huawei.com

   Himanshu Shah
   Ciena

   Email: hshah@ciena.com

   Xia Chen
   Huawei Technologies

   Email: jescia.chenxia@huawei.com
   Raqib Jones
   Brocade

   Email: raqib@Brocade.com

   Bin Wen
   Comcast

   Email: Bin_Wen@cable.comcast.com