Guidelines for Authors and Reviewers of YANG Data Model Documents
draft-ietf-netmod-rfc6087bis-15
Network Working Group A. Bierman
Internet-Draft YumaWorks
Obsoletes: 6087 (if approved) December 18, 2017
Intended status: BCP
Expires: June 21, 2018
Guidelines for Authors and Reviewers of YANG Data Model Documents
draft-ietf-netmod-rfc6087bis-15
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. This document
obsoletes RFC 6087.
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 June 21, 2018.
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
Bierman Expires June 21, 2018 [Page 1]
Internet-Draft Guidelines for YANG Documents December 2017
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 . . . . . . . . . . . . . . . . . . . . . . . . . 5
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.1. Requirements Notation . . . . . . . . . . . . . . . . . . 6
2.2. NETCONF Terms . . . . . . . . . . . . . . . . . . . . . . 6
2.3. YANG Terms . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4. NMDA Terms . . . . . . . . . . . . . . . . . . . . . . . . 7
2.5. Terms . . . . . . . . . . . . . . . . . . . . . . . . . . 7
2.5.1. YANG Tree Diagrams . . . . . . . . . . . . . . . . . . 7
3. General Documentation Guidelines . . . . . . . . . . . . . . . 8
3.1. Module Copyright . . . . . . . . . . . . . . . . . . . . . 8
3.2. Code Components . . . . . . . . . . . . . . . . . . . . . 8
3.2.1. Example Modules . . . . . . . . . . . . . . . . . . . 9
3.3. Terminology Section . . . . . . . . . . . . . . . . . . . 9
3.4. Tree Diagrams . . . . . . . . . . . . . . . . . . . . . . 10
3.5. Narrative Sections . . . . . . . . . . . . . . . . . . . . 10
3.6. Definitions Section . . . . . . . . . . . . . . . . . . . 10
3.7. Security Considerations Section . . . . . . . . . . . . . 11
3.8. IANA Considerations Section . . . . . . . . . . . . . . . 11
3.8.1. Documents that Create a New Namespace . . . . . . . . 12
3.8.2. Documents that Extend an Existing Namespace . . . . . 12
3.9. Reference Sections . . . . . . . . . . . . . . . . . . . . 12
3.10. Validation Tools . . . . . . . . . . . . . . . . . . . . . 13
3.11. Module Extraction Tools . . . . . . . . . . . . . . . . . 13
3.12. Module Usage Examples . . . . . . . . . . . . . . . . . . 13
4. YANG Usage Guidelines . . . . . . . . . . . . . . . . . . . . 14
4.1. Module Naming Conventions . . . . . . . . . . . . . . . . 14
4.2. Prefixes . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.3. Identifiers . . . . . . . . . . . . . . . . . . . . . . . 16
4.3.1. Identifier Naming Conventions . . . . . . . . . . . . 16
4.4. Defaults . . . . . . . . . . . . . . . . . . . . . . . . . 17
4.5. Conditional Statements . . . . . . . . . . . . . . . . . . 17
4.6. XPath Usage . . . . . . . . . . . . . . . . . . . . . . . 18
4.6.1. XPath Evaluation Contexts . . . . . . . . . . . . . . 18
4.6.2. Function Library . . . . . . . . . . . . . . . . . . . 19
4.6.3. Axes . . . . . . . . . . . . . . . . . . . . . . . . . 20
Show full document text