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

"Eric Voit (evoit)" <evoit@cisco.com> Tue, 16 May 2017 21:34 UTC

Return-Path: <evoit@cisco.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 8104E12955A; Tue, 16 May 2017 14:34:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.521
X-Spam-Level:
X-Spam-Status: No, score=-14.521 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, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 XDuiikG3DFSm; Tue, 16 May 2017 14:33:57 -0700 (PDT)
Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 027D112EC3E; Tue, 16 May 2017 14:28:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=20176; q=dns/txt; s=iport; t=1494970140; x=1496179740; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=zWJRNjwrhVo83kizFbBsSvCtnFkB/d5bHqTBhcvlPMg=; b=Fnbp08OnLDQFhd+xKoWmhEJ8vQiwK7KsFtxU4bHlueDCDxlULMwuBN72 HK5tZCU68iPlMxObn+whpulnpEYaIZeJKu51HA7WS23ayk0brES+7MmqG OgWp/P7R36kxCqVPPL6uAXCXR/lmV8tsxC+i5oTgNRiwsheOV60KRPLvT Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CHAwAPbhtZ/4QNJK1SChkBAQEBAQEBAQEBAQcBAQEBAYJuZ2KBDAeDZYoYkWSQPYU4gg8uhTw6AhqFNT8YAQIBAQEBAQEBayiFGAEBAQECASMKTAULAgEIFQ8BGgMCAgIwFBECBA4FCIoTCA6sRIImiwYBAQEBAQEBAQEBAQEBAQEBAQEBAQEYBYZfgV6DG4Q7XoJcgkEfBZ4KAYcbi3aRdJRCAR84gQpwFYU9HIFjdgWHMYENAQEB
X-IronPort-AV: E=Sophos;i="5.38,350,1491264000"; d="scan'208,217";a="422426281"
Received: from alln-core-10.cisco.com ([173.36.13.132]) by alln-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 16 May 2017 21:28:59 +0000
Received: from XCH-RTP-012.cisco.com (xch-rtp-012.cisco.com [64.101.220.152]) by alln-core-10.cisco.com (8.14.5/8.14.5) with ESMTP id v4GLSwX6012034 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 16 May 2017 21:28:59 GMT
Received: from xch-rtp-013.cisco.com (64.101.220.153) by XCH-RTP-012.cisco.com (64.101.220.152) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 16 May 2017 17:28:58 -0400
Received: from xch-rtp-013.cisco.com ([64.101.220.153]) by XCH-RTP-013.cisco.com ([64.101.220.153]) with mapi id 15.00.1210.000; Tue, 16 May 2017 17:28:58 -0400
From: "Eric Voit (evoit)" <evoit@cisco.com>
To: Andy Bierman <andy@yumaworks.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>
Thread-Topic: Yangdoctors early review of draft-ietf-netconf-yang-push-06
Thread-Index: AQHSzkE9C/OO0NmevUiBbCVmGdSZbKH3ao5wgABQnAD//725UA==
Date: Tue, 16 May 2017 21:28:57 +0000
Message-ID: <df333dcd802a427dabdebbb506d550a0@XCH-RTP-013.cisco.com>
References: <149493827145.11944.9758454721784881844@ietfa.amsl.com> <c955ae937b4142ac949c6f7876c40cc0@XCH-RTP-013.cisco.com> <CABCOCHQg9vPCKdmbqbzWf2CM86b0LBS-XM9jARcbCpNDixAkPg@mail.gmail.com>
In-Reply-To: <CABCOCHQg9vPCKdmbqbzWf2CM86b0LBS-XM9jARcbCpNDixAkPg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.118.56.228]
Content-Type: multipart/alternative; boundary="_000_df333dcd802a427dabdebbb506d550a0XCHRTP013ciscocom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/J5gMnq5dCVkClT_XopgtHRB8kJQ>
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:34:01 -0000

From: Andy Bierman, May 16, 2017 5:21 PM

On Tue, May 16, 2017 at 1:53 PM, Eric Voit (evoit) <evoit@cisco.com<mailto: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.

<evoit> makes sense.  The reference to RFC 6087 is a good one

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.

<evoit> Yes.  We always are aiming with equivalence to <get>

New filters  should be defined if they are really needed.

<evoit> Over time, new filter types can be augmented in as identities.  Again, <get> equivalence is the goal.  Certainly adding them into the model here is the easy part vs dimensioning what a platform can support.

Eric

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/b891cc3dd3a4547f9eddd83882e9872bc2066c6d

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/ ??