Re: [netconf] Defaults and NP containers in YangPush

Schönwälder, Jürgen <J.Schoenwaelder@jacobs-university.de> Fri, 13 December 2019 11:16 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 F2D75120108 for <netconf@ietfa.amsl.com>; Fri, 13 Dec 2019 03:16:14 -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 Ch2LlMk06QI9 for <netconf@ietfa.amsl.com>; Fri, 13 Dec 2019 03:16:12 -0800 (PST)
Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50050.outbound.protection.outlook.com [40.107.5.50]) (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 5B10412011C for <netconf@ietf.org>; Fri, 13 Dec 2019 03:16:12 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oJdhL+UMtnyCLYtDqqEvFfU5lJUCzbVh+Ss0bFaXVUabfxxQoLaH03bo0y1IDFGAmwh1rtaVn5KIBTO6clVlF8AxMJmQzleBZM35Typ4vuJVH+C4kVnfgxbPLuDNpVBqHcm0BCeMHMPR0+nOh7VBexvWKbUnDxzr892FEWlW7dRPVRoaTnm45VG0dBUvYeEbnD3T1Mqf7xjoc5vI1zjKgph2VATpfeWgD72X6bXd9FStP73pTor67PdERFSSfv+B8+QgdoPnQV+3JbmaYv9mCbRXwDKKvDTI88NgKr2OjUGE18EkGqCw4S7K71urYiKVgo88gTZLEoBMW620H4TYnA==
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=aOLgCUdSaCZZMxtBUlCuaZwgvq8yR9Dk0ChtxhIe2gw=; b=RZxKWjv/1ssrhX2OWYsa+0J/7fIUc0uctJ+0mOWyVcKF8LzCVjDQgHg12OhE/r9FD4vObWcPJCwlVKJ7OE8Y/VaEIkTMf4ywomcaJWTniuOBNq33pRgg3PIEOLx103TB+Vk5fg9zRQ1NbhM1sv1gxd9b4pixk+5wAHfSeOpafIbzoC+I5gbhSOZraa7s50V1JkG1TK8Em9/nlPqCH9Nuu3ItQjO2i9PykTE8u36iV5+AZgiK/ccxTqjfwN3dUnTDvO04bxAUTGs4p9tOy9oRX8OVWPLDiF4i7vIR+ocBMUx8QdGKSgIf4HciCkhu4h1AlTJk4MZ6pCtMEN7sQgAsYg==
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=aOLgCUdSaCZZMxtBUlCuaZwgvq8yR9Dk0ChtxhIe2gw=; b=uGaL0av2LtyQlriezPWQrVQR2xOkT1lKrvze9cLhPiWFwe91n28y21cRk0fJg3IMRlFazNSBj5VR4J7FKFGqSjpiSqMXwgPmc/cFrKUEOMTGsuD+XMOr6GDcBzGQsg1vk9TjOdxnPB6CNMUKBzsCedl0PeMIS2NBP7k0Za08rY0=
Received: from AM5P190MB0482.EURP190.PROD.OUTLOOK.COM (10.161.65.11) by AM5P190MB0372.EURP190.PROD.OUTLOOK.COM (10.161.89.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.18; Fri, 13 Dec 2019 11:16:08 +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 11:16:08 +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/CAADZogNAAALyQgA==
Date: Fri, 13 Dec 2019 11:16:08 +0000
Message-ID: <20191213111607.fzm2ybgb73a2wxd2@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>
In-Reply-To: <MN2PR11MB436633FB55726A8F3AC62BEFB5540@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: AM0PR01CA0034.eurprd01.prod.exchangelabs.com (2603:10a6:208:69::47) 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: 2c38de22-e19c-4c6e-1c96-08d77fbdda4b
x-ms-traffictypediagnostic: AM5P190MB0372:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <AM5P190MB03724FEA7B6F499E14F6EE2EDE540@AM5P190MB0372.EURP190.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 0250B840C1
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(396003)(376002)(39850400004)(366004)(346002)(189003)(199004)(13464003)(6916009)(52116002)(6486002)(316002)(786003)(53546011)(71200400001)(4326008)(3450700001)(54906003)(5660300002)(6506007)(86362001)(966005)(1076003)(26005)(66574012)(8936002)(81156014)(8676002)(186003)(66476007)(66946007)(2906002)(478600001)(66446008)(64756008)(66556008)(81166006)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5P190MB0372; 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: abcTLgJ+kUuJrMjl34Zg4fHQSDZBPOgcaYB/e7BeQO56lJlwHOAHXO6Sza/3Ti39JaRy7eTfdG18dR9Fi2pP/dAYQ4sBbxgXEhMfjT98Q+hn59Rl0taxNCSByJ0SW1cZRFWWgYSJwp8tKf3zPbpVx3xQj3Acwi2QdTumIxvFGC4wlNWJtup5xytNUuhHzMkFYzAWnZwXu5JySZJoG4E8ZGXg1TqfYgTVL5RfGe8cupuqE1P88DeQknSnhE7ycySHnHyShE4eT9kxHMTcHH2UBePxkJ785xthkrZnfUBvOKVBmM6iCPTfwyx37WNS7z+pZsGQ/XhmaqD1lV7jMUjVaItfdtFkQ7ZJgE52KBZOVp6fLdmWJgwZEOEsTQIWYayONhxuWjuW07tY5DfYGd26mYQjxcuZHFYk79HRJmbqFB+kri+SiPbEKqHzlBeVyrwccdXtBIx8/LGALYV9P4bt6kz/x88wCG9fLJ17fyjrIFyHPEWlgUCAYvGeRJmikaw8EIFyWQDIikad/Keqw7MjunxaeNx8yAXJk15vWVKw+N0=
Content-Type: text/plain; charset="Windows-1252"
Content-ID: <2033C30C977A7C4C847CD298EEB56A41@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: 2c38de22-e19c-4c6e-1c96-08d77fbdda4b
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2019 11:16:08.6765 (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: RxfVrUWdujT3hRl8Z6T4LvNQ8zYr9HlxM4OU3a+/fXI4XdX5o4JrvEOAwTHEmPlOuwxPDyIDvbig9+9JfH2mdW/UXst0z/IlZbC5UIFgTEE=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5P190MB0372
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/4yUVGogvEp2jM_XSVFRtrYHL2gY>
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 11:16:15 -0000

For me, "explicit" is the only sane mode. We enhance interoperability
if we would converge to that instead of making things more complex by
allowing per datastore different default handling modes. This is
leading into the wrong direction if you ask me.

/js (in explicit mode)

On Fri, Dec 13, 2019 at 11:04:21AM +0000, Rob Wilton (rwilton) wrote:
> Hi Martin,
> 
> I've not thought deeply about this, but I also probably agree with you.
> 
> However, I'm not sure that your position is necessarily obvious.  Hence, it might be nice if this was formally specified somewhere.  I also think that the "with-defaults" behaviours shouldn't necessary apply the same way to all datastores.  E.g. a server might want to choose "explicit" mode for <running>, but perhaps "trim" or "report-all" for <intended>.
> 
> Maybe there should be a bis version of RFC 6243 ... covering datastores and YANG push.
> 
> Thanks,
> Rob
> 
> 
> -----Original Message-----
> From: netconf <netconf-bounces@ietf.org> On Behalf Of Martin Bjorklund
> Sent: 12 December 2019 08:57
> To: balazs.lengyel=40ericsson.com@dmarc.ietf.org
> Cc: netconf@ietf.org; mark.hollmann@ericsson.com
> Subject: Re: [netconf] Defaults and NP containers in YangPush
> 
> Hi,
> 
> 
> Balázs Lengyel <balazs.lengyel=40ericsson.com@dmarc.ietf.org> wrote:
> > Hello,
> > 
> > If I have the data model
> > 
> >  
> > 
> > container cont1 {
> > 
> > presence “xx”;
> > 
> >   container cont2 {
> > 
> >     leaf leaf1 {
> > 
> >       type string;
> > 
> >       default ddd;
> > 
> > }}}
> > 
> >  
> > 
> > And I create cont1
> > 
> > *	should Yang-Push report cont2 or leaf1 as created?
> > *	Is this affected by with-default ?
> 
> Great question!
> 
> I think it must be affected by the server's basic-mode for with-defaults.
> 
> My assumption is that we want the subscriber to be able to keep a copy of the data on the publisher, and we must allow different default handling strategies in this copy - i.e., allow different implementation strategies.
> 
> [Another way of viewing this is that if we pass the data in the notif back to the server in an edit-config, it should effectively be a no-op.]
> 
> So, a 'report-all' server will send 'leaf1' in the notif, but an 'explicit' or 'trim' server will not send it.
> 
> Here's another case.  After your operation above, suppose a client sets 'leaf1' to 'ddd'.  A 'trim' server will not include 'leaf1' in the notis, but an 'explicit' will include it.  (And a 'report-all'
> server will not see a change at all, since 'leaf1' already had 'ddd').
> 
> This means that the subscriber may need to be aware of the server's basic-mode, in order to be able to correctly interpret the notifs.
> 
> 
> /martin
> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf

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