Re: [netmod] I-D Action: draft-ietf-netmod-yang-tree-diagrams-02.txt size

Andy Bierman <andy@yumaworks.com> Fri, 27 October 2017 17:16 UTC

Return-Path: <andy@yumaworks.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 6AD5513B2BB for <netmod@ietfa.amsl.com>; Fri, 27 Oct 2017 10:16:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 4uxll_0LZKkC for <netmod@ietfa.amsl.com>; Fri, 27 Oct 2017 10:16:33 -0700 (PDT)
Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AB3CE138A38 for <netmod@ietf.org>; Fri, 27 Oct 2017 10:16:32 -0700 (PDT)
Received: by mail-lf0-x22b.google.com with SMTP id g70so8159084lfl.3 for <netmod@ietf.org>; Fri, 27 Oct 2017 10:16:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=C69pmwLiS0vqZCUnelIyJYzTK5+yp/wpZ4+XRVB+A+8=; b=wshm7V8xGvj7Ri72h/eesGx5LY89ylh1OQwHVaIuadL0nUl/hHQ4EtsaiUX8zxR3r3 zpfLnMKeZCHrwhpZTuTcc4Neomt5/neMtJPiKmaOuWpIqFcrbDYwiyLhJKjwZFK5mw3F CAW0VieleVtu+CFqD4IqXWHSoX5MOdU8wk5FBPUrqtIlBBVIL1oliCOKqhSl3Hh7x/Vq Qo0MT5oTKvic7MOzAqWkkAqOX///Kj2+NkJ6PuchvG0MtfiDi5Ca113zfT9Q7YOk1t+M 6DNBL5/ylF3Ylv4LISfTZJoUecAQiasDZQzZeDvQ610K+NVBdr0x3sj5DYZWw84QpGcq NByg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=C69pmwLiS0vqZCUnelIyJYzTK5+yp/wpZ4+XRVB+A+8=; b=Pd0qYDsoTAqgNmgtbUEutb7AR/wGZ1SEUJAeUC+2aBhpc06+kgFvKsxT66bpZ3P/wj tZtzHr774GJhbzmx/211IpG8bICV9yaCd2cbqq/OPEbR7pM45WvDhIHvGYcKPHi+jXyr Az3YpyeQuGAa+yUK1gu+KSgbmWjzBpAtdAoGKcfs4mo24BM2nTJqy4YYVu1cM42Zw0s9 QhscR4qJUazo26UD8tcxsvxqYrLZAr3/GmpBvYW15tFzTWqE+mgV1TZnmr2/seloKO37 U4HODj+A7yzh5+m5PRGr5uX59TyBJ6bsOrE1TfDe5xe3SLs3HZRQGKUvUV3VN5VjX9Ax Nssw==
X-Gm-Message-State: AMCzsaXX3ygUvgVqrbTxjioE5Pr5Cy/Ss5SA1f/49CbI5NkZjj6SpQGE ahWFFK6RuqSVolwdZQkEgBJEE1VPv10uV1Gg4FkBUw==
X-Google-Smtp-Source: ABhQp+Se1MaCWFOHXmQ2nZ2SXw5nPF+FogauN/wCzcdlm7p2AgJJzrretyYwUn8TxeiDqm/dl3Cs3xIfkvaRDNONOak=
X-Received: by 10.46.83.25 with SMTP id h25mr480844ljb.158.1509124590929; Fri, 27 Oct 2017 10:16:30 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.25.150.198 with HTTP; Fri, 27 Oct 2017 10:16:29 -0700 (PDT)
In-Reply-To: <58770c00-2d4a-f5b2-c0bf-cf52d680577a@labn.net>
References: <150893578927.4882.2117597388624976982@ietfa.amsl.com> <23892572-a0db-d24b-e591-a19799ace9ae@labn.net> <010301d34e7b$1d5303c0$4001a8c0@gateway.2wire.net> <d592e9c4-21c8-16d5-a0a9-f6ce54cd31da@labn.net> <20171026221736.cl3kpzo2i7zaa4qh@elstar.local> <3cb344fe-2d49-3fd1-90ad-e6ffe0734dc7@labn.net> <20171026234123.pt65l6ctgmx2hd55@elstar.local> <15f5d46ec50.27d3.9b4188e636579690ba6c69f2c8a0f1fd@labn.net> <20171027105159.up6ec5xwbcy75hcr@elstar.local> <34dbaaaa-8a06-f980-7bf8-4a54aa117423@labn.net> <20171027115700.u5xwq5xw347jbclp@elstar.local> <58770c00-2d4a-f5b2-c0bf-cf52d680577a@labn.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 27 Oct 2017 10:16:29 -0700
Message-ID: <CABCOCHTBe01nVSxQCBj9jH=Se2mNednoLhHETzxvuhHgWk9oeA@mail.gmail.com>
To: Lou Berger <lberger@labn.net>
Cc: "t.petch" <ietfc@btconnect.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="f403043601422a1d83055c8a7371"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/3g8Lpzs0DWdmb1JF2PtSsBlkbuU>
Subject: Re: [netmod] I-D Action: draft-ietf-netmod-yang-tree-diagrams-02.txt size
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: Fri, 27 Oct 2017 17:16:35 -0000

