YANG Patch Media Type
draft-ietf-netconf-yang-patch-00

The information below is for an old version of the document
Document Type Active Internet-Draft (netconf WG)
Last updated 2014-03-23
Stream IETF
Intended RFC status (None)
Formats pdf htmlized bibtex
Reviews
Stream WG state WG Document
Document shepherd None
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                         A. Bierman
Internet-Draft                                                 YumaWorks
Intended status: Standards Track                            M. Bjorklund
Expires: September 23, 2014                               Tail-f Systems
                                                               K. Watsen
                                                        Juniper Networks
                                                             R. Fernando
                                                                   Cisco
                                                          March 22, 2014

                         YANG Patch Media Type
                    draft-ietf-netconf-yang-patch-00

Abstract

   This document describes a method for applying patches to NETCONF
   datastores using data defined with the YANG data modeling 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 September 23, 2014.

Copyright Notice

   Copyright (c) 2014 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

Bierman, et al.        Expires September 23, 2014               [Page 1]
Internet-Draft                 YANG Patch                     March 2014

   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  3
     1.1.  Terminology  . . . . . . . . . . . . . . . . . . . . . . .  3
       1.1.1.  NETCONF  . . . . . . . . . . . . . . . . . . . . . . .  3
       1.1.2.  HTTP . . . . . . . . . . . . . . . . . . . . . . . . .  4
       1.1.3.  YANG . . . . . . . . . . . . . . . . . . . . . . . . .  4
       1.1.4.  Terms  . . . . . . . . . . . . . . . . . . . . . . . .  5
       1.1.5.  Tree Diagrams  . . . . . . . . . . . . . . . . . . . .  5
   2.  YANG Patch . . . . . . . . . . . . . . . . . . . . . . . . . .  6
     2.1.  Target Resource  . . . . . . . . . . . . . . . . . . . . .  6
     2.2.  yang-patch Input . . . . . . . . . . . . . . . . . . . . .  6
     2.3.  yang-patch-status Output . . . . . . . . . . . . . . . . .  7
     2.4.  Target Data Node . . . . . . . . . . . . . . . . . . . . .  7
     2.5.  Edit Operations  . . . . . . . . . . . . . . . . . . . . .  7
     2.6.  Error Handling . . . . . . . . . . . . . . . . . . . . . .  8
   3.  YANG Module  . . . . . . . . . . . . . . . . . . . . . . . . .  9
   4.  IANA Considerations  . . . . . . . . . . . . . . . . . . . . . 18
     4.1.  YANG Module Registry . . . . . . . . . . . . . . . . . . . 18
     4.2.  application/yang.patch Media Types . . . . . . . . . . . . 18
     4.3.  application/yang.patch-status Media Types  . . . . . . . . 18
   5.  Security Considerations  . . . . . . . . . . . . . . . . . . . 20
   6.  Normative References . . . . . . . . . . . . . . . . . . . . . 21
   Appendix A.  Change Log  . . . . . . . . . . . . . . . . . . . . . 22
     A.1.  bierman:yang-patch-00 to ietf:yang-patch-00  . . . . . . . 22
   Appendix B.  Open Issues . . . . . . . . . . . . . . . . . . . . . 23
     B.1.  Identification of YANG Patch capabilities  . . . . . . . . 23
     B.2.  Protocol independence  . . . . . . . . . . . . . . . . . . 23
     B.3.  RESTCONF coupling  . . . . . . . . . . . . . . . . . . . . 23
     B.4.  Delete operation needed? . . . . . . . . . . . . . . . . . 24
     B.5.  global-errors needed?  . . . . . . . . . . . . . . . . . . 24
     B.6.  Is location leaf needed? . . . . . . . . . . . . . . . . . 24
     B.7.  Bulk editing support in yang-patch-status  . . . . . . . . 24
     B.8.  Edit list mechanism  . . . . . . . . . . . . . . . . . . . 24
   Appendix C.  Example YANG Module . . . . . . . . . . . . . . . . . 26
     C.1.  YANG Patch Examples  . . . . . . . . . . . . . . . . . . . 26
       C.1.1.  Patch an Existing Data Resource  . . . . . . . . . . . 27
Show full document text