[Docs] [txt|pdf] [Tracker] [Email] [Nits]

Versions: 00

Network Working group                                    H. Bidgoli, Ed.
Internet Draft                                                     Nokia
Intended status: Standard Track                                 D. Voyer
                                                             Bell Canada
                                                            Tanmoy Kundu
                                                             J. Kotalwar
                                                                   Nokia
                                                               R. Parekh
                                                      Cisco System, Inc.
                                                                 T. Saad
                                                        Juniper Networks


Expires: January 7, 2020                                    July 6, 2019


                   YANG Data Model for p2mp sr policy
                 draft-hb-spring-sr-p2mp-policy-yang-00

Abstract


   SR P2MP policies are set of policies that enable architecture for
   P2MP service delivery.

   This document defines a YANG data model for SR P2MP Policy
   Configuration and operation.


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), its areas, and its working groups.  Note that
   other groups may also distribute working documents as Internet-
   Drafts.

   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." The list
   of current Internet-Drafts can be accessed at
   http://www.ietf.org/ietf/1id-abstracts.txt

   The list of Internet-Draft Shadow Directories can be accessed at
   http://www.ietf.org/shadow.html



Bidgoli, et al.         Expires January 7, 2020                 [Page 1]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


   This Internet-Draft will expire on October 8, 2017.

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
   (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.


Table of Contents

   1. Introduction  . . . . . . . . . . . . . . . . . . . . . . . . .  2
   2. Conventions used in this document . . . . . . . . . . . . . . .  2
   3. Design of the Data Model  . . . . . . . . . . . . . . . . . . .  3
   4. Configuration . . . . . . . . . . . . . . . . . . . . . . . . .  4
   5. Control plane configuration . . . . . . . . . . . . . . . . . .  4
   6. States  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  4
   7. Yang Data Model . . . . . . . . . . . . . . . . . . . . . . . .  4
   6.  IANA Considerations  . . . . . . . . . . . . . . . . . . . . . 12
   7. Security Considerations . . . . . . . . . . . . . . . . . . . . 12
   8. References  . . . . . . . . . . . . . . . . . . . . . . . . . . 12
     8.1. Normative References  . . . . . . . . . . . . . . . . . . . 12
     8.2. Informative References  . . . . . . . . . . . . . . . . . . 12
   7. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . 12
   Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 12



1. Introduction

   This document defines a YANG data model for P2MP SR Policy
   configuration and operation.

2. Conventions used in this document

   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].




Bidgoli, et al.         Expires January 7, 2020                 [Page 2]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


3. Design of the Data Model

   submodule: router-p2mp-segment (belongs-to root)
     +--rw p2mp-segment!
        +--rw admin-state?           boolean
        +--rw p2mp-policy* [p2mp-policy-name]
        |  +--rw p2mp-policy-name    string
        |  +--rw root-address?       inet:ipv4-address
        |  +--rw tree-id?            uint32
        |  +--rw admin-state?        boolean
        |  +--ro oper-state?         boolean
        |  +--rw leaf-list* [leaf-address]
        |     +--rw leaf-address     inet:ipv4-address
        |     +--rw admin-state?     boolean
        +--rw replication-policy* [replication-policy-name]
           +--rw replication-policy-name    string
           +--rw root-address?              inet:ipv4-address
           +--rw tree-id?                   uint32
           +--rw node-address?              inet:ipv4-address
           +--rw admin-state?               boolean
           +--ro oper-state?                boolean
           +--rw candidate-path* [candidate-path-name]
              +--rw candidate-path-name         string
              +--rw origin?                     enumeration
              +--rw originator-asn?             uint32
              +--rw originator-node-address?    inet:ipv4-address
              +--rw descriminator?              uint32
              +--rw admin-state?                boolean
              +--ro oper-state?                 boolean
              +--rw plsp-id?                    uint32
              +--rw preference?                 uint32
              +--rw incoming-replication-sid?   uint32
              +--rw operation?                  enumeration
              +--rw next-hop-id* [next-hop-id]
                 +--rw next-hop-id                  uint32
                 +--rw next-hop-address?            inet:ipv4-address
                 +--rw next-hop-interface-name?     if:interface-ref
                 +--rw protect-nexthop-id?          uint32
                 +--rw weight?                      uint32
                 +--rw (label)?
                    +--:(outgoing-replication-sid)
                    |  +--rw out-replication-sid* [index]
                    |     +--rw index     uint32
                    +--:(outgoing-sr-policy-sid-list)
                    |  +--rw sr-policy-sid-list* [index]
                    |     +--rw index     uint32
                    +--:(outgoin-sr-policy)
                       +--rw sr-policy?             string



