YANG Schema Mount
draft-ietf-netmod-schema-mount-06

Document Type Active Internet-Draft (netmod WG)
Last updated 2017-07-05
Stream IETF
Intended RFC status (None)
Formats plain text pdf html bibtex
Yang Validation 0 errors, 0 warnings.
Stream WG state WG Document (wg milestone: Oct 2017 - Submit draft-ietf-ne... )
Document shepherd Kent Watsen
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to "Lou Berger" <lberger@labn.net>, Kent Watsen <kwatsen@juniper.net>
Network Working Group                                       M. Bjorklund
Internet-Draft                                            Tail-f Systems
Intended status: Standards Track                               L. Lhotka
Expires: January 6, 2018                                          CZ.NIC
                                                            July 5, 2017

                           YANG Schema Mount
                   draft-ietf-netmod-schema-mount-06

Abstract

   This document defines a mechanism to combine YANG modules into the
   schema defined in other YANG 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 January 6, 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
   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 & Lhotka       Expires January 6, 2018                [Page 1]
Internet-Draft              YANG Schema Mount                  July 2017

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Terminology and Notation  . . . . . . . . . . . . . . . . . .   5
     2.1.  Glossary of New Terms . . . . . . . . . . . . . . . . . .   6
     2.2.  Namespace Prefixes  . . . . . . . . . . . . . . . . . . .   6
   3.  Schema Mount  . . . . . . . . . . . . . . . . . . . . . . . .   6
     3.1.  Mount Point Definition  . . . . . . . . . . . . . . . . .   7
     3.2.  Specification of the Mounted Schema . . . . . . . . . . .   7
     3.3.  Multiple Levels of Schema Mount . . . . . . . . . . . . .   9
   4.  Referring to Data Nodes in the Parent Schema  . . . . . . . .   9
   5.  RPC operations and Notifications  . . . . . . . . . . . . . .  10
   6.  Implementation Notes  . . . . . . . . . . . . . . . . . . . .  11
   7.  Data Model  . . . . . . . . . . . . . . . . . . . . . . . . .  11
   8.  Schema Mount YANG Module  . . . . . . . . . . . . . . . . . .  13
   9.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  18
   10. Security Considerations . . . . . . . . . . . . . . . . . . .  18
   11. Contributors  . . . . . . . . . . . . . . . . . . . . . . . .  18
   12. References  . . . . . . . . . . . . . . . . . . . . . . . . .  19
     12.1.  Normative References . . . . . . . . . . . . . . . . . .  19
     12.2.  Informative References . . . . . . . . . . . . . . . . .  19
   Appendix A.  Example: Device Model with LNEs and NIs  . . . . . .  20
     A.1.  Physical Device . . . . . . . . . . . . . . . . . . . . .  21
     A.2.  Logical Network Elements  . . . . . . . . . . . . . . . .  22
     A.3.  Network Instances . . . . . . . . . . . . . . . . . . . .  25
     A.4.  Invoking an RPC Operation . . . . . . . . . . . . . . . .  26
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  27

1.  Introduction

   Modularity and extensibility were among the leading design principles
   of the YANG data modeling language.  As a result, the same YANG
   module can be combined with various sets of other modules and thus
   form a data model that is tailored to meet the requirements of a
   specific use case.  Server implementors are only required to specify
   all YANG modules comprising the data model (together with their
   revisions and other optional choices) in the YANG library data
   ([RFC7895], and Section 5.6.4 of [RFC7950]) implemented by the
   server.  Such YANG modules appear in the data model "side by side",
   i.e., top-level data nodes of each module - if there are any - are
   also top-level nodes of the overall data model.

   Furthermore, YANG has two mechanisms for contributing a schema
Show full document text