Guidelines for Authors and Reviewers of YANG Data Model Documents
draft-ietf-netmod-rfc6087bis-03
Network Working Group A. Bierman
Internet-Draft YumaWorks
Intended status: Standards Track June 12, 2015
Expires: December 14, 2015
Guidelines for Authors and Reviewers of YANG Data Model Documents
draft-ietf-netmod-rfc6087bis-03
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) 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 December 14, 2015.
Copyright Notice
Copyright (c) 2015 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
Bierman Expires December 14, 2015 [Page 1]
Internet-Draft Guidelines for YANG Documents June 2015
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 4
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.1. Requirements Notation . . . . . . . . . . . . . . . . . . 5
2.2. NETCONF Terms . . . . . . . . . . . . . . . . . . . . . . 5
2.3. YANG Terms . . . . . . . . . . . . . . . . . . . . . . . . 5
2.4. Terms . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3. YANG Tree Diagrams . . . . . . . . . . . . . . . . . . . . . . 7
4. General Documentation Guidelines . . . . . . . . . . . . . . . 8
4.1. Module Copyright . . . . . . . . . . . . . . . . . . . . . 8
4.2. Terminology Section . . . . . . . . . . . . . . . . . . . 9
4.3. Tree Diagrams . . . . . . . . . . . . . . . . . . . . . . 9
4.4. Narrative Sections . . . . . . . . . . . . . . . . . . . . 9
4.5. Definitions Section . . . . . . . . . . . . . . . . . . . 10
4.6. Security Considerations Section . . . . . . . . . . . . . 10
4.7. IANA Considerations Section . . . . . . . . . . . . . . . 11
4.7.1. Documents that Create a New Namespace . . . . . . . . 11
4.7.2. Documents that Extend an Existing Namespace . . . . . 11
4.8. Reference Sections . . . . . . . . . . . . . . . . . . . . 11
4.9. Validation Tools . . . . . . . . . . . . . . . . . . . . . 12
4.10. Module Extraction Tools . . . . . . . . . . . . . . . . . 12
5. YANG Usage Guidelines . . . . . . . . . . . . . . . . . . . . 13
5.1. Module Naming Conventions . . . . . . . . . . . . . . . . 13
5.2. Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . 13
5.3. Identifiers . . . . . . . . . . . . . . . . . . . . . . . 15
5.3.1. Identifier Naming Conventions . . . . . . . . . . . . 15
5.4. Defaults . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.5. Conditional Statements . . . . . . . . . . . . . . . . . . 16
5.6. XPath Usage . . . . . . . . . . . . . . . . . . . . . . . 17
5.6.1. XPath Evaluation Contexts . . . . . . . . . . . . . . 17
5.6.2. Function Library . . . . . . . . . . . . . . . . . . . 18
5.6.3. Axes . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.6.4. Types . . . . . . . . . . . . . . . . . . . . . . . . 19
5.6.5. Wildcards . . . . . . . . . . . . . . . . . . . . . . 20
5.6.6. Boolean Expressions . . . . . . . . . . . . . . . . . 20
5.7. Lifecycle Management . . . . . . . . . . . . . . . . . . . 21
5.8. Module Header, Meta, and Revision Statements . . . . . . . 22
Show full document text