PIM Working Group                                                 X. Liu
Internet-Draft                                       Kuatro Technologies
Intended status: Standards Track                           P. McAllister
Expires: April 14, 2017                              Metaswitch Networks
                                                                A. Peter
                                                        Juniper Networks
                                                            M. Sivakumar
                                                           Cisco Systems
                                                                  Y. Liu
                                                     Huawei Technologies
                                                                   F. Hu
                                                         ZTE Corporation
                                                        October 11, 2016


       A YANG data model for Protocol-Independent Multicast (PIM)
                         draft-ietf-pim-yang-03

Abstract

   This document defines a YANG data model that can be used to configure
   Protocol Independent Multicast (PIM) devices.

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 April 14, 2017.

Copyright Notice

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



Liu, et al.              Expires April 14, 2017                 [Page 1]


Internet-Draft                  PIM YANG                    October 2016


   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
     1.1.  Requirements Language . . . . . . . . . . . . . . . . . .   3
     1.2.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Design of Data Model  . . . . . . . . . . . . . . . . . . . .   3
     2.1.  Scope of model  . . . . . . . . . . . . . . . . . . . . .   3
     2.2.  Optional capabilities . . . . . . . . . . . . . . . . . .   3
     2.3.  Top-level structure . . . . . . . . . . . . . . . . . . .   4
     2.4.  Position of address family in hierarchy . . . . . . . . .   4
   3.  Module Structure  . . . . . . . . . . . . . . . . . . . . . .   5
     3.1.  PIM base module . . . . . . . . . . . . . . . . . . . . .   5
     3.2.  PIM RP module . . . . . . . . . . . . . . . . . . . . . .   9
     3.3.  PIM-SM module . . . . . . . . . . . . . . . . . . . . . .  12
     3.4.  PIM-DM module . . . . . . . . . . . . . . . . . . . . . .  14
     3.5.  PIM-BIDIR module  . . . . . . . . . . . . . . . . . . . .  14
   4.  PIM YANG Modules  . . . . . . . . . . . . . . . . . . . . . .  15
     4.1.  PIM base module . . . . . . . . . . . . . . . . . . . . .  15
     4.2.  PIM RP module . . . . . . . . . . . . . . . . . . . . . .  35
     4.3.  PIM-SM module . . . . . . . . . . . . . . . . . . . . . .  50
     4.4.  PIM-DM module . . . . . . . . . . . . . . . . . . . . . .  56
     4.5.  PIM-BIDIR module  . . . . . . . . . . . . . . . . . . . .  59
   5.  Security Considerations . . . . . . . . . . . . . . . . . . .  67
   6.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  67
   7.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .  69
   8.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  69
     8.1.  Normative References  . . . . . . . . . . . . . . . . . .  69
     8.2.  Informative References  . . . . . . . . . . . . . . . . .  70
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  70

1.  Introduction

   YANG [RFC6020] [RFC6087] is a data definition language that was
   introduced to model the configuration and running state of a device
   managed using NETCONF [RFC6241].  YANG is now also being used as a
   component of wider management interfaces, such as CLIs.

   This document defines a draft YANG data model that can be used to
   configure and manage Protocol-Independent Multicast (PIM) devices.
   Currently this model is incomplete, but it will support the core PIM
   protocol, as well as many other features mentioned in separate PIM



Liu, et al.              Expires April 14, 2017                 [Page 2]


Internet-Draft                  PIM YANG                    October 2016


   RFCs.  Non-core features are defined as optional in the provided data
   model.

1.1.  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 BCP 14, RFC 2119
   [RFC2119].

1.2.  Terminology

   The terminology for describing YANG data models is found in
   [RFC6020].

   This draft employs YANG tree diagrams, which are explained in
   [I-D.ietf-netmod-rfc6087bis].

2.  Design of Data Model

2.1.  Scope of model

   The model covers PIM Sparse Mode [RFC7761], including the Source-
   Specific subset [RFC3569], Dense Mode [RFC3973], and Bi-directional
   PIM [RFC5015].

   The PIM extensions represented in the model include BSR [RFC5059] and
   Anycast-RP [RFC4610].

   The data model can be used to configure and manage these protocol
   features.  The operational state data and statistics can be retrieved
   by this model.  The protocol specific notifications are also defined
   in the model.

   This model does not cover other multicast protocols such as IGMP/MLD,
   MSDP, mVPN, or m-LDP in-band signalling.  It does not cover any
   configuration required to generate the MRIB.  These will be specified
   in separate documents.

2.2.  Optional capabilities

   This model is designed to represent the capabilities of PIM devices
   with various specifications, including some with basic subsets of the
   PIM protocol.  The main design goals of this draft are that any major
   now-existing implementation may be said to support the base model,
   and that the configuration of all implementations meeting the
   specification is easy to express through some combination of the
   features in the base model and simple vendor augmentations.



Liu, et al.              Expires April 14, 2017                 [Page 3]


Internet-Draft                  PIM YANG                    October 2016


   There is also value in widely-supported features being standardized,
   to save work for individual vendors, and so that mapping between
   different vendors' configuration is not needlessly complicated.
   Therefore, these modules declare a number of features representing
   capabilities that not all deployed devices support.

   The extensive use of feature declarations should also substantially
   simplify the capability negotiation process for a vendor's PIM
   implementation.

   On the other hand, operational state parameters are not so widely
   designated as features, as there are many cases where the defaulting
   of an operational state parameter would not cause any harm to the
   system, and it is much more likely that an implementation without
   native support for a piece of operational state would be able to
   derive a suitable value for a state variable that is not natively
   supported.

   For the same reason, wide constant ranges (for example, timer maxima
   and minima) will be used in the model.  It is expected that vendors
   will augment the model with any specific restrictions that might be
   required.  Vendors may also extend the features list with proprietary
   extensions.

2.3.  Top-level structure

   This model defines several separate modules for modelling PIM
   configuration, defined below.  Again, this separation will make it
   easier to express the specific capabilities of a PIM device.

   The hierarchy of PIM configuration is designed so that objects that
   are only relevant for one situation or feature are collected in a
   container for that feature.  For example, the configuration for PIM-
   SM that is not relevant for an SSM-only implementation is collected
   in an ASM container.

   Where fields are not genuinely essential to protocol operation, they
   are marked as optional.  Some fields will be essential but have a
   default specified, so they need not be explicitly configured.

   This module structure also applies, where applicable, to the
   operational state and notifications of the model.

2.4.  Position of address family in hierarchy

   This document contains address-family as a node in the hierarchy
   multiple times: both under the interface list, and under the PIM




Liu, et al.              Expires April 14, 2017                 [Page 4]


Internet-Draft                  PIM YANG                    October 2016


   instance.  This is similar to other protocol Yang models such as IS-
   IS.

   The reasoning for this is to make it easier for implementations in
   which configuration options are not supported for specific address
   families.

   For these implementations, the restriction that interface
   configuration must be address-family independent must either be
   expressed as a vendor augmentation of an address-family-independent
   parameter above the address-family level, or by a constraint on the
   base model objects of a form similar to:

   must ". = ../../address-family[address-family='ipv4']/
   interface[interface=current()/sibling:interface]/dr-priority" {
   error-app-tag dr-priority-mismatch; error-message "Error: IPv6 DR
   priority must match IPv4 DR priority "; }

3.  Module Structure

3.1.  PIM base module

   The PIM base module defines the router-wide configuration options not
   specific to any PIM mode, and is included by the other modules.
   There are a couple of things worth mentioning here regarding where
   the PIM model fits in the overall routing hierarchy:

   1.  This data model agrees to a routing-instance-centric (VRF) model
       view as opposed to protocol-centric mainly because it fits well
       into the routing-instance model, and it is easier to map from the
       VRF-centric to the protocol-centric than the other way around due
       to forward references.

   2.  The PIM base model augments "/rt:routing/rt:control-plane-
       protocols" as opposed to augmenting "/rt:routing/rt:control-
       plane-protocols/ rt:control-plane-protocol" as the latter would
       allow multiple protocol instances per VRF, which does not make
       sense for PIM.

             module: ietf-pim-base
   augment /rt:routing/rt:control-plane-protocols:
      +--rw pim!
         +--rw graceful-restart
         |  +--rw enabled?    boolean
         |  +--rw duration?   uint16
         +--rw address-family* [address-family]
         |  +--rw address-family      identityref
         |  +--rw graceful-restart



Liu, et al.              Expires April 14, 2017                 [Page 5]


Internet-Draft                  PIM YANG                    October 2016


         |     +--rw enabled?    boolean
         |     +--rw duration?   uint16
         +--rw interfaces
            +--rw interface* [interface]
               +--rw interface         if:interface-ref
               +--rw address-family* [address-family]
                  +--rw address-family       identityref
                  +--rw bfd
                  |  +--rw enabled?                    boolean
                  |  +--rw local-multiplier?           bfd-multiplier
                  |  +--rw (interval-config-type)?
                  |     +--:(tx-rx-intervals)
                  |     |  +--rw desired-min-tx-interval     uint32
                  |     |  +--rw required-min-rx-interval    uint32
                  |     +--:(single-interval)
                  |        +--rw min-interval                uint32
                  +--rw dr-priority?         uint32 {intf-dr-priority}?
                  +--rw hello-interval?      timer-value
   {intf-hello-interval}?
                  +--rw (hello-holdtime-or-multiplier)?
                  |  +--:(holdtime) {intf-hello-holdtime}?
                  |  |  +--rw hello-holdtime?      timer-value
                  |  +--:(multiplier) {intf-hello-multiplier}?
                  |     +--rw hello-multiplier?    uint8
                  +--rw jp-interval?         timer-value
   {intf-jp-interval}?
                  +--rw (jp-holdtime-or-multiplier)?
                  |  +--:(holdtime) {intf-jp-holdtime}?
                  |  |  +--rw jp-holdtime?         timer-value
                  |  +--:(multiplier) {intf-jp-multiplier}?
                  |     +--rw jp-multiplier?       uint8
                  +--rw propagation-delay?   uint16
   {intf-propagation-delay}?
                  +--rw override-interval?   uint16
   {intf-override-interval}?
   augment /rt:routing-state/rt:control-plane-protocols:
      +--ro pim
         +--ro address-family* [address-family]
         |  +--ro address-family        identityref
         |  +--ro statistics
         |  |  +--ro discontinuity-time?   yang:date-and-time
         |  |  +--ro error
         |  |  |  +--ro assert?                       yang:counter64
         |  |  |  +--ro bsr?                          yang:counter64
         |  |  |  +--ro candidate-rp-advertisement?   yang:counter64
         |  |  |  +--ro df-election?                  yang:counter64
         |  |  |  +--ro hello?                        yang:counter64
         |  |  |  +--ro join-prune?                   yang:counter64



Liu, et al.              Expires April 14, 2017                 [Page 6]


Internet-Draft                  PIM YANG                    October 2016


         |  |  |  +--ro register?                     yang:counter64
         |  |  |  +--ro register-stop?                yang:counter64
         |  |  |  +--ro state-refresh?                yang:counter64
         |  |  +--ro queue
         |  |  |  +--ro size?       uint32
         |  |  |  +--ro overflow?   yang:counter32
         |  |  +--ro received
         |  |  |  +--ro assert?                       yang:counter64
         |  |  |  +--ro bsr?                          yang:counter64
         |  |  |  +--ro candidate-rp-advertisement?   yang:counter64
         |  |  |  +--ro df-election?                  yang:counter64
         |  |  |  +--ro hello?                        yang:counter64
         |  |  |  +--ro join-prune?                   yang:counter64
         |  |  |  +--ro register?                     yang:counter64
         |  |  |  +--ro register-stop?                yang:counter64
         |  |  |  +--ro state-refresh?                yang:counter64
         |  |  +--ro sent
         |  |     +--ro assert?                       yang:counter64
         |  |     +--ro bsr?                          yang:counter64
         |  |     +--ro candidate-rp-advertisement?   yang:counter64
         |  |     +--ro df-election?                  yang:counter64
         |  |     +--ro hello?                        yang:counter64
         |  |     +--ro join-prune?                   yang:counter64
         |  |     +--ro register?                     yang:counter64
         |  |     +--ro register-stop?                yang:counter64
         |  |     +--ro state-refresh?                yang:counter64
         |  +--ro topology-tree-info
         |     +--ro ipv4-route* [group source-address is-rpt]
         |     |  +--ro group                 inet:ipv4-address
         |     |  +--ro source-address        union
         |     |  +--ro is-rpt                boolean
         |     |  +--ro expiration?           timer-value
         |     |  +--ro incoming-interface?   if:interface-ref
         |     |  +--ro mode?                 pim-mode
         |     |  +--ro msdp-learned?         boolean
         |     |  +--ro rp-address?           inet:ip-address
         |     |  +--ro rpf-neighbor?         inet:ip-address
         |     |  +--ro spt-bit?              boolean
         |     |  +--ro up-time?              uint32
         |     |  +--ro outgoing-interface* [name]
         |     |     +--ro name          if:interface-ref
         |     |     +--ro expiration?   timer-value
         |     |     +--ro up-time?      uint32
         |     |     +--ro jp-state?     enumeration
         |     +--ro ipv6-route* [group source-address is-rpt]
         |        +--ro group                 inet:ipv6-address
         |        +--ro source-address        union
         |        +--ro is-rpt                boolean



