Re: [yang-doctors] Style question from individuals working on IEEE YANG

Schönwälder, Jürgen <J.Schoenwaelder@jacobs-university.de> Wed, 15 January 2020 21:18 UTC

Return-Path: <J.Schoenwaelder@jacobs-university.de>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 993E512098E for <yang-doctors@ietfa.amsl.com>; Wed, 15 Jan 2020 13:18:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_NONE=0.001] autolearn=unavailable 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 Zolz8b7p3uoJ for <yang-doctors@ietfa.amsl.com>; Wed, 15 Jan 2020 13:18:48 -0800 (PST)
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70072.outbound.protection.outlook.com [40.107.7.72]) (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 78A98120992 for <yang-doctors@ietf.org>; Wed, 15 Jan 2020 13:18:48 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FEE9FQIg9qXUhxzxGpNmJvfhCr83OMyUTr3kYSwQNrsMZrQmCvfXDm/Zg6Gc/USd1FtCrQld2lvTNbLxbCd+ElETgZNN47EJoncTiC4bImkGir15K9DUjYNFMCOSULgS5g85VS0KNPSHNUiAghvY9gQc0fWMel7HsJrn+Q7Jn0g7C/RdETPIavtacPwYvHb361IRi9ToitsZjAnJ+6G0r/aybJgc1WWQFaeYu3VxuqPnT4XpX+NaJsuaAocaJHyXJ9LzhVZidihwzUehC9W2FZkuaiDmvRMu5kGs/1yOf+Ujys7oQ+TsshDG8ONHxqSV4qFF6bhu1brptXoidLEOXQ==
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=pN7tkVAqroT6WrdKXl8FDtrl99uOQrzaEkLqSOIw9Ng=; b=HmI3yGqx2jZNOZpKQdLoIlro+Avu+zXkUFSbReRGaXTg11nSOkjSLzKvLYT2p0Tpkpx+i0Ju1gF+Z+L+P3d+bRGnfk/SXSESNkwCs625cqOBBX2572Al10yjD2x1LxgoGwVTRnSQchvgfAfuWdw/nazba9uZlcXrtQgn9+aprMihywB6PwdtVPkD+mEFIZLmoqMSsZMp7LpHr0yp8WoMv+wOKJUMZjCAhJm6u7xtI4J/L77I61Kj0oPsGSQgXn66llkk+Py2Ok6wO+VwckMxD2xnS//r3rvKoWFYfg2xRhBaGl5jpBu9d9/dbcA+ICIej7LfopsmmNXLD6uUDba17w==
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=pN7tkVAqroT6WrdKXl8FDtrl99uOQrzaEkLqSOIw9Ng=; b=JTTRyR3hJkx+G1mnv3eGm2QR0o8qqT7jkukFbN8MOvkF58WMeEG2K+u1YrlOGKhfPvkTvTut5u8/8Obx2ycFlY61r3Darav6A9uS44ee44LVbjZwEAZibetnfBg9MPVygAdzqvRJIAYo4YRlpA8pq8pFdIGUsrcMTsIuwHsJyI8=
Received: from DB6P190MB0312.EURP190.PROD.OUTLOOK.COM (10.165.140.31) by DB6P190MB0293.EURP190.PROD.OUTLOOK.COM (10.165.185.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.13; Wed, 15 Jan 2020 21:18:45 +0000
Received: from DB6P190MB0312.EURP190.PROD.OUTLOOK.COM ([fe80::bcdc:4d6:7dfc:a946]) by DB6P190MB0312.EURP190.PROD.OUTLOOK.COM ([fe80::bcdc:4d6:7dfc:a946%6]) with mapi id 15.20.2644.015; Wed, 15 Jan 2020 21:18:45 +0000
Received: from localhost (2001:638:709:5::7) by FR2P281CA0005.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.18 via Frontend Transport; Wed, 15 Jan 2020 21:18:44 +0000
From: =?iso-8859-1?Q?Sch=F6nw=E4lder=2C_J=FCrgen?= <J.Schoenwaelder@jacobs-university.de>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
CC: Martin Bjorklund <mbj@tail-f.com>, "scott.mansfield=40ericsson.com@dmarc.ietf.org" <scott.mansfield=40ericsson.com@dmarc.ietf.org>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
Thread-Topic: [yang-doctors] Style question from individuals working on IEEE YANG
Thread-Index: AdXLnSlUWHhFHNStQciOhysBaa3xVgABmjaAAAK3poAADrsggA==
Date: Wed, 15 Jan 2020 21:18:45 +0000
Message-ID: <20200115211843.kr5ocofl4s7jggus@anna.jacobs.jacobs-university.de>
References: <SN6PR15MB23827FBAD5C61D8868ECECEE8B370@SN6PR15MB2382.namprd15.prod.outlook.com> <20200115.135907.604098548525922549.mbj@tail-f.com> <MN2PR11MB4366BE4459F74059C2B246C2B5370@MN2PR11MB4366.namprd11.prod.outlook.com>
In-Reply-To: <MN2PR11MB4366BE4459F74059C2B246C2B5370@MN2PR11MB4366.namprd11.prod.outlook.com>
Reply-To: =?iso-8859-1?Q?Sch=F6nw=E4lder=2C_J=FCrgen?= <J.Schoenwaelder@jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: FR2P281CA0005.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a::15) To DB6P190MB0312.EURP190.PROD.OUTLOOK.COM (2603:10a6:6:34::31)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=J.Schoenwaelder@jacobs-university.de;
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [2001:638:709:5::7]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 5e053bf2-a777-4fad-0f43-08d79a0080ec
x-ms-traffictypediagnostic: DB6P190MB0293:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <DB6P190MB0293D0052F9AD627CD64787BDE370@DB6P190MB0293.EURP190.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 02830F0362
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(136003)(39850400004)(396003)(189003)(199004)(3450700001)(16526019)(52116002)(6496006)(54906003)(786003)(316002)(86362001)(71200400001)(66556008)(186003)(1076003)(5660300002)(478600001)(8676002)(81166006)(81156014)(6486002)(8936002)(2906002)(64756008)(66476007)(66446008)(6916009)(4326008)(66946007); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6P190MB0293; H:DB6P190MB0312.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: uJWwZosM5OTcaCkchTblc5M1heaQG5D4RRWDidPZTBu466X1SHoC0vPueyfSrB0VcGEP68BqeaKiSq866fLYXBwVdA2Xy37czBOQ2aysNsjymZrCXCPdEeLfBz7CCbJ7XHXKXQ41WKpzHsqyq/QyFtzn0aonOG1nvQaKkIbqrHUqB4lOp3438uqHEWFNE2sLnkjzmMJN2KzFxt4TSYL+Ge37+NR48z+69eVYeP8wa6it4vXjPN4bNkrEejHKTKJqXUh0818mBK0WRRUXFVlV1X8LE1yUshlEo7SXpo9p7KAcno0t+NdgsUCWteZfzQxS940nRGBn0wEhQ4noZ8rGMIJemZNoWoE4WyW16TAQ3JYv1EwrYUBkqbAQ87yrwT4AazCeKgE/e/EGAJZVrEC84tQ2NgH7xV/VGiljRhU9lzJlqEKHcwu0hQmFu9qRRBwJlIH6nsZTGnqsTz1BEeZjgABfhpzIpElcyM7Gy2pEhs0=
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <203F84B4B6B25940B125EA4844B6B699@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: 5e053bf2-a777-4fad-0f43-08d79a0080ec
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Jan 2020 21:18:45.2634 (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: l4y2yCvNG01GRxDMrjVB/J8/mzcvvv36E+gWjv16OVBN/1D2Inrb9fobOIcyfHX/LHlVbuVs688ll9Himx4p08cT9Al4L+o467LN0WgBhCA=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6P190MB0293
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/RmiQS0ubF_AS6vx7FXp8kxDIilI>
Subject: Re: [yang-doctors] Style question from individuals working on IEEE YANG
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Jan 2020 21:18:51 -0000

On Wed, Jan 15, 2020 at 02:24:28PM +0000, Rob Wilton (rwilton) wrote:
> Hi Martin, Juergen,
> 
> For clarification, are you saying that you think that all operational lists should have a corresponding size leaf?

No. That was never my intention. If the size of a list is something
that is needed frequently, then we should create a generic query
mechanism, e.g., a get-leaf-count operation that returns the number of
leafs in a subtree or something like that. (Note that there is also a
subtle but important difference between leafs that exist and leafs
that are accessible; it should actually be the number of leafs
accessible; not sure this is what IEEE used to define).

> Note - I agree that they are unneeded and unhelpful in configuration.

It could also be helpful in configuration. I just wanted to make sure
that configuration sizes and operationally used sizes can differ.

> Or for operational lists that are likely to be small (e.g. perhaps less than a dozen entries) then omitting a size leaf may be appropriate, i.e. forcing the client to request and count the list entries if a count is required.

Yes, it is a decision the modeler has to take. And this is why the
size leaf really gets into conflict with fine grained access control
since the result of retrieving foo-size and counting all of foo may
not be the same...

If such sizes are needed frequently, then having something like a
get-leaf-count operation is likely much less pain.

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