YANG Schema Selection
draft-ietf-netmod-yang-ver-selection-00

Document Type Active Internet-Draft (netmod WG)
Last updated 2020-03-17
Replaces draft-wilton-netmod-yang-ver-selection
Stream IETF
Intended RFC status (None)
Formats plain text xml pdf htmlized (tools) htmlized bibtex
Yang Validation 6 errors, 0 warnings.
Additional Resources
- Yang catalog entry for ietf-schema-selection@2020-02-29.yang
- Yang impact analysis for draft-ietf-netmod-yang-ver-selection
- Mailing list discussion
Stream WG state WG Document
Document shepherd No shepherd assigned
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                          R. Wilton
Internet-Draft                                                 R. Rahman
Intended status: Standards Track                               J. Clarke
Expires: September 18, 2020                          Cisco Systems, Inc.
                                                               J. Sterne
                                                                   Nokia
                                                                   B. Wu
                                                                  Huawei
                                                          March 17, 2020

                         YANG Schema Selection
                draft-ietf-netmod-yang-ver-selection-00

Abstract

   This document defines a mechanism to allow clients, using NETCONF or
   RESTCONF, to configure and select YANG schema for interactions with a
   server.  This functionality can help servers support clients using
   older revisions of YANG modules even if later revisions contain non-
   backwards-compatible changes.  It can also be used to allow clients
   to select between YANG schema defined by different organizations.

   This draft provides a solution to YANG versioning requirements 3.1
   and 3.2.

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 September 18, 2020.

Copyright Notice

   Copyright (c) 2020 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

Wilton, et al.         Expires September 18, 2020               [Page 1]
Internet-Draft            YANG Schema Selection               March 2020

   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.

Table of Contents

   1.  Terminology and Conventions . . . . . . . . . . . . . . . . .   3
   2.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
   3.  Background  . . . . . . . . . . . . . . . . . . . . . . . . .   4
   4.  Objectives  . . . . . . . . . . . . . . . . . . . . . . . . .   5
   5.  Solution  . . . . . . . . . . . . . . . . . . . . . . . . . .   6
     5.1.  Packages  . . . . . . . . . . . . . . . . . . . . . . . .   7
     5.2.  Schema-sets . . . . . . . . . . . . . . . . . . . . . . .   7
     5.3.  Defining and changing client selectable schema-sets . . .   8
     5.4.  Schema selection protocol operations  . . . . . . . . . .   8
       5.4.1.  NETCONF . . . . . . . . . . . . . . . . . . . . . . .   8
         5.4.1.1.  schema-sets NETCONF capability  . . . . . . . . .   8
       5.4.2.  RESTCONF  . . . . . . . . . . . . . . . . . . . . . .  10
     5.5.  Custom schema-sets  . . . . . . . . . . . . . . . . . . .  11
   6.  Schema selection from a server perspective  . . . . . . . . .  11
   7.  Schema selection from a client perspective  . . . . . . . . .  12
     7.1.  Examples  . . . . . . . . . . . . . . . . . . . . . . . .  12
   8.  Limitations of the solution . . . . . . . . . . . . . . . . .  13
   9.  Schema Selection YANG module  . . . . . . . . . . . . . . . .  13
   10. YANG Module . . . . . . . . . . . . . . . . . . . . . . . . .  14
   11. Security Considerations . . . . . . . . . . . . . . . . . . .  20
   12. IANA Considerations . . . . . . . . . . . . . . . . . . . . .  20
     12.1.  NETCONF Capability URNs  . . . . . . . . . . . . . . . .  20
   13. Open Questions/Issues . . . . . . . . . . . . . . . . . . . .  21
   14. Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .  21
   15. References  . . . . . . . . . . . . . . . . . . . . . . . . .  21
     15.1.  Normative References . . . . . . . . . . . . . . . . . .  21
     15.2.  Informative References . . . . . . . . . . . . . . . . .  23
   Appendix A.  Schema selection examples  . . . . . . . . . . . . .  23
     A.1.  Supporting older versions of a schema . . . . . . . . . .  23
       A.1.1.  Variation - Multiple selectable schema-sets . . . . .  26
Show full document text