Liu, et al.              Expires April 14, 2017                 [Page 7]


Internet-Draft                  PIM YANG                    October 2016


         |        +--ro expiration?           timer-value
         |        +--ro incoming-interface?   if:interface-ref
         |        +--ro mode?                 pim-mode
         |        +--ro msdp-learned?         boolean
         |        +--ro rp-address?           inet:ip-address
         |        +--ro rpf-neighbor?         inet:ip-address
         |        +--ro spt-bit?              boolean
         |        +--ro up-time?              uint32
         |        +--ro outgoing-interface* [name]
         |           +--ro name          if:interface-ref
         |           +--ro expiration?   timer-value
         |           +--ro up-time?      uint32
         |           +--ro jp-state?     enumeration
         +--ro interfaces
            +--ro interface* [interface]
               +--ro interface         if:interface-ref
               +--ro address-family* [address-family]
                  +--ro address-family       identityref
                  +--ro bfd
                  |  +--ro enabled?                    boolean
                  |  +--ro local-multiplier?           bfd-multiplier
                  |  +--ro (interval-config-type)?
                  |     +--:(tx-rx-intervals)
                  |     |  +--ro desired-min-tx-interval     uint32
                  |     |  +--ro required-min-rx-interval    uint32
                  |     +--:(single-interval)
                  |        +--ro min-interval                uint32
                  +--ro dr-priority?         uint32 {intf-dr-priority}?
                  +--ro hello-interval?      timer-value
   {intf-hello-interval}?
                  +--ro (hello-holdtime-or-multiplier)?
                  |  +--:(holdtime) {intf-hello-holdtime}?
                  |  |  +--ro hello-holdtime?      timer-value
                  |  +--:(multiplier) {intf-hello-multiplier}?
                  |     +--ro hello-multiplier?    uint8
                  +--ro jp-interval?         timer-value
   {intf-jp-interval}?
                  +--ro (jp-holdtime-or-multiplier)?
                  |  +--:(holdtime) {intf-jp-holdtime}?
                  |  |  +--ro jp-holdtime?         timer-value
                  |  +--:(multiplier) {intf-jp-multiplier}?
                  |     +--ro jp-multiplier?       uint8
                  +--ro propagation-delay?   uint16
   {intf-propagation-delay}?
                  +--ro override-interval?   uint16
   {intf-override-interval}?
                  +--ro ipv4
                  |  +--ro address*      inet:ipv4-address



Liu, et al.              Expires April 14, 2017                 [Page 8]


Internet-Draft                  PIM YANG                    October 2016


                  |  +--ro dr-address?   inet:ipv4-address
                  +--ro ipv6
                  |  +--ro address*      inet:ipv6-address
                  |  +--ro dr-address?   inet:ipv6-address
                  +--ro oper-status?         enumeration
                  +--ro hello-expiration?    timer-value
                  +--ro neighbor-ipv4* [address]
                  |  +--ro address        inet:ipv4-address
                  |  +--ro bfd-status?    enumeration
                  |  +--ro expiration?    timer-value
                  |  +--ro dr-priority?   uint32
                  |  +--ro gen-id?        uint32
                  |  +--ro up-time?       uint32
                  +--ro neighbor-ipv6* [address]
                     +--ro address        inet:ipv6-address
                     +--ro bfd-status?    enumeration
                     +--ro expiration?    timer-value
                     +--ro dr-priority?   uint32
                     +--ro gen-id?        uint32
                     +--ro up-time?       uint32
   notifications:
      +---n pim-neighbor-event
      |  +--ro event-type?                neighbor-event-type
      |  +--ro interface-state-ref?       leafref
      |  +--ro interface-af-state-ref?    leafref
      |  +--ro neighbor-ipv4-state-ref?   leafref
      |  +--ro neighbor-ipv6-state-ref?   leafref
      |  +--ro up-time?                   uint32
      +---n pim-interface-event
         +--ro event-type?            interface-event-type
         +--ro interface-state-ref?   leafref
         +--ro ipv4
         |  +--ro address*      inet:ipv4-address
         |  +--ro dr-address?   inet:ipv4-address
         +--ro ipv6
            +--ro address*      inet:ipv6-address
            +--ro dr-address?   inet:ipv6-address


3.2.  PIM RP module

   The PIM RP module contains configuration information scoped to RPs or
   ranges of group addresses.  This does not belong in the hierarchy
   under any PIM mode, but is augmented by the individual mode-specific
   modules as appropriate.

             module: ietf-pim-rp
   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/



Liu, et al.              Expires April 14, 2017                 [Page 9]


Internet-Draft                  PIM YANG                    October 2016


   pim-base:address-family:
      +--rw rp
         +--rw static-rp
         |  +--rw ipv4-rp* [ipv4-address]
         |  |  +--rw ipv4-address    inet:ipv4-address
         |  +--rw ipv6-rp* [ipv6-address]
         |     +--rw ipv6-address    inet:ipv6-address
         +--rw bsr {bsr}?
            +--rw bsr-candidate!
            |  +--rw (interface-or-address)?
            |  |  +--:(interface) {candidate-interface}?
            |  |  |  +--rw interface           if:interface-ref
            |  |  +--:(ipv4-address) {candidate-ipv4}?
            |  |  |  +--rw ipv4-address        inet:ipv4-address
            |  |  +--:(ipv6-address) {candidate-ipv6}?
            |  |     +--rw ipv6-address        inet:ipv6-address
            |  +--rw hash-mask-length    uint8
            |  +--rw priority            uint8
            +--rw rp-candidate-interface* [interface]
   {candidate-interface}?
            |  +--rw interface    if:interface-ref
            |  +--rw policy?      string
            |  +--rw mode?        identityref
            +--rw rp-candidate-ipv4-address* [ipv4-address]
   {candidate-ipv4}?
            |  +--rw ipv4-address    inet:ipv4-address
            |  +--rw policy?         string
            |  +--rw mode?           identityref
            +--rw rp-candidate-ipv6-address* [ipv6-address]
   {candidate-ipv6}?
               +--rw ipv6-address    inet:ipv6-address
               +--rw policy?         string
               +--rw mode?           identityref
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family:
      +--ro rp
         +--ro static-rp
         |  +--ro ipv4-rp* [ipv4-address]
         |  |  +--ro ipv4-address    inet:ipv4-address
         |  +--ro ipv6-rp* [ipv6-address]
         |     +--ro ipv6-address    inet:ipv6-address
         +--ro bsr {bsr}?
         |  +--ro bsr-candidate!
         |  |  +--ro (interface-or-address)?
         |  |  |  +--:(interface) {candidate-interface}?
         |  |  |  |  +--ro interface           if:interface-ref
         |  |  |  +--:(ipv4-address) {candidate-ipv4}?
         |  |  |  |  +--ro ipv4-address        inet:ipv4-address



Liu, et al.              Expires April 14, 2017                [Page 10]


Internet-Draft                  PIM YANG                    October 2016


         |  |  |  +--:(ipv6-address) {candidate-ipv6}?
         |  |  |     +--ro ipv6-address        inet:ipv6-address
         |  |  +--ro hash-mask-length    uint8
         |  |  +--ro priority            uint8
         |  +--ro rp-candidate-interface* [interface]
   {candidate-interface}?
         |  |  +--ro interface    if:interface-ref
         |  |  +--ro policy?      string
         |  |  +--ro mode?        identityref
         |  +--ro rp-candidate-ipv4-address* [ipv4-address]
   {candidate-ipv4}?
         |  |  +--ro ipv4-address    inet:ipv4-address
         |  |  +--ro policy?         string
         |  |  +--ro mode?           identityref
         |  +--ro rp-candidate-ipv6-address* [ipv6-address]
   {candidate-ipv6}?
         |  |  +--ro ipv6-address    inet:ipv6-address
         |  |  +--ro policy?         string
         |  |  +--ro mode?           identityref
         |  +--ro bsr
         |  |  +--ro address?            inet:ip-address
         |  |  +--ro hash-mask-length?   uint8
         |  |  +--ro priority?           uint8
         |  |  +--ro up-time?            uint32
         |  +--ro (election-state)? {bsr-election-state}?
         |  |  +--:(candidate)
         |  |  |  +--ro candidate-bsr-state?               enumeration
         |  |  +--:(non-candidate)
         |  |     +--ro non-candidate-bsr-state?           enumeration
         |  +--ro bsr-next-bootstrap?                uint16
         |  +--ro rp
         |  |  +--ro rp-address?     inet:ip-address
         |  |  +--ro group-policy?   string
         |  |  +--ro up-time?        uint32
         |  +--ro rp-candidate-next-advertisement?   uint16
         +--ro rp-list
         |  +--ro ipv4-rp* [ipv4-address mode]
         |  |  +--ro ipv4-address           inet:ipv4-address
         |  |  +--ro mode                   identityref
         |  |  +--ro info-source-address?   inet:ipv4-address
         |  |  +--ro info-source-type?      identityref
         |  |  +--ro up-time?               uint32
         |  |  +--ro expiration?            pim-base:timer-value
         |  +--ro ipv6-rp* [ipv6-address mode]
         |     +--ro ipv6-address           inet:ipv6-address
         |     +--ro mode                   identityref
         |     +--ro info-source-address?   inet:ipv6-address
         |     +--ro info-source-type?      identityref



Liu, et al.              Expires April 14, 2017                [Page 11]


Internet-Draft                  PIM YANG                    October 2016


         |     +--ro up-time?               uint32
         |     +--ro expiration?            pim-base:timer-value
         +--ro rp-mappings
            +--ro ipv4-rp* [group rp-address]
            |  +--ro group         inet:ipv4-prefix
            |  +--ro rp-address    inet:ipv4-address
            |  +--ro up-time?      uint32
            |  +--ro expiration?   pim-base:timer-value
            +--ro ipv6-rp* [group rp-address]
               +--ro group         inet:ipv6-prefix
               +--ro rp-address    inet:ipv6-address
               +--ro up-time?      uint32
               +--ro expiration?   pim-base:timer-value
   notifications:
      +---n pim-rp-event
         +--ro event-type?              rp-event-type
         +--ro instance-af-state-ref?   leafref
         +--ro group?                   inet:ip-address
         +--ro rp-address?              inet:ip-address
         +--ro is-rpt?                  boolean
         +--ro mode?                    pim-base:pim-mode
         +--ro message-origin?          inet:ip-address


3.3.  PIM-SM module

   This module covers Sparse Mode configuration, including PIM-ASM and
   PIM-SSM.

             module: ietf-pim-sm
   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family:
      +--rw sm
         +--rw asm
         |  +--rw anycast-rp!
         |  |  +--rw ipv4
         |  |  |  +--rw ipv4-anycast-rp* [anycast-address rp-address]
         |  |  |     +--rw anycast-address    inet:ipv4-address
         |  |  |     +--rw rp-address         inet:ipv4-address
         |  |  +--rw ipv6
         |  |     +--rw ipv6-anycast-rp* [anycast-address rp-address]
         |  |        +--rw anycast-address    inet:ipv6-address
         |  |        +--rw rp-address         inet:ipv6-address
         |  +--rw spt-switch
         |     +--rw infinity! {spt-switch-infinity}?
         |        +--rw policy-name?   string {spt-switch-policy}?
         +--rw ssm!
            +--rw range-policy?   string



