Re: [netconf] Defaults and NP containers in YangPush

"Rob Wilton (rwilton)" <rwilton@cisco.com> Fri, 13 December 2019 11:51 UTC

Return-Path: <rwilton@cisco.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 F136C120108 for <netconf@ietfa.amsl.com>; Fri, 13 Dec 2019 03:51:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 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, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=bTPaYGq9; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=CzJW/bTM
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 Y9jDAFapYf2B for <netconf@ietfa.amsl.com>; Fri, 13 Dec 2019 03:51:07 -0800 (PST)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3E115120047 for <netconf@ietf.org>; Fri, 13 Dec 2019 03:51:07 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4933; q=dns/txt; s=iport; t=1576237867; x=1577447467; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=FpyGewmdYg55xcAyqLOunshzhjO33QLHUMD1ijX/4XY=; b=bTPaYGq9MP0v7ZF+b8RkbY1dSFFxiskLL7ETuknPtt7WafUelJ1KO1PL HvwHZL1f4xkeRCVzB3UOEYDDVg+z9ejTBLAiibcILeK1/0iqn6DCiwJHo plgtIk6Txr7YCVOB8ZkbX4qk8GK/lWX5yxeBcl6xR9QnUHASbCWkcTGND U=;
IronPort-PHdr: 9a23:XeKKIRFvro0UZU1pfa9CMp1GYnJ96bzpIg4Y7IYmgLtSc6Oluo7vJ1Hb+e4z1A3SRYuO7fVChqKWqK3mVWEaqbe5+HEZON0pNVcejNkO2QkpAcqLE0r+eeT1bigmG8JqX15+9Hb9Ok9QS47z
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CwAABdevNd/49dJa1iAxoBAQEBAQEBAQEDAQEBAREBAQECAgEBAQGBfoFLUAVsWCAECyoKhz8DiwyCX5gGglIDVAkBAQEMAQEYCwoCAQGDe0UCgg8kOBMCAw0BAQQBAQECAQUEbYU3DIVeAQEBAQMBARAuAQEsCwELAgICAQgQAQQBAQEuGwwLHQgBAQQOBQgagwGCRgMuAQIMogcCgTiIYYIngn4BAQWFBBiCFwMGBYExhRyGfBqBQT+BWIIeLj6CZAEBAoFLGAUaJoJ7giyXBpdtCoIwjFeJPZpBqQgCBAIEBQIOAQEFgWkigVhwFTuCbFARFIoNgwWDczOEYYU/dAEBgSaNYwGBDwEB
X-IronPort-AV: E=Sophos;i="5.69,309,1571702400"; d="scan'208";a="683323651"
Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 13 Dec 2019 11:51:04 +0000
Received: from XCH-RCD-007.cisco.com (xch-rcd-007.cisco.com [173.37.102.17]) by rcdn-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id xBDBp3vL006087 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 13 Dec 2019 11:51:03 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-RCD-007.cisco.com (173.37.102.17) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 13 Dec 2019 05:51:02 -0600
Received: from xhs-aln-002.cisco.com (173.37.135.119) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 13 Dec 2019 06:51:01 -0500
Received: from NAM10-DM6-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-002.cisco.com (173.37.135.119) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 13 Dec 2019 05:51:01 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=izT6rwTdDslY/JZ6bJdpLBVeq2d9kLFKDMmzFVahv8AfXHZA30QojtJer284dWePgc1l8L5h+527uYRsnAwGP1/9uF3wOX+fAO3YAE19R3/tNmTZJNUWeER4clDBOl0tTzYD61zaHxbve+H5J6o0krlf+hvpenhhEF2FhSVNlwVgEaCvCipv6+uNrtzzF3tQiarTgWkI6zY2ZWJWBgBLSr2lq5ZRYEJhBUtBBsmwlnplvx+KXM+7E6i6dgNJZ73mD3Wf5Uvp88uMZuC+TPBp9D6NNpmsuxFOXAAVCsAxVvsVIdDStfYwSYFs3K1pMrgwiF1YK2yjz890rkbrtKF4TA==
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=SIoG/XQjM/m7c1HHPnKNRRQy0e4oxx0qGuWjyFygB3I=; b=kJhexgMAHIw8bUmhsP58dFYHgDUmxVDhx9rfHP6/GhpROP1vnViXhy3e3nun2b65jhY59dCAU831OVdhdUD2uGRzYBLdVnCts/pX1+2AXjvsPEU80zVv/WYvywjUV/V0fnpn8Ay8EvXxUz3Czu65ZylgciO3Dq5pTMShrffxMX0fdhp8W+eIgUyFVcR2ke4Bwl/MnG9DZQrMpzpGYifUeJHVaJkGMISH2aoae32J4iXthmen7bTJ29sEAblnDyOefbaundW/5pkrIBmAWWk7Z+2bLGZGDf4ebhHEAzMis2w0XIyYc6i1hyEHkz5+fhvzsJAX5TATJ+KiWJ1IKn3JTw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SIoG/XQjM/m7c1HHPnKNRRQy0e4oxx0qGuWjyFygB3I=; b=CzJW/bTMd/ym1t9HZ7xRiIM3VHEJc+zmuQOg14bct7gs4MAH6RwbWJqbZ2TGcp1OpKYeCuX2qqRTbawRM3MP+qbk+OUPjc7z0Jg5GFW+WfyqDRJK2kzD0dTlNHq+CBbNQjWS3wxUKpsPhhvauRygsIY5lOkXgjUNN3sUbki7UW4=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (52.135.38.209) by MN2PR11MB4463.namprd11.prod.outlook.com (52.135.38.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.17; Fri, 13 Dec 2019 11:51:00 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::8106:b538:2920:a44f]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::8106:b538:2920:a44f%5]) with mapi id 15.20.2538.017; Fri, 13 Dec 2019 11:51:00 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: "Schönwälder, Jürgen" <J.Schoenwaelder@jacobs-university.de>
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/CAADZogNAAALyQgAAAOWDA
Date: Fri, 13 Dec 2019 11:50:59 +0000
Message-ID: <MN2PR11MB4366D1EA9E749FA5B89E3EFDB5540@MN2PR11MB4366.namprd11.prod.outlook.com>
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>
In-Reply-To: <20191213111607.fzm2ybgb73a2wxd2@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rwilton@cisco.com;
x-originating-ip: [173.38.220.62]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: ab4cc5fe-0a55-4e03-a2a6-08d77fc2b917
x-ms-traffictypediagnostic: MN2PR11MB4463:
x-microsoft-antispam-prvs: <MN2PR11MB4463DD3C1CEECDF49C8CB010B5540@MN2PR11MB4463.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0250B840C1
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(136003)(376002)(396003)(346002)(39860400002)(13464003)(199004)(189003)(51444003)(66946007)(55016002)(186003)(26005)(66476007)(6506007)(64756008)(66446008)(53546011)(7696005)(9686003)(66556008)(52536014)(4326008)(76116006)(2906002)(33656002)(81156014)(71200400001)(478600001)(8936002)(86362001)(316002)(54906003)(66574012)(8676002)(81166006)(5660300002)(966005)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB4463; H:MN2PR11MB4366.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 7OPebOTwqXkn8GwIGRHlVkJbbqce5mcm8KPc0dIqh1irgTnOOcZIdLoFZ1Dt5YVJ6h75G3AJwtGJkHurgTus0dTGjtYrQZA8jRN2uznZO3YoDOA9qz5Wpb/K3dcN59pJc7U7GSzYorDyTiIaNqCKcJj/T6lkbGHAB5VFFK5MIaohDFapl4UFQgLpCQvB43oFXh2imSon0rR80RBb4XHOECsA4/B7kSP8KnozcK0o1GmlhAmUzdh6IonHwSp4S9kbbsFLXVssi/JxJH+qJLmzKH7CWSdMmXR+qztOWSOfR/hMCJh5pN45LPSQkliW+dyjz0l+MZP6KRH0GEvm5HAVOjIWCFb4DUgpEFf349vgeAYHf9XJYDSL/Z2n3zo1ywHTDCpYAqCbTr828U5epVtGazwcjIcEp1PLD+pIAMVW3VINmlWbtNdOUn/dVU+l6cl2Rk1+HIK3Pm4cfbPLx/sB5fcqZvI7ssYjKOKde8ELVgvKEX8JegwiUP1VfypD5hSo0wChXfuzCUsbjnfmO3ivxZ4zUk/La90DTIixCHq5Qds7qrB4cpuQQ9RdS7JZQ3ey
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: ab4cc5fe-0a55-4e03-a2a6-08d77fc2b917
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2019 11:51:00.0592 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: HLFUvLRrZtvePHATxsEW7AYVaBCvO4F4RwUtrSEkOknDrotM9145alXI95qrkVU9JEzlIqQu/8grUWiqTq7Zrw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4463
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.17, xch-rcd-007.cisco.com
X-Outbound-Node: rcdn-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/sPkjJIpXM5QvU6yUUVumR8rRcTk>
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:51:10 -0000

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 <intended>, I would be happy if we agreed on what basic mode that datastore should default to, and what other optional with-default modes are allowed, but for this datastore it isn't obvious to me that "explicit" is necessarily the right choice.

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.

Thanks,
Rob


-----Original Message-----
From: Schönwälder, Jürgen <J.Schoenwaelder@jacobs-university.de> 
Sent: 13 December 2019 11:16
To: Rob Wilton (rwilton) <rwilton@cisco.com>
Cc: Martin Bjorklund <mbj@tail-f.com>; balazs.lengyel=40ericsson.com@dmarc.ietf.org; netconf@ietf.org; mark.hollmann@ericsson.com
Subject: Re: [netconf] Defaults and NP containers in YangPush

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