Skip to main content

YANG Data Model for SAVI
draft-meng-savi-yang-00

The information below is for an old version of the document.
Document Type
This is an older version of an Internet-Draft whose latest revision state is "Expired".
Authors Wei Meng , Cui Wang
Last updated 2015-07-06
RFC stream (None)
Formats
Stream Stream state (No stream defined)
Consensus boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date (None)
Responsible AD (None)
Send notices to (None)
draft-meng-savi-yang-00
SAVI                                                             W. Meng
Internet-Draft                                                   C. Wang
Intended status: Standards Track                         ZTE Corporation
Expires: January 7, 2016                                    July 6, 2015

                        YANG Data Model for SAVI
                        draft-meng-savi-yang-00

Abstract

   This document defines a YANG data model for SAVI.

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

Copyright Notice

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

Meng & Wang              Expires January 7, 2016                [Page 1]
Internet-Draft          YANG Data Model for SAVI               July 2015

Table of Contents

   1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  3
   2.  Convention and Terminology . . . . . . . . . . . . . . . . . .  4
   3.  Design of the Data Model . . . . . . . . . . . . . . . . . . .  5
   4.  SAVI YANG Model  . . . . . . . . . . . . . . . . . . . . . . .  6
   5.  Security Considerations  . . . . . . . . . . . . . . . . . . . 11
   6.  Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 12
   7.  Normative References . . . . . . . . . . . . . . . . . . . . . 13
   Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 14

Meng & Wang              Expires January 7, 2016                [Page 2]
Internet-Draft          YANG Data Model for SAVI               July 2015

1.  Introduction

   IETF netmod WG has developed a general data model for NETCONT
   protocol, YANG data model [RFC6020].

   This document defines a YANG data model for the configuration and
   management of SAVI.  With this model, the operators can configure and
   manage the devices by using NETCONF.

Meng & Wang              Expires January 7, 2016                [Page 3]
Internet-Draft          YANG Data Model for SAVI               July 2015

2.  Convention and Terminology

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in [RFC2119].

Meng & Wang              Expires January 7, 2016                [Page 4]
Internet-Draft          YANG Data Model for SAVI               July 2015

3.  Design of the Data Model

    +--savi configuration
         +--global
         |  +--rw ip-version
         |  +--rw enable
         |  +--rw arrange-mode
         |  +--rw max-dad-delay
         |  +--rw max-dad-prepare-delay
         |  +--rw max-ns-delay
         |  +--rw dhcp-only
         +--interface
         |  +--interface* [interface-index]
         |  |  +--rw interface-index
         |  |  +--rw interface-name[]
         |  |  +--rw enable
         |  |  +--rw validation-status
         |  |  +--rw trust-status
         |  |  +--rw filting-number
         +--binding
         |  +--rw binding-info* [ip-addr]
         |  |  +--rw ip-addr
         |  |  +--rw interface-index
         |  |  +--rw ip-addr-type
         |  |  +--rw type
         |  |  +--rw mac-addr
         |  |  +--rw status
         |  |  +--rw lifetime
         |  |  +--rw row-status
         +--filtering
         |  +--rw filtering-info* [interface-index]
         |  |  +--rw ip-addr[]
         |  |  +--rw interface-index
         |  |  +--rw ip-addr-type
         |  |  +--rw mac-addr
         +--global

Meng & Wang              Expires January 7, 2016                [Page 5]
Internet-Draft          YANG Data Model for SAVI               July 2015

