Re: [netmod] Tree diagram comment lines
tom petch <ietfc@btconnect.com> Mon, 11 April 2022 15:44 UTC
Return-Path: <ietfc@btconnect.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 360183A1121
for <netmod@ietfa.amsl.com>; Mon, 11 Apr 2022 08:44:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001]
autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key)
header.d=btconnect.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 po_JRsRqTIXc for <netmod@ietfa.amsl.com>;
Mon, 11 Apr 2022 08:44:51 -0700 (PDT)
Received: from EUR05-AM6-obe.outbound.protection.outlook.com
(mail-am6eur05on20701.outbound.protection.outlook.com
[IPv6:2a01:111:f400:7e1b::701])
(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 4E1003A111C
for <netmod@ietf.org>; Mon, 11 Apr 2022 08:44:51 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=c2YvSAVPM6bG2GSictwn94HXaJ/WbovWDZrR+aURMBPu2BrTFc8SlTm7CxtoJLV4m40Pvqn0+h1ZziNdpY4x0PXCWh+1xvVYG3CuAw2tLxNfJpuH6fQXg+p8jPr+DhhK5wxYmXM7gCzYvKaFe4pMfuTbYYyTuobi11xC5EzI7zKZpm+CckwlxY0CMHyAuUNRPoPTbUikDdH0kn5Xahg2Y3SE/F1N+xA64Vmhb9l9A02ndKo8GqKY37U/JyUmsus8161JDNvZwlZVwJ/jBnIrVtyKKadOG2vYRh0vzvKcoL+CBPqWBIl2F4Zv3JrSTuX4wCDNx9UlIPKiOghGwsBfXQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
bh=KL8UUVm7+L4/bqrgOog+TZC5CucfnaoPjD3OVHb1fuk=;
b=oYpJMqIraYkrZrFaISdr0LTZdwLOEmxIQHT4aCTC78m9D/eZxUjZkDelt0SmMxDzL4wQch//wa8XwLfw/e8LXCpW2mxTxetQKF3w8OrtM0316u2aSVRh/5SLG4onNKMqsqw0TcUM43B1jAQ+0er8gd5Tkf78rTo8EWjEexpWEb5Kl/dSXD5oUkatlW2OqJLkv3/gw6XN91kO4MG/FF4i/LLtNAxSmrOwd2JGWq9dukHa+sFu0RO8eP87suNoghGVP/EyuGZIxuemqIwXsUJh0vEMRY/bWcptsPN92XIBB8JyuW8znumOQeJrR2uTq5l120GMg4OVH/ZipMphNRWt4A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=btconnect.com; dmarc=pass action=none
header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=KL8UUVm7+L4/bqrgOog+TZC5CucfnaoPjD3OVHb1fuk=;
b=FJ8HTOQ+Auqa0WHN8wKHbzYVspC2RzAPtZLQMkUDJmeBBrvoVwxNa4zWtBoWXI51VunEafjnNnaZc/Vx4IbZgBHh0vDNbFRzwPV6ARW/5lRrLu7j0LFsGEh1PN5u+uRXhC/cNVOzP28kx3g4Az7lFuXEP4wGq0Wv0lFtVmjSjtg=
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com (2603:10a6:20b:134::11)
by PA4PR07MB7214.eurprd07.prod.outlook.com (2603:10a6:102:fa::10)
with Microsoft SMTP Server (version=TLS1_2,
cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.17; Mon, 11 Apr
2022 15:44:45 +0000
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com
([fe80::b1c5:beb7:ddbf:b358]) by AM7PR07MB6248.eurprd07.prod.outlook.com
([fe80::b1c5:beb7:ddbf:b358%9]) with mapi id 15.20.5164.017; Mon, 11 Apr 2022
15:44:45 +0000
From: tom petch <ietfc@btconnect.com>
To: Kent Watsen <kent+ietf@watsen.net>, =?Windows-1252?Q?Martin_Bj=F6rklund?=
<mbj+ietf@4668.se>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Tree diagram comment lines
Thread-Index: AQHYTZG6LrnL6Lk3kEurA/h45IoHpqzqjDUAgAAFNQCAAERoUQ==
Date: Mon, 11 Apr 2022 15:44:45 +0000
Message-ID: <AM7PR07MB624813AEBCDB7099B5BC899AA0EA9@AM7PR07MB6248.eurprd07.prod.outlook.com>
References: <20220411.130246.1026658909508971766.id@4668.se>
<01000180185b65c5-e3f11060-8beb-4335-8dae-f0cbf5f3b599-000000@email.amazonses.com>
In-Reply-To: <01000180185b65c5-e3f11060-8beb-4335-8dae-f0cbf5f3b599-000000@email.amazonses.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
authentication-results: dkim=none (message not signed)
header.d=none;dmarc=none action=none header.from=btconnect.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 750b1611-bf0f-4af4-8776-08da1bd23417
x-ms-traffictypediagnostic: PA4PR07MB7214:EE_
x-microsoft-antispam-prvs: <PA4PR07MB7214CB81B7D43FE94AC8794CA0EA9@PA4PR07MB7214.eurprd07.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: lrX9Pp0DUS8r/5YlCU6x5NxrkuULGlNl+9JVs2cWQ8C4CklRxk4EVfGCGyCeNxuzTnshBUu6lm40nMRJT52tjPuhSjqb4Bz6TzPGocWjqtHL4/qcXR87mFDvTpFTlB3+V8awW4XMp1UrrBldcMxh6oxyn+mS2oWedIO52LKhrGdy0OtIAUnw2FGjr06m6DKSYs5zQpDJCE1KCvN1l2+J9ojMw4GSGiMEBMduH445K0YXbGajKsTvUD+9ebDZ1lqqME6l8B/hYNT0xSqhIwBvbOZgXEStxg8CG/sUsRCz9qpZHFJQigbrblrXVehcARUF+gZp87cZMldzsaCAMzi+LbgiZYGrJ2QSq2FRCyWPIxm8l+JQwjgCcORh9jwu5fjzde9+4h7EiJQmKyi+wDTJ/WWsplyPE1RTG6HXm5QXwTp7KcH3Om40UHq9RTUpsBjepat8yMQUelzwaX2gocyqbeIMYOYLEdEIC0H3gix5u58lgilW6EzmfrSiaV23H33kh6hXOQezobTeFkRqPLAPg7gajLuHL1bbLuT/ZVWySldDj2Or3VpY8h5jmoMCTvUSLG/CT0mbda81zHkAF58Te0N7YkQeOq/SVoXcm0WmbL4wfCBMn5KGYqBb88WvFkTerv1Iay4fV6UodbdOSarTkiBSQbYZAAPlhGx49hTpnpIo9WFzH5S23Azck+UmbO+Hzc126btmWnujPkwKTKMPzloDE7Up1juk3+XS9rW2WYxPLQ7FsMCMHgFuHqg+N63l
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM;
H:AM7PR07MB6248.eurprd07.prod.outlook.com; PTR:; CAT:NONE;
SFS:(13230001)(366004)(7696005)(26005)(186003)(6506007)(9686003)(83380400001)(82960400001)(122000001)(38070700005)(66556008)(5660300002)(4326008)(86362001)(8936002)(33656002)(66476007)(55016003)(2906002)(110136005)(66946007)(76116006)(71200400001)(38100700002)(316002)(508600001)(91956017)(52536014)(8676002)(64756008)(66446008);
DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?kYkYBCdTU68xhYY2cxU1RjMRzdfGhpTBXv6GR1g0X1DGcfMOjzAYTypR?=
=?Windows-1252?Q?U2UkRjy0GUCNl3Cjtcr+lUgt50d/Mcxb5v4DD2ZmWHm+AdIbo8vY8m2y?=
=?Windows-1252?Q?j8gsERxAf03gUXRPhZwjEIc+8g+07ldQzC9lzgWqP3mijf1FLePmplXN?=
=?Windows-1252?Q?5Y37mcVOlp8azY5ghLWE5dguzZegu/w6Ow4S+Mlpj+alObzGqTIPVltQ?=
=?Windows-1252?Q?meXgOTI2+73ctxEYz+s4kVaRWtCBk7+fR5PhKC7EtrbKQ/TD75gVTueL?=
=?Windows-1252?Q?4r6sAmA6sHOpbTNYswbt0jLre7K1xwjzgDVJd4KsAedkdikvWYIjTT+u?=
=?Windows-1252?Q?HMIzx1GnFjLQTYVl/nGb+ba4MBJ57JlUkEdupz8o2KEf2xBjpFOtVJNn?=
=?Windows-1252?Q?ilwnAXLx4/bdlagOANTXiATBiCUC6lV9Gux3AoCYaf8DwiPW55tIokHl?=
=?Windows-1252?Q?phz5NFOyC/shHYl04316JNrEu5WWGaIXSXzydzffSBO75xNhbozvpwvg?=
=?Windows-1252?Q?SL7ZGTnI2a4w8RiNx4/IRwEAOhOnBWE0Uiqw/e9HY67BDQi3SU0K8TJi?=
=?Windows-1252?Q?ccXfL6sLH76oTgFeOS92cfc7c1zY+I7+Q7X3E10HUu5LT3x8/xAh+/Oj?=
=?Windows-1252?Q?5W6K0JDnGGimr5mAsibUyJ9vjY/UIVpq7GuYLGX+vGMjIYkDKmfw1ymX?=
=?Windows-1252?Q?leWwnI2Jf/lDZXVGrPML3gvdMjVfqRW+qh8ZkPoP1Bldl3iXHIVRN8Yu?=
=?Windows-1252?Q?no+6mOVFRXw7M5so7LnoeuznIjRpxCjvpsB+nBciT1l7YDT3AeRUqkvY?=
=?Windows-1252?Q?45Nrk5TdbYkFuxAjt+ngAn6gGl0NF8+BJvnKp43VYG+lMfo763YBQmBm?=
=?Windows-1252?Q?lXYcfuX37T8ji7aKumln81EGDIGku1n8B1qOBGOLOZU1BIr1gQSSIYC0?=
=?Windows-1252?Q?UeVkV2jaJBdf2ERRsg1RQJs8gOOkevsuZe9FW/XzbaVa5seimZRJ6IGY?=
=?Windows-1252?Q?WmpOsY4ctO+c7CZjsx2UN+kQ2BZA3N+7YX8XBGm1MV1e18jNaeBKVlmK?=
=?Windows-1252?Q?H56upnQaw0Oqem1AhZGL9IfEtOsFaQNWpUCB5pRj95CLqi5kkOCaAwtu?=
=?Windows-1252?Q?Zv4Ri+PiGATuP5gGi8rlB5rk7rzB+6pUss2DOIReWpSZVBdRaDTdYjuI?=
=?Windows-1252?Q?OyLUL2yH6NYRD3XX5aDYpVqWdYUIJnQBXkYXXpjv254NxOd/kdmJ8Xuu?=
=?Windows-1252?Q?Pwmq67mW9RPML/gn6KJe/mQKGZEOnVEw1YU3FFXtvUDQfkY+ssCs71X1?=
=?Windows-1252?Q?aHsEbNrIYKFh5l1XjQFM+Pfk4e9toMyxkIv2WDKSSh8EKKxJGuEu7c0P?=
=?Windows-1252?Q?iHs6uYBCtr4SBfSNklcmuVRN+XpLbwei/joNZ6VXTttczsmU5JDdsR44?=
=?Windows-1252?Q?OuCI1F8TIHkQ6mmmML8yFRKUrse8fhxaBsHgmccbWnc7em4A1B4yzTJI?=
=?Windows-1252?Q?HsmnZldNXGyRDbglGsSW+BB+2bJRRH1ot1VnnUchSX5RusJ+L/b/5N5F?=
=?Windows-1252?Q?HJ2k3H/fVKiH8/s8eu/t0pv7Zo2bcPVCCp15l7mEoXcGObQm5mgIENd+?=
=?Windows-1252?Q?hqWxbwe193pj8PfUQ1kigHi+MbU1jUx1lZeUduO26E8YTslWIOQUj2fw?=
=?Windows-1252?Q?tEBOKEV88r1Gighu6wEpoJ2UhbLZsFdTdOeotAJMxXAx+HWhmv4uZiQh?=
=?Windows-1252?Q?2FTCyVLGreqrXgb7p/Xb2X4Bxx76G2VD9oG0NrcJdmso2pMMFS3Qwu78?=
=?Windows-1252?Q?7iUGvX7y5JDoTYY2AAXDfYbFDu0oqaSdsqkVLIiWhpvphEjs0xZvG9F4?=
=?Windows-1252?Q?SMOCDDzi7fV7IA=3D=3D?=
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM7PR07MB6248.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 750b1611-bf0f-4af4-8776-08da1bd23417
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2022 15:44:45.6604 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: P59ANs4sVteclhuxMqykm9c8pwfewI0ncf5ZRIEpLSOnMy7h6Y4oAdkakPvK5aTBf9saSFartWU7kPNcvPMT+A==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR07MB7214
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/aXIfVj2JfOyRK72ffcBhhHguC1M>
Subject: Re: [netmod] Tree diagram comment lines
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>,
<mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>,
<mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Apr 2022 15:44:56 -0000
From: Kent Watsen <kent+ietf@watsen.net> Sent: 11 April 2022 12:21 <tp> Thank to you all for the responses. I do like the full 40 page tree, as an appendix. If I want to look for the use of e.g. ip-address then the full tree is much easier to riff through than lots of little pieces. The I-D I mention has pieces as well, alongside text which I think right. I prefer tree snippet then text as opposed to text then snippet. The text is more detailed and I want to go from less detail to more detail. And there have been cases of hand-crafted snippets being out-of-line with the YANG module which is easier to spot with a tool-generated full diagram which I see as more reliable. (This last got through Last Call and the IESG - I wonder if the RFC Editor would have noticed). Thinking more, I mostly use the tree as a way into the module especially when the module use many groupings. I often start reading a module and get lost and go back to the overall tree to see the overall structure with 'uses' expanded. What would be really useful would be a comment line in the module (only 38 pages in this instance) which pyang would recognise and turn into a comment line in the tree so that the two could more easily be correlated, YANG to tree or vice versa. If have to run my own tools, on a Windows system, then I will look for something more user friendly! Tom Petch > But a 40 page tree diagram isn't very useful anyway, imo. If I want > the full tree diagram I can run a tool to generate it. Tree diagrams > are best used in combination with explanatory text to explain certain > aspects of the module design. Perhaps section 3.4 in RFC 8407 should be updated to explain this. Agreed. The netconf-client-server and restconf-client-server drafts had “full” diagrams that were many pages long. Fixed by: 1) Introducing each grouping individually (I wrote a script to extract a particular grouping tree diagram) 2) Convert all diagrams to NOT expand groupings. I.e., it prints just the grouping’s name. 3) The text for each grouping includes the hyperlink to the other sections where the each used-grouping is defined. 4) Remove from the document the mostly-useless super-long diagram. K.
- [netmod] Tree diagram comment lines tom petch
- Re: [netmod] Tree diagram comment lines Lou Berger
- Re: [netmod] Tree diagram comment lines Martin Björklund
- Re: [netmod] Tree diagram comment lines Benoit Claise
- Re: [netmod] Tree diagram comment lines Kent Watsen
- Re: [netmod] Tree diagram comment lines mohamed.boucadair
- Re: [netmod] Tree diagram comment lines tom petch