Liu, et al.              Expires April 14, 2017                [Page 12]


Internet-Draft                  PIM YANG                    October 2016


   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/
   pim-base:interfaces/pim-base:interface/pim-base:address-family:
      +--rw sm!
         +--rw passive?   empty
   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family/pim-rp:rp/pim-rp:static-rp/pim-rp:ipv4-rp:
      +--rw sm!
         +--rw policy-name?   string
         +--rw override?      boolean {static-rp-override}?
   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family/pim-rp:rp/pim-rp:static-rp/pim-rp:ipv6-rp:
      +--rw sm!
         +--rw policy-name?   string
         +--rw override?      boolean {static-rp-override}?
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family:
      +--ro sm
         +--ro asm
         |  +--ro anycast-rp!
         |  |  +--ro ipv4
         |  |  |  +--ro ipv4-anycast-rp* [anycast-address rp-address]
         |  |  |     +--ro anycast-address    inet:ipv4-address
         |  |  |     +--ro rp-address         inet:ipv4-address
         |  |  +--ro ipv6
         |  |     +--ro ipv6-anycast-rp* [anycast-address rp-address]
         |  |        +--ro anycast-address    inet:ipv6-address
         |  |        +--ro rp-address         inet:ipv6-address
         |  +--ro spt-switch
         |     +--ro infinity! {spt-switch-infinity}?
         |        +--ro policy-name?   string {spt-switch-policy}?
         +--ro ssm!
            +--ro range-policy?   string
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:interfaces/pim-base:interface/pim-base:address-family:
      +--ro sm!
         +--ro passive?   empty
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family/pim-rp:rp/pim-rp:static-rp/pim-rp:ipv4-rp:
      +--ro sm!
         +--ro policy-name?   string
         +--ro override?      boolean {static-rp-override}?
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family/pim-rp:rp/pim-rp:static-rp/pim-rp:ipv6-rp:
      +--ro sm!
         +--ro policy-name?   string
         +--ro override?      boolean {static-rp-override}?





Liu, et al.              Expires April 14, 2017                [Page 13]


Internet-Draft                  PIM YANG                    October 2016


3.4.  PIM-DM module

   This module will cover Dense Mode configuration.

             module: ietf-pim-dm
   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family:
      +--rw dm!
   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/
   pim-base:interfaces/pim-base:interface/pim-base:address-family:
      +--rw dm!
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family:
      +--ro dm


3.5.  PIM-BIDIR module

   This module will cover Bidirectional PIM configuration.

             module: ietf-pim-bidir
   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family:
      +--rw bidir!
   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/
   pim-base:interfaces/pim-base:interface/pim-base:address-family:
      +--rw bidir!
         +--rw df-election {intf-df-election}?
            +--rw offer-interval?     pim-base:timer-value
            +--rw backoff-interval?   pim-base:timer-value
            +--rw offer-multiplier?   uint8
   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family/pim-rp:rp/pim-rp:static-rp/pim-rp:ipv4-rp:
      +--rw bidir!
         +--rw policy-name?   string
         +--rw override?      boolean {static-rp-override}?
   augment /rt:routing/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family/pim-rp:rp/pim-rp:static-rp/pim-rp:ipv6-rp:
      +--rw bidir!
         +--rw policy-name?   string
         +--rw override?      boolean {static-rp-override}?
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family:
      +--ro bidir
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:interfaces/pim-base:interface/pim-base:address-family:
      +--ro bidir!
         +--ro df-election {intf-df-election}?



Liu, et al.              Expires April 14, 2017                [Page 14]


Internet-Draft                  PIM YANG                    October 2016


            +--ro offer-interval?     pim-base:timer-value
            +--ro backoff-interval?   pim-base:timer-value
            +--ro offer-multiplier?   uint8
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family/pim-rp:rp/pim-rp:static-rp/pim-rp:ipv4-rp:
      +--ro bidir!
         +--ro policy-name?   string
         +--ro override?      boolean {static-rp-override}?
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family/pim-rp:rp/pim-rp:static-rp/pim-rp:ipv6-rp:
      +--ro bidir!
         +--ro policy-name?   string
         +--ro override?      boolean {static-rp-override}?
   augment /rt:routing-state/rt:control-plane-protocols/pim-base:pim/
   pim-base:address-family/pim-rp:rp:
      +--ro bidir
         +--ro df-election
         |  +--ro ipv4-rp* [ipv4-address]
         |  |  +--ro ipv4-address    inet:ipv4-address
         |  +--ro ipv6-rp* [ipv6-address]
         |     +--ro ipv6-address    inet:ipv6-address
         +--ro interface-df-election
            +--ro ipv4-rp* [ipv4-address interface-name]
            |  +--ro ipv4-address       inet:ipv4-address
            |  +--ro interface-name     if:interface-ref
            |  +--ro df-address?        inet:ipv4-address
            |  +--ro interface-state?   identityref
            +--ro ipv6-rp* [ipv6-address interface-name]
               +--ro ipv6-address       inet:ipv6-address
               +--ro interface-name     if:interface-ref
               +--ro df-address?        inet:ipv6-address
               +--ro interface-state?   identityref


4.  PIM YANG Modules

