Re: [netmod] Proposal to enhance the YANG tree output

"t.petch" <ietfc@btconnect.com> Wed, 20 September 2017 10:20 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 7AC8D132D41 for <netmod@ietfa.amsl.com>; Wed, 20 Sep 2017 03:20:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.921
X-Spam-Level:
X-Spam-Status: No, score=-1.921 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_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-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 H3FfrYSkzkQw for <netmod@ietfa.amsl.com>; Wed, 20 Sep 2017 03:20:52 -0700 (PDT)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0126.outbound.protection.outlook.com [104.47.1.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A69EB1241F3 for <netmod@ietf.org>; Wed, 20 Sep 2017 03:20:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector1-btconnect-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=vMRcqCdADYKuB5kcJn/JKjUiWMHNwjnj2Pg2KQDnFh4=; b=NZ8Y0VsCBJXfme2C8wyM0pVnXByqpGzsh4YbP0cUbpf2tnnHu2fJC1bEIML1uYYCbZXi45j2C6D/5saHNseb7LSLGTif5SKaPmP+zZ/FuxRNGoRDtSrfPO/aUvSbn2G5Kq6pY2qd/pe/jod5ep+O/exIbCPL/0uAnN5oq+DLTy4=
Received: from pc6 (109.146.128.123) by HE1PR0701MB3002.eurprd07.prod.outlook.com (2603:10a6:3:4d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.5; Wed, 20 Sep 2017 10:20:48 +0000
Message-ID: <031701d331f9$e64cffe0$4001a8c0@gateway.2wire.net>
From: "t.petch" <ietfc@btconnect.com>
To: lberger@labn.net, Martin Bjorklund <mbj@tail-f.com>
Cc: netmod@ietf.org
References: <c5352dde-4026-7549-bafa-30b19d7bb789@labn.net> <20170919.132947.358857445863848356.mbj@tail-f.com> <990b8722-7a48-46ce-3f5d-96bc5cb66075@labn.net> <20170919.154238.1738748131929616921.mbj@tail-f.com>
Date: Wed, 20 Sep 2017 11:09:07 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
X-Originating-IP: [109.146.128.123]
X-ClientProxiedBy: AM5P194CA0007.EURP194.PROD.OUTLOOK.COM (2603:10a6:203:8f::17) To HE1PR0701MB3002.eurprd07.prod.outlook.com (2603:10a6:3:4d::8)
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: a32fcfba-ab84-4dbe-0083-08d5001143ae
X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1PR0701MB3002;
X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB3002; 3:Yt37XD5r1fCEh2DtpsM5w3ECulVj74A1j8nb6o+8ZKsv2bhskKoryfRzDicHfmMojSSU+O5jVQHdF1wKpUcFcxtxOpgB7jLSGKD4qwQWoaZ8MnIiBaeVoVVBAHRaYedP6P7+XAtRPl/JySDzy7pOXICZisiGbf9Gz0eQiVmM2dVNeYcHwmvvtQ2KzbpKu7KhpjqLThUL+fRD52UvPBj71Pem+HzzMp2IOP8bI8Kmy51BudoUKJChTya6NDHnaNTx; 25:rbZGkZrVTRyiST05sNy5G/bXxNKmzlmhiVSchMqC7l9q7ZITg72gYjj9s4pzypVOt9YjYwMZaaWZZvWraf8YFfIYFFZmhSZHRVcM4x5BQ00L4kt/0SlM9qzlLiOBKYz3AEdteL6VpoKit72XzBLGSaSE9LYqV621Qc0S4Tniy7iUX4YPWFJoPymUrBF3XsE2i83APAN3IPgSMtrlf4epJ6Joc/+UlzfEAb5RVyp+YtMFaBjZqpKLmwrIA3vERSL7hWE4XuWb3S47g4rxwkCeq40zYZjbVKE3YFGbptDJyEFb0CZMYBrwZIrVLII1BOyH4/8pn0FtRISaW4SwAkFZcA==; 31:4pKEB+cY1lpUyibZHAAK20qKy8o+SFoNasGZgsZYTLw1A6EbyWmdLgO1MuXorMnsIwJv3scF2cedgp0H6BboGyyIsHaTHErzRZmT25LTXtgj9rPW7e9dz0QDoeKRweviBgGkfvOtM0MsYgQrHuu0IbffYF31pMDj+Xl/Fn03LzrqblTYT7jtjAvjOQzKN16/XicBdbaEmiG4ccua21JxAqt8sXqST8i2TxmOTzYPiDE=
X-MS-TrafficTypeDiagnostic: HE1PR0701MB3002:
Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ietfc@btconnect.com;
X-Microsoft-Exchange-Diagnostics: 1; HE1PR0701MB3002; 20:Oquyl4ZsLKwK99XD9AMZ8oLzwHtDTac9z/hrdnx/+M6FCdCQ6o7ZrhtA3Xcq291iYPIz+D1hXBCYLWo0QjeaRjPF2CdYCh0bpp6OHN/ziFYQ/2Sp0aiN1EPwYhQ9TBKjF7LgfbNwoPRWFmjfz6qHJYidurEtna343dHzSHd0zIjmh2jKsJb7mhKxCzkFJw68OlAu3sT/HnX0y21Pmn3cCnJchHW/zon/kovREU/WOPU73Sek4muejyBFlZQFxFt9ycxSb+MDJFx+OJTiYooL5YRRZ1FBT3KXxykOhOcwLfjkP1w9orbHNHyZ56FosEIOs+OEgDOCuvgPLnRzvWPodQ==; 4:3hjIytgcRiRwwVbKCoDXxYQ83EvN2BCcZv0cRV6gN5HUC7Zbt1Mc+K7fACMJg0v/7kr3bCpEtQs3rqP6NZ3LDBdPp38A4EzypeNKHFDgN9eGL+RHFxSG/XTCB+0bjViGjg5o7fq6+90uXd5JBqsmyCFWIWK3318b2/gWXZiLp56iOi5MA/bZ4sl/1QhTLWxkx+oSbF3AuvV+MdwybTGzevgn7bbKEglnOLdKiVVwFCrQc3kqdNkh9IeNdvwmaLi6XHWZAAh+Tq+twGBKNSMIhZJIeARQWNM8bf02UuTQl3ZW5SiRe0FHQsoRzbyHroURg+5L8kovfCDoSFeHtXibeQ==
X-Exchange-Antispam-Report-Test: UriScan:(158342451672863)(95692535739014);
X-Microsoft-Antispam-PRVS: <HE1PR0701MB30020E6F89254E3528AB6869A0610@HE1PR0701MB3002.eurprd07.prod.outlook.com>
X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(61425038)(6040450)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(61426038)(61427038)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0701MB3002; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0701MB3002;
X-Forefront-PRVS: 04362AC73B
X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(346002)(376002)(51444003)(24454002)(199003)(13464003)(189002)(377454003)(97736004)(53936002)(53546010)(6116002)(3846002)(1456003)(316002)(110136005)(16526017)(2906002)(68736007)(25786009)(6666003)(4720700003)(62236002)(47776003)(9686003)(23676002)(189998001)(66066001)(116806002)(2870700001)(101416001)(44716002)(33646002)(84392002)(1556002)(61296003)(6496005)(8936002)(81166006)(8676002)(81156014)(6246003)(229853002)(4326008)(81686999)(305945005)(50466002)(50986999)(5660300001)(105586002)(478600001)(81816999)(93886005)(86362001)(50226002)(106356001)(14496001)(7736002)(76176999)(44736005)(6486002)(74416001)(7726001); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0701MB3002; H:pc6; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:1; LANG:en;
Received-SPF: None (protection.outlook.com: btconnect.com does not designate permitted sender hosts)
X-Microsoft-Exchange-Diagnostics: 1;HE1PR0701MB3002;23:G33UdBTqUj8lpBBFRHMVJkd3GJv+90LC9E4C+vs3K4FCQ5CM3/lTTny0qbthjLpPBwene/dTO8p3Pbg15hJ2iSSJlgn+AJcXd6S+UbVi28/dKt4nGqoj8lykTZHT9OC2YXdX1QIRHaVjfYiXkZfJp26CASHBDWPwWOIBZdiutP3DW4e29QFXbpOs6eZGd8PJUF5LwWtLTwzyD99jkuVPmpYbR9UtIUyLblQfGNomCOJk5z+5PY6BtCZGhaLWQr65m9IW6FOc+68rhpYiGAVG1aZZWjwGo/91/XFBfWILtSMCFuE0rF7x0ftYxZIabUJ/4Z8KtBL5oJhBf1wRZ5RE4EGwQveXE+2rZMBO5ov398hF/5yP4UqH3Nb2rpOOaog6HxKJYPEt2I+DpmsS6WVehNlJlHj4RCMAgcJInRiLDzKISkFzIZDrjInHyPq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ics: 1; HE1PR0701MB3002; 6:aCgPVKo2F9Y6EPLXslQn6z+fLLU76vSlxOVRM8GuOqfEdx7fpeyFnfhscD1BdmVuHmKWd1iV9eTEFEIf0+0ce33PhXPCobDS8b96L6G1vn8IHAPpKEGixSocs++wrXQHJn3xxrOpjK/WhcoeCLUcrumX7sIdqR7vo6uBDmiT824jO5K+2XIOByxkSycfY6xzZiIbGsVx3VFw1LeqXnycMUbzamzvJgSKQW7/piEV1A9Spj8VhHoP6d2nPNuLQRQYmHeC2CByIZrsW9PexokQJiWmRJrUXv4QcRXhojnjtquUubuq7Sl6BpSwiMgotYUOwGaWkNPXNxD91AvawTxkqA==; 5:A73EGccDWv4JHss+li/qqm7vf7V/oEZQj1BD1p03mufOmNu+264XIb3nNCcEkE05dTK/C1+/1osJ/dyiI7D/tUUC/QhwG3nN+FsCGirf8gNjKGgrpxk5eUi2s4cGsrny+NQ05xLTBnjuvqcltuKnfA==; 24:IEZqSCZtNKCMCTEXrREVr32jchc/TuB8sKdjj3AbyGmUi7RV8KDZ1q2jB2CnbPwvuKJCz7nPYcdRgMqG/rwEvTk0NdfYI8l1JBofzl6oe+c=; 7:KlKjabVzJbDSY023/0mnlVTA+BqqftDn1slDSPtqj2wzdcPEslq/0wKtc+CKbcrtpy+65D+wXpA1cQXxFvntaoKB4Tuw8cdbVgkdOROjsFTh/I27sG/bQ0z6VHtcYLvQLn4ogw533QZjkwWQigDEoNQoc8eYbhyHvDDwHfl1H41rIRuqIJ7TpjIUzgz1cWF0ucJvrGoWu22k2dxYur71rJ1MwmsdkUgvt4At/u5DNa8=
SpamDiagnosticOutput: 1:99
SpamDiagnosticMetadata: NSPM
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Sep 2017 10:20:48.8495 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB3002
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/YEynvl8VbHNGyMOGHE8YTuH4Ils>
Subject: Re: [netmod] Proposal to enhance the YANG tree output
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Wed, 20 Sep 2017 10:20:54 -0000

----- Original Message -----
From: "Martin Bjorklund" <mbj@tail-f.com>
Sent: Tuesday, September 19, 2017 2:42 PM

> Lou Berger <lberger@labn.net> wrote:
> >
> > On 9/19/2017 7:29 AM, Martin Bjorklund wrote:
> > > Lou Berger <lberger@labn.net> wrote:
> > >> Martin,
> > >>
> > >> Speaking as a contributor:
 > >>
> > >> On 9/15/2017 7:40 AM, Martin Bjorklund wrote:
> > >>> Robert Wilton <rwilton@cisco.com> wrote:
> > >>>> On 15/09/2017 11:21, Ladislav Lhotka wrote:
> > >>>>> Andy Bierman píše v Čt 14. 09. 2017 v 08:43 -0700:
> > >>>>>>
> > >>>>>> Actually I liked the early pyang output that was concise and
easy to
> > >>>>>> remember.
> > >>>>>> The current format gets very cluttered and there are too many
little
> > >>>>>> symbols
> > >>>>>> to remember them all.
> > >>>>> I agree.
> > >>> Me too.  The current draft adds three new magic symbols: "mp"
"@" and
> > >>> "/".
> > >>>
> > >>> "mp" is for a mount point, and it can be generated directly from
the
> > >>> YANG modules.
> > >>>
> > >>> Directly under a "mp", "/" and "@" are used to indicate that a
node is mounted
> > >>> or available through a parent reference, respectively.
> > >>>
> > >>> I actually question the usability of "/" and "@".
> > >> I agree that / and @ are something new, and enabled by schema
mount.
> > >> There have been repeated comments in the RTG WG that there needs
to be
> > >> some way for vendors to convey what they have implemented with
Schema
> > >> mount
> > > If that's the requirement, using the tree diagram is probably not
the
> > > best way.  The tree diagram is intended to provide an overview of
a
> > > given (set of) YANG module(s).
> > >
> > > A perhaps better way to convey the information is to create a file
> > > with an instantiated /schema-mounts tree.
> > using what syntax? JSON and XML really isn't that easy for the
(human)
> > reader to parse.
>
> Either JSON or XML.
>
> > >> and this is one way to help convey (a) what is expected of server
> > >> implementors and (b) what client implementors should expect.
> > >>
> > > Hence the
> > >> current draft text:
> > >>
> > >> In describing the intended use of a module containing a mount
point,
> > >> it is helpful to show how the mount point would look with mounted
> > >> modules.
> > >>
> > >> The whole point of trees is to facilitate understanding for those
who
> > >> are less familiar with a model than the authors, and IMO that's
the
> > >> paramount perspective in this discussion.
> > > Fully agree!  I would say that we have to make sure that the
diagrams
> > > can be understood by people less familiar with the technology than
the
> > > authors.  Mixing schema and instance data does not help here.
> >
> > Can you propose an alternative?
>
> As I have written before, I think the "/" is not needed, so I would
> remove that.  I would also not list the nodes from "parent-references"
> in the same tree ouput.  It is not clear to me that this level of
> detail is needed in the tree, and - as noted before - it isn't even
> correct to list e.g. "interfaces" when the parent-reference in fact
> selects a single interface.
>
> > The routing WG participants seem to
> > find these useful, we can also ask there for broader input if you'd
like.
>
> One approach is to add the union of eveything that some people find
> useful.  In the end we have to look for WG consensus.  Several people
> have said that they prefer a less cluttered format.

A union is what might be termed the OSI approach to design, an approach
that led to ... well, ISIS and that's about it.

draft-ietf-isis-yang-isis-cfg-18 has some 10 pages of tree structure
which are of little help to me in understanding the module.

With draft-ietf-teas-yang-te-topo-12, the tree structure
runs to over 35 pages and then I think that the tree structure has
failed.

Adding more symbols will not help.

Less is More.

Tom Petch

> > >>> Since a parent
> > >>> reference can be very specific, e.g. one specific interface, it
isn't
> > >>> really accurate to show:
<snip>