Guidelines for Authors and Reviewers of YANG Data Model Documents
draft-ietf-netmod-rfc6087bis-12

Document Type Active Internet-Draft (netmod WG)
Last updated 2017-03-30 (latest revision 2017-03-05)
Replaces draft-bierman-netmod-rfc6087bis
Stream IETF
Intended RFC status Informational
Formats plain text xml pdf html bibtex
Stream WG state WG Document (wg milestone: Jul 2017 - Submit draft-ietf-ne... )
Document shepherd Kent Watsen
Shepherd write-up Show (last changed 2016-11-01)
IESG IESG state AD Evaluation
Consensus Boilerplate Yes
Telechat date
Responsible AD Benoit Claise
Send notices to (None)
Network Working Group                                         A. Bierman
Internet-Draft                                                 YumaWorks
Obsoletes: 6087 (if approved)                              March 5, 2017
Intended status: Informational
Expires: September 6, 2017

   Guidelines for Authors and Reviewers of YANG Data Model Documents
                    draft-ietf-netmod-rfc6087bis-12

Abstract

   This memo provides guidelines for authors and reviewers of Standards
   Track specifications containing YANG data model modules.  Applicable
   portions may be used as a basis for reviews of other YANG data model
   documents.  Recommendations and procedures are defined, which are
   intended to increase interoperability and usability of Network
   Configuration Protocol (NETCONF) and RESTCONF protocol
   implementations that utilize YANG data model modules.

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 September 6, 2017.

Copyright Notice

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

Bierman                 Expires September 6, 2017               [Page 1]
Internet-Draft        Guidelines for YANG Documents           March 2017

   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 . . . . . . . . . . . . . . . . . . . . . . . . .  5
   2.  Terminology  . . . . . . . . . . . . . . . . . . . . . . . . .  6
     2.1.  Requirements Notation  . . . . . . . . . . . . . . . . . .  6
     2.2.  NETCONF Terms  . . . . . . . . . . . . . . . . . . . . . .  6
     2.3.  YANG Terms . . . . . . . . . . . . . . . . . . . . . . . .  6
     2.4.  Terms  . . . . . . . . . . . . . . . . . . . . . . . . . .  7
   3.  YANG Tree Diagrams . . . . . . . . . . . . . . . . . . . . . .  8
   4.  General Documentation Guidelines . . . . . . . . . . . . . . .  9
     4.1.  Module Copyright . . . . . . . . . . . . . . . . . . . . .  9
     4.2.  Code Components  . . . . . . . . . . . . . . . . . . . . .  9
       4.2.1.  Example Modules  . . . . . . . . . . . . . . . . . . . 10
     4.3.  Terminology Section  . . . . . . . . . . . . . . . . . . . 10
     4.4.  Tree Diagrams  . . . . . . . . . . . . . . . . . . . . . . 11
     4.5.  Narrative Sections . . . . . . . . . . . . . . . . . . . . 11
     4.6.  Definitions Section  . . . . . . . . . . . . . . . . . . . 12
     4.7.  Security Considerations Section  . . . . . . . . . . . . . 12
     4.8.  IANA Considerations Section  . . . . . . . . . . . . . . . 13
       4.8.1.  Documents that Create a New Namespace  . . . . . . . . 13
       4.8.2.  Documents that Extend an Existing Namespace  . . . . . 13
     4.9.  Reference Sections . . . . . . . . . . . . . . . . . . . . 13
     4.10. Validation Tools . . . . . . . . . . . . . . . . . . . . . 14
     4.11. Module Extraction Tools  . . . . . . . . . . . . . . . . . 14
     4.12. Module Usage Examples  . . . . . . . . . . . . . . . . . . 14
   5.  YANG Usage Guidelines  . . . . . . . . . . . . . . . . . . . . 15
     5.1.  Module Naming Conventions  . . . . . . . . . . . . . . . . 15
     5.2.  Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . 16
     5.3.  Identifiers  . . . . . . . . . . . . . . . . . . . . . . . 17
       5.3.1.  Identifier Naming Conventions  . . . . . . . . . . . . 17
     5.4.  Defaults . . . . . . . . . . . . . . . . . . . . . . . . . 18
     5.5.  Conditional Statements . . . . . . . . . . . . . . . . . . 18
     5.6.  XPath Usage  . . . . . . . . . . . . . . . . . . . . . . . 19
       5.6.1.  XPath Evaluation Contexts  . . . . . . . . . . . . . . 19
       5.6.2.  Function Library . . . . . . . . . . . . . . . . . . . 20
Show full document text