Re: [netconf] Defaults and NP containers in YangPush

Schönwälder, Jürgen <J.Schoenwaelder@jacobs-university.de> Fri, 13 December 2019 12:17 UTC

Return-Path: <J.Schoenwaelder@jacobs-university.de>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 85061120130 for <netconf@ietfa.amsl.com>; Fri, 13 Dec 2019 04:17:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.437
X-Spam-Level: *
X-Spam-Status: No, score=1.437 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=jacobsuniversity.onmicrosoft.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 oS2-WkMTaUSt for <netconf@ietfa.amsl.com>; Fri, 13 Dec 2019 04:17:34 -0800 (PST)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80049.outbound.protection.outlook.com [40.107.8.49]) (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 6EC8912013C for <netconf@ietf.org>; Fri, 13 Dec 2019 04:17:34 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TXVcuWYnBqlFj48IWVqmDRePRG09E/4rw88WilOqMGxTnNFHF6n1qEv0YTPL0cc1Sx2Sn2HyBN6RR9+5+ksl4PlEWS4d6igMvQkurIoYzM9Azx6WqHEO3VGrF+kNwFyBf849bMOMySK5vl8EWOW6/oeQ7fbeSkf2IdwpNTS+doCIwve4hAAVCSMLOElzRjwzwb8Yq8V0Sl6PzFGtIIfEyWOp0nN3F2Wcdlwj++/3uCUmD6Js1aqvfVw2wLc9CX+Z9MOiQ4tYkv6Bv8A7fDaMiTw9t7GRqNGiRd7RKFuCZz1L3PQnZh9ugzlrGKaxKNnqzPa4TdPn+mO3YHqg5ExeUw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EdlDhLfVQDfZpQE5DJFi6xYUdrzmWZlgyAUYb2j/fM8=; b=d/b4NW74FIuaVgvhNwcF826AYf/U83NKH4UEsuo3G4hs8gTSsF6sWSFWYNVPkJ7wSD2T7ue4+L+iZ/7kcWYmaWz6qYyHhhgXqBJ2Bw7e9W1GC1K3ef0HmoFNf8az5U1xkUqVwoFOgh27uTaLbEgEkpQFZo5Vgur3LZCSQXPgwcTO/UGTWcvO/yt2EOcs4hmpyMomTqYRYlO+4cl3KiMX11rBQnJlTU7i22sHvxYNL+ZmtfE1y8/vU2mrezvw4XaCMB8DPLKjpMRQtAF/+mjS+UvQzJlpj349SiUtFdAXbvN2CwvAGVlhEgWlneAOra+DVT4mqNr91Vf6szcnAOjuDw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jacobs-university.de; dmarc=pass action=none header.from=jacobs-university.de; dkim=pass header.d=jacobs-university.de; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jacobsuniversity.onmicrosoft.com; s=selector2-jacobsuniversity-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EdlDhLfVQDfZpQE5DJFi6xYUdrzmWZlgyAUYb2j/fM8=; b=SiU9hkd59o9SxBf3TCHfXdLDHWnlJYtA4wpk7CERLieE+NykJS1rynQTDXpT3apGsDFiCevH+h4GNDaCGUVfNkcguLcUWHt5rTmCozeC5x/0Aebrwck454oqkMfyAqOj3PGwxc0NiPCqiz6r0r2ssBFHyBf5e220YWKjCN9bO5Q=
Received: from AM5P190MB0482.EURP190.PROD.OUTLOOK.COM (10.161.65.11) by AM5P190MB0466.EURP190.PROD.OUTLOOK.COM (10.161.65.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.15; Fri, 13 Dec 2019 12:17:29 +0000
Received: from AM5P190MB0482.EURP190.PROD.OUTLOOK.COM ([fe80::446a:6ef3:3d8a:fca3]) by AM5P190MB0482.EURP190.PROD.OUTLOOK.COM ([fe80::446a:6ef3:3d8a:fca3%7]) with mapi id 15.20.2538.016; Fri, 13 Dec 2019 12:17:29 +0000
From: "Schönwälder, Jürgen" <J.Schoenwaelder@jacobs-university.de>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
CC: Martin Bjorklund <mbj@tail-f.com>, "balazs.lengyel=40ericsson.com@dmarc.ietf.org" <balazs.lengyel=40ericsson.com@dmarc.ietf.org>, "netconf@ietf.org" <netconf@ietf.org>, "mark.hollmann@ericsson.com" <mark.hollmann@ericsson.com>
Thread-Topic: [netconf] Defaults and NP containers in YangPush
Thread-Index: AdWwKvL6aozHIMuqTaiIXpVkNDUIvAAny/CAADZogNAAALyQgAAAOWDAAAHrIwA=
Date: Fri, 13 Dec 2019 12:17:29 +0000
Message-ID: <20191213121728.cm4fmgxk3u7wrldz@anna.jacobs.jacobs-university.de>
References: <VI1PR0702MB3680D83DEA1B90619678013DF05A0@VI1PR0702MB3680.eurprd07.prod.outlook.com> <20191212.095709.2123523251711416815.mbj@tail-f.com> <MN2PR11MB436633FB55726A8F3AC62BEFB5540@MN2PR11MB4366.namprd11.prod.outlook.com> <20191213111607.fzm2ybgb73a2wxd2@anna.jacobs.jacobs-university.de> <MN2PR11MB4366D1EA9E749FA5B89E3EFDB5540@MN2PR11MB4366.namprd11.prod.outlook.com>
In-Reply-To: <MN2PR11MB4366D1EA9E749FA5B89E3EFDB5540@MN2PR11MB4366.namprd11.prod.outlook.com>
Reply-To: "Schönwälder, Jürgen" <J.Schoenwaelder@jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: AM0PR06CA0080.eurprd06.prod.outlook.com (2603:10a6:208:fa::21) To AM5P190MB0482.EURP190.PROD.OUTLOOK.COM (2603:10a6:206:1d::11)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=J.Schoenwaelder@jacobs-university.de;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [212.201.44.247]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: e9ba9794-f83d-454a-90b2-08d77fc66c41
x-ms-traffictypediagnostic: AM5P190MB0466:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <AM5P190MB0466B1F5706150A13304B058DE540@AM5P190MB0466.EURP190.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 0250B840C1
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(136003)(39850400004)(366004)(346002)(51444003)(189003)(199004)(2906002)(6512007)(3450700001)(6506007)(71200400001)(66476007)(66556008)(64756008)(66446008)(52116002)(66946007)(4326008)(786003)(316002)(54906003)(26005)(8936002)(478600001)(6486002)(81166006)(5660300002)(81156014)(8676002)(86362001)(6916009)(186003)(1076003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5P190MB0466; H:AM5P190MB0482.EURP190.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: jacobs-university.de does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 0yUXycFa8Ni2OyZy4tPatE3zLGv3gdImUdNDlg9rWbkpdVtrx2FNaqTJOUJGBViwtXPfVumId9QZryqw9VFAn3n3GkE2PPim2TrB0WtIhLtKBxJZMlNJ+9S8x87213tFhc3FmkaoD/2S8KMNyyFUnE3pV47mRHO2a/YJXeKQd11Ie/1QQbc0Velz3LlVBZkr/WKTEZ4WFI/VILdNZBI+F3iWrGE2Ll5gbmZjGKjIEvsEPqRBw23EiXlhvr+JPMfVe1O6fVOSdufivaWO6S4P6vdjbFibH/sGUhNNyk/62BrGT2TVNhMXE70nlgm2gl5jUWlBqADGMj6o04aop9tzci3/0LwxoQwopr62v85T6KEJcQEDPY7uOnN/lKSTH/vSoUCFREkb9DfGkdPTi05N0qUzS+SQaSBBB1r5sNMYak8mTY/CAY7x/6LZI8LfbEinrMkNGt+qIgpfAusUKVQnY+4KutO1SugricYpoqW0L0QpJK2oSq5Ne5DImerpXH7bJ80vR2z6QR9VOe6TsKDwm212cjUDuaeBPPN8QMpsie0=
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <A45A6F0399359849989E11EF116E42A0@EURP190.PROD.OUTLOOK.COM>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: jacobs-university.de
X-MS-Exchange-CrossTenant-Network-Message-Id: e9ba9794-f83d-454a-90b2-08d77fc66c41
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2019 12:17:29.4232 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: f78e973e-5c0b-4ab8-bbd7-9887c95a8ebd
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: nfIV1wy0GRlHEJ+6QVD1w32m69t6hY7EThYZW18B6wwZZOAVWeHrV05FXHp3/n73jXcvkbmLR5bpS7ETCI/hkH1NvHFpgh06ZhGHVL0ipho=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5P190MB0466
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/7C0d1KLDbIdbxXpuRa0NhjfpNuI>
Subject: Re: [netconf] Defaults and NP containers in YangPush
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Dec 2019 12:17:37 -0000

On Fri, Dec 13, 2019 at 11:50:59AM +0000, Rob Wilton (rwilton) wrote:
> Hi Juergen,
> 
> I'm all for keeping things simple and homogeneous.
> 
> For client writable configurable datastores then I completely agree with you that "explicit" is the sanest basic mode, and I support converging on that.  If devices want to optionally support returning the contents with-default versions of that data on a per query basis then that is fine with me.
> 
> But for <operational>, RFC 8526 effectively specifies:
>  - if no "with-default" parameter is specified, then the values returned are the "in-use" values, i.e. really much closer to the "report-all" default mode.
>  - "report-all-tagged" and "trim" MAY be specified and return different output.
>

For <operational> you get the "in-use" values except if you use the
OPTIONAL to implement "with-defaults" parameter and you set it to
"trim".

Perhaps we should drop that since you can filter on origin.

> Either way, I think that it would be helpful to refine what we have
> standardized so far, and make sure that the behaviour is well
> specified.  At the moment, it doesn't seem to be.

Filtering on origin looks like a much cleaner and more flexible
solution. OK, origin annotations may not be available in <intended>,
but they could be meaningful for some implementations that do not
strictly follow Fig. 2 of RFC 8342 by allowing insertion of say system
config data into intended that is not stricly coming out of <running>.

/js

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