4.1.  PIM base module


   <CODE BEGINS> file "ietf-pim-base@2016-09-22.yang"
   module ietf-pim-base {
     namespace "urn:ietf:params:xml:ns:yang:ietf-pim-base";
     prefix pim-base;

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




Liu, et al.              Expires April 14, 2017                [Page 15]


Internet-Draft                  PIM YANG                    October 2016


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

     import ietf-interfaces {
       prefix "if";
     }

     import ietf-routing {
       prefix "rt";
     }

     import ietf-bfd {
       prefix "bfd";
     }

     organization
       "IETF PIM Working Group";

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

        WG Chair: Stig Venaas
                  <mailto:stig@venaas.com>

        WG Chair: Mike McBride
                  <mailto:mmcbride7@gmail.com>

        Editor:   Xufeng Liu
                  <mailto:xliu@kuatrotech.com>

        Editor:   Pete McAllister
                  <mailto:pete.mcallister@metaswitch.com>

        Editor:   Anish Peter
                  <mailto:anishp@juniper.net>

        Editor:   Mahesh Sivakumar
                  <mailto:masivaku@cisco.com>

        Editor:   Yisong Liu
                  <mailto:liuyisong@huawei.com>

        Editor:   Fangwei Hu
                  <mailto:hu.fangwei@zte.com.cn>";

     description



Liu, et al.              Expires April 14, 2017                [Page 16]


Internet-Draft                  PIM YANG                    October 2016


       "The module defines a collection of YANG definitions common for
        all PIM modes.";

     revision 2016-09-22 {
       description
         "Initial revision.";
       reference
         "RFC XXXX: A YANG Data Model for PIM";
     }

     /*
      * Features
      */
     feature bfd-protocol-parms {
       description
         "BFD protocol specific parameters support.";
     }

     feature global-graceful-restart {
       description
         "Global configuration for graceful restart support as per
          RFC5306.";
     }

     feature intf-dr-priority {
       description
         "Support configuration of interface DR priority.";
     }

     feature intf-hello-holdtime {
       description
         "Support configuration of interface hello holdtime.";
     }

     feature intf-hello-interval {
       description
         "Support configuration of interface hello interval.";
     }

     feature intf-hello-multiplier {
       description
         "Support configuration of interface hello multiplier.";
     }

     feature intf-jp-interval {
       description
         "Support configuration of interface join prune interval.";
     }



Liu, et al.              Expires April 14, 2017                [Page 17]


Internet-Draft                  PIM YANG                    October 2016


     feature intf-jp-holdtime {
       description
         "Support configuration of interface join prune holdtime.";
     }

     feature intf-jp-multiplier {
       description
         "Support configuration of interface join prune multiplier.";
     }

     feature intf-propagation-delay {
       description
         "Support configuration of interface propagation delay.";
     }

     feature intf-override-interval {
       description
         "Support configuration of interface override interval.";
     }

     feature per-af-graceful-restart {
       description
         "Per address family configuration for graceful restart support
          as per RFC5306.";
     }

     /*
      * Typedefs
      */
     typedef interface-event-type {
       type enumeration {
         enum up {
           description
             "Neighbor status changed to up.";
         }
         enum down {
           description
             "Neighbor status changed to down.";
         }
         enum new-dr {
           description
             "A new DR was elected on the connected network.";
         }
         enum new-df {
           description
             "A new DF was elected on the connected network.";
         }
       }



Liu, et al.              Expires April 14, 2017                [Page 18]


Internet-Draft                  PIM YANG                    October 2016


       description "Operational status event type for notifications.";
     }

     typedef neighbor-event-type {
       type enumeration {
         enum up {
           description
             "Neighbor status changed to up.";
         }
         enum down {
           description
             "Neighbor status changed to down.";
         }
       }
       description "Operational status event type for notifications.";
     }

     typedef pim-mode {
       type enumeration {
         enum none {
           description
             "PIM is not operating.";
         }
         enum ssm {
           description
             "Source-Specific Multicast (SSM) with PIM Sparse Mode.";
         }
         enum asm {
           description
             "Any Source Multicast (ASM) with PIM Sparse Mode.";
         }
         enum bidir {
           description
           "Bidirectional PIM.";
         }
         enum dm {
           description
             "PIM Dense Mode.";
         }
         enum other {
           description
             "Any other PIM mode.";
         }
       }
       description
         "The PIM mode in which a group is operating.";
     }




Liu, et al.              Expires April 14, 2017                [Page 19]


Internet-Draft                  PIM YANG                    October 2016


     typedef timer-value {
       type union {
         type uint16;
         type enumeration {
           enum "infinity" {
             description "The timer is set to infinity.";
           }
           enum "no-expiry" {
             description "The timer is not set.";
           }
         }
       }
       units seconds;
       description "Timer value type.";
     } // timer-value

     /*
      * Identities
      */

     /*
      * Groupings
      */
     grouping global-attributes {
       description
         "A Grouping defining global configuration attributes.";
       uses graceful-restart-container {
         if-feature global-graceful-restart;
       }
     } // global-attributes

     grouping graceful-restart-container {
       description
         "A grouping defining a container of graceful restart
         attributes.";
       container graceful-restart {
         leaf enabled {
           type boolean;
           description
             "Enable or disable graceful restart.";
         }
         leaf duration {
           type uint16;
           units seconds;
           description
             "Maximum time for graceful restart to finish.";
         }
         description



Liu, et al.              Expires April 14, 2017                [Page 20]


Internet-Draft                  PIM YANG                    October 2016


           "Container of graceful restart attributes.";
       }
     } // graceful-restart-container

     grouping interface-config-attributes {
       description
         "A grouping defining interface attributes.";
       container bfd {
         description "BFD operation.";
         leaf enabled {
           type boolean;
           description
             "True if BFD is enabled for the interface.";
         }
         uses bfd:bfd-grouping-base-cfg-parms {
           if-feature bfd-protocol-parms;
         }
       }
       leaf dr-priority {
         if-feature intf-dr-priority;
         type uint32;
         description "DR priority";
       }
       leaf hello-interval {
         if-feature intf-hello-interval;
         type timer-value;
         description "Hello interval";
       }
       choice hello-holdtime-or-multiplier {
         description "Use holdtime or multiplier";
         case holdtime {
           if-feature intf-hello-holdtime;
           leaf hello-holdtime {
             type timer-value;
             description "Hello holdtime";
           }
         }
         case multiplier {
           if-feature intf-hello-multiplier;
           leaf hello-multiplier {
             type uint8;
             description
               "Hello multiplier is the number by which the hello
                interval is multplied to obtain the hold time";
           }
         }
       }
       leaf jp-interval {



Liu, et al.              Expires April 14, 2017                [Page 21]


Internet-Draft                  PIM YANG                    October 2016


         if-feature intf-jp-interval;
         type timer-value;
         description "Join prune interval";
       }
       choice jp-holdtime-or-multiplier {
         description "Use holdtime or multiplier";
         case holdtime {
           if-feature intf-jp-holdtime;
           leaf jp-holdtime {
             type timer-value;
             description "Join prune holdtime";
           }
         }
         case multiplier {
           if-feature intf-jp-multiplier;
           leaf jp-multiplier {
             type uint8;
             description
               "Join prune multiplier is the number by which the join
                prune interval is multplied to obtain the hold time";
           }
         }
       }
       leaf propagation-delay {
         if-feature intf-propagation-delay;
         type uint16;
         units milliseconds;
         description "Propagation description";
       }
       leaf override-interval {
         if-feature intf-override-interval;
         type uint16;
         units milliseconds;
         description "Override interval";
       }
     } // interface-config-attributes

     grouping interface-state-attributes {
       description
         "A grouping defining interface attributes.";
       container ipv4 {
         when "../address-family = 'rt:ipv4'" {
           description
             "Only applicable to IPv4 address family.";
         }
         description "Interface state attributes for IPv4.";
         leaf-list address {
           type inet:ipv4-address;



Liu, et al.              Expires April 14, 2017                [Page 22]


Internet-Draft                  PIM YANG                    October 2016


           description "List of addresses.";
         }
         leaf dr-address {
           type inet:ipv4-address;
           description "Designated Router (DR) address.";
         }
       }
       container ipv6 {
         when "../address-family = 'rt:ipv6'" {
           description
             "Only applicable to IPv6 address family.";
         }
         description "Interface state attributes for IPv6.";
         leaf-list address {
           type inet:ipv6-address;
           description "List of addresses.";
         }
         leaf dr-address {
           type inet:ipv6-address;
           description "Designated Router (DR) address.";
         }
       }
       uses interface-state-af-attributes;
     } // interface-state-attributes

     grouping interface-state-af-attributes {
       description
         "A grouping defining interface per address family attributes.";

       leaf oper-status {
         type enumeration {
           enum up {
             description
             "Ready to pass packets.";
           }
           enum down {
             description
             "The interface does not pass any packets.";
           }
         }
         description "Operational status.";
       }

       leaf hello-expiration {
         type timer-value;
         description "Hello interval expiration time.";
       }




Liu, et al.              Expires April 14, 2017                [Page 23]


Internet-Draft                  PIM YANG                    October 2016


       list neighbor-ipv4 {
         when "../address-family = 'rt:ipv4'" {
           description
             "Only applicable to IPv4 address family.";
         }
         key "address";
         description "Neighbor state information.";
         leaf address {
           type inet:ipv4-address;
           description "Neighbor address.";
         }
         uses neighbor-state-af-attributes;
       } // list neighbor-ipv4

       list neighbor-ipv6 {
         when "../address-family = 'rt:ipv6'" {
           description
             "Only applicable to IPv6 address family.";
         }
         key "address";
         description "Neighbor state information.";
         leaf address {
           type inet:ipv6-address;
           description "Neighbor address.";
         }
         uses neighbor-state-af-attributes;
       } // list neighbor-ipv6
     } // interface-state-af-attributes

     grouping multicast-route-attributes {
       description
         "A grouping defining multicast route attributes.";

       leaf expiration {
         type timer-value;
         description "When the route will expire.";
       }
       leaf incoming-interface {
         type if:interface-ref;
         description
           "Reference to an entry in the global interface
            list.";
       }
       leaf mode {
         type pim-mode;
         description "PIM mode.";
       }
       leaf msdp-learned {



Liu, et al.              Expires April 14, 2017                [Page 24]


Internet-Draft                  PIM YANG                    October 2016


         type boolean;
         description "'true' if route is learned from MSDP.";
       }
       leaf rp-address {
         type inet:ip-address;
         description "RP address.";
       }
       leaf rpf-neighbor {
         type inet:ip-address;
         description "RPF neighbor address.";
       }
       leaf spt-bit {
         type boolean;
         description "'true' if SPT bit is set.";
       }
       leaf up-time {
         type uint32;
         units seconds;
         description "Up time duration.";
       }
       list outgoing-interface {
         key "name";
         description
           "A list of outgoing interfaces.";

         leaf name {
           type if:interface-ref;
           description
             "Interface name.";
         }

         leaf expiration {
           type timer-value;
           description "Expiring information.";
         }

         leaf up-time {
           type uint32;
           units seconds;
           description "Up time duration.";
         }

         leaf jp-state {
           type enumeration {
             enum "no-info" {
               description
                 "The interface has Join state and no timers running";
             }



Liu, et al.              Expires April 14, 2017                [Page 25]


Internet-Draft                  PIM YANG                    October 2016


             enum "join" {
               description
                 "The interface has Join state.";
             }
             enum "prune-pending" {
               description
                 "The router has received a Prune on this interface from
                  a downstream neighbor and is waiting to see whether
                  the prune will be overridden by another downstream
                  router.  For forwarding purposes, the Prune-Pending
                  state functions exactly like the Join state.";
             }
           }
           description "Join-prune state.";
         }
       }
     } // multicast-route-attributes

     grouping neighbor-state-af-attributes {
       description
         "A grouping defining neighbor per address family attributes.";
       leaf bfd-status {
         type enumeration {
           enum up {
             description
               "BFD is up.";
           }
           enum down {
             description
               "BFD is down.";
           }
         }
         description "BFD status.";
       }
       leaf expiration {
         type timer-value;
         description "Neighbor expiring information.";
       }
       leaf dr-priority {
         type uint32;
         description "DR priority";
       }
       leaf gen-id {
         type uint32;
         description "Generation ID.";
       }
       leaf up-time {
         type uint32;



Liu, et al.              Expires April 14, 2017                [Page 26]


Internet-Draft                  PIM YANG                    October 2016


         units seconds;
         description "Up time duration.";
       }
     } // neighbor-state-af-attributes

     grouping per-af-attributes {
       description
         "A grouping defining per address family attributes.";
       uses graceful-restart-container {
         if-feature per-af-graceful-restart;
       }
     } // per-af-attributes

     grouping pim-instance-af-state-ref {
       description
         "An absolute reference to a PIM instance address family.";
       leaf instance-af-state-ref {
         type leafref {
           path "/rt:routing-state/rt:control-plane-protocols/"
             + "pim-base:pim/pim-base:address-family/"
             + "pim-base:address-family";
         }
         description
           "Reference to a PIM instance address family.";
       }
     } // pim-instance-state-af-ref

     grouping pim-interface-state-ref {
       description
         "An absolute reference to a PIM interface state.";
       leaf interface-state-ref {
         type leafref {
           path "/rt:routing-state/rt:control-plane-protocols/"
             + "pim-base:pim/pim-base:interfaces/pim-base:interface/"
             + "pim-base:interface";
         }
         description
           "Reference to a PIM interface.";
       }
     } // pim-interface-state-ref

     grouping pim-neighbor-state-ref {
       description
         "An absolute reference to a PIM neighbor state.";
       uses pim-interface-state-ref;
       leaf interface-af-state-ref {
         type leafref {
           path "/rt:routing-state/rt:control-plane-protocols/"



Liu, et al.              Expires April 14, 2017                [Page 27]


Internet-Draft                  PIM YANG                    October 2016


             + "pim-base:pim/pim-base:interfaces/pim-base:interface"
             + "[pim-base:interface = "
             + "current()/../interface-state-ref]/"
             + "pim-base:address-family/pim-base:address-family";
         }
         description
           "Reference to a PIM interface address family.";
       }
       leaf neighbor-ipv4-state-ref {
         when "../interface-af-state-ref = 'rt:ipv4'" {
           description "Only applicable to IPv4 address family.";
         }
         type leafref {
           path "/rt:routing-state/rt:control-plane-protocols/"
             + "pim-base:pim/pim-base:interfaces/pim-base:interface"
             + "[pim-base:interface = "
             + "current()/../interface-state-ref]/"
             + "pim-base:address-family"
             + "[pim-base:address-family = "
             + "current()/../interface-af-state-ref]/"
             + "pim-base:neighbor-ipv4/pim-base:address";
         }
         description
           "Reference to a PIM IPv4 neighbor.";
       }
       leaf neighbor-ipv6-state-ref {
         when "../interface-af-state-ref = 'rt:ipv6'" {
           description "Only applicable to IPv6 address family.";
         }
         type leafref {
           path "/rt:routing-state/rt:control-plane-protocols/"
             + "pim-base:pim/pim-base:interfaces/pim-base:interface"
             + "[pim-base:interface = "
             + "current()/../interface-state-ref]/"
             + "pim-base:address-family"
             + "[pim-base:address-family = "
             + "current()/../interface-af-state-ref]/"
             + "pim-base:neighbor-ipv6/pim-base:address";
         }
         description
           "Reference to a PIM IPv6 neighbor.";
       }
     } // pim-neighbor-state-ref

     grouping statistics-container {
       description
         "A container defining statistics attributes.";
       container statistics {



Liu, et al.              Expires April 14, 2017                [Page 28]


Internet-Draft                  PIM YANG                    October 2016


         description "A container defining statistics attributes.";
         leaf discontinuity-time {
           type yang:date-and-time;
           description
             "The time on the most recent occasion at which any one
              or more of the statistic counters suffered a
              discontinuity. If no such discontinuities have occurred
              since the last re-initialization of the local
              management subsystem, then this node contains the time
              the local management subsystem re-initialized itself.";
         }
         container error {
           description "Containing error statistics.";
           uses statistics-error;
         }
         container queue {
           description "Containing queue statistics.";
           uses statistics-queue;
         }
         container received {
           description "Containing statistics of received messages.";
           uses statistics-sent-received;
         }
         container sent {
           description "Containing statistics of sent messages.";
           uses statistics-sent-received;
         }
       }
     } // statistics-container

     grouping statistics-error {
       description
         "A grouping defining error statistics
          attributes.";
       uses statistics-sent-received;
     } // statistics-error

     grouping statistics-queue {
       description
         "A grouping defining queue statistics
         attributes.";
       leaf size {
         type uint32;
         description
           "The size of the input queue.";
       }
       leaf overflow {
         type yang:counter32;



Liu, et al.              Expires April 14, 2017                [Page 29]


Internet-Draft                  PIM YANG                    October 2016


         description
           "The number of the input queue overflows.";
       }
     } // statistics-queue

     grouping statistics-sent-received {
       description
         "A grouping defining sent and received statistics
         attributes.";
       leaf assert {
         type yang:counter64;
         description
           "The number of assert messages.";
       }
       leaf bsr {
         type yang:counter64;
         description
           "The number of BSR messages.";
       }
       leaf candidate-rp-advertisement {
         type yang:counter64;
         description
           "The number of Candidate-RP-advertisement messages.";
       }
       leaf df-election {
         type yang:counter64;
         description
           "The number of DF election messages.";
       }
       leaf hello {
         type yang:counter64;
         description
           "The number of hello messages.";
       }
       leaf join-prune {
         type yang:counter64;
         description
           "The number of join/prune messages.";
       }
       leaf register {
         type yang:counter64;
         description
           "The number of register messages.";
       }
       leaf register-stop {
         type yang:counter64;
         description
           "The number of register stop messages.";



Liu, et al.              Expires April 14, 2017                [Page 30]


Internet-Draft                  PIM YANG                    October 2016


       }
       leaf state-refresh {
         type yang:counter64;
         description
           "The number of state refresh messages.";
       }
     } // statistics-sent-received

     /*
      * Configuration data nodes
      */

     augment "/rt:routing/rt:control-plane-protocols" {
       description
         "PIM augmentation to routing instance configuration.";

       container pim {
         presence "Container for PIM protocol.";
         description
           "PIM configuration data.";

         uses global-attributes;

         list address-family {
           key "address-family";
           description
             "Each list entry for one address family.";
           uses rt:address-family;
           uses per-af-attributes;

         } // address-family

         container interfaces {
           description
             "Containing a list of interfaces.";
           list interface {
             key "interface";
             description
               "List of pim interfaces.";
             leaf interface {
               type if:interface-ref;
               description
                 "Reference to an entry in the global interface
                 list.";
             }
             list address-family {
               key "address-family";
               description



Liu, et al.              Expires April 14, 2017                [Page 31]


Internet-Draft                  PIM YANG                    October 2016


                 "Each list entry for one address family.";
               uses rt:address-family;
               uses interface-config-attributes;
             } // address-family
           } // interface
         } // interfaces
       } // pim
     } // augment

     /*
      * Operational state data nodes
      */

     augment "/rt:routing-state/rt:control-plane-protocols" {
       description
         "PIM augmentation to routing instance state.";
       container pim {
         description
           "PIM state data.";

         list address-family {
           key "address-family";
           description
             "Each list entry for one address family.";
           uses rt:address-family;

           uses statistics-container;

           container topology-tree-info {
             description "Containing topology tree information.";
             list ipv4-route {
               when "../../../address-family = 'rt:ipv4'" {
                 description
                   "Only applicable to IPv4 address family.";
               }
               key "group source-address is-rpt";
               description "A list of IPv4 routes.";
               leaf group {
                 type inet:ipv4-address;
                 description "Group address.";
               }
               leaf source-address {
                 type union {
                   type enumeration {
                     enum '*' {
                       description "Use '*' to indicate any address.";
                     }
                   }



Liu, et al.              Expires April 14, 2017                [Page 32]


Internet-Draft                  PIM YANG                    October 2016


                   type inet:ipv4-address;
                 }
                 description "Source address.";
               }
               leaf is-rpt {
                 type boolean;
                 description "'true' if the tree is RPT.";
               }

               uses multicast-route-attributes;
             } // ipv4-route

             list ipv6-route {
               when "../../../address-family = 'rt:ipv6'" {
                 description
                   "Only applicable to IPv6 address family.";
               }
               key "group source-address is-rpt";
               description "A list of IPv6 routes.";
               leaf group {
                 type inet:ipv6-address;
                 description "Group address.";
               }
               leaf source-address {
                 type union {
                   type enumeration {
                     enum '*' {
                       description "Use '*' to indicate any address.";
                     }
                   }
                   type inet:ipv4-address;
                 }
                 description "Source address.";
               }
               leaf is-rpt {
                 type boolean;
                 description "'true' if the tree is RPT.";
               }

               uses multicast-route-attributes;
             } // ipv6-route
           } // routes
         } // address-family

         container interfaces {
           description
             "Containing a list of interfaces.";
           list interface {



Liu, et al.              Expires April 14, 2017                [Page 33]


Internet-Draft                  PIM YANG                    October 2016


             key "interface";
             description
               "List of pim interfaces.";
             leaf interface {
               type if:interface-ref;
               description
                 "Reference to an entry in the global interface
                 list.";
             }
             list address-family {
               key "address-family";
               description
                 "Each list entry for one address family.";
               uses rt:address-family;
               uses interface-config-attributes;
               uses interface-state-attributes;
             } // address-family
           } // interface
         } // interfaces
       } // pim
     } // augment

     /*
      * RPCs
      */

     /*
      * Notifications
      */
     notification pim-neighbor-event {
       description "Notification event for neighbor.";
       leaf event-type {
         type neighbor-event-type;
         description "Event type.";
       }
       uses pim-neighbor-state-ref;
       leaf up-time {
         type uint32;
         units seconds;
         description "Up time duration.";
       }
     }
     notification pim-interface-event {
       description "Notification event for interface.";
       leaf event-type {
         type interface-event-type;
         description "Event type.";
       }



Liu, et al.              Expires April 14, 2017                [Page 34]


Internet-Draft                  PIM YANG                    October 2016


       uses pim-interface-state-ref;
       container ipv4 {
         description "Containing IPv4 information.";
         leaf-list address {
           type inet:ipv4-address;
           description "List of addresses.";
         }
         leaf dr-address {
           type inet:ipv4-address;
           description "Designated Router (DR) address.";
         }
       }
       container ipv6 {
         description "Containing IPv6 information.";
         leaf-list address {
           type inet:ipv6-address;
           description "List of addresses.";
         }
         leaf dr-address {
           type inet:ipv6-address;
           description "Designated Router (DR) address.";
         }
       }
     }
   }
   <CODE ENDS>



