Re: [netmod] yang-push issue: draft-ietf-netconf-yang-push-12 and default values and RFC 6243

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 17 January 2018 20:44 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C27FD12E893 for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 12:44:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 DJAcy0oKpRqS for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 12:44:27 -0800 (PST)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6A335127136 for <netmod@ietf.org>; Wed, 17 Jan 2018 12:44:26 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 85259F89; Wed, 17 Jan 2018 21:44:25 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id 4OfTuPpJefjT; Wed, 17 Jan 2018 21:44:24 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Wed, 17 Jan 2018 21:44:25 +0100 (CET)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id 3AC6620147; Wed, 17 Jan 2018 21:44:25 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id wDARCzTRuweS; Wed, 17 Jan 2018 21:44:24 +0100 (CET)
Received: from elstar.local (unknown [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 4B47920144; Wed, 17 Jan 2018 21:44:24 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id D9DB94214522; Wed, 17 Jan 2018 21:44:22 +0100 (CET)
Date: Wed, 17 Jan 2018 21:44:22 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Alexander Clemm <alexander.clemm@huawei.com>
Cc: "Einar Nilsen-Nygaard (einarnn)" <einarnn@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20180117204422.bed7262buo3eshgv@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Alexander Clemm <alexander.clemm@huawei.com>, "Einar Nilsen-Nygaard (einarnn)" <einarnn@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <616655B0-2494-4E63-906C-290E4AA6C1DE@cisco.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0EADB6A6@sjceml521-mbx.china.huawei.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
X-Clacks-Overhead: GNU Terry Pratchett
Content-Transfer-Encoding: 8bit
In-Reply-To: <644DA50AFA8C314EA9BDDAC83BD38A2E0EADB6A6@sjceml521-mbx.china.huawei.com>
User-Agent: NeoMutt/20171215
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/CXW6In9y5J3qp262bafBmV1_1vk>
Subject: Re: [netmod] yang-push issue: draft-ietf-netconf-yang-push-12 and default values and RFC 6243
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Jan 2018 20:44:30 -0000

For what its worth, the NMDA documents for NETCONF and RESTCONF posted
today state that with-defaults only applies to non-operational
datastores and that values are always reported for operational
datastores, regardless whether they match any defaults.

/js

On Wed, Jan 17, 2018 at 07:09:52PM +0000, Alexander Clemm wrote:
> Hi Einar,
> 
> I suggest we add clarification that default values must be reported.  For on-change, clearly all changes need to be reported, whether the change is to a default value or not, everything else would be confusing.  Also for periodic, it would be confusing to leave out readings when a value is at default  versus not (the object might also have been deleted, etc).  So, I don’t think we need to add a flag or such that would allow to exclude defaults which appear to be of limited benefit to applications while introducing a lot more complexity to deal with corner cases such as the ones described.
> 
> --- Alex
> 
> From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of Einar Nilsen-Nygaard (einarnn)
> Sent: Wednesday, January 17, 2018 5:27 AM
> To: netmod@ietf.org
> Subject: [netmod] yang-push issue: draft-ietf-netconf-yang-push-12 and default values and RFC 6243
> 
> All,
> 
> In discussions with some customers and on implementation, the issue of defaults has come up. For get/get-config we have the “with defaults capability” defined in RFC 6243 that allows us to control the behaviour with respect to defaults. To remind folk with an example, we could have:
> 
>     <rpc message-id="101"
>          xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
>       <get>
>         <filter type="subtree">
>           <interfaces xmlns="http://example.com/ns/interfaces"/>
>         </filter>
>         <with-defaults
>          xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-with-defaults">
>           report-all
>         </with-defaults>
>       </get>
>     </rpc>
> 
> The addition of the “with-defaults” tag and value determines the behavior of the get in this example (taken from A.3.1 in RFC 6243<https://tools.ietf.org/html/rfc6243#page-22>).
> 
> It strikes me that we need to have a similar mechanism for telemetry, allowing a user to specify, for example, that for a periodic subscription on a subtree, they also wish default values to be reported. I think at minimum we need clarification on this, as section 3.7 of draft-ietf-netconf-yang-push-12 currently says:
> 
> The content of the update record is equivalent to the contents that would be obtained had the same data been explicitly retrieved using e.g., a NETCONF "get" operation, with the same filters applied.
> 
> This text can currently only refer to a “get” as defined in RFC 6241 as there is no reference to RFC 6243 as yet. I think we need to address this issue now to define expectations, even if it is to explicitly not consider an RFC 6243-like mechanism or to say that we only consider explicitly set values in telemetry, or…
> 
> Cheers,
> 
> Einar
> 

> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod


-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>