Extending YANG with Language Abstractions
RFC 6095

Document Type RFC - Experimental (March 2011; No errata)
Was draft-linowski-netmod-yang-abstract (individual in gen area)
Last updated 2013-03-02
Stream IETF
Formats plain text pdf html
Stream WG state (None)
Consensus Unknown
Document shepherd No shepherd assigned
IESG IESG state RFC 6095 (Experimental)
Telechat date
Responsible AD Dan Romascanu
Send notices to mehmet.ersue@nsn.com, bernd.linowski@ext.nsn.com, s.kuryla@jacobs-university.de, draft-linowski-netmod-yang-abstract@ietf.org
Internet Engineering Task Force (IETF)                       B. Linowski
Request for Comments: 6095                    TCS/Nokia Siemens Networks
Category: Experimental                                          M. Ersue
ISSN: 2070-1721                                   Nokia Siemens Networks
                                                               S. Kuryla
                                                    360 Treasury Systems
                                                              March 2011

               Extending YANG with Language Abstractions

Abstract

   YANG -- the Network Configuration Protocol (NETCONF) Data Modeling
   Language -- supports modeling of a tree of data elements that
   represent the configuration and runtime status of a particular
   network element managed via NETCONF.  This memo suggests enhancing
   YANG with supplementary modeling features and language abstractions
   with the aim to improve the model extensibility and reuse.

Status of This Memo

   This document is not an Internet Standards Track specification; it is
   published for examination, experimental implementation, and
   evaluation.

   This document defines an Experimental Protocol for the Internet
   community.  This document is a product of the Internet Engineering
   Task Force (IETF).  It represents the consensus of the IETF
   community.  It has received public review and has been approved for
   publication by the Internet Engineering Steering Group (IESG).  Not
   all documents approved by the IESG are a candidate for any level of
   Internet Standard; see Section 2 of RFC 5741.

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

Linowski, et al.              Experimental                      [Page 1]
RFC 6095               YANG Language Abstractions             March 2011

Copyright Notice

   Copyright (c) 2011 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
     1.1.  Key Words  . . . . . . . . . . . . . . . . . . . . . . . .  3
     1.2.  Motivation . . . . . . . . . . . . . . . . . . . . . . . .  3
     1.3.  Modeling Improvements with Language Abstractions . . . . .  5
     1.4.  Design Approach  . . . . . . . . . . . . . . . . . . . . .  6
     1.5.  Modeling Resource Models with YANG . . . . . . . . . . . .  6
       1.5.1.  Example of a Physical Network Resource Model . . . . .  6
       1.5.2.  Modeling Entity MIB Entries as Physical Resources  . . 12
   2.  Complex Types  . . . . . . . . . . . . . . . . . . . . . . . . 15
     2.1.  Definition . . . . . . . . . . . . . . . . . . . . . . . . 15
     2.2.  complex-type Extension Statement . . . . . . . . . . . . . 15
     2.3.  instance Extension Statement . . . . . . . . . . . . . . . 17
     2.4.  instance-list Extension Statement  . . . . . . . . . . . . 18
     2.5.  extends Extension Statement  . . . . . . . . . . . . . . . 19
     2.6.  abstract Extension Statement . . . . . . . . . . . . . . . 19
     2.7.  XML Encoding Rules . . . . . . . . . . . . . . . . . . . . 20
     2.8.  Type Encoding Rules  . . . . . . . . . . . . . . . . . . . 20
     2.9.  Extension and Feature Definition Module  . . . . . . . . . 21
     2.10. Example Model for Complex Types  . . . . . . . . . . . . . 24
     2.11. NETCONF Payload Example  . . . . . . . . . . . . . . . . . 25
     2.12. Update Rules for Modules Using Complex Types . . . . . . . 26
     2.13. Using Complex Types  . . . . . . . . . . . . . . . . . . . 26
       2.13.1. Overriding Complex Type Data Nodes . . . . . . . . . . 26
       2.13.2. Augmenting Complex Types . . . . . . . . . . . . . . . 27
       2.13.3. Controlling the Use of Complex Types . . . . . . . . . 28
   3.  Typed Instance Identifier  . . . . . . . . . . . . . . . . . . 29
     3.1.  Definition . . . . . . . . . . . . . . . . . . . . . . . . 29
     3.2.  instance-type Extension Statement  . . . . . . . . . . . . 29
     3.3.  Typed Instance Identifier Example  . . . . . . . . . . . . 30
   4.  IANA Considerations  . . . . . . . . . . . . . . . . . . . . . 31
   5.  Security Considerations  . . . . . . . . . . . . . . . . . . . 31
Show full document text