4.2.  PIM RP module


  <CODE BEGINS> file "ietf-pim-rp@2016-09-22.yang"
  module ietf-pim-rp {
    namespace "urn:ietf:params:xml:ns:yang:ietf-pim-rp";
    prefix pim-rp;

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

    import ietf-interfaces {
      prefix "if";
    }

    import ietf-routing {
      prefix "rt";
    }



Liu, et al.              Expires April 14, 2017                [Page 35]


Internet-Draft                  PIM YANG                    October 2016


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

    organization
      "IETF PIM Working Group";

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

       WG Chair: Stig Venaas
                 <mailto:stig@venaas.com>

       WG Chair: Mike McBride
                 <mailto:mmcbride7@gmail.com>

       Editor:   Xufeng Liu
                 <mailto:xliu@kuatrotech.com>

       Editor:   Pete McAllister
                 <mailto:pete.mcallister@metaswitch.com>

       Editor:   Anish Peter
                 <mailto:anishp@juniper.net>

       Editor:   Mahesh Sivakumar
                 <mailto:masivaku@cisco.com>

       Editor:   Yisong Liu
                 <mailto:liuyisong@huawei.com>

       Editor:   Fangwei Hu
                 <mailto:hu.fangwei@zte.com.cn>";

    description
      "The YANG module defines a PIM RP (Rendezvous Point) model.";

    revision 2016-09-22 {
      description
        "Initial revision.";
      reference
        "RFC XXXX: A YANG Data Model for PIM";
    }

    /*
     * Features
     */



Liu, et al.              Expires April 14, 2017                [Page 36]


Internet-Draft                  PIM YANG                    October 2016


    feature bsr {
      description
        "This feature indicates that the system supports BSR.";
    }

    feature bsr-election-state {
      description
        "This feature indicates that the system supports providing
         BSR election state.";
    }

    feature static-rp-override {
      description
        "This feature indicates that the system supports configuration
         of static RP override.";
    }

    feature candidate-interface {
      description
        "This feature indicates that the system supports using
         an interface to configure a BSR or RP candidate.";
    }

    feature candidate-ipv4 {
      description
        "This feature indicates that the system supports using
         an IPv4 address to configure a BSR or RP candidate.";
    }

    feature candidate-ipv6 {
      description
        "This feature indicates that the system supports using
         an IPv6 address to configure a BSR or RP candidate.";
    }


    /*
     * Typedefs
     */
    typedef rp-event-type {
      type enumeration {
        enum invalid-jp {
          description
            "An invalid JP message has been received.";
        }
        enum invalid-register {
          description
            "An invalid register message has been received.";



Liu, et al.              Expires April 14, 2017                [Page 37]


Internet-Draft                  PIM YANG                    October 2016


        }
        enum mapping-created {
          description
            "A new mapping has been created.";
        }
        enum mapping-deleted {
          description
            "A mapping has been deleted.";
        }
      }
      description "Operational status event type for notifications.";
    }

    /*
     * Identities
     */
    identity rp-mode {
      description
        "The mode of an RP, which can be SM (Sparse Mode) or
         BIDIR (bi-directional).";
    }

    identity rp-info-source-type {
      description
        "The information source of an RP.";
    }
    identity static {
      base rp-info-source-type;
      description
        "The RP is statically configured.";
    }
    identity bootstrap {
      base rp-info-source-type;
      description
        "The RP is learned from bootstrap.";
    }

    /*
     * Groupings
     */
    grouping bsr-config-attributes {
      description
        "Grouping of BSR config attributes.";
      container bsr-candidate {
        presence
          "Present to serve as a BSR candidate";
        description
          "BSR candidate attributes.";



Liu, et al.              Expires April 14, 2017                [Page 38]


Internet-Draft                  PIM YANG                    October 2016


        choice interface-or-address {
          description
            "Use either interface or ip-address.";
          case interface {
            if-feature candidate-interface;
            leaf interface {
              type if:interface-ref;
              mandatory true;
              description
                "Interface to be used by BSR.";
            }
          }
          case ipv4-address {
            when "../../../pim-base:address-family = 'rt:ipv4'" {
              description
                "Only applicable to IPv4 address family.";
            }
            if-feature candidate-ipv4;
            leaf ipv4-address {
              type inet:ipv4-address;
              mandatory true;
              description
                "IP address to be used by BSR.";
            }
          }
          case ipv6-address {
            when "../../../pim-base:address-family = 'rt:ipv6'" {
              description
                "Only applicable to IPv6 address family.";
            }
            if-feature candidate-ipv6;
            leaf ipv6-address {
              type inet:ipv6-address;
              mandatory true;
              description
                "IP address to be used by BSR.";
            }
          }
        }

        leaf hash-mask-length{
          type uint8 {
            range "0..128";
          }
          mandatory true;
          description
            "Value contained in BSR messages used by all routers to
             hash (map) to an RP.";



Liu, et al.              Expires April 14, 2017                [Page 39]


Internet-Draft                  PIM YANG                    October 2016


        }

        leaf priority {
          type uint8 {
            range "0..255";
          }
          mandatory true;
          description
            "BSR election priority among different candidate BSRs.
            A larger value has a higher priority over a smaller
            value.";
        }
      } // bsr-candidate

      list rp-candidate-interface {
        if-feature candidate-interface;
        key "interface";
        description
          "A list of RP candidates";
        leaf interface {
          type if:interface-ref;
          description
            "Interface that the RP candidate uses.";
        }
        uses rp-candidate-attributes;
      }

      list rp-candidate-ipv4-address {
        when "../../../pim-base:address-family = 'rt:ipv4'" {
          description
            "Only applicable to IPv4 address family.";
        }
        if-feature candidate-ipv4;
        key "ipv4-address";
        description
          "A list of RP candidates";
        leaf ipv4-address {
          type inet:ipv4-address;
          description
            "IPv4 address that the RP candidate uses.";
        }
        uses rp-candidate-attributes;
      }

      list rp-candidate-ipv6-address {
        when "../../../pim-base:address-family = 'rt:ipv6'" {
          description
            "Only applicable to IPv6 address family.";



Liu, et al.              Expires April 14, 2017                [Page 40]


Internet-Draft                  PIM YANG                    October 2016


        }
        if-feature candidate-ipv6;
        key "ipv6-address";
        description
          "A list of RP candidates";
        leaf ipv6-address {
          type inet:ipv6-address;
          description
            "IPv6 address that the RP candidate uses.";
        }
        uses rp-candidate-attributes;
      }
    } // bsr-config-attributes

    grouping bsr-state-attributes {
      description
        "Grouping of BSR state attributes.";
      container bsr {
        description
          "BSR information.";
        leaf address {
          type inet:ip-address;
          description "BSR address";
        }
        leaf hash-mask-length {
          type uint8 {
            range "0..128";
          }
          description "Hash mask length.";
        }
        leaf priority {
          type uint8 {
            range "0..255";
          }
          description "Priority.";
        }
        leaf up-time {
          type uint32;
          units seconds;
          description "Up time duration.";
        }
      }
      choice election-state {
        if-feature bsr-election-state;
        description "BSR election state.";
        case candidate {
          leaf candidate-bsr-state {
            type enumeration {



Liu, et al.              Expires April 14, 2017                [Page 41]


Internet-Draft                  PIM YANG                    October 2016


              enum "candidate" {
                description
                  "The router is a candidate to be the BSR for the
                   scope zone, but currently another router is the
                   preferred BSR.";
              }
              enum "pending" {
                description
                  "The router is a candidate to be the BSR for the
                   scope zone. Currently, no other router is the
                   preferred BSR, but this router is not yet the
                   elected BSR.  This is a temporary state that
                   prevents rapid thrashing of the choice of BSR
                   during BSR election.";
              }
              enum "elected" {
                description
                  "The router is the elected BSR for the scope zone
                   and it must perform all the BSR functions.";
              }
            }
            description
              "Candidate-BSR state.";
            reference
              "RFC5059, Section 3.1.1.";
          }
        }
        case "non-candidate" {
          leaf non-candidate-bsr-state {
            type enumeration {
              enum "no-info" {
                description
                  "The router has no information about this scope
                   zone.";
              }
              enum "accept-any" {
                description
                  "The router does not know of an active BSR, and will
                   accept the first Bootstrap message it sees as giving
                   the new BSR's identity and the RP-Set.";
              }
              enum "accept" {
                description
                  "The router knows the identity of the current BSR,
                   and is using the RP-Set provided by that BSR. Only
                   Bootstrap messages from that BSR or from a C-BSR
                   with higher weight than the current BSR will be
                   accepted.";



Liu, et al.              Expires April 14, 2017                [Page 42]


Internet-Draft                  PIM YANG                    October 2016


              }
            }
            description
              "Non-candidate-BSR state.";
            reference
              "RFC5059, Section 3.1.2.";
          }
        }
      } // election-state
      leaf bsr-next-bootstrap {
        type uint16;
        units seconds;
        description "The time when next bootstrap will be sent.";
      }

      container rp {
        description
          "State information of the RP.";
        leaf rp-address {
          type inet:ip-address;
          description "RP address.";
        }
        leaf group-policy {
          type string;
          description "Group policy.";
        }
        leaf up-time {
          type uint32;
          units seconds;
          description "Up time duration.";
        }
      }
      leaf rp-candidate-next-advertisement {
        type uint16;
        units seconds;
        description
          "When the next advertisement will be sent as RP candidate";
      }
    } // bsr-state-attributes

    grouping rp-mapping-state-attributes {
      description
        "Grouping of RP mapping attributes.";
      leaf up-time {
        type uint32;
        units seconds;
        description "Up time duration.";
      }



Liu, et al.              Expires April 14, 2017                [Page 43]


Internet-Draft                  PIM YANG                    October 2016


      leaf expiration {
        type pim-base:timer-value;
        description "Expiration time.";
      }
    } // rp-mapping-state-attributes

    grouping rp-state-attributes {
      description
        "Grouping of RP state attributes.";
      leaf info-source-type {
        type identityref {
          base rp-info-source-type;
        }
        description "The information source of an RP.";
      } // info-source-type
      leaf up-time {
        type uint32;
        units seconds;
        description "Up time duration.";
      }
      leaf expiration {
        type pim-base:timer-value;
        description "Expiration time.";
      }
    } // rp-state-attributes

    grouping static-rp-attributes {
      description
        "Grouping of static RP attributes, used in augmenting modules.";
      leaf policy-name {
        type string;
        description
          "Static RP policy.";
      }
      leaf override {
        if-feature static-rp-override;
        type boolean;
        description
          "When there is a conflict between static RP and dynamic
           RP, setting this attribute to 'true' will ask the
           system to use static RP.";
      }
    } // static-rp-attributes

    grouping static-rp-container {
      description
        "Grouping of static RP container.";
      container static-rp {



Liu, et al.              Expires April 14, 2017                [Page 44]


Internet-Draft                  PIM YANG                    October 2016


        description
          "Containing static RP attributes.";
        list ipv4-rp {
          when "../../../pim-base:address-family = 'rt:ipv4'" {
            description
              "Only applicable to IPv4 address family.";
          }
          key "ipv4-address";
          description
            "A list of IPv4 RP addresses.";
          leaf ipv4-address {
            type inet:ipv4-address;
            description
              "Specifies a static RP address.";
          }
        }

        list ipv6-rp {
          when "../../../pim-base:address-family = 'rt:ipv6'" {
            description
              "Only applicable to IPv6 address family.";
          }
          key "ipv6-address";
          description
            "A list of IPv6 RP addresses.";
          leaf ipv6-address {
            type inet:ipv6-address;
            description
              "Specifies a static RP address.";
          }
        }
      } // static-rp
    } // static-rp-container

    grouping rp-candidate-attributes {
      description
        "Grouping of RP candidate attributes.";
      leaf policy {
        type string;
        description
          "ACL policy used to filter group addresses.";
      }
      leaf mode {
        type identityref {
          base rp-mode;
        }
        description
          "RP mode.";



Liu, et al.              Expires April 14, 2017                [Page 45]


Internet-Draft                  PIM YANG                    October 2016


      }
    } // rp-candidate-attributes

    /*
     * Configuration data nodes
     */

    augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
      + "pim-base:address-family" {
      description "PIM RP augmentation.";

      container rp {
        description
          "PIM RP configuration data.";

        uses static-rp-container;

        container bsr {
          if-feature bsr;
          description
            "Containing BSR (BootStrap Router) attributes.";
          uses bsr-config-attributes;
        } // bsr
      } // rp
    } // augment

    /*
     * Operational state data nodes
     */

    augment "/rt:routing-state/rt:control-plane-protocols/"
      + "pim-base:pim/pim-base:address-family" {
      description
        "PIM SM state.";

      container rp {
        description
          "PIM RP state data.";

        uses static-rp-container;

        container bsr {
          if-feature bsr;
          description
            "Containing BSR (BootStrap Router) attributes.";
          uses bsr-config-attributes;
          uses bsr-state-attributes;
        } // bsr



Liu, et al.              Expires April 14, 2017                [Page 46]


Internet-Draft                  PIM YANG                    October 2016


        container rp-list {
          description
            "Containing a list of RPs.";
          list ipv4-rp {
            when "../../../pim-base:address-family = 'rt:ipv4'" {
              description
                "Only applicable to IPv4 address family.";
            }
            key "ipv4-address mode";
            description
              "A list of IPv4 RP addresses.";
            leaf ipv4-address {
              type inet:ipv4-address;
              description
                "RP address.";
            }
            leaf mode {
              type identityref {
                base rp-mode;
              }
              description
                "RP mode.";
            }
            leaf info-source-address {
              type inet:ipv4-address;
              description
                "The address where RP information is learned.";
            }
            uses rp-state-attributes;
          }

          list ipv6-rp {
            when "../../../pim-base:address-family = 'rt:ipv6'" {
              description
                "Only applicable to IPv6 address family.";
            }
            key "ipv6-address mode";
            description
              "A list of IPv6 RP addresses.";
            leaf ipv6-address {
              type inet:ipv6-address;
              description
                "RP address.";
            }
            leaf mode {
              type identityref {
                base rp-mode;
              }



Liu, et al.              Expires April 14, 2017                [Page 47]


Internet-Draft                  PIM YANG                    October 2016


              description
                "RP mode.";
            }
            leaf info-source-address {
              type inet:ipv6-address;
              description
                "The address where RP information is learned.";
            }
            uses rp-state-attributes;
          }
        } // rp-list

        container rp-mappings {
          description
            "Containing a list of group-to-RP mappings.";
          list ipv4-rp {
            when "../../../pim-base:address-family = 'rt:ipv4'" {
              description
                "Only applicable to IPv4 address family.";
            }
            key "group rp-address";
            description
              "A list of group-to-RP mappings.";
            leaf group {
              type inet:ipv4-prefix;
              description
                "Group prefix.";
            }
            leaf rp-address {
              type inet:ipv4-address;
              description
                "RP address.";
            }
            uses rp-mapping-state-attributes;
          }

          list ipv6-rp {
            when "../../../pim-base:address-family = 'rt:ipv6'" {
              description
                "Only applicable to IPv6 address family.";
            }
            key "group rp-address";
            description
              "A list of IPv6 RP addresses.";
            leaf group {
              type inet:ipv6-prefix;
              description
                "Group prefix.";



Liu, et al.              Expires April 14, 2017                [Page 48]


Internet-Draft                  PIM YANG                    October 2016


            }
            leaf rp-address {
              type inet:ipv6-address;
              description
                "RP address.";
            }
            uses rp-mapping-state-attributes;
          }
        } // rp-mappings
      } // rp
    } // augment

    /*
     * RPCs
     */

    /*
     * Notifications
     */
    notification pim-rp-event {
      description "Notification event for RP.";
      leaf event-type {
        type rp-event-type;
        description "Event type.";
      }
      uses pim-base:pim-instance-af-state-ref;
      leaf group {
        type inet:ip-address;
        description "Group address.";
      }
      leaf rp-address {
        type inet:ip-address;
        description "RP address.";
      }
      leaf is-rpt {
        type boolean;
        description "'true' if the tree is RPT.";
      }
      leaf mode {
        type pim-base:pim-mode;
        description "PIM mode.";
      }
      leaf message-origin {
        type inet:ip-address;
        description "Where the message is originated.";
      }
    }
  }



