YANG extension for Common Augmentations
draft-bertz-netmod-commonaugment-01

Document Type Active Internet-Draft (individual)
Last updated 2017-03-09
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf html bibtex
Yang Validation 0 errors, 0 warnings.
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)
NETCONF Data Modeling Language                                  L. Bertz
Internet-Draft                                                    Sprint
Intended status: Standards Track                           March 9, 2017
Expires: September 10, 2017

                YANG extension for Common Augmentations
                  draft-bertz-netmod-commonaugment-01

Abstract

   This document defines a YANG extension to convey common schema
   augmentations.

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 September 10, 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.

   This document may contain material from IETF Documents or IETF
   Contributions published or made publicly available before November

Bertz                  Expires September 10, 2017               [Page 1]
Internet-Draft   YANG extension for Common Augmentations      March 2017

   10, 2008.  The person(s) controlling the copyright in some of this
   material may not have granted the IETF Trust the right to allow
   modifications of such material outside the IETF Standards Process.
   Without obtaining an adequate license from the person(s) controlling
   the copyright in such materials, this document may not be modified
   outside the IETF Standards Process, and derivative works of it may
   not be created outside the IETF Standards Process, except to format
   it for publication as an RFC or to translate it into languages other
   than English.

1.  Introduction

   This document provides a mechanism for the specification of an
   augmentation at multiple locations of a YANG schema using the
   extension statement as defined in Section 7.15 of [RFC7950].

   YANG extensions commonly add one augmentation to a common structure.
   Figure 1 shows a small module and another that will be used to extend
   it.

Bertz                  Expires September 10, 2017               [Page 2]
Internet-Draft   YANG extension for Common Augmentations      March 2017

                              ... basemodule {
                                prefix b;
                                ...
                                grouping base_element {
                                    ...
                                }

                                rpc my_rpc {
                                  input {
                                    uses b:base_element;
                                  }
                                  output {
                                    uses b:base_element;
                                  }
                                }

                                rpc my_bestrpc {
                                  input {
                                    uses b:base_element;
                                  }
                                }
                              }

                              ... newstuffmodule {
                                grouping new_things {
                                  ...
                                }
                              }

                        Figure 1: Reference Modules

   When extending my_rpc in the base module by adding new_things to the
   base element, one must use two augment statements.  If the author of
   the newstuff module wishes to extend base_element then they must
   write an augment statement for every schema location it which it
   appears.

   An extension with the key word "also-augments" is proposed that
   allows one augment statement to be used for augmentations.
Show full document text