Re: [yang-doctors] [RTG-DIR] RtgDir review:

"Acee Lindem (acee)" <> Fri, 09 February 2018 14:18 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id CD81B126579; Fri, 9 Feb 2018 06:18:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -14.53
X-Spam-Status: No, score=-14.53 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (1024-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 8G2gockdGe8L; Fri, 9 Feb 2018 06:17:58 -0800 (PST)
Received: from ( []) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 54F1E129515; Fri, 9 Feb 2018 06:17:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;;; l=68560; q=dns/txt; s=iport; t=1518185874; x=1519395474; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=QgKt7u7sfVf6oy9NQtxf21VcNbn5fFTe928FI6lQaCs=; b=JiEiib1XifEZqtWMvQkRDzRX+RqTiJU4vkEirI7VXDSEONXbhXZJx1yq +L+eInBcGpIRrfhKjhYZcZCwh0PJR6m4j4bd11hw0sEdacYug2kCWSL0O RgTCWLse6CKWc2+bNCWqcMM7e2h4AK2whiSUvFaRJoBlQ2HsUFaMah/dm 8=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AOAQDKrH1a/40NJK1TChkBAQEBAQEBA?= =?us-ascii?q?QEBAQEHAQEBAQGCWXhmcCgKg1uKJI4lgVsnl1eCGAojhRgCGoIdVBgBAgEBAQE?= =?us-ascii?q?BAQJrKIUjAQEBBCMKTBACAQgRAwECIQEJAgICMB0IAQEEAQ0FiVFkEK5tgieIe?= =?us-ascii?q?IIKAQEBAQEBAQEBAQEBAQEBAQEBAQEBHYR8ghWDPykMgnmDJAsCgUZLgncxgjQ?= =?us-ascii?q?FimMOgQGIT49rCQKIHY1igh5ngR6EI4t5jgCJZgIRGQGBOwEPEDmBUHAVPSoBg?= =?us-ascii?q?hsJhG54AYtegRcBAQE?=
X-IronPort-AV: E=Sophos;i="5.46,483,1511827200"; d="scan'208,217";a="352258977"
Received: from ([]) by with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Feb 2018 14:17:53 +0000
Received: from ( []) by (8.14.5/8.14.5) with ESMTP id w19EHqDI010902 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 9 Feb 2018 14:17:53 GMT
Received: from ( by ( with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 9 Feb 2018 09:17:52 -0500
Received: from ([]) by ([]) with mapi id 15.00.1320.000; Fri, 9 Feb 2018 09:17:52 -0500
From: "Acee Lindem (acee)" <>
To: Ravi Singh <>, "" <>
CC: "" <>, "" <>, "" <>, YANG Doctors <>
Thread-Topic: [RTG-DIR] RtgDir review:
Thread-Index: AdOhqoIHQ8/tn0ZITIGGnYvKorDfkAABkKqA
Date: Fri, 9 Feb 2018 14:17:51 +0000
Message-ID: <>
References: <>
In-Reply-To: <>
Accept-Language: en-US
Content-Language: en-US
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: []
Content-Type: multipart/alternative; boundary="_000_FF84714E7A7D49838DCB46E4E538E58Aciscocom_"
MIME-Version: 1.0
Archived-At: <>
Subject: Re: [yang-doctors] [RTG-DIR] RtgDir review:
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Email list of the yang-doctors directorate <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Fri, 09 Feb 2018 14:18:01 -0000

+yang doctors

Hi Ravi,
 submodules have proved to be unwieldy and offer little advantage over groupings. I don’t know that we want to crave this model up into submodules. I’ve copied the YANG doctors to assure this is the consensus as there have been submodule debates on the NETMOD list in the past.


From: rtg-dir <> on behalf of Ravi Singh <>
Date: Friday, February 9, 2018 at 8:36 AM
To: "" <>
Cc: Routing Directorate <>rg>, "" <>rg>, "" <>
Subject: [RTG-DIR] RtgDir review:


I have been selected as the Routing Directorate reviewer for this draft. The Routing Directorate seeks to review all routing or routing-related drafts as they pass through IETF last call and IESG review, and sometimes on special request. The purpose of the review is to provide assistance to the Routing ADs. For more information about the Routing Directorate, please see ​

Although these comments are primarily for the use of the Routing ADs, it would be helpful if you could consider them along with any other IETF Last Call comments that you receive, and strive to resolve them through discussion or by updating the draft.

Document: draft-ietf-bfd-yang-09
Reviewer: Ravi Singh
Review Date: 02/09/2018
Intended Status: Proposed standard

Summary: there is more commonality of info in the new modules listed in sections 2.6-2.10 than there are differences. So, I think it would be worthwhile looking at sub-abstracting things to avoid repetitive fields individually listed in the modules of section 2.6-2.10.

I've reviewed the draft. Most sections look good.
My comments below pertain to 2.6 to 2.10.
Section 2 says "Since BFD is used for liveliness detection of various forwarding
   paths, there is no uniform key to identify a BFD session.  So the BFD
   data model is split in multiple YANG modules where each module
   corresponds to one type of forwarding path. "
That is ok. However, this is causing too much repetition of info across the multiple modules.
There appears to be scope for modularization to not repeat the individual fields in describing them in every module that uses them.
Instead sub-modules should be considered & listed in one section which just augment the newly created modules of this draft wherever currently used.

Separate sub-modules could be considered for:
        +--ro session-statistics
        |  +--ro session-count?              uint32
        |  +--ro session-up-count?           uint32
        |  +--ro session-down-count?         uint32
        |  +--ro session-admin-down-count?   uint32

           +--rw source-addr                 inet:ip-address
           +--rw dest-addr                   inet:ip-address
           +--rw local-multiplier?           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 demand-enabled?             boolean {demand-mode}?
           +--rw admin-down?                 boolean
           +--rw authentication! {authentication}?
           |  +--rw key-chain?    kc:key-chain-ref
           |  +--rw meticulous?   Boolean

              +--ro path-type?              identityref
              +--ro ip-encapsulation?       boolean
              +--ro local-discriminator?    discriminator
              +--ro remote-discriminator?   discriminator
              +--ro remote-multiplier?      multiplier
              +--ro demand-capability?      boolean {demand-mode}?
              +--ro source-port?            inet:port-number
              +--ro dest-port?              inet:port-number
              +--ro session-running
              |  +--ro session-index?                uint32
              |  +--ro local-state?                  state
              |  +--ro remote-state?                 state
              |  +--ro local-diagnostic?
              |  |       iana-bfd-types:diagnostic
              |  +--ro remote-diagnostic?
              |  |       iana-bfd-types:diagnostic
              |  +--ro remote-authenticated?         boolean
              |  +--ro remote-authentication-type?
              |  |       iana-bfd-types:auth-type {authentication}?
              |  +--ro detection-mode?               enumeration
              |  +--ro negotiated-tx-interval?       uint32
              |  +--ro negotiated-rx-interval?       uint32
              |  +--ro detection-time?               uint32
              |  +--ro echo-tx-interval-in-use?      uint32
              |          {echo-mode}?
              +--ro sesssion-statistics
                 +--ro create-time?            yang:date-and-time
                 +--ro last-down-time?         yang:date-and-time
                 +--ro last-up-time?           yang:date-and-time
                 +--ro down-count?             uint32
                 +--ro admin-down-count?       uint32
                 +--ro receive-packet-count?   uint64
                 +--ro send-packet-count?      uint64
                 +--ro receive-bad-packet?     uint64
                 +--ro send-failed-packet?     Uint64

           +--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


              +--ro sesssion-statistics
              |  +--ro create-time?            yang:date-and-time
              |  +--ro last-down-time?         yang:date-and-time
              |  +--ro last-up-time?           yang:date-and-time
              |  +--ro down-count?             uint32
              |  +--ro admin-down-count?       uint32
              |  +--ro receive-packet-count?   uint64
              |  +--ro send-packet-count?      uint64
              |  +--ro receive-bad-packet?     uint64
              |  +--ro send-failed-packet?     uint64

F.       In notifications:
        +--ro local-discr?                 discriminator
        +--ro remote-discr?                discriminator
        +--ro new-state?                   state
        +--ro state-change-reason?         iana-bfd-types:diagnostic
        +--ro time-of-last-state-change?   yang:date-and-time
        +--ro dest-addr?                   inet:ip-address
        +--ro source-addr?                 inet:ip-address
        +--ro session-index?               uint32
        +--ro path-type?                   identityref

Separate sub-modules for the above could be used to enable cleaner abstractions. The same could augment the modules of sections 2.6-2.10.