YANG Model Conversion
draft-yby-yang-model-conversion-00

Document Type Active Internet-Draft (individual)
Last updated 2020-05-15
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf htmlized (tools) htmlized bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Internet Engineering Task Force                              B. Yan, Ed.
Internet-Draft                                                Z. Li, Ed.
Intended status: Standards Track                            Y. Zhao, Ed.
Expires: November 16, 2020           Beijing Univ. of Posts and Telecom.
                                                            May 15, 2020

                         YANG Model Conversion
                   draft-yby-yang-model-conversion-00

Abstract

   This document introduces the grammer extensions and relavant rules
   for YANG 1.0 [RFC6020] to complete the mapping between two similar
   YANG modules that describe the same entity.

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 https://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 November 16, 2020.

Copyright Notice

   Copyright (c) 2020 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
   (https://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.

Yan, et al.             Expires November 16, 2020               [Page 1]
Internet-Draft              Abbreviated Title                   May 2020

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Requirements Language . . . . . . . . . . . . . . . . . . . .   3
   3.  Overview  . . . . . . . . . . . . . . . . . . . . . . . . . .   3
   4.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   3
   5.  Mapping Relationships . . . . . . . . . . . . . . . . . . . .   4
     5.1.  One-to-one Mapping  . . . . . . . . . . . . . . . . . . .   4
     5.2.  One-to-many Mapping . . . . . . . . . . . . . . . . . . .   4
     5.3.  One-to-none Mapping . . . . . . . . . . . . . . . . . . .   4
   6.  Grammer Extension for YANG  . . . . . . . . . . . . . . . . .   4
     6.1.  The mapto Statement . . . . . . . . . . . . . . . . . . .   4
     6.2.  The statements Statement  . . . . . . . . . . . . . . . .   4
       6.2.1.  The statements's Substatements  . . . . . . . . . . .   4
       6.2.2.  The source Substatement . . . . . . . . . . . . . . .   4
       6.2.3.  The destination Substatement  . . . . . . . . . . . .   4
       6.2.4.  Usage example . . . . . . . . . . . . . . . . . . . .   4
     6.3.  The maptype Statement . . . . . . . . . . . . . . . . . .   4
       6.3.1.  The value of oto  . . . . . . . . . . . . . . . . . .   4
       6.3.2.  The value of otm  . . . . . . . . . . . . . . . . . .   5
       6.3.3.  The value of otn  . . . . . . . . . . . . . . . . . .   5
       6.3.4.  Usage example . . . . . . . . . . . . . . . . . . . .   5
     6.4.  The deviation Statement . . . . . . . . . . . . . . . . .   5
       6.4.1.  Usage example . . . . . . . . . . . . . . . . . . . .   5
   7.  Mapping for statements  . . . . . . . . . . . . . . . . . . .   5
     7.1.  Mapping of module Statement . . . . . . . . . . . . . . .   5
     7.2.  Mapping of submodule Statement  . . . . . . . . . . . . .   5
     7.3.  Mapping of typedef Statement  . . . . . . . . . . . . . .   5
     7.4.  Mapping of type Statement . . . . . . . . . . . . . . . .   5
     7.5.  Mapping of container Statement  . . . . . . . . . . . . .   5
     7.6.  Mapping of leaf Statement . . . . . . . . . . . . . . . .   5
     7.7.  Mapping of leaf-list Statement  . . . . . . . . . . . . .   5
     7.8.  Mapping of list Statement . . . . . . . . . . . . . . . .   5
     7.9.  Mapping of choice Statement . . . . . . . . . . . . . . .   5
     7.10. Mapping of anyxml Statement . . . . . . . . . . . . . . .   5
     7.11. Mapping of grouping Statement . . . . . . . . . . . . . .   5
     7.12. Mapping of uses Statement . . . . . . . . . . . . . . . .   5
     7.13. Mapping of rpc Statement  . . . . . . . . . . . . . . . .   5
     7.14. Mapping of notification Statement . . . . . . . . . . . .   5
     7.15. Mapping of augment Statement  . . . . . . . . . . . . . .   5
Show full document text