Bidgoli, et al.         Expires January 7, 2020                 [Page 3]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


4. Configuration

   This Module augments the "/rt:routing:" with a treeSID container.
   This container defines all the configuration parameter related to
   treeSID and P2MP SR Policy for this particular routing. The P2MP SR
   policy contains replication policy which in order contain candidate-
   path and the next-hop-groups for each OIF in the replication Policy.
   IT should be noted that two disjoint replication policies can be
   connected via a SR Policy as per draft-ietf-spring-segment-routing-
   policy.
5. Control plane configuration

6. States

7. Yang Data Model




































Bidgoli, et al.         Expires January 7, 2020                 [Page 4]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


   <CODE BEGINS> file "ietf-p2mp-policy@2019-07-04.yang"
      module ietf-tree-sid {
         yang-version 1.1;
         namespace "urn:ietf:params:xml:ns:yang:p2mp-policy-segment";
         // replace with IANA namespace when assigned
         prefix tree-sid;

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

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

         import ietf-routing-types {
           prefix "rt-types";
         }

         import ietf-routing {
           prefix "rt";
         }

         import ietf-interfaces {
           prefix "if";
         }

         import ietf-ip {
           prefix ip;
         }


         organization
           "IETF SPRING Working Group";

         contact
         "WG Web:   <http://tools.ietf.org/wg/spring/>
            WG List:  <mailto:spring@ietf.org>

            WG Chair: Bruno Decraene
                      <mailto:bruno.decraene@orange.com>

            WG Chair: Rob Shakir
                      <mailto:robjs@google.com>
         Editor: Hooman Bidgoli
                   <mailto:hooman.bidgoli@nokia.com>
         Editor: Tanmoy Kundu
                   <mailto:tanmoy.kundu@nokia.com>



Bidgoli, et al.         Expires January 7, 2020                 [Page 5]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


         Editor: Daniel Voyer
                   <mainlto: daniel.voyer@bell.com>
        description
          "The module defines a collection of YANG definition for
                p2mp policy module.";

        revision 2019-07-04 {
           description
             "First draft.";
           reference
             "RFC XXXX: A YANG Data Model for TREE-SID";
       }

       submodule router-p2mp-segment {

       belongs-to root                  { prefix "root"; }
       import ietf-inet-types          { prefix "inet"; }
        import ietf-interfaces                  { prefix "if"; }

       container p2mp-segment {
           presence "Configure Tree SID parameters.";

                leaf admin-state {
                        type boolean;
                        default false;
                        description
                                "Administratively enable/disable Tree SID.";
                }

                list p2mp-policy {
                        key "p2mp-policy-name";
                        uses p2mp-policy-key;

                        leaf root-address {
                                type inet:ipv4-address;
                                description
                                        "Root address of the tree.";
                        }
                        leaf tree-id {
                                type uint32;
                                description
                                        "Tree ID uniquely indentifies a tunnel in the root,
                                        this also represent a spefic constraint. Also known as
                                        color and/or p2mp-id";
                        }
                        leaf admin-state {
                                type boolean;
                                default false;



Bidgoli, et al.         Expires January 7, 2020                 [Page 6]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


                                description
                                        "Administratively enable/disable Tree SID p2mp policy.";
                        }
                        leaf oper-state {
                                type boolean;
                                default false;
                                config false;
                                description
                                        "Tree SID p2mp policy operational state based on users.";
                        }

                        list leaf-list {
                                key "leaf-address";
                                uses leaf-list-key;

                                leaf admin-state {
                                type boolean;
                                default false;
                                description
                                        "Administratively enable/disable Tree SID p2mp policy.";
                                }
                        }
                }

                list replication-policy {
                        key "replication-policy-name";
                        uses replication-policy-key;

                        leaf root-address {
                                type inet:ipv4-address;
                                description
                                        "Root address of the tree.";
                        }
                        leaf tree-id {
                                type uint32;
                                description
                                        "Tree ID uniquely indentifies a tunnel in the root,
                                        this also represent a spefic constraint. Also known as
                                        color and/or p2mp-id";
                        }
                        leaf node-address {
                                type inet:ipv4-address;
                                description
                                        "Node address for which this replication policy is used.";
                        }
                        leaf admin-state {
                                type boolean;
                                default false;



Bidgoli, et al.         Expires January 7, 2020                 [Page 7]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


                                description
                                        "Administratively enable/disable Tree SID replication policy.";
                        }
                leaf oper-state {
                                type boolean;
                                default false;
                                config false;
                                description
                                        "Tree SID replication policy operational state based on users.";
                        }
                        list candidate-path {
                                description
                                        "Candidate path is Tree SID or SID list representing a
                                        unique path from root to a specific endpoint using the
                                        tree-id constraint.";

                                key "candidate-path-name";

                                uses candidate-path-key;

                                leaf admin-state {
                                        type boolean;
                                        default false;
                                        description
                                                "Administratively enable/disable Tree SID candidate path.";
                                }
                                leaf oper-state {
                                        type boolean;
                                        default false;
                                        config false;
                                        description
                                                "candidate-path operational state based on ilm programming.";
                                }
                                leaf plsp-id {
                                        type uint32;
                                        default 0;
                                        description
                                                "PLSP-ID is an unique identifier assigned by controler and
                                                remain unchanged througout the life of a LSP(candidate path).";
                                }
                                leaf preference {
                                        type uint32;
                                        default 100;
                                        description
                                                "Preference determines the best preferred candidate-path among
                                                list of candiate path towards a leaf. Higher preference is
                                                choosen.";
                                }



Bidgoli, et al.         Expires January 7, 2020                 [Page 8]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


                                leaf incoming-replication-sid{
                                        type uint32;
                                        default 0;
                                        description
                                                "The incoming label for transit and leaf routers, root it
                                                is 0";
                                }
                                leaf operation {
                                        type enumeration {
                                                enum push { value 0; }
                                                enum pop  { value 1; }
                                                enum swap { value 2; }
                                        }
                                        default push;
                                        description
                                                "Label operation";
                                }

                                list next-hop-id {
                                        description
                                                "Identifies each nexthop in a candidate path.";
                                        key "next-hop-id";

                                        uses next-hop-id-key;

                                        leaf next-hop-address {
                                                type inet:ipv4-address;
                                                default 0.0.0.0;
                                                description
                                                        "Nexthop address of the desitnation.";
                                        }
                                        leaf next-hop-interface-name {
                                                type if:interface-ref;
                                                description
                                                        "Next hop out going interface.";
                                        }
                                        leaf protect-nexthop-id {
                                                type uint32;
                                                description
                                                        "Nexthop protection id.";
                                        }
                                        leaf weight {
                                                type uint32;
                                                description
                                                        "weight for weighted load balancing";
                                        }

                                        choice label {



Bidgoli, et al.         Expires January 7, 2020                 [Page 9]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


                                                list outgoing-replication-sid {
                                                        key index;
                                                        uses sid-list-key;
                                                        description
                                                                "Outgoing replication label for this nexthop.";
                                                }
                                                list outgoing-sr-policy-sid-list {
                                                        key index;
                                                        uses sr-policy-sid-key;
                                                        description
                                                                "Outgoing sr-policy sid for this nexthop.";
                                                }
                                                leaf outgoing-sr-policy {
                                                        type string;
                                                        description
                                                                "SR policy name to be referrenced";
                                                }
                                        }
                                }
                        }
                }
        }

        // -------------------------- GROUPINGS ---------------------------
        grouping p2mp-policy-key {

                leaf p2mp-policy-name {
                        type string;
                        description
                                "P2MP policy name to be referrenced by mvpn pmsi.";
                }
        }
        grouping replication-policy-key {

                leaf replication-policy-name {
                        type string;
                        description
                                "Replication policy name to be referrenced by mvpn pmsi.";
                }
        }

        grouping leaf-list-key {
                leaf leaf-address{
                        type inet:ipv4-address;
                        description
                                "leaf address of the this p2mp-tree";
                }
        }



Bidgoli, et al.         Expires January 7, 2020                [Page 10]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


        grouping candidate-path-key {

                leaf candidate-path-name {
                        type string;
                        description
                                "A candidate path name equivalent to a LSP.";
                }

                leaf origin {
                        type enumeration {
                                enum pcep                       { value 10; }
                                enum bgp-sr-policy  { value 20; }
                                enum configuration  { value 30; }

                        }
                        description
                                "Protocol-Origin of a candidate path is an 8-bit value
                                which identifies the component or protocol that originates
                                or signals the candidate path.";
                }

                leaf originator-asn {
                        type uint32;
                        description
                                "represented as a 4 byte number";
                }

                leaf originator-node-address {
                        type inet:ipv4-address;
                        description
                                "128 bit value, IPv4 address are encoded in lower 32 bit.";
                }

                leaf descriminator {
                        type uint32;
                        description
                        "The Discriminator is a 32 bit value associated with a candidate
                        path that uniquely identifies it within the context of an SR
                        Policy from a specific Protocol-Origin";
                }
        }

        grouping next-hop-id-key {
                leaf next-hop-id {
                        type uint32;
                        description
                                "Nexthop group index";
                }



Bidgoli, et al.         Expires January 7, 2020                [Page 11]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


        }

        grouping sid-list-key {
                leaf index {
                        type uint32 {
                                range 1..2;
                        }
                }
        }

        grouping sr-policy-sid-key {
                leaf index {
                        type uint32 {
                                range 1..12;
                        }
                        description
                                "Index for push-label.";
                }
        }
   }
   <CODE ENDS>


6.  IANA Considerations

   This document contains no actions for IANA.

7. Security Considerations

   TBD

8. References

8.1. Normative References


8.2. Informative References

   [sr-p2mp-policy] D. Yoyer, Ed., C. Hassen, K. Gillis, C. Filsfils, R.
   Parekh, H.Bidgoli, "SR Replication Policy for P2MP Service Delivery",
   draft-voyer-spring-sr-p2mp-policy-01, April 2019.

7. Acknowledgments



Authors' Addresses




Bidgoli, et al.         Expires January 7, 2020                [Page 12]


Internet-Draft     YANG Data Model for P2MP SR Policy       July 6, 2019


   Hooman Bidgoli
   Nokia
   600 March Rd.
   Ottawa, Ontario K2K 2E6
   Canada

   Email: hooman.bidgoli@nokia.com

   Daniel Voyer
   Bell Canada
   Montreal
   CA

   Email: daniel.voyer@bell.ca

   Tanmoy kundu
   nokia
   Montain View
   US

   Email: tanmoy.kundu@nokia.com

   Jayant Kotalwar
   nokia
   Montain View
   US

   Email: jayant.kotalwar@nokia.com

   Rishabh Parekh
   Cisco Systems, Inc.
   San Jose
   US

   Email: riparekh@cisco.com

   Tarek Saad
   Juniper Networks

   Email: tssad@juniper.net











Bidgoli, et al.         Expires January 7, 2020                [Page 13]


Html markup produced by rfcmarkup 1.129c, available from https://tools.ietf.org/tools/rfcmarkup/