YANG Tree Diagrams
draft-ietf-netmod-yang-tree-diagrams-01
Network Working Group M. Bjorklund
Internet-Draft Tail-f Systems
Intended status: Standards Track L. Berger, Ed.
Expires: December 31, 2017 LabN Consulting, L.L.C.
June 29, 2017
YANG Tree Diagrams
draft-ietf-netmod-yang-tree-diagrams-01
Abstract
This document captures the current syntax used in YANG module Tree
Diagrams. The purpose of the document is to provide a single
location for this definition. This syntax may be updated from time
to time based on the evolution of the YANG language.
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 31, 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
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.
Bjorklund & Berger Expires December 31, 2017 [Page 1]
Internet-Draft YANG Tree Diagrams June 2017
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2
2. Tree Diagram Syntax . . . . . . . . . . . . . . . . . . . . . 3
2.1. Submodules . . . . . . . . . . . . . . . . . . . . . . . 4
2.2. Groupings . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3. Collapsed Node Representation . . . . . . . . . . . . . . 4
2.4. Node Representation . . . . . . . . . . . . . . . . . . . 4
2.5. Extensions . . . . . . . . . . . . . . . . . . . . . . . 5
3. Usage Guidelines For RFCs . . . . . . . . . . . . . . . . . . 5
3.1. Wrapping Long Lines . . . . . . . . . . . . . . . . . . . 6
4. YANG Schema Mount Tree Diagrams . . . . . . . . . . . . . . . 6
5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 7
6. Informative References . . . . . . . . . . . . . . . . . . . 7
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 8
1. Introduction
YANG Tree Diagrams were first published in [RFC7223]. Such diagrams
are commonly used to provided a simplified graphical representation
of a data model and can be automatically generated via tools such as
"pyang". (See <https://github.com/mbj4668/pyang>). This document
provides the syntax used in YANG Tree Diagrams. It is expected that
this document will be updated or replaced as changes to the YANG
language, see [RFC7950], necessitate.
Today's common practice is include the definition of the syntax used
to represent a YANG module in every document that provides a tree
diagram. This practice has several disadvantages and the purpose of
the document is to provide a single location for this definition. It
is not the intent of this document to restrict future changes, but
rather to ensure such changes are easily identified and suitably
agreed upon.
An example tree diagram can be found in [RFC7223] Section 3. A
portion of which follows:
+--rw interfaces
| +--rw interface* [name]
| +--rw name string
| +--rw description? string
| +--rw type identityref
| +--rw enabled? boolean
| +--rw link-up-down-trap-enable? enumeration
The remainder of this document contains YANG Tree Diagram syntax
based on output from pyang version 1.7.1.
Bjorklund & Berger Expires December 31, 2017 [Page 2]
Internet-Draft YANG Tree Diagrams June 2017
2. Tree Diagram Syntax
This section provides the meaning of the symbols used in YANG Tree
diagrams.
Show full document text