Re: [yang-doctors] Yangdoctors early review of draft-ietf-netconf-yang-push-06

Andy Bierman <andy@yumaworks.com> Tue, 16 May 2017 21:25 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EE9C912FC15 for <yang-doctors@ietfa.amsl.com>; Tue, 16 May 2017 14:25:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 6WRPFFNupWQw for <yang-doctors@ietfa.amsl.com>; Tue, 16 May 2017 14:25:50 -0700 (PDT)
Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 E725D1293F4 for <yang-doctors@ietf.org>; Tue, 16 May 2017 14:21:00 -0700 (PDT)
Received: by mail-wm0-x230.google.com with SMTP id b84so146238721wmh.0 for <yang-doctors@ietf.org>; Tue, 16 May 2017 14:21:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=QJBPGGScf4Hl/T9vJnxyao+xYgIba6mCsemEPpFz1mg=; b=AQzBt5tMELZZjuX422uXmLoc/MTudaXKMe8He29SzDGGF+gxLlE+oC5OKpz4KCpfbV jyzS+2AVi95md7G/H+FQ9gQTJn5F6tLJuc5OPfilE9vG1FkbnlG2q32nR7syZhLxTHlC KeKK3aF//kh9p79zN2Fay/qtF33djeFMR3Yoz3xetFcToeuWffpeL9rO3gdlV/V7Vz+S sc6ZDqKaMMrTIyp1yeUagcQ2sS4aN//K6Vq/6GtlkLD6acBnhthnhzqalgglcgO/vEmy eB/+ehLNeLFJnv94jI/ZZKdk7HRItWxaaJOCWY3XkksCzSnEmr1Bbo0ODBNgWG8VpaHM BMXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=QJBPGGScf4Hl/T9vJnxyao+xYgIba6mCsemEPpFz1mg=; b=K/H+FvxfpiUHQAdUuGX+IFhBpD4U272fv1KUIbMbvC+R7lF9DWo0LHZqoeLLS7o2l4 fAQLbJedFUBTUW5igKrqmbbpp3RZOi6659dgxLFex3e3YLeMiTUAgT5kD+uWY6iwelrB fF1Xn8EKOag4TDtXWHo33jqoW4RES+9cDqamcUdPxpr6KdCSmo9lvwZfSi603hatGSf2 VoBnnSZHby3G/WxVeTA1mS95JvYfM4wftcgrosOUih+EYcym1C0NDff1+u5RhFs0uWbS Yd1H0GvP36RkrjYXGNoVqP9dqEq9bbOLsPF+tN3BXLrqKgkf1xQu1oe0u9+g/OVGpcU+ XueQ==
X-Gm-Message-State: AODbwcCoS4E/0VyrbAVS7jnLj0gsEF4mbfm8KoS7b/tR0IQ7pmHNB/1F ANPnxkoIBqYVCYHn27lLm2zyflKcOwC0
X-Received: by 10.28.142.70 with SMTP id q67mr308055wmd.99.1494969659375; Tue, 16 May 2017 14:20:59 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.155.2 with HTTP; Tue, 16 May 2017 14:20:58 -0700 (PDT)
In-Reply-To: <c955ae937b4142ac949c6f7876c40cc0@XCH-RTP-013.cisco.com>
References: <149493827145.11944.9758454721784881844@ietfa.amsl.com> <c955ae937b4142ac949c6f7876c40cc0@XCH-RTP-013.cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 16 May 2017 14:20:58 -0700
Message-ID: <CABCOCHQg9vPCKdmbqbzWf2CM86b0LBS-XM9jARcbCpNDixAkPg@mail.gmail.com>
To: "Eric Voit (evoit)" <evoit@cisco.com>
Cc: Bert Wijnen <bwietf@bwijnen.net>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "draft-ietf-netconf-yang-push.all@ietf.org" <draft-ietf-netconf-yang-push.all@ietf.org>, "ietf@ietf.org" <ietf@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>, "Waltermire, David A. (Fed)" <david.waltermire@nist.gov>
Content-Type: multipart/alternative; boundary="001a114429847f6ee5054faabf09"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/hlVxCpLAhxqNGFZImvPFpM3D4X4>
Subject: Re: [yang-doctors] Yangdoctors early review of draft-ietf-netconf-yang-push-06
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 16 May 2017 21:25:52 -0000

