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

Alexander Clemm <alexander.clemm@huawei.com> Wed, 17 January 2018 19:10 UTC

Return-Path: <alexander.clemm@huawei.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 C835A1275FD for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 11:10:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.229
X-Spam-Level:
X-Spam-Status: No, score=-4.229 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, 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] 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 2_hCP8yoKzCr for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 11:09:59 -0800 (PST)
Received: from huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4343A1270AE for <netmod@ietf.org>; Wed, 17 Jan 2018 11:09:59 -0800 (PST)
Received: from lhreml702-cah.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id DF18B83560A9 for <netmod@ietf.org>; Wed, 17 Jan 2018 19:09:54 +0000 (GMT)
Received: from SJCEML701-CHM.china.huawei.com (10.208.112.40) by lhreml702-cah.china.huawei.com (10.201.108.43) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 17 Jan 2018 19:09:56 +0000
Received: from SJCEML521-MBX.china.huawei.com ([169.254.1.83]) by SJCEML701-CHM.china.huawei.com ([169.254.3.207]) with mapi id 14.03.0361.001; Wed, 17 Jan 2018 11:09:54 -0800
From: Alexander Clemm <alexander.clemm@huawei.com>
To: "Einar Nilsen-Nygaard (einarnn)" <einarnn@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: yang-push issue: draft-ietf-netconf-yang-push-12 and default values and RFC 6243
Thread-Index: AQHTj5bYiGDflCZ3h0a24DFWm/LfU6N4bRCw
Date: Wed, 17 Jan 2018 19:09:52 +0000
Message-ID: <644DA50AFA8C314EA9BDDAC83BD38A2E0EADB6A6@sjceml521-mbx.china.huawei.com>
References: <616655B0-2494-4E63-906C-290E4AA6C1DE@cisco.com>
In-Reply-To: <616655B0-2494-4E63-906C-290E4AA6C1DE@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.209.217.24]
Content-Type: multipart/alternative; boundary="_000_644DA50AFA8C314EA9BDDAC83BD38A2E0EADB6A6sjceml521mbxchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/hxPDedLb3Yr2xBL2r0AQt3CqFcc>
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 19:10:02 -0000

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