Internet DRAFT - draft-hu-isis-srv6-yang

draft-hu-isis-srv6-yang







Network Working Group                                              Z. Hu
Internet-Draft                                       Huawei Technologies
Intended status: Standards Track                                   D. Ye
Expires: September 27, 2019                                Cisco Systems
                                                                   Y. Qu
                                                                 J. Dong
                                                     Huawei Technologies
                                                          March 26, 2019


                     YANG Data Model for IS-IS SRv6
                       draft-hu-isis-srv6-yang-01

Abstract

   This document defines a YANG data model that can be used to configure
   and manage IS-IS SRv6 [I-D.bashandy-isis-srv6-extensions].

Requirements Language

   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 RFC 2119 [RFC2119].

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 27, 2019.

Copyright Notice

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



Hu, et al.             Expires September 27, 2019               [Page 1]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


   (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.  Overview  . . . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  IS-IS SRv6  . . . . . . . . . . . . . . . . . . . . . . . . .   2
   3.  IS-IS SRv6 configuration  . . . . . . . . . . . . . . . . . .   5
     3.1.  SRv6 activation . . . . . . . . . . . . . . . . . . . . .   5
     3.2.  Locator setting . . . . . . . . . . . . . . . . . . . . .   5
     3.3.  IP Fast reroute . . . . . . . . . . . . . . . . . . . . .   5
   4.  IS-IS SRv6 YANG Module  . . . . . . . . . . . . . . . . . . .   5
   5.  Security Considerations . . . . . . . . . . . . . . . . . . .  18
   6.  Contributors  . . . . . . . . . . . . . . . . . . . . . . . .  18
   7.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .  18
   8.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  18
   9.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  18
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  19

1.  Overview

   YANG[RFC6020][RFC7950] is a data definition language used to define
   the contents of a conceptual data store that allows networked devices
   to be managed using NETCONF[RFC6241].  YANG is proving relevant
   beyond its initial confines, as bindings to other interfaces (e.g.,
   ReST) and encodings other than XML (e.g., JSON) are being defined.
   Furthermore, YANG data models can be used as the basis for
   implementation of other interfaces, such as CLI and programmatic
   APIs.

   This document defines a YANG data model that can be used to configure
   and manage IS-IS SRv6 and it is an augmentation to the IS- IS YANG
   data model.

2.  IS-IS SRv6

   This document defines a model for IS-IS SRv6 feature.  It is an
   augmentation of the IS-IS base model.

   The IS-IS SRv6 YANG module requires support for the base srv6
   module[I-D.raza-spring-srv6-yang], which defines the global srv6
   configuration independent of any specific routing protocol
   configuration, and support of IS-IS base model



Hu, et al.             Expires September 27, 2019               [Page 2]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


   [I-D.ietf-isis-yang-isis-cfg] which defines basic IS-IS configuration
   and state.

   The figure below describes the overall structure of the isis-srv6
   YANG module:

   module: ietf-isis-srv6
     augment /rt:routing/rt:control-plane-protocols
             /rt:control-plane-protocol/isis:isis:
       +--rw srv6-cfg
          +--rw enable?                 boolean
          +--rw default-locator?        boolean
          +--rw locator-name?           -> /rt:routing/srv6:srv6
                                           /locators/locator/name
          +--rw persistent-end-x-sid?   boolean
     augment /rt:routing/rt:control-plane-protocols
             /rt:control-plane-protocol/isis:isis
             /isis:interfaces/isis:interface/isis:fast-reroute:
       +--rw srv6-ti-lfa {srv6-ti-lfa}?
          +--rw enable?   boolean
     augment /rt:routing/rt:control-plane-protocols
             /rt:control-plane-protocol/isis:isis/isis:database
             /isis:level-db/isis:lsp/isis:router-capabilities:
       +--ro v6-capability
       |  +--ro flags?   bits
       +--ro v6-msd
          +--ro max-segments-left?   uint8
          +--ro max-end-pop?         uint8
          +--ro max-t-insert?        uint8
          +--ro max-t-encap?         uint8
          +--ro max-end-d?           uint8
     augment /rt:routing/rt:control-plane-protocols
             /rt:control-plane-protocol/isis:isis/isis:database
             /isis:level-db/isis:lsp/isis:extended-is-neighbor
             /isis:neighbor:
       +--ro srv6-end-x-sids
          +--ro end-x-sid* [sid]
             +--ro func-flags?      bits
             +--ro algorithm?       uint8
             +--ro weight?          uint8
             +--ro endpoint-func
             |  +--ro flags?                     uint8
             |  +--ro endpoint-func?             identityref
             |  +--ro undefined-endpoint-func?   uint16
             +--ro sid              srv6-sid-value
             +--ro neighbor-id?     isis:system-id
     augment /rt:routing/rt:control-plane-protocols
             /rt:control-plane-protocol/isis:isis/isis:database



Hu, et al.             Expires September 27, 2019               [Page 3]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


             /isis:level-db/isis:lsp/isis:mt-is-neighbor/isis:neighbor:
       +--ro srv6-end-x-sids
          +--ro end-x-sid* [sid]
             +--ro func-flags?      bits
             +--ro algorithm?       uint8
             +--ro weight?          uint8
             +--ro endpoint-func
             |  +--ro flags?                     uint8
             |  +--ro endpoint-func?             identityref
             |  +--ro undefined-endpoint-func?   uint16
             +--ro sid              srv6-sid-value
             +--ro neighbor-id?     isis:system-id
     augment /rt:routing/rt:control-plane-protocols
             /rt:control-plane-protocol/isis:isis/isis:database
             /isis:level-db/isis:lsp:
       +--ro srv6-locators
          +--ro locator* [locator]
             +--ro mt-id?                   uint16
             +--ro flags?                   bits
             +--ro metric?                  uint32
             +--ro algorithm?               uint8
             +--ro loc-size?                uint8
             +--ro locator                  inet:ipv6-address-no-zone
             +--ro srv6-end-sids
             |  +--ro end-sid* [sid]
             |     +--ro flags?           uint8
             |     +--ro endpoint-func
             |     |  +--ro flags?                     uint8
             |     |  +--ro endpoint-func?             identityref
             |     |  +--ro undefined-endpoint-func?   uint16
             |     +--ro sid              srv6-sid-value
             +--ro external-prefix-flag?    boolean
             +--ro readvertisement-flag?    boolean
             +--ro node-flag?               boolean
             +--ro ipv4-source-router-id?   inet:ipv4-address
             +--ro ipv6-source-router-id?   inet:ipv6-address
     augment /rt:routing/rt:control-plane-protocols
             /rt:control-plane-protocol/isis:isis/isis:interfaces
             /isis:interface/isis:adjacencies/isis:adjacency:
       +--ro end-x-sid* [value]
          +--ro value                   srv6-sid-value
          +--ro weight?                 uint8
          +--ro protection-requested?   boolean
          +--ro persistent?             boolean
          +--ro algorithm?              uint8
          +--ro endpoint-func
             +--ro flags?                     uint8
             +--ro endpoint-func?             identityref



Hu, et al.             Expires September 27, 2019               [Page 4]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


             +--ro undefined-endpoint-func?   uint16


3.  IS-IS SRv6 configuration

3.1.  SRv6 activation

   Activation of IS-IS SRv6 is done by setting the "enable" leaf to
   true.  This triggers advertisement of SRv6 extensions based on the
   configuration parameters that have been setup using the base SRv6
   module.

3.2.  Locator setting

   The basic SRv6 module defines the related locator leafs.  When the
   IS-IS SRv6 module is enabled, set the locator by using the following
   strategy: firstly, it is reasonable to check whether the default
   locator is used, if not, to use the specified locator.  The strategy
   is realized by adding the leaf "default-locator", "locator-name" .

3.3.  IP Fast reroute

   IS-IS SRv6 model augments the fast-reroute container under interface.
   It brings the ability to activate ipv6 TI-LFA (topology independent
   LFA).

4.  IS-IS SRv6 YANG Module

<CODE BEGINS> file "ietf-isis-srv6@2019-03-22.yang"
module ietf-isis-srv6 {
  namespace "urn:ietf:params:xml:ns:"
          + "yang:ietf-isis-srv6";
  prefix isis-srv6;

  import ietf-routing {
    prefix "rt";
  }

  import ietf-isis {
    prefix "isis";
  }

  import ietf-srv6-base {
    prefix "srv6";
  }

  import iana-routing-types {
    prefix "iana-rt-types";



Hu, et al.             Expires September 27, 2019               [Page 5]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


  }

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

  organization
   "IETF ISIS Working Group";

  contact
    "WG List:  <mailto:spring@ietf.org>
    Author:    Zhibo Hu
               <mailto:huzhibo@huawei.com>
    Author:    Dan Ye
               <mailto:daye@cisco.com>
    Author:    Yingzhen Qu
               <mailto:yingzhen.qu@huawei.com>
    Author:    Jiajia Dong
               <mailto:dongjiajia@huawei.com>
    ";

  description
    "The YANG module defines a generic configuration model for
    Segment IPV6 routing ISIS extensions common across all of
    the vendor implementations.";

  revision 2019-03-26 {
    description
        "Initial revision.";
    reference "draft-bashandy-isis-srv6-extensions-04";
  }

  /* Identities */
  identity SRV6_END_FUNC_TYPE {
    description
    "Base identity type for srv6 endpoint function code points.";
  }

  identity SRV6_END_FUNC_PSP_USP_USD {
    base "SRV6_END_FUNC_TYPE";
    description
    "End (May support PSP, USP, USD).";
  }

  identity SRV6_END_X_FUNC_PSP_USP_USD {
    base "SRV6_END_FUNC_TYPE";
    description
    "End.X(May support PSP, USP, USD)";



Hu, et al.             Expires September 27, 2019               [Page 6]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


  }

  identity SRV6_END_T_FUNC_PSP_USP_USD {
    base "SRV6_END_FUNC_TYPE";
    description
    "END (May support PSP, USP, USD)";
  }

  identity SRV6_END_FUNC_DX6 {
    base "SRV6_END_FUNC_TYPE";
    description
    "End.DX6.";
  }

  identity SRV6_END_FUNC_DX4 {
    base "SRV6_END_FUNC_TYPE";
    description
    "End.DX4.";
  }

  identity SRV6_END_FUNC_DT6 {
    base "SRV6_END_FUNC_TYPE";
    description
    "End.DT6.";
  }

  identity SRV6_END_FUNC_DT4 {
    base "SRV6_END_FUNC_TYPE";
    description
    "End.DT4.";
  }

  identity SRV6_END_FUNC_DT64 {
    base "SRV6_END_FUNC_TYPE";
    description
    "End.DT64.";
  }

  identity SRV6_END_FUNC_OP {
    base "SRV6_END_FUNC_TYPE";
    description
    "END.OP .";
  }

  identity SRV6_END_FUNC_OTP {
    base "SRV6_END_FUNC_TYPE";
    description
    "END.OTP .";



Hu, et al.             Expires September 27, 2019               [Page 7]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


  }

  /* typedef */
  typedef srv6-sid-value {
    type inet:ipv6-address-no-zone;
    description
      "16 Octets encoded sid value.";
  }

  /* Features */
  feature srv6-ti-lfa {
    description
     "Enhance SRv6 FRR with ti-lfa
     support";
  }
  /* Groupings */
  grouping srv6-msd {
    description
      "means to advertise to advertise node/link specific
       values for Maxium Sid Depths(MSD) of various types";
    container v6-msd {
      description
      "Maximum SRv6 SID Depths.";
      leaf max-segments-left {
        type uint8;
        description
        "The maximum value of 'SL' field in the SRH of a
         recevied packet.";
      }
      leaf max-end-pop {
        type uint8;
        description
        "The maximum number of SIDS in the top SRH in an SRH
         stack to which the router can apply 'PSP' or 'USP'.";
      }
      leaf max-t-insert {
        type uint8;
        description
        "The maximum number of SIDs can be inserted as port of
         the 'T.insert' behavior.";
      }
      leaf max-t-encap {
        type uint8;
        description
        "The maximum number of SIDs can be included as part of
         the 'T.Encap' behavior.";
      }
      leaf max-end-d {



Hu, et al.             Expires September 27, 2019               [Page 8]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


        type uint8;
        description
          "The maximum number of SIDs in an SRH when performing
           decapsulation associated with 'End.Dx' functions
           (e.g., 'End.DX6' and 'End.DT6').";
      }
    }
  }

  grouping srv6-capability {
    description
    "SRV6 capability grouping.";
    container v6-capability {
      description
        "SRv6 capability.";
      leaf flags {
        type bits {
          bit o-flag {
            position 1;
            description
            "If set, then the router is able to
             use of the O-bit in the Segment Routing Header(SRH)
             as defined in [draft-ietf-6man-segment-routing-header].";
          }
        }
        description
        "Flags.";
      }
    }
  }

  grouping srv6-endpoint-func {
     description
      "This group defines srv6 endpoint function";
    container endpoint-func {
      description
        "Srv6 Endpoint function Descriptor.";
      leaf flags {
        type uint8;
        description
          "No flags are currently being defined.";
      }
      leaf endpoint-func {
        type identityref {
         base isis-srv6:SRV6_END_FUNC_TYPE;
        }
        description
          "The endpoint function.";



Hu, et al.             Expires September 27, 2019               [Page 9]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


      }
      leaf undefined-endpoint-func {
        type uint16;
        description
          "Unknown endpoint func value.";
      }
    }
  }

  grouping srv6-end-sid {
    description
    "SRv6 Segment Identifier(SID) with Endpoint functions.";
    leaf flags {
      type uint8;
      description
        "NO flags are currently being defined.";
    }

    uses srv6-endpoint-func;

    leaf sid {
      type srv6-sid-value;
      description
        "SRV6 sid value.";
    }
    // sub-sub-tlvs not yet defined
  }

  grouping srv6-locator {
    description
      "This group defines srv6 locator tlv.";
    leaf mt-id {
      type uint16 {
        range "0..4095";
      }
      description
        "Multitopology Identifier as defined in [RFC5120].";
    }
    leaf flags {
      type bits {
        bit d-flag {
          position 0;
          description
            "When the locator is leaked from level-2 to leve-1,
             the d-flag must be set.";
        }
        bit a-flag {
          position 1;



Hu, et al.             Expires September 27, 2019              [Page 10]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


          description
            "When the Locator is associated with anycast destinations, the A bit
             SHOULD be set. Otherwise, this bit MUST be clear.";
        }
      }
      description
        "Flags for srv6 locator tlv.";
    }

    leaf metric {
      type uint32;
      description
        "Metric value.";
    }
    leaf algorithm {
      type uint8;
      description
      "Associated algorithm.";
    }

    leaf loc-size {
      type uint8;
      description
        "Number of bits in the locator field.";
    }
    leaf locator {
      type inet:ipv6-address-no-zone;
      description
        "Advertised SRV6 locator.";
    }
    container srv6-end-sids {
      description
        "This contains list of srv6 end sids.";
      list end-sid {
        key "sid";
        description
          "List of SRV6 SRv6 Segment Identifiers (SID)
           with Endpoint functions.";
        uses srv6-end-sid;
      }
    }
    uses isis:prefix-reachability-attributes;
    uses isis:prefix-ipv4-source-router-id;
    uses isis:prefix-ipv6-source-router-id;
  }

  grouping srv6-end-x-sid {
    description



Hu, et al.             Expires September 27, 2019              [Page 11]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


    "SRv6 sid associated with an adjacency.";

    leaf func-flags {
      type bits {
        bit b-flag {
          position 0;
          description
            "Backup flag. If set, the End.X sid is
             eligible for protection.";
        }

        bit s-flag {
          position 1;
          description
            "Set flag. When set, the End.X sid refers to
             a set of adjacencies (and therefore May be assigned
             to other adjacencies as well.";
        }

        bit p-flag {
          position 2;
          description
          "Persistent flag. When set, the End.X sid is persistently
           allocated, i.e., the End.x sid value remains consistent
           across router restart and/or interface flap.";
        }
      }
      description
          "Flags for srv6 end x sid.";
    }

    leaf algorithm {
      type uint8;
      description
        "Associated algorithm.";
    }

    leaf weight {
      type uint8;
      description
      "The value represents the weight of the End.X sid
       for the purpose of load balancing.";
    }

    uses srv6-endpoint-func;

    leaf sid {
      type srv6-sid-value;



Hu, et al.             Expires September 27, 2019              [Page 12]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


      description
        "SRV6 sid value.";
    }

    leaf neighbor-id {
      type isis:system-id;
      description
        "Describes the system ID of the neighbor
         associated with the SID value. This is only
         used on LAN adjacencies.";
    }

    // sub-sub-tlvs
  }

  grouping srv6-adjacency-state {
    description
     "This group will extend adjacency state.";
    list end-x-sid {
      key value;
      config false;
      leaf value {
        type srv6-sid-value;
        description
         "Value of the Adj-SID.";
      }
      leaf weight {
        type uint8;
        description
         "Weight associated with
         the End.X SID.";
      }
      leaf protection-requested {
        type boolean;
        description
         "Set to True if the End.X SID
         must be protected.";
      }
      leaf persistent {
        type boolean;
        description
          "Persistent flag. When set, the End.X sid is persistently
           allocated, i.e., the End.X sid value remains consistent
           across router restart and/or interface flap.";
      }
      leaf algorithm {
        type uint8;
        description



Hu, et al.             Expires September 27, 2019              [Page 13]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


        "Associated algorithm.";
      }
      uses srv6-endpoint-func;

      description
       "List of End.X Segment IDs.";
    }
  }
  /* Cfg */
  augment "/rt:routing/" +
          "rt:control-plane-protocols/rt:control-plane-protocol"+
          "/isis:isis" {
    when "/rt:routing/rt:control-plane-protocols/"+
         "rt:control-plane-protocol/rt:type = 'isis:isis'" {
      description
        "This augment ISIS routing protocol when used";
    }
    description
      "This augments ISIS protocol configuration
       with SRv6.";


    container srv6-cfg{
      leaf enable{
        type boolean;
        default "false";
        description
          "Enables SRv6
           protocol extensions.";
      }

      leaf default-locator {
        type boolean;
        default "false";
        description
          "Enable ISIS segment-routing IPv6 with default Locator.";
      }

      leaf locator-name {
        when "not(../default-locator='true')";
        type leafref {
          path "/rt:routing/srv6:srv6/srv6:locators/srv6:locator/srv6:name";
        }
        description
          "Enable ISIS segment-routing IPv6 with specified Locator.";
      }

      leaf persistent-end-x-sid{



Hu, et al.             Expires September 27, 2019              [Page 14]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


        type boolean;
        default "false";
        description
          "Enable the persistent nature of End.X sid";
      }
      description
        "Configuration about ISIS segment-routing IPv6.";
    }
  }

  augment "/rt:routing/" +
          "rt:control-plane-protocols/rt:control-plane-protocol"+
          "/isis:isis/isis:interfaces/isis:interface"+
          "/isis:fast-reroute"{
    when "/rt:routing/rt:control-plane-protocols/"+
         "rt:control-plane-protocol/rt:type = 'isis:isis'"{
      description
        "This augment ISIS routing protocol when used";
    }
    description
      "This augments ISIS IPFRR with IPV6 TILFA.";

    container srv6-ti-lfa {

      if-feature srv6-ti-lfa;
      leaf enable {
        type boolean;
        description
          "Enables SRv6 TI-LFA computation.";
      }


      description
        "SRv6 TILFA configuration.";
    }
  }

  /* Operational states */
  augment "/rt:routing/" +
        "rt:control-plane-protocols/rt:control-plane-protocol"+
        "/isis:isis/isis:database/isis:level-db/isis:lsp"+
        "/isis:router-capabilities" {
     when "/rt:routing/rt:control-plane-protocols/"+
        "rt:control-plane-protocol/rt:type = 'isis:isis'" {
      description
        "This augment ISIS routing protocol when used";
    }
    description



Hu, et al.             Expires September 27, 2019              [Page 15]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


     "This augments ISIS protocol router capability.";
      uses srv6-capability;
      uses srv6-msd;
  }

  augment "/rt:routing/" +
        "rt:control-plane-protocols/rt:control-plane-protocol"+
        "/isis:isis/isis:database/isis:level-db/isis:lsp"+
        "/isis:extended-is-neighbor/isis:neighbor" {
     when "/rt:routing/rt:control-plane-protocols/"+
        "rt:control-plane-protocol/rt:type = 'isis:isis'" {
      description
      "This augment ISIS routing protocol when used.";
    }
    description
     "This augments ISIS protocol neighbor.";
    container srv6-end-x-sids {
      description
        "This defines svr6 end-x sids for the adjacency.";
      list end-x-sid {
        key "sid";
        uses srv6-end-x-sid;
        description
           "List of end-x sids.";
      }
    }
  }
  augment "/rt:routing/" +
        "rt:control-plane-protocols/rt:control-plane-protocol"+
        "/isis:isis/isis:database/isis:level-db/isis:lsp"+
        "/isis:mt-is-neighbor/isis:neighbor" {
            when "/rt:routing/rt:control-plane-protocols/"+
        "rt:control-plane-protocol/rt:type = 'isis:isis'" {
      description
        "This augment ISIS routing protocol when used.";
    }
    description
      "This augments ISIS protocol neighbor.";
    container srv6-end-x-sids {
       description
        "This defines svr6 end-x sids for the adjacency.";
      list end-x-sid {
        key "sid";
        uses srv6-end-x-sid;
         description
           "List of end-x sids.";
      }
    }



Hu, et al.             Expires September 27, 2019              [Page 16]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


  }

  augment "/rt:routing/" +
        "rt:control-plane-protocols/rt:control-plane-protocol"+
        "/isis:isis/isis:database/isis:level-db/isis:lsp" {
        when "/rt:routing/rt:control-plane-protocols/"+
        "rt:control-plane-protocol/rt:type = 'isis:isis'" {
      description
      "This augment ISIS routing protocol when used.";
    }
    description
     "This augments ISIS protocol LSDB.";
    container srv6-locators {
      description
         "This defines srv6 locator tlvs.";
      list locator {
        key "locator";
        uses srv6-locator;
        description
          "List of srv6 locators.";
      }
    }
  }

  augment "/rt:routing/" +
        "rt:control-plane-protocols/rt:control-plane-protocol"+
        "/isis:isis/isis:interfaces/isis:interface" +
        "/isis:adjacencies/isis:adjacency" {
    when "/rt:routing/rt:control-plane-protocols/"+
        "rt:control-plane-protocol/rt:type = 'isis:isis'" {
      description
      "This augment ISIS routing protocol when used.";
    }
    description
      "This augments ISIS protocol operational state
       with segment routing.";

    uses  srv6-adjacency-state;
  }

  /* Notifications */
}
<CODE ENDS>








Hu, et al.             Expires September 27, 2019              [Page 17]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


5.  Security Considerations

   Configuration and state data defined in this document are designed to
   be accessed via the NETCONF protocol [RFC6241].

   As IS-IS is an IGP protocol (critical piece of the network), ensuring
   stability and security of the protocol is mandatory for the network
   service.

   Authors recommends to implement NETCONF access control model
   ([RFC6536]) to restrict access to all or part of the configuration to
   specific users.

6.  Contributors

   TBD.

7.  Acknowledgements

   TBD.

8.  IANA Considerations

   The IANA is requested to assign two new URIs from the IETF XML
   registry ([RFC3688]).  Authors are suggesting the following URI:

               URI: urn:ietf:params:xml:ns:yang:ietf-isis-srv6
               Registrant Contact: IS-IS WG
               XML: N/A, the requested URI is an XML namespace

   This document also requests one new YANG module name in the YANG
   Module Names registry ([RFC6020]) with the following suggestion :

  name: ietf-isis-srv6
  namespace: urn:ietf:params:xml:ns:yang:ietf-isis-srv6 prefix: isis-srv6
  reference: RFC XXXX

9.  References

   [I-D.bashandy-isis-srv6-extensions]
              Psenak, P., Filsfils, C., Bashandy, A., Decraene, B., and
              Z. Hu, "IS-IS Extensions to Support Routing over IPv6
              Dataplane", draft-bashandy-isis-srv6-extensions-05 (work
              in progress), March 2019.







Hu, et al.             Expires September 27, 2019              [Page 18]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


   [I-D.ietf-isis-yang-isis-cfg]
              Litkowski, S., Yeung, D., Lindem, A., Zhang, Z., and L.
              Lhotka, "YANG Data Model for IS-IS Protocol", draft-ietf-
              isis-yang-isis-cfg-35 (work in progress), March 2019.

   [I-D.raza-spring-srv6-yang]
              Raza, K., Rajamanickam, J., Liu, X., Hu, Z., Hussain, I.,
              Shah, H., daniel.voyer@bell.ca, d., Elmalky, H.,
              Matsushima, S., Horiba, K., and A. Abdelsalam, "YANG Data
              Model for SRv6 Base and Static", draft-raza-spring-
              srv6-yang-02 (work in progress), October 2018.

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997,
              <https://www.rfc-editor.org/info/rfc2119>.

   [RFC3688]  Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688,
              DOI 10.17487/RFC3688, January 2004,
              <https://www.rfc-editor.org/info/rfc3688>.

   [RFC6020]  Bjorklund, M., Ed., "YANG - A Data Modeling Language for
              the Network Configuration Protocol (NETCONF)", RFC 6020,
              DOI 10.17487/RFC6020, October 2010,
              <https://www.rfc-editor.org/info/rfc6020>.

   [RFC6241]  Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed.,
              and A. Bierman, Ed., "Network Configuration Protocol
              (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011,
              <https://www.rfc-editor.org/info/rfc6241>.

   [RFC6536]  Bierman, A. and M. Bjorklund, "Network Configuration
              Protocol (NETCONF) Access Control Model", RFC 6536,
              DOI 10.17487/RFC6536, March 2012,
              <https://www.rfc-editor.org/info/rfc6536>.

   [RFC7950]  Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language",
              RFC 7950, DOI 10.17487/RFC7950, August 2016,
              <https://www.rfc-editor.org/info/rfc7950>.

Authors' Addresses










Hu, et al.             Expires September 27, 2019              [Page 19]

Internet-Draft       YANG Data Model for IS-IS SRv6           March 2019


   Zhibo Hu
   Huawei Technologies
   Huawei Bld., No.156 Beiqing Rd.
   Beijing  100095
   China

   Email: huzhibo@huawei.com


   Dan Ye
   Cisco Systems
   170 W. Tasman Dr. San Jose,
   California  95134
   USA

   Email: daye@cisco.com


   Yingzhen Qu
   Huawei Technologies
   Huawei Bld., No.156 Beiqing Rd.
   Beijing  100095
   China

   Email: yingzhen.qu@huawei.com


   Jiajia Dong
   Huawei Technologies
   Huawei Bld., No.156 Beiqing Rd.
   Beijing  100095
   China

   Email: dongjiajia@huawei.com

















Hu, et al.             Expires September 27, 2019              [Page 20]