Re: I-D Action: draft-ietf-bfd-yang-06.txt

Mahesh Jethanandani <mjethanandani@gmail.com> Wed, 02 August 2017 00:51 UTC

Return-Path: <mjethanandani@gmail.com>
X-Original-To: rtg-bfd@ietfa.amsl.com
Delivered-To: rtg-bfd@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5DD9C131C8C; Tue, 1 Aug 2017 17:51:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sbgLdAZbK5Ze; Tue, 1 Aug 2017 17:51:35 -0700 (PDT)
Received: from mail-oi0-x243.google.com (mail-oi0-x243.google.com [IPv6:2607:f8b0:4003:c06::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A5415129B10; Tue, 1 Aug 2017 17:51:35 -0700 (PDT)
Received: by mail-oi0-x243.google.com with SMTP id j194so4164590oib.4; Tue, 01 Aug 2017 17:51:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=F7b7be01rvjw/5v1m+DC4qOi1PAIPzc2+CVRT+HGUUQ=; b=Iw5vaSiWfrLlOR54gozEX/zm7pfmVXzUhq0J4Zw/a46FwotpxG09X+8HfeMrsezHeD Clmfa1HA+kywlT+8+PkH+4IgszeJnzuhQRvGb760pHhhbhhDMpILi/2OAjCzI4deLI7X rXTWUgkpn/CHz3dDZWM4JfOdOnlI45D4m/MZwDx7lFyZYA8hm5larT0X3e+8NZkc8wZG 1qrgwWUkKk4AxpuwT1rinjNmLSDHe7DnVeLFekX4dTBXrcbU9E9s2bChydq5r778gewZ IRp4XKn57MUdkBgkz+ZuyDeBeZ53xZs6rnLG/OS4Fi8XnkLxElHbTb1zuTT0QtxAMP6X 4JJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=F7b7be01rvjw/5v1m+DC4qOi1PAIPzc2+CVRT+HGUUQ=; b=DkAa9e2ANoXJicOoQMkIC3RCzQmXAFvVWwR/dz8n1fsVuZpMhEu2/KedCgg4pVetiu NGi25D7WZrLVJHw/t1pFsVFj3n3bscYjZs3k/jg1k21FbhXjSxZa5VPQ/iXizUQLm4ZP dgI3WUq3q92CCZO+OKVN/QsiMLut7ZGgI/O/Klb6YD5YpxlubzqUuBrN0s9NJ5Ef7K+I WGPxP3xQDccq8/2NdQC4BJjBy8x1BmzRLIsW46f9Io2qnxeeSmweD4GYbrpwDuGWSbEo HfJZgyqH/qhjp4VqJ67/BhuX0DTqdhd6bIPgPvE7Z+IiqgaFlcm8MRirKnrs5+5EW2fS k9Zw==
X-Gm-Message-State: AIVw1104ZilF3Qw064V2Oj3bD+KmltFMFKTHV9QN5EjUvQw9kGxmRBru LxLv2vfTepcDIA==
X-Received: by 10.202.204.149 with SMTP id c143mr17302718oig.11.1501635095004; Tue, 01 Aug 2017 17:51:35 -0700 (PDT)
Received: from printer-xx-69a0ea.cisco.com (printer-xx-69a0ea.cisco.com. [128.107.151.25]) by smtp.gmail.com with ESMTPSA id p7sm5938906oif.33.2017.08.01.17.51.32 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Aug 2017 17:51:33 -0700 (PDT)
Content-Type: multipart/alternative; boundary="Apple-Mail=_62E10BD5-6AFE-43ED-BAAE-093EDE42CBE4"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Subject: Re: I-D Action: draft-ietf-bfd-yang-06.txt
From: Mahesh Jethanandani <mjethanandani@gmail.com>
In-Reply-To: <20170801163340.GD24942@pfrc.org>
Date: Tue, 01 Aug 2017 17:52:01 -0700
Cc: Yingzhen Qu <yingzhen.qu@huawei.com>, "Acee Lindem (acee)" <acee@cisco.com>, "rtg-bfd@ietf.org" <rtg-bfd@ietf.org>, "draft-ietf-bfd-yang@ietf.org" <draft-ietf-bfd-yang@ietf.org>, "draft-ietf-ospf-yang@ietf.org" <draft-ietf-ospf-yang@ietf.org>, Reshad Rahman <rrahman@cisco.com>
Message-Id: <288504C7-7F37-4547-8950-9375B1F10C22@gmail.com>
References: <C71CC69E-DAE4-49E0-983A-9B2EE9B4CD46@gmail.com> <D5A12762.2D4DB5%rrahman@cisco.com> <E4E310A2-A79C-403E-B68E-A39B76E2C5E0@gmail.com> <773E4FFC-D66A-49E5-A03A-58B7DBA82D90@gmail.com> <20170731170550.GO24942@pfrc.org> <BAF4C9E6-ED02-4E25-89DD-2FA181AF3B72@gmail.com> <3637B198-8F82-4A85-A4A1-4383AF98088D@pfrc.org> <D26CB257-E4B2-42FA-940E-BF77C8BC1751@gmail.com> <20170801144129.GC24942@pfrc.org> <F319C69C-3A4E-4C5C-ADA4-37BDFD97E91A@gmail.com> <20170801163340.GD24942@pfrc.org>
To: Jeffrey Haas <jhaas@pfrc.org>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-bfd/T9ETVXeY5o3eVpKJSl4i90fMaZ0>
X-BeenThere: rtg-bfd@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "RTG Area: Bidirectional Forwarding Detection DT" <rtg-bfd.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-bfd>, <mailto:rtg-bfd-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtg-bfd/>
List-Post: <mailto:rtg-bfd@ietf.org>
List-Help: <mailto:rtg-bfd-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-bfd>, <mailto:rtg-bfd-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 02 Aug 2017 00:51:37 -0000

> On Aug 1, 2017, at 9:33 AM, Jeffrey Haas <jhaas@pfrc.org> wrote:
> 
> On Tue, Aug 01, 2017 at 08:33:38AM -0700, Mahesh Jethanandani wrote:
>>> I'm ambivalent.  This depends really on real world behavior.
>>> 
>>> As we saw from some brief googling yesterday on Cisco IOS/IOS-XR docs, that
>>> implementation doesn't appear to expose echo intervals as a separably
>>> configurable item.  It did, however, expose a boolean to disable echo.
>> 
>> True. But the standard seems to imply the ability to configure echo values separately. Worst case implementations would have to set both the values to be the same. 
> 
> The protocol does. But that doesn't mean the config model should.

Ok. I have removed the separate configuration values for tx/rx min intervals for echo model. Now, there is only one set of tx/rx values.

> 
>>> This minimally suggests that there should be a "use echo mode" flag.
>> 
>> Will add a boolean to enable/disable echo mode.
> 
> I think that's a good start.

This is what we have now in client-cfg-parms

    container echo-mode {
      if-feature echo-mode;
      leaf echo-mode-enabled {
        type boolean;
        default false;
        description
          "Should be set to true if echo-mode is enabled for this
           session. Set to false by default because defining the
           feature should not enable echo-mode by default.";
      }
    }


Yingzhen, there is one other change that you should be aware of. There is no longer a choice between configuring tx/rx values and a single value for both. Even if the values are the same for tx and rx, you need to configure each of them explicitly. 

I will be uploading the changes shortly.

Thanks.

> 
>>> The remaining homework is to figure out whether we should expose
>>> configuration state for echo directly in this version of the yang.
>> 
>> Per NMDA guidelines, unless the configuration state values are different from config, we do not need to model them as separate attributes.
> 
> Right.  So, again need to check real world implementations.
> 
> If it's the case that implementations supporting echo only use a single set
> of the intervals for echo or not, then we only need that in the model.  
> 
> If it becomes the case that an implementation supports echo intervals
> differently, a vendor *could* augment the model to support such values.
> However, since this is imported via grouping, it means that the augmentation
> has to be done in each module that uses the grouping.
> 
> I hate yang grouping augmentation rules. :-P
> 
> -- Jeff

Mahesh Jethanandani
mjethanandani@gmail.com