Interface Properties for YANG Data Models
draft-wilton-netmod-interface-properties-00

Document Type Active Internet-Draft (individual)
Last updated 2017-07-03
Stream (None)
Intended RFC status (None)
Formats plain text pdf html bibtex
Yang Validation 0 errors, 28 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)
Network Working Group                                     R. Wilton, Ed.
Internet-Draft                                             Cisco Systems
Intended status: Standards Track                            July 3, 2017
Expires: January 4, 2018

               Interface Properties for YANG Data Models
              draft-wilton-netmod-interface-properties-00

Abstract

   This document specifies a better way to restrict interface YANG
   schema nodes to only those types of interfaces that the nodes are
   applicable to.

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 4, 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.

Wilton                   Expires January 4, 2018                [Page 1]
Internet-Draft                                                 July 2017

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   3
   3.  Problem Definition  . . . . . . . . . . . . . . . . . . . . .   3
   4.  Interface Property Identities . . . . . . . . . . . . . . . .   4
   5.  Potential issues and considerations:  . . . . . . . . . . . .   4
   6.  YANG Modules  . . . . . . . . . . . . . . . . . . . . . . . .   4
   7.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   7
   8.  Security Considerations . . . . . . . . . . . . . . . . . . .   7
   9.  Acknowledgments . . . . . . . . . . . . . . . . . . . . . . .   7
   10. References  . . . . . . . . . . . . . . . . . . . . . . . . .   7
     10.1.  Normative References . . . . . . . . . . . . . . . . . .   7
     10.2.  Informative References . . . . . . . . . . . . . . . . .   7
   Appendix A.  Examples of possible updates to iana-if-types.yang .   7
   Appendix B.  Example of interface properties usage in ietf-
                interfaces-common.yang . . . . . . . . . . . . . . .  10
   Appendix C.  Example of interface properties usage in ietf-
                interfaces-ethernet-like.yang  . . . . . . . . . . .  15
   Appendix D.  Example of interface properties usage in ietf-
                interfaces.yang  . . . . . . . . . . . . . . . . . .  17
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .  21

1.  Introduction

   This document introduces the concept of generic interface property
   identities in YANG [RFC7950] data models to solve the problem of how
   to restrict interface configuration and state schema nodes to the
   appropriate types of interfaces.  E.g., it is desirable to restrict
   MAC address configuration and state schema nodes to only those types
   of interfaces that use Ethernet framing, and hence for which MAC
   address configuration may be applicable.  This document defines a set
   of common interface property YANG identities (e.g., Ethernet-like),
   and proposes that the iana-interface-type identities in iana-if-
   type.yang are updated to also derive from the interface property
   identities (a backwards compatible change).  Interface based YANG
   schema nodes can then be made conditional on the interface property
   identities rather than being conditional on a hardcoded set of IANA
   interface types.  This approach also allows newly defined interface
   types to reuse published standard interface YANG schema nodes just by
   deriving from the appropriate interface property identities, and
   without requiring new revisions of those published standard YANG
   modules each time a new IANA interface type is defined.
Show full document text