4.  SAVI YANG Model

   This module imports typedefs from [RFC6991].

    module ietf-savi {
    namespace "urn:ietf:params:xml:ns:yang:ietf-savi";
    prefix "savi";
    organization
        "Internet Engineer Task Force";
      contact

         Editor:   Wei Meng
                   <mailto:meng.wei2@zte.com.cn>
         Editor:   Cui Wang
                   <mailto:wang.cui1@zte.com.cn>

    description "TBD";

    revision 2015-07-06 {
      description "Initial revision";
    }

    import ietf-yang-types {
       prefix yang;
     }

    import ietf-inet-types {
       prefix "inet";
     }

    import ietf-interfaces {
      prefix "if";
     }

    //data defs
    container configuration {
     description 'Configuration model info.' ;
     container savi {
      description 'Configure SAVI parameters.' ;

      container global{
        description 'Global configuration.' ;
        presence global-config ;
        leaf ip-version {
          description 'IP Version.' ;
          type uint8 ;

Meng & Wang              Expires January 7, 2016                [Page 6]
Internet-Draft          YANG Data Model for SAVI               July 2015

          mandatory true ;
        }
        leaf enable {
          description 'Enable.' ;
          type boolean ;
          mandatory true ;
        }
        leaf arrange-mode {
          description 'Arrange mode.' ;
          type uint8 ;
        }
        leaf max-dad-delay {
          description 'Max DAD delay time.' ;
          type uint16 {
            range 1..4094 {
            description 'The value of delay time,it must between 1 to 409'
            + '4.'
            ;
            }
          }
        }
        leaf max-dad-prepare-delay {
          description 'Max DAD prepare delay time.' ;
          type uint16 {
            range 1..4094 {
            description 'The value of delay time,it must between 1 to 409'
            + '4.'
            ;
            }
          }
        }

        leaf max-ns-delay {
          description 'Max NS delay time.' ;
          type uint16 {
            range 1..4094 {
            description 'The value of delay time,it must between 1 to 409'
            + '4.'
            ;
            }
          }
        }
        leaf dhcp-only {
          description 'DHCP ONLY.' ;
          type boolean ;
          mandatory true ;
        }

Meng & Wang              Expires January 7, 2016                [Page 7]
Internet-Draft          YANG Data Model for SAVI               July 2015

      }

      container interface {
        description 'Interface.' ;
        list interface {
          description 'Interface.' ;
          key index ;
          leaf index {
            description 'Interface index.' ;
            type uint32 {
              range 1..16777215 {
                description 'The value of index,it must between 1 to 16777215.' ;
              }
            }
          }
          leaf interface-name {
            mandatory true;
            type string;
          }
          leaf enable {
            mandatory true;
            type boolean;
          }
          leaf validation-status {
            mandatory true;
            type uint8;
          }
          leaf filting-number {
            mandatory true;
            type uint8;
          }
        }
      }

      container binding {
        description 'Binding information.' ;
        list binding-info {
          description 'Binding information.' ;
          key ip-addr ;
          leaf ip-addr {
            description 'IP address.' ;
            type inet:ipv6-address;
              }
            }
          }
          leaf interface-index {
            mandatory true;
            type uint32;

Meng & Wang              Expires January 7, 2016                [Page 8]
Internet-Draft          YANG Data Model for SAVI               July 2015

          }
          leaf ip-addr-type {
            mandatory true;
            type uint8;
          }
          leaf type {
            mandatory true;
            type uint8;
          }
          leaf mac-addr {
            mandatory true;
            type yang:mac-address;
          }
          leaf status {
            mandatory true;
            type uint8;
          }
          leaf lifetime {
            mandatory true;
            type uint32;
          }
          leaf row-status {
            mandatory true;
            type uint8;
          }
        }
      }

      container filtering {
        description 'Filtering information.' ;
        list filtering-info {
          description 'Filtering information.' ;
          key interface-index;
          leaf ip-addr {
            description 'IP address.' ;
            type inet:ipv6-address;
              }
            }
          }
          leaf interface-index {
            mandatory true;
            type uint32;
          }
          leaf ip-addr-type {
            mandatory true;
            type uint8;
          }
          leaf mac-addr {

Meng & Wang              Expires January 7, 2016                [Page 9]
Internet-Draft          YANG Data Model for SAVI               July 2015

            mandatory true;
            type yang:mac-address;
          }
        }
      }
    }
  }
}

Meng & Wang              Expires January 7, 2016               [Page 10]
Internet-Draft          YANG Data Model for SAVI               July 2015

5.  Security Considerations

   This document has no additional security considerations.

Meng & Wang              Expires January 7, 2016               [Page 11]
Internet-Draft          YANG Data Model for SAVI               July 2015

6.  Acknowledgements

Meng & Wang              Expires January 7, 2016               [Page 12]
Internet-Draft          YANG Data Model for SAVI               July 2015

7.  Normative References

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119, March 1997.

   [RFC6020]  Bjorklund, M., "YANG - A Data Modeling Language for the
              Network Configuration Protocol (NETCONF)", RFC 6020,
              October 2010.

   [RFC6991]  Schoenwaelder, J., "Common YANG Data Types", RFC 6991,
              July 2013.

Meng & Wang              Expires January 7, 2016               [Page 13]
Internet-Draft          YANG Data Model for SAVI               July 2015

Authors' Addresses

   Wei Meng
   ZTE Corporation
   No.50 Software Avenue, Yuhuatai District
   Nanjing
   China

   Email: meng.wei2@zte.com.cn,vally.meng@gmail.com

   Cui Wang
   ZTE Corporation
   No.50 Software Avenue, Yuhuatai District
   Nanjing
   China

   Email: wang.cui1@zte.com.cn

Meng & Wang              Expires January 7, 2016               [Page 14]