Liu, et al.              Expires April 14, 2017                [Page 49]


Internet-Draft                  PIM YANG                    October 2016


  <CODE ENDS>



4.3.  PIM-SM module


   <CODE BEGINS> file "ietf-pim-sm@2016-09-22.yang"
   module ietf-pim-sm {
     namespace "urn:ietf:params:xml:ns:yang:ietf-pim-sm";
     prefix pim-sm;

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

     import ietf-routing {
       prefix "rt";
     }

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

     import ietf-pim-rp {
       prefix "pim-rp";
     }

     organization
       "IETF PIM Working Group";

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

        WG Chair: Stig Venaas
                  <mailto:stig@venaas.com>

        WG Chair: Mike McBride
                  <mailto:mmcbride7@gmail.com>

        Editor:   Xufeng Liu
                  <mailto:xliu@kuatrotech.com>

        Editor:   Pete McAllister
                  <mailto:pete.mcallister@metaswitch.com>

        Editor:   Anish Peter



Liu, et al.              Expires April 14, 2017                [Page 50]


Internet-Draft                  PIM YANG                    October 2016


                  <mailto:anishp@juniper.net>

        Editor:   Mahesh Sivakumar
                  <mailto:masivaku@cisco.com>

        Editor:   Yisong Liu
                  <mailto:liuyisong@huawei.com>

        Editor:   Fangwei Hu
                  <mailto:hu.fangwei@zte.com.cn>";

     description
       "The YANG module defines a sparse mode PIM model.";

     revision 2016-09-22 {
       description
         "Initial revision.";
       reference
         "RFC XXXX: A YANG Data Model for PIM";
     }

     /*
      * Features
      */
     feature spt-switch-infinity {
       description
         "This feature indicates that the system supports configuration
          choice whether to trigger the switchover from the RPT to the
          SPT.";
     }

     feature spt-switch-policy {
       description
         "This feature indicates that the system supports configuring
          policy for the switchover from the RPT to the SPT.";
     }

     /*
      * Identities
      */
     identity sm {
       base pim-rp:rp-mode;
       description
         "SM (Sparse Mode).";
     }

     /*
      * Groupings



Liu, et al.              Expires April 14, 2017                [Page 51]


Internet-Draft                  PIM YANG                    October 2016


      */
     grouping af-sm-container {
       description
         "Grouping of address family SM container.";
       container sm {
         description
           "PIM SM configuration data.";

         container asm {
           description
             "ASM (Any Source Multicast) attributes.";

           container anycast-rp {
             presence
               "Present to enable anycast RP.";
             description
               "Anycast RP attributes.";

             container ipv4 {
               when "../../../../pim-base:address-family = 'rt:ipv4'" {
                 description
                   "Only applicable to IPv4 address family.";
               }
               description
                 "IPv4 attributes. Only applicable when
                  pim-base:address-family is IPv4.";
               list ipv4-anycast-rp {
                 key "anycast-address rp-address";
                 description
                   "A list of anycast RP settings.";
                 leaf anycast-address {
                   type inet:ipv4-address;
                   description
                     "IP address of the anycast RP set. This IP address
                      is used by the multicast groups or sources to join
                      or register.";
                 }

                 leaf rp-address {
                   type inet:ipv4-address;
                   description
                     "IP address of the router configured with anycast
                      RP. This is the IP address where the Register
                      messages are forwarded.";
                 }
               }
             }
             container ipv6 {



Liu, et al.              Expires April 14, 2017                [Page 52]


Internet-Draft                  PIM YANG                    October 2016


               when "../../../../pim-base:address-family = 'rt:ipv6'" {
                 description
                   "Only applicable to IPv6 address family.";
               }
               description
                 "IPv6 attributes. Only applicable when
                  pim-base:address-family is IPv6.";
               list ipv6-anycast-rp {
                 key "anycast-address rp-address";
                 description
                   "A list of anycast RP settings.";
                 leaf anycast-address {
                   type inet:ipv6-address;
                   description
                     "IP address of the anycast RP set. This IP address
                      is used by the multicast groups or sources to join
                      or register.";
                 }

                 leaf rp-address {
                   type inet:ipv6-address;
                   description
                     "IP address of the router configured with anycast
                      RP. This is the IP address where the Register
                      messages are forwarded.";
                 }
               }
             }
           }

           container spt-switch {
             description
               "SPT (Shortest Path Tree) switching attributes.";
             container infinity {
               if-feature spt-switch-infinity;
               presence
                 "Present if SPT switchover threshold is set to
                  infinity, according to the policy specified below.";
               description
                 "The receiver's DR never triggers the
                  switchover from the RPT to the SPT.";
               leaf policy-name {
                 if-feature spt-switch-policy;
                 type string;
                 description
                   "Switch policy.";
               }
             } // infinity



Liu, et al.              Expires April 14, 2017                [Page 53]


Internet-Draft                  PIM YANG                    October 2016


           }
         } // asm

         container ssm {
           presence
             "Present to enable SSM (Source-Specific Multicast).";
           description
             "SSM (Source-Specific Multicast) attributes.";

           leaf range-policy {
             type string;
             description
               "Policy used to define SSM address range.";
           }
         } // ssm
       } // sm
     } // af-sm-container

     grouping interface-sm-container {
       description
         "Grouping of interface SM container.";
       container sm {
         presence "Present to enable sparse-mode.";
         description
           "PIM SM configuration data.";

         leaf passive {
           type empty;
           description
             "Specifies that no PIM messages are sent or accepted on
              this PIM interface, but the interface can be included in a
              multicast forwarding entry.";
         }
       } // sm
     } // interface-sm-container

     grouping static-rp-sm-container {
       description
         "Grouping that contains SM attributes for static RP.";
       container sm {
         presence
           "Indicate the support of sparse mode.";
         description
           "PIM SM configuration data.";

         uses pim-rp:static-rp-attributes;
       } // sm
     } // static-rp-sm-container



Liu, et al.              Expires April 14, 2017                [Page 54]


Internet-Draft                  PIM YANG                    October 2016


     /*
      * Configuration data nodes
      */

     augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
       + "pim-base:address-family" {
       description "PIM SM augmentation.";

       uses af-sm-container;
     } // augment

     augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
       + "pim-base:interfaces/pim-base:interface/"
       + "pim-base:address-family" {
       description "PIM SM augmentation.";

       uses interface-sm-container;
     } // augment

     augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
       + "pim-base:address-family/pim-rp:rp/"
       + "pim-rp:static-rp/pim-rp:ipv4-rp" {
       description "PIM SM augmentation.";

       uses static-rp-sm-container;
     } // augment

     augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
       + "pim-base:address-family/pim-rp:rp/"
       + "pim-rp:static-rp/pim-rp:ipv6-rp" {
       description "PIM SM augmentation.";

       uses static-rp-sm-container;
     } // augment

     /*
      * Operational state data nodes
      */

     augment "/rt:routing-state/rt:control-plane-protocols/"
       + "pim-base:pim/pim-base:address-family" {
       description
         "PIM SM state.";

       uses af-sm-container;
     } // augment

     augment "/rt:routing-state/rt:control-plane-protocols/"



Liu, et al.              Expires April 14, 2017                [Page 55]


Internet-Draft                  PIM YANG                    October 2016


       + "pim-base:pim/pim-base:interfaces/pim-base:interface/"
       + "pim-base:address-family" {
       description "PIM SM augmentation.";

       uses interface-sm-container;
     } // augment

     augment "/rt:routing-state/rt:control-plane-protocols/"
       + "pim-base:pim/pim-base:address-family/pim-rp:rp/"
       + "pim-rp:static-rp/pim-rp:ipv4-rp" {
       description "PIM SM augmentation.";

       uses static-rp-sm-container;
     } // augment

     augment "/rt:routing-state/rt:control-plane-protocols/"
       + "pim-base:pim/pim-base:address-family/pim-rp:rp/"
       + "pim-rp:static-rp/pim-rp:ipv6-rp" {
       description "PIM SM augmentation.";

       uses static-rp-sm-container;
     } // augment

     /*
      * RPCs
      */

     /*
      * Notifications
      */
   }
   <CODE ENDS>