On Tue, May 16, 2017 at 1:53 PM, Eric Voit (evoit) <evoit@cisco.com> wrote:

> Hi Bert,
>
> Thanks very much for the review.  Some thoughts in-line...
>
> > From: Bert Wijnen, May 16, 2017 8:38 AM
> >
> > Reviewer: Bert Wijnen
> > Review result: On the Right Track
> >
> >
> > - last para of sect 3.5.
> >   This seems to me to make it difficult to create interoperable
> >   implementations. Or is there a way for a client to figure out what
> >   is or is not support, other than tryal and error?
>
> Minimal XPATH syntax support is really a subscription independent issue.
> At this time, I am not aware of anyone attempting to constrain which XPATH
> capabilities should be the minimum set for the industry.  One of the
> reasons is that going with a minimum common denominator for a high volume
> information set  (like routing changes) might constrain the availability of
> low volume, high value filters (like configuration changes).     I would
> very much welcome someone who wanted to attempt work in this area.   As
> David Waltermire said to me on this topic today, it might be possible to
> identify a minimum XPATH filter capability set for various roles in the
> network element.  But this is non-trivial work.
>
> For now, I am assuming any vendor will be able to articulate what the
> syntax capabilities are for their platforms.  And they can do outside the
> standards arena.  A good way to do this would be to pre-populate example
> filters in the "filters" objects.
>
>

This is not going to be interoperable or easy to debug to find out what a
vendor supports.
Sec 3.5, para 3 & 4 about XPath implementations should be replaced. The
text should say a node-set result
MUST be generated or the result is the empty node-set.
Some XPath constructs SHOULD be avoided, as specified in sec 4.5 of RFC
6087.

Filters need to be well-defined so clients can actually use them.
The same syntax as a NETCONF <get> XPath filter should be used here.
New filters  should be defined if they are really needed.


Andy

> - page 41:
> >
> >      /* YANG Parser Pyang crashing on the following syntax below
> >
> >   So does the definition get skipped? Or what needs to happen here?
>
> There is a coming in pyang 1.7.2 which fixes the bug...
> https://github.com/mbj4668/pyang/issues/300
>
> See
> https://github.com/mbj4668/pyang/commit/b891cc3dd3a4547f9eddd83882e987
> 2bc2066c6d
>
> All we need to do is await the new version.
>
> > Consistency
> >
> > - last bullet on page 7 talks about "YANG subtrees". I do not see that
> term
> >   in netconf or yang documents. Those just talk about "subtrees".
> > Maybe I am
> >   not looking good enough?
>
> Will remove the word YANG
>
> > - top of page 8 I see the words "xpath", "Xpath" and "XPath"
> >   is there a difference?
>
> No.  Will fix.
>
> > Nits
>
> Nice catches.  Will fix the items below.
>
> Eric
>
> > - you may want to check the reference/citation occurrences of [subscribe]
> >   at several places it points to
> >      draft-ietf-netconf-yang-push-06#ref-subscribe
> >   whereas I think it intends to point to the [subscribe] in the
> >   normative references section
> > - first bullet on page 5:
> >      Enhancements to filters. Specifically the filter MUST at identify at
> >      least one targeted yang
> >    s/at//  -- the first "at" seems superfluous
> >    plus, you are using capitalized MUST with out reference/citation of
> >    RFC2119
> > - page 36:
> >
> >     leaf dependency {
> >       type sn:subscription-id;
> >       description
> >         "Provides the Subscription ID of a parent subscription which
> >          has absolute priority should that parent have push updates
> >          ready to egress the publisher. In other words, there should be
> >          no streaming of objects from the current subscription if of
> >          the parent has something ready to push.";
> >       reference
> >         "RFC-7540, section 5.3.1";
> >     }
> >
> >      s/if of/if/ ??
>
>