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

Robert Wilton <rwilton@cisco.com> Wed, 17 January 2018 22:43 UTC

Return-Path: <rwilton@cisco.com>
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 3445312D875 for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 14:43:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.509
X-Spam-Level:
X-Spam-Status: No, score=-14.509 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, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 KSicrKPu9QiJ for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 14:43:20 -0800 (PST)
Received: from aer-iport-1.cisco.com (aer-iport-1.cisco.com [173.38.203.51]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6C9D612EAA7 for <netmod@ietf.org>; Wed, 17 Jan 2018 14:43:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=14756; q=dns/txt; s=iport; t=1516228999; x=1517438599; h=subject:to:references:from:message-id:date:mime-version: in-reply-to; bh=JXpJ0iHVpul5TUmbRSzekHWEsSFLb+snKbXxzz4rHKE=; b=diT2Z9cOx+qP8RBuVOnRY+kV0yQmEjHy2w9LFYdPgZcFG+3fCNgjGr/g wmJdMjInWrXBMadeClMgMr1cycEADZMzFTe3uDGEkhvZbNyLe0EG5TPLw 43wZerJeQhPxF5AzzgnAzJi1TLUXG+nGd6vjFhfPRVBidvVUloa3qhg8z w=;
X-IronPort-AV: E=Sophos;i="5.46,374,1511827200"; d="scan'208,217";a="1509293"
Received: from aer-iport-nat.cisco.com (HELO aer-core-3.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2018 22:43:17 +0000
Received: from [10.61.199.10] ([10.61.199.10]) by aer-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id w0HMhHkV002268; Wed, 17 Jan 2018 22:43:17 GMT
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>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <4edb6032-c632-5a33-7c0a-93ed5551f187@cisco.com>
Date: Wed, 17 Jan 2018 22:43:17 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <644DA50AFA8C314EA9BDDAC83BD38A2E0EADB6A6@sjceml521-mbx.china.huawei.com>
Content-Type: multipart/alternative; boundary="------------65A5B14ECA33FC56A3EC1495"
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/bMVVqY3zgmAKWJdMZ4Bia7JIrZI>
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 22:43:22 -0000

HI Alex,

Note, that when it comes to the NMDA <operational> datastore there are 
no default values.  Only the values that are "in use".

Thanks,
Rob


On 17/01/2018 19:09, 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