4.4.  PIM-DM module


   <CODE BEGINS> file "ietf-pim-dm@2016-09-22.yang"
   module ietf-pim-dm {
     namespace "urn:ietf:params:xml:ns:yang:ietf-pim-dm";
     prefix pim-dm;

     import ietf-routing {
       prefix "rt";
     }

     import ietf-pim-base {



Liu, et al.              Expires April 14, 2017                [Page 56]


Internet-Draft                  PIM YANG                    October 2016


       prefix "pim-base";
     }

     organization
       "IETF PIM Working Group";

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

        WG Chair: Stig Venaas
                  <mailto:stig@venaas.com>

        WG Chair: Mike McBride
                  <mailto:mmcbride7@gmail.com>

        Editor:   Xufeng Liu
                  <mailto:xliu@kuatrotech.com>

        Editor:   Pete McAllister
                  <mailto:pete.mcallister@metaswitch.com>

        Editor:   Anish Peter
                  <mailto:anishp@juniper.net>

        Editor:   Mahesh Sivakumar
                  <mailto:masivaku@cisco.com>

        Editor:   Yisong Liu
                  <mailto:liuyisong@huawei.com>

        Editor:   Fangwei Hu
                  <mailto:hu.fangwei@zte.com.cn>";

     description
       "The YANG module defines a DM (Dense Mode) PIM model.";

     revision 2016-09-22 {
       description
         "Initial revision.";
       reference
         "RFC XXXX: A YANG Data Model for PIM";
     }

     /*
      * Features
      */




Liu, et al.              Expires April 14, 2017                [Page 57]


Internet-Draft                  PIM YANG                    October 2016


     /*
      * Identities
      */

     /*
      * Groupings
      */

     /*
      * Configuration data nodes
      */

     augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
       + "pim-base:address-family" {
       description "PIM DM augmentation.";

       container dm {
         presence "Present to enable dense-mode.";
         description
           "PIM DM configuration data.";
       } // Dm
     } // augment

     augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
       + "pim-base:interfaces/pim-base:interface/"
       + "pim-base:address-family" {
       description "PIM DM augmentation to PIM base interface.";

       container dm {
         presence "Present to enable dense-mode.";
         description
           "PIM DM configuration data.";
       } // sm
     } // augment

     /*
      * Operational state data nodes
      */

     augment "/rt:routing-state/rt:control-plane-protocols/"
       + "pim-base:pim/pim-base:address-family" {
       description
         "PIM DM state.";
       container dm {
         description
           "PIM DM state data.";
       } // dm
     } // augment



Liu, et al.              Expires April 14, 2017                [Page 58]


Internet-Draft                  PIM YANG                    October 2016


     /*
      * RPCs
      */

     /*
      * Notifications
      */
   }
   <CODE ENDS>



4.5.  PIM-BIDIR module


   <CODE BEGINS> file "ietf-pim-bidir@2016-09-22.yang"
   module ietf-pim-bidir {
     namespace "urn:ietf:params:xml:ns:yang:ietf-pim-bidir";
     prefix pim-bidir;

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

     import ietf-interfaces {
       prefix "if";
     }

     import ietf-routing {
       prefix "rt";
     }

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

     import ietf-pim-rp {
       prefix "pim-rp";
     }

     organization
       "IETF PIM Working Group";

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

        WG Chair: Stig Venaas



Liu, et al.              Expires April 14, 2017                [Page 59]


Internet-Draft                  PIM YANG                    October 2016


                  <mailto:stig@venaas.com>

        WG Chair: Mike McBride
                  <mailto:mmcbride7@gmail.com>

        Editor:   Xufeng Liu
                  <mailto:xliu@kuatrotech.com>

        Editor:   Pete McAllister
                  <mailto:pete.mcallister@metaswitch.com>

        Editor:   Anish Peter
                  <mailto:anishp@juniper.net>

        Editor:   Mahesh Sivakumar
                  <mailto:masivaku@cisco.com>

        Editor:   Yisong Liu
                  <mailto:liuyisong@huawei.com>

        Editor:   Fangwei Hu
                  <mailto:hu.fangwei@zte.com.cn>";

     description
       "The YANG module defines a BIDIR (Bidirectional) mode PIM
        model.";

     revision 2016-09-22 {
       description
         "Initial revision.";
       reference
         "RFC XXXX: A YANG Data Model for PIM";
     }

     /*
      * Features
      */
     feature intf-df-election {
       description
         "Support configuration of interface DF election.";
     }

     /*
      * Identities
      */
     identity bidir {
       base pim-rp:rp-mode;
       description



Liu, et al.              Expires April 14, 2017                [Page 60]


Internet-Draft                  PIM YANG                    October 2016


         "BIDIR (Bidirectional) mode.";
     }

     identity df-state {
       description
         "DF election state type.";
       reference
         "RFC5015: Bidirectional Protocol Independent Multicast
          (BIDIR-PIM).";
     }

     identity df-state-offer {
       base df-state;
       description
         "Initial election state.";
     }

     identity df-state-lose {
       base df-state;
       description
         "There either is a different election winner or that no
          router on the link has a path to the RPA.";
     }

     identity df-state-win {
       base df-state;
       description
         "The router is the acting DF without any contest.";
     }

     identity df-state-backoff {
       base df-state;
       description
         "The router is the acting DF but another router has made a
          bid to take over.";
     }

     /*
      * Typedefs
      */

     /*
      * Groupings
      */
     grouping df-election-container {
       description
         "Grouping that contains DF election attributes.";
       container df-election {



Liu, et al.              Expires April 14, 2017                [Page 61]


Internet-Draft                  PIM YANG                    October 2016


         if-feature intf-df-election;
         description
           "DF election attributes.";
         leaf offer-interval {
           type pim-base:timer-value;
           description
             "Offer interval specifies the interval between repeated
              DF election messages.";
         }
         leaf backoff-interval {
           type pim-base:timer-value;
           description
             "This is the interval that the acting DF waits between
              receiving a better DF Offer and sending the Pass message
              to transfer DF responsibility";
         }
         leaf offer-multiplier {
           type uint8;
           description
             "This is number of transmission attempts for DF election
              messages.
              When a DF election Offer or Winner message fails to be
              received, the message is retransmitted.
              The offer-multiplier sets the minimum number of DF
              election messages that must fail to be received for DF
              election to fail.
              If a router receives from a neighbor a better offer than
              its own, the router stops participating in the election
              for a period of offer-multiplier * offer-interval.
              Eventually, all routers except the best candidate stop
              sending Offer messages.";
         }
       } // df-election
     } // df-election-container

     grouping static-rp-bidir-container {
       description
         "Grouping that contains BIDIR attributes for static RP.";
       container bidir {
         presence
           "Indicate the support of BIDIR mode.";
         description
           "PIM BIDIR configuration data.";

         uses pim-rp:static-rp-attributes;
       } // bidir
     } // static-rp-bidir-container




Liu, et al.              Expires April 14, 2017                [Page 62]


Internet-Draft                  PIM YANG                    October 2016


     /*
      * Configuration data nodes
      */

     augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
       + "pim-base:address-family" {
       description "PIM BIDIR augmentation.";

       container bidir {
         presence "Present to enable BIDIR mode.";
         description
           "PIM BIDIR configuration data.";
       } // bidir
     } // augment

     augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
       + "pim-base:interfaces/pim-base:interface/"
       + "pim-base:address-family" {
       description "PIM BIDIR augmentation.";

       container bidir {
         presence "Present to enable BIDIR mode.";
         description
           "PIM BIDIR configuration data.";

         uses df-election-container;
       } // bidir
     } // augment

     augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
       + "pim-base:address-family/pim-rp:rp/"
       + "pim-rp:static-rp/pim-rp:ipv4-rp" {
       description "PIM BIDIR augmentation.";

       uses static-rp-bidir-container;
     } // augment

     augment "/rt:routing/rt:control-plane-protocols/pim-base:pim/"
       + "pim-base:address-family/pim-rp:rp/"
       + "pim-rp:static-rp/pim-rp:ipv6-rp" {
       description "PIM BIDIR augmentation.";

       uses static-rp-bidir-container;
     } // augment

     /*
      * Operational state data nodes
      */



Liu, et al.              Expires April 14, 2017                [Page 63]


Internet-Draft                  PIM YANG                    October 2016


     augment "/rt:routing-state/rt:control-plane-protocols/"
       + "pim-base:pim/pim-base:address-family" {
       description
         "PIM BIDIR state.";

       container bidir {
         description
           "PIM BIDIR state data.";
       } // bidir
     } // augment

     augment "/rt:routing-state/rt:control-plane-protocols/"
       + "pim-base:pim/pim-base:interfaces/pim-base:interface/"
       + "pim-base:address-family" {
       description "PIM BIDIR augmentation.";

       container bidir {
         presence "Present to enable BIDIR mode.";
         description
           "PIM BIDIR configuration data.";

         uses df-election-container;
       } // bidir
     } // augment

     augment "/rt:routing-state/rt:control-plane-protocols/"
       + "pim-base:pim/pim-base:address-family/pim-rp:rp/"
       + "pim-rp:static-rp/pim-rp:ipv4-rp" {
       description "PIM BIDIR augmentation.";

       uses static-rp-bidir-container;
     } // augment

     augment "/rt:routing-state/rt:control-plane-protocols/"
       + "pim-base:pim/pim-base:address-family/pim-rp:rp/"
       + "pim-rp:static-rp/pim-rp:ipv6-rp" {
       description "PIM BIDIR augmentation.";

       uses static-rp-bidir-container;
     } // augment

     augment "/rt:routing-state/rt:control-plane-protocols/"
       + "pim-base:pim/pim-base:address-family/pim-rp:rp" {
       description "PIM BIDIR augmentation.";

       container bidir {
         description
           "PIM BIDIR state data.";



Liu, et al.              Expires April 14, 2017                [Page 64]


Internet-Draft                  PIM YANG                    October 2016


         container df-election {
           description
             "DF election data.";
           list ipv4-rp {
             when "../../../../pim-base:address-family = 'rt:ipv4'" {
               description
                 "Only applicable to IPv4 address family.";
             }
             key "ipv4-address";
             description
               "A list of IPv4 RP addresses.";
             leaf ipv4-address {
               type inet:ipv4-address;
               description
                 "The address of the RP.";
             }
           } // ipv4-rp
           list ipv6-rp {
             when "../../../../pim-base:address-family = 'rt:ipv6'" {
               description
                 "Only applicable to IPv6 address family.";
             }
             key "ipv6-address";
             description
               "A list of IPv6 RP addresses.";
             leaf ipv6-address {
               type inet:ipv6-address;
               description
                 "The address of the RP.";
             }
           } // ipv6-rp
         } // df-election

         container interface-df-election {
           description
             "Interface DF election data.";
           list ipv4-rp {
             when "../../../../pim-base:address-family = 'rt:ipv4'" {
               description
                 "Only applicable to IPv4 address family.";
             }
             key "ipv4-address interface-name";
             description
               "A list of IPv4 RP addresses.";
             leaf ipv4-address {
               type inet:ipv4-address;
               description
                 "The address of the RP.";



Liu, et al.              Expires April 14, 2017                [Page 65]


Internet-Draft                  PIM YANG                    October 2016


             }
             leaf interface-name {
               type if:interface-ref;
               description
                 "The address of the RP.";
             }
             leaf df-address {
               type inet:ipv4-address;
               description
                 "DF address.";
             }
             leaf interface-state {
               type identityref {
                 base df-state;
               }
               description
                 "Interface state.";
             }
           } // ipv4-rp
           list ipv6-rp {
             when "../../../../pim-base:address-family = 'rt:ipv6'" {
               description
                 "Only applicable to IPv6 address family.";
             }
             key "ipv6-address interface-name";
             description
               "A list of IPv6 RP addresses.";
             leaf ipv6-address {
               type inet:ipv6-address;
               description
                 "The address of the RP.";
             }
             leaf interface-name {
               type if:interface-ref;
               description
                 "The address of the RP.";
             }
             leaf df-address {
               type inet:ipv6-address;
               description
                 "DF address.";
             }
             leaf interface-state {
               type identityref {
                 base df-state;
               }
               description
                 "Interface state.";



Liu, et al.              Expires April 14, 2017                [Page 66]


Internet-Draft                  PIM YANG                    October 2016


             }
           } // ipv6-rp
         } // interface-df-election
       }
     } // augment

     /*
      * RPCs
      */

     /*
      * Notifications
      */
   }
   <CODE ENDS>



