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

"Einar Nilsen-Nygaard (einarnn)" <einarnn@cisco.com> Wed, 17 January 2018 21:17 UTC

Return-Path: <einarnn@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 D3E9012D82E for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 13:17:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.53
X-Spam-Level:
X-Spam-Status: No, score=-14.53 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 VKC5XPqMrD_d for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 13:17:27 -0800 (PST)
Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C4937129C6F for <netmod@ietf.org>; Wed, 17 Jan 2018 13:17:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5686; q=dns/txt; s=iport; t=1516223846; x=1517433446; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=zOrKx10mCiMsdy4Gy/nfU9fcTxTZhMxXwYtGJyGKrUU=; b=fzGtBNBBwt2eP02IZ8L6FYEXsrB/gzovpMHuh1pxx8ydTDPd7UAMeDOI 0A5tQNFDYIhXvyVqQpMGAUJcm82iYaEoenoA03xszFRxAUanj87Qc2aTj mncn+8V/G60mBmESxkwcchVa2GyAwYiWYZV4UOSaU5tDiwsawpS2qlXWK o=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AjBABKvF9a/4sNJK1ZAxkBAQEBAQEBAQEBAQEHAQEBAQGDETBmdCcHhAyZAoFbJ5lEChgLhElPAhqESkMUAQEBAQEBAQEBayiFIwEBAQMBAQEhEToLBQkCAgEIDgIBBAEBAQICCRoDAgICGQwLFAEICAIEDgWKKwgQpiuCJ4lLAQEBAQEBAQEBAQEBAQEBAQEBAQEBHQWBCoMtghWDQCkMgnmBSYFbCwEBAgGBRyYBFwomglAxgjQFo2wCiAyNRYIZZ5ETimuCWIYkgxsCERkBgTsBNiKBUG8VPSoBgX8JNoIhKYFOeIoFgTSBFwEBAQ
X-IronPort-AV: E=Sophos;i="5.46,374,1511827200"; d="scan'208";a="126593715"
Received: from alln-core-6.cisco.com ([173.36.13.139]) by rcdn-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Jan 2018 21:17:25 +0000
Received: from XCH-RTP-007.cisco.com (xch-rtp-007.cisco.com [64.101.220.147]) by alln-core-6.cisco.com (8.14.5/8.14.5) with ESMTP id w0HLHPEJ014405 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 17 Jan 2018 21:17:25 GMT
Received: from xch-rtp-009.cisco.com (64.101.220.149) by XCH-RTP-007.cisco.com (64.101.220.147) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Wed, 17 Jan 2018 16:17:24 -0500
Received: from xch-rtp-009.cisco.com ([64.101.220.149]) by XCH-RTP-009.cisco.com ([64.101.220.149]) with mapi id 15.00.1320.000; Wed, 17 Jan 2018 16:17:24 -0500
From: "Einar Nilsen-Nygaard (einarnn)" <einarnn@cisco.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: Alexander Clemm <alexander.clemm@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] yang-push issue: draft-ietf-netconf-yang-push-12 and default values and RFC 6243
Thread-Index: AQHTj5bZRYJFO6bk50OEy2/RxrkWrKN4wiUAgAAaZwCAAAlAgA==
Date: Wed, 17 Jan 2018 21:17:24 +0000
Message-ID: <32996BEE-9920-45DC-BE26-625034315FC8@cisco.com>
References: <616655B0-2494-4E63-906C-290E4AA6C1DE@cisco.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0EADB6A6@sjceml521-mbx.china.huawei.com> <20180117204422.bed7262buo3eshgv@elstar.local>
In-Reply-To: <20180117204422.bed7262buo3eshgv@elstar.local>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-mailer: Apple Mail (2.3445.5.20)
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.61.99.225]
Content-Type: text/plain; charset="utf-8"
Content-ID: <26F1C3253994BF48AEB4405C493B04EF@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/OrmnqZ1ulRz7Qari6740LstSWMw>
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 21:17:29 -0000

Juergen,

Thanks for that! That is a useful note, and it can reduce the problem space here, and I’m fine with that. As you may have seen from my response, though, my main concerns is about configuration.

Remind me — under NMDA will configuration leaves be reported back via “operational datastores”? Meaning that default configuration data is expected to always be returned when accessed via an “operational datastore”. Apologies if this is a dumb question, but I’ve not been able to track NMDA close enough to answer this question immediately.

Cheers,

Einar

> On 17 Jan 2018, at 20:44, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> 
> 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/>