Hi,

I do not agree that 6087bis should contain every micro-managed detail
that could possibly pertain to YANG, such as what section the
YANG diagram belongs in, or what exact pyang settings should be
used in every possible usage scenario.

It seems obvious that a 36 page tree diagram for a 47 page module is absurd.
Use a lower tree depth or manually replace subtrees with ...


Andy


On Fri, Oct 27, 2017 at 5:36 AM, Lou Berger <lberger@labn.net> wrote:

> Juergen,
>
>
> On 10/27/2017 7:57 AM, Juergen Schoenwaelder wrote:
> > On Fri, Oct 27, 2017 at 07:04:24AM -0400, Lou Berger wrote:
> >>> We should encourage authors to split large diagrams into manageable
> >>> pieces. Sometimes suppressing lots of statistics counters helps,
> >>> sometimes showing which groupings are used instead of their expansion
> >>> helps. Sometimes it helps to separate major branches of a tree and to
> >>> discuss them separately. We should encourage authors to do these
> >>> things.
> >> I agree with this too, and this was the goal of the current text.
> >>> Perhaps we need to state clearly that it is not necessary to
> >>> include a plain fully expanded tree diagram.
> >> Please propose text for the draft!
> > Personally, I think usage guidelines do not belong into the yang tree
> > document in the first place. Having the document just define what tree
> > diagrams are would be my preference, leaving usage guidelines to our
> > guidelines document.
>
> Having a guidelines document that evolves naturally over time is just
> fine, much like coding conventions.  But trying to bundle or wait for
> the convention update both increases the cost of doing guidelines and
> leaves a time window when the guidelines are not documented.  While in
> some cases this may just fine, I think in this case it would leave much
> "folklore" undocumented.  In other words, I think we should capture the
> guidelines as best as we can in this document. As I think I've stated
> publicly before, I also think the we as WG have to figure out how to
> work more "nimbly" by resisting the temptation to have big documents
> that cover all aspects of the particular topic at once.
>
> I do think your observation on having two sets of guidelines is correct
> and not a good thing.  We can address this quite simply by (a) marking
> this document as updating 6087bis and (b) ensuring we have a full
> replacement to the tree guidelines provided in that document.
>
> >  Section 3.4 of 6087bis talks about tree diagrams
> > and I would prefer to have guidelines text in one place. But perhaps a
> > clear separation of 'here is stuff' from 'this is how we suggest to
> > use stuff' is difficult in practice. But what we have here is that we
> > now have two places where advice is given how to use stuff...
> >
> > That said, RFC 6087bis says:
> >
> >    YANG tree diagrams provide a concise representation of a YANG module,
> >    and SHOULD be included to help readers understand YANG module
> >    structure. Tree diagrams MAY be split into sections to correspond to
> >    document structure.
> >
> > With all the capital letters in place, the text might cause people to
> > draw the wrong conclusion that they have to include plain tree
> > diagrams. The text does not give a good explanation when a split
> > should be considered or that a full plain dump may not be needed or
> > where to find good examples of diagrams broken into pieces. The text
> > in the yang tree diagram document is actually better in this regard.
> >
> > The example in section 3.4 of RFC 6087bis is actually repeating the
> > non-NDMA /foo /foo-state style, well, we are getting off topic.
> >
> >>> In the case of draft-ietf-teas-yang-te-topo-12.txt, the fully expanded
> >>> tree diagram (36 pages) is simply in no good relation with the size of
> >>> the definitions (47 pages). And the authors of this document do the
> >>> right thing, they provide overview diagrams that leave out lots of
> >>> details and that are comprehensible. So is it valuable to keep the
> >>> full dump in the document?
> >> I personally don't think so, and questioned its usefulness.  I also
> >> suggested moving to an appendix if they really wanted to keep it.  For
> >> whatever reason they decided they wanted to keep it which is, of course,
> >> within their purview.
> >>
> >> So, I think the question for us is: what, beyond the change you suggest
> >> above, add to the tree draft to cover cases where authors really want to
> >> include such long trees?
> > At the end, WGs decide with the input from the authors, reviewers
> > etc. and not everything needs to have rules that we cast into RFCs.
> absolutely agree!
>
> Cheers,
> Lou
> > Perhaps we are better off having a few questions and answers on the
> > FAQ concerning tree diagrams.
> >
> > /js
> >
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>