5.  Security Considerations

   Configuration and state data defined in this document are designed to
   be accessed via a management protocol with secure transport layer,
   such as NETCONF [RFC6241].  The NETCONF access control model
   [RFC6536] provides the means to restrict access for specific users to
   a pre- configured subset of all available operations and contents.

   The models defined in this document contain a number of configuration
   data nodes that are writable, creatable, and deletable.  Unauthorised
   access to the configuration data can adversely affect the routing
   subsystem of both the local device and the network.  This may lead to
   network malfunctions, delivery of packets to inappropriate
   destinations and other problems.

6.  IANA Considerations

   RFC Ed.: In this section, replace all occurrences of 'XXXX' with the
   actual RFC number (and remove this note).

   This document registers the following namespace URIs in the IETF XML
   registry [RFC3688]:

    --------------------------------------------------------------------
    URI: urn:ietf:params:xml:ns:yang:ietf-pim-base
    Registrant Contact: The IESG.
    XML: N/A, the requested URI is an XML namespace.
    --------------------------------------------------------------------





Liu, et al.              Expires April 14, 2017                [Page 67]


Internet-Draft                  PIM YANG                    October 2016


    --------------------------------------------------------------------
    URI: urn:ietf:params:xml:ns:yang:ietf-pim-bidir
    Registrant Contact: The IESG.
    XML: N/A, the requested URI is an XML namespace.
    --------------------------------------------------------------------

    --------------------------------------------------------------------
    URI: urn:ietf:params:xml:ns:yang:ietf-pim-dm
    Registrant Contact: The IESG.
    XML: N/A, the requested URI is an XML namespace.
    --------------------------------------------------------------------

    --------------------------------------------------------------------
    URI: urn:ietf:params:xml:ns:yang:ietf-pim-rp
    Registrant Contact: The IESG.
    XML: N/A, the requested URI is an XML namespace.
    --------------------------------------------------------------------

    --------------------------------------------------------------------
    URI: urn:ietf:params:xml:ns:yang:ietf-pim-sm
    Registrant Contact: The IESG.
    XML: N/A, the requested URI is an XML namespace.
    --------------------------------------------------------------------

   This document registers the following YANG modules in the YANG Module
   Names registry [RFC6020]:

    --------------------------------------------------------------------
    name:         ietf-pim-base
    namespace:    urn:ietf:params:xml:ns:yang:ietf-pim-base
    prefix:       pim-base
    reference:    RFC XXXX
    --------------------------------------------------------------------

    --------------------------------------------------------------------
    name:         ietf-pim-bidir
    namespace:    urn:ietf:params:xml:ns:yang:ietf-pim-bidir
    prefix:       pim-bidir
    reference:    RFC XXXX
    --------------------------------------------------------------------

    --------------------------------------------------------------------
    name:         ietf-pim-dm
    namespace:    urn:ietf:params:xml:ns:yang:ietf-pim-dm
    prefix:       pim-dm
    reference:    RFC XXXX
    --------------------------------------------------------------------




Liu, et al.              Expires April 14, 2017                [Page 68]


Internet-Draft                  PIM YANG                    October 2016


    --------------------------------------------------------------------
    name:         ietf-pim-rp
    namespace:    urn:ietf:params:xml:ns:yang:ietf-pim-rp
    prefix:       pim-rp
    reference:    RFC XXXX
    --------------------------------------------------------------------

    --------------------------------------------------------------------
    name:         ietf-pim-sm
    namespace:    urn:ietf:params:xml:ns:yang:ietf-pim-sm
    prefix:       pim-sm
    reference:    RFC XXXX
    --------------------------------------------------------------------

7.  Acknowledgements

   The authors would like to thank Steve Baillargeon, Guo Feng, Robert
   Kebler, Tanmoy Kundu, and Stig Venaas for their valuable
   contributions.

8.  References

8.1.  Normative References

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

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

   [I-D.ietf-netmod-rfc6087bis]
              Bierman, A., "Guidelines for Authors and Reviewers of YANG
              Data Model Documents", draft-ietf-netmod-rfc6087bis-08
              (work in progress), September 2016.








Liu, et al.              Expires April 14, 2017                [Page 69]


Internet-Draft                  PIM YANG                    October 2016


8.2.  Informative References

   [RFC3569]  Bhattacharyya, S., Ed., "An Overview of Source-Specific
              Multicast (SSM)", RFC 3569, DOI 10.17487/RFC3569, July
              2003, <http://www.rfc-editor.org/info/rfc3569>.

   [RFC3973]  Adams, A., Nicholas, J., and W. Siadak, "Protocol
              Independent Multicast - Dense Mode (PIM-DM): Protocol
              Specification (Revised)", RFC 3973, DOI 10.17487/RFC3973,
              January 2005, <http://www.rfc-editor.org/info/rfc3973>.

   [RFC4610]  Farinacci, D. and Y. Cai, "Anycast-RP Using Protocol
              Independent Multicast (PIM)", RFC 4610,
              DOI 10.17487/RFC4610, August 2006,
              <http://www.rfc-editor.org/info/rfc4610>.

   [RFC5015]  Handley, M., Kouvelas, I., Speakman, T., and L. Vicisano,
              "Bidirectional Protocol Independent Multicast (BIDIR-
              PIM)", RFC 5015, DOI 10.17487/RFC5015, October 2007,
              <http://www.rfc-editor.org/info/rfc5015>.

   [RFC5059]  Bhaskar, N., Gall, A., Lingard, J., and S. Venaas,
              "Bootstrap Router (BSR) Mechanism for Protocol Independent
              Multicast (PIM)", RFC 5059, DOI 10.17487/RFC5059, January
              2008, <http://www.rfc-editor.org/info/rfc5059>.

   [RFC6087]  Bierman, A., "Guidelines for Authors and Reviewers of YANG
              Data Model Documents", RFC 6087, DOI 10.17487/RFC6087,
              January 2011, <http://www.rfc-editor.org/info/rfc6087>.

   [RFC7761]  Fenner, B., Handley, M., Holbrook, H., Kouvelas, I.,
              Parekh, R., Zhang, Z., and L. Zheng, "Protocol Independent
              Multicast - Sparse Mode (PIM-SM): Protocol Specification
              (Revised)", STD 83, RFC 7761, DOI 10.17487/RFC7761, March
              2016, <http://www.rfc-editor.org/info/rfc7761>.

   [I-D.ietf-netmod-routing-cfg]
              Lhotka, L. and A. Lindem, "A YANG Data Model for Routing
              Management", draft-ietf-netmod-routing-cfg-23 (work in
              progress), August 2016.

Authors' Addresses









Liu, et al.              Expires April 14, 2017                [Page 70]


Internet-Draft                  PIM YANG                    October 2016


   Xufeng Liu
   Kuatro Technologies
   8281 Greensboro Drive, Suite 200
   McLean  VA 22102
   USA

   EMail: xliu@kuatrotech.com


   Pete McAllister
   Metaswitch Networks
   100 Church Street
   Enfield  EN2 6BQ
   UK

   EMail: pete.mcallister@metaswitch.com


   Anish Peter
   Juniper Networks
   Electra, Exora Business Park
   Bangalore, KA  560103
   India

   EMail: anishp@juniper.net


   Mahesh Sivakumar
   Cisco Systems
   510 McCarthy Boulevard
   Milpitas, California
   USA

   EMail: masivaku@cisco.com


   Yisong Liu
   Huawei Technologies
   Huawei Administration Building
   Longgang, Guangdong  518129
   China

   EMail: liuyisong@huawei.com








Liu, et al.              Expires April 14, 2017                [Page 71]


Internet-Draft                  PIM YANG                    October 2016


   Fangwei Hu
   ZTE Corporation
   889 Bibo Road
   Shanghai, Shanghai  201203
   China

   EMail: hu.fangwei@zte.com.cn












































Liu, et al.              Expires April 14, 2017                [Page 72]