Re: [netconf] Defaults and NP containers in YangPush

Balázs Lengyel <balazs.lengyel@ericsson.com> Thu, 12 December 2019 13:34 UTC

Return-Path: <balazs.lengyel@ericsson.com>
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 0771F120013 for <netconf@ietfa.amsl.com>; Thu, 12 Dec 2019 05:34:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 0ZD30tgZbpsG for <netconf@ietfa.amsl.com>; Thu, 12 Dec 2019 05:34:25 -0800 (PST)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80047.outbound.protection.outlook.com [40.107.8.47]) (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 D707F120073 for <netconf@ietf.org>; Thu, 12 Dec 2019 05:34:24 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FAWfxKPeS2HtxGV0rQP69GCU3dzpIc/g1doNdFE8e4qzpauMiCauRDh6VVfdiSF7ga35xxERoHXBUEhRhogwOA1Q4GywSG5BqhVoCyAI01xphoLPtfOR53+w9u1niTh6kgLkS637R4CFMSni3+sYVWvtvj6LGtA96yu3BM+3pe3RR0ly525wlV71o7MOd3w0HkaDrN1gG0unbtGejYjaY79h58Yd9zwxNvu/1KNLt03B3RD6Al/yI5CPp9b43CHAbPyEtgjFWL2tNFYiiHDcm/JYxnDVpWWsXAdsBxgBDpTkjTspeGfiHWlgvh6joSspONK3mFFgYlBgcajfq/GZyg==
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=ltCzrtPeYwCRFMq3HgN+uhl9wNHa94kyfvB1woftpNY=; b=X94YjwW421xgvqvrB2YTwNe0P9k4I7eVP+YxVhGZyJlt209BpxCfecXCAXUvWPql5zdTEn7/NvZVg3ACj8UBMyh56cHwPnHLPsZDoT1d1m4SL2tRnJDfvyBxyG7i3cJEjJhDFVgDpnwrLmGLNLjNv2MhP4hQl7NH0VsLR3ZQlMYblWTBOMYjBpEzDc7xVsRfEA2azswj9+o/CJxGYlvILOXLjAJ8mhA48Xo1Q04T1nr4VYA9MCVfDnxcdMRhq5oSKusOPiZWoT0FEOQjySWUFO76gY+istPIIzaMNzAvuoIKkyc/I0g+woK2ZbYPyhBorMK1CCjIhh7OVGcp80lRbA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ltCzrtPeYwCRFMq3HgN+uhl9wNHa94kyfvB1woftpNY=; b=ZBQQWpJbd8Kja1mWu82gEJDXOfygdTqQaaI6ZRIZcU5gAlmLvnR61e6t6H9+g31lqhmaPVr70Bim0Rp2Mds0VYjLDk3598tcPX6913oi6G61n6uty9TPq/OiDcux/hz4pchN+Tp2c941+ZYXZYL0mMyloK+IQxtMf5odyvrDymQ=
Received: from AM0PR0702MB3665.eurprd07.prod.outlook.com (52.133.47.21) by AM0PR0702MB3714.eurprd07.prod.outlook.com (52.133.51.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.16; Thu, 12 Dec 2019 13:34:22 +0000
Received: from AM0PR0702MB3665.eurprd07.prod.outlook.com ([fe80::2469:3d61:7557:b60c]) by AM0PR0702MB3665.eurprd07.prod.outlook.com ([fe80::2469:3d61:7557:b60c%7]) with mapi id 15.20.2538.016; Thu, 12 Dec 2019 13:34:22 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: Martin Bjorklund <mbj@tail-f.com>, "balazs.lengyel=40ericsson.com@dmarc.ietf.org" <balazs.lengyel=40ericsson.com@dmarc.ietf.org>
CC: "netconf@ietf.org" <netconf@ietf.org>, Mark Hollmann <mark.hollmann@ericsson.com>
Thread-Topic: [netconf] Defaults and NP containers in YangPush
Thread-Index: AdWwKvL6aozHIMuqTaiIXpVkNDUIvAAny/CAAAl+yzA=
Date: Thu, 12 Dec 2019 13:34:22 +0000
Message-ID: <AM0PR0702MB366513011A8869B9B683279AF0550@AM0PR0702MB3665.eurprd07.prod.outlook.com>
References: <VI1PR0702MB3680D83DEA1B90619678013DF05A0@VI1PR0702MB3680.eurprd07.prod.outlook.com> <20191212.095709.2123523251711416815.mbj@tail-f.com>
In-Reply-To: <20191212.095709.2123523251711416815.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-originating-ip: [89.135.192.225]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 48088509-da3f-4f50-b7ab-08d77f07ff79
x-ms-traffictypediagnostic: AM0PR0702MB3714:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <AM0PR0702MB37146EBE9214E438ADB5BFB0F0550@AM0PR0702MB3714.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 0249EFCB0B
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(396003)(136003)(346002)(376002)(366004)(199004)(189003)(13464003)(66556008)(66446008)(64756008)(66616009)(71200400001)(33656002)(86362001)(316002)(7696005)(8936002)(110136005)(54906003)(66946007)(66476007)(76116006)(8676002)(81156014)(85202003)(85182001)(81166006)(55016002)(9686003)(186003)(2906002)(26005)(53546011)(6506007)(4326008)(478600001)(107886003)(5660300002)(66574012)(52536014); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0702MB3714; H:AM0PR0702MB3665.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: CpUYzZvS03zobEbHV9YfcYfsvMMFnB5+du2cMc44zUDDmyBQJYTHDkUFy6DJV/nox8xIIfHCwEm0p/bjGT0iwJ6GSdkHdSxI47mWCDU9cbfhZYNjLvUgDo0jpOAU8v6U7dhTwfE7aR3ehKVDj/1akn2dygawCHtOjtrmEAFRVAmtxmYdpiOREFTSLK7d7c0AhYpgPXhdoBM3WEgx9Vv3WwfTSndsbkebqe8Rgc6/oj1Nk2u1Ns8Hu2NCX6z9c/qZ5Dw8yRYeXPkVAq+xDXKNxwLdTsRt9P1v35lrxj5dpQcqHqjOSCL0DDTmvPyVUDkfl7JqO/QFeU4xfvrF7qRE2AQEHkr354Jp3FIEMornWrxSjj72vKGLf+tbibK0Z8WZrLz9XUj1/nWKCk/6dznNnYdkMK3oGx5SKSR1lRcRGHLj/6LxeRi9itzdt2qs8iIojtW8sM3e5bjks3l4InHBDE2q7LYHjAcdME0XT99G9d46/G1R18jqiNzgAJ+ElEN1
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_055A_01D5B0F9.3DD656A0"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 48088509-da3f-4f50-b7ab-08d77f07ff79
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Dec 2019 13:34:22.2870 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: KvB1WzklSokbQB5A3EU15HJwUTIGo3rbui7hY4YGGe10CBdZUeoBmsEaaYF0iKfMw9uLeoSip7na8i3/+qDd/dO2zwbRNPb0JoFrPkbROaE=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0702MB3714
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/yDdPLIRaFkqc46kT1epJO4IF3gQ>
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: Thu, 12 Dec 2019 13:34:27 -0000

-----Original Message-----
From: netconf <netconf-bounces@ietf.org> On Behalf Of Martin Bjorklund
Sent: 2019. december 12., csütörtök 9:57
To: balazs.lengyel=40ericsson.com@dmarc.ietf.org
Cc: netconf@ietf.org; Mark Hollmann <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
_______________________________________________
BALAZS2:  I agree with you, because this way if the client reacts to all these notifications with additional edit-config operations, it will receive the expected results considering the potential error messages for create and delete operations. 

Regards Balazs