Re: [netmod] WG adoption poll draft-lhotka-netmod-yang-markup-00

Andy Bierman <andy@yumaworks.com> Tue, 18 April 2017 16:31 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 59628128E19 for <netmod@ietfa.amsl.com>; Tue, 18 Apr 2017 09:31:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 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_NONE=-0.0001, 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 pYAHnMPGDM6x for <netmod@ietfa.amsl.com>; Tue, 18 Apr 2017 09:31:54 -0700 (PDT)
Received: from mail-wr0-x230.google.com (mail-wr0-x230.google.com [IPv6:2a00:1450:400c:c0c::230]) (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 2FAD512EC2D for <netmod@ietf.org>; Tue, 18 Apr 2017 09:31:54 -0700 (PDT)
Received: by mail-wr0-x230.google.com with SMTP id z109so106356002wrb.1 for <netmod@ietf.org>; Tue, 18 Apr 2017 09:31:54 -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=Gs0uIh1epM/yMQgmTSqWrc8WJv/KHQSUYPaZJ27oaXc=; b=dIq0HcgTOhhDhiE/BXJ2CGmyQ0xguxAgvF/CAHMsMcNR7bZb6M2Hrr35qXIEJq8ztm HaAtumEbA5RCnXTt6pqQyZppsCwDvCgK0h87RP9IrT48pNalH/ULygl4ca+CkoGFy1C6 4Df6G4H5s/hZYcCrMEr7T2olblYHFAOLPBWLl4ew7d2UritYtUhkKXDdppF7URbgji8k dxZgveg5jKqtBGGGA5C/XHRVd/KSRi4waRnk4bT3TnD9ZoAM8W0NlKN1kQrjrLahD2Qv l2xjWHpS5bB5Z7ycDCzHPm9rnf1yOb/Xuz+J6VZilNYaLrDH8jhsQiYIatPpX68+9vyd LHTA==
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=Gs0uIh1epM/yMQgmTSqWrc8WJv/KHQSUYPaZJ27oaXc=; b=G/K3s0V2NO+BGB2PKDm0NAN5/coYCRCVMT/VNEFn0qTOaGCtJMEfgNqLY8Ej97WFG/ Fq04gVlW7yNBRwWaLxL/6nGDQsT7ZsLNT+KYkafxDNhXl//JCKCFljljiMHquCyecjFj GJx6Q73esA6uMBkRI8fik5o3CL+y2srd5nWlWclCEpyY3ZE/3GI4JWOyWMGxBsibw8uR tILI7OhTEbLX+NGUmbr37BsD64yJ8HxIjjiIi1MDxLZxa45Kfb2QzfqJWW11guRYdUKh aqmiY3bwS7ALc4Xlabw3hgGFjNzwtUVOpdaMD2OF2KJf2LtmwqtUDJQLMoXb8+sFfrwV KL0w==
X-Gm-Message-State: AN3rC/7S1L2kJUvOEtKTMZR4r8Z1Q7AwqupP7zL3N7C/jCV0nPm0962f fAgiB1BmZNo0/FuN7cBNNrPeVPBENw==
X-Received: by 10.223.129.4 with SMTP id 4mr26020178wrm.62.1492533112621; Tue, 18 Apr 2017 09:31:52 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.139.23 with HTTP; Tue, 18 Apr 2017 09:31:51 -0700 (PDT)
In-Reply-To: <f3b07f2c-9cf6-843f-48e7-1b1e813c2a77@cisco.com>
References: <10335DBC-AF4B-4CEF-AC4C-F0E4D27C13A6@juniper.net> <m2d1ck1o5q.fsf@birdie.labs.nic.cz> <80e51c0a-9463-8ebe-c35d-9f1fae8c07e9@cisco.com> <m28tn5u6rv.fsf@birdie.labs.nic.cz> <20170412130207.GA83817@elstar.local> <CABCOCHQ4g6RZc=Jj0zqEu8Sydo8HHOHpfMMFFX7JRCnUAnvm6A@mail.gmail.com> <06e201d2b44f$35c0a780$4001a8c0@gateway.2wire.net> <82424428-C5C0-4EA8-BBD2-6F52EEFD300F@nic.cz> <CABCOCHSjWW6GFH-sBCUq1NaDS89yid7PMbvqYwOwjEvSsOJmZg@mail.gmail.com> <f3b07f2c-9cf6-843f-48e7-1b1e813c2a77@cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 18 Apr 2017 09:31:51 -0700
Message-ID: <CABCOCHSsp5yc3gP=5dSL+BuEg87KdyZUa99p0h4PNwHffgrFqw@mail.gmail.com>
To: Robert Wilton <rwilton@cisco.com>
Cc: Ladislav Lhotka <lhotka@nic.cz>, "t.petch" <ietfc@btconnect.com>, Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>, Kent Watsen <kwatsen@juniper.net>, NETMOD WG <netmod@ietf.org>, NetMod WG Chairs <netmod-chairs@ietf.org>
Content-Type: multipart/alternative; boundary="94eb2c068598fe802d054d737167"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/xTOHd9kGo3Q2EXoforNrHND6BDk>
Subject: Re: [netmod] WG adoption poll draft-lhotka-netmod-yang-markup-00
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: Tue, 18 Apr 2017 16:31:56 -0000

On Tue, Apr 18, 2017 at 2:32 AM, Robert Wilton <rwilton@cisco.com> wrote:

>
>
> On 13/04/2017 17:08, Andy Bierman wrote:
>
>
>
> On Thu, Apr 13, 2017 at 5:45 AM, Ladislav Lhotka <lhotka@nic.cz> wrote:
>
>>
>> > On 13 Apr 2017, at 13:34, t.petch <ietfc@btconnect.com> wrote:
>> >
>> >
>> > ----- Original Message -----
>> > From: "Andy Bierman" <andy@yumaworks.com>
>> > Sent: Wednesday, April 12, 2017 5:44 PM
>> >
>> >> On Wed, Apr 12, 2017 at 6:02 AM, Juergen Schoenwaelder <
>> >> j.schoenwaelder@jacobs-university.de> wrote:
>> >>
>> >>> I think it is crucial that descriptions etc. remain human readable
>> >>> using plain text readers. Having to run a renderer to make sense out
>> >>> of descriptions etc. would be a big failure and things are even
>> > worse
>> >>> if modules use different dialects all over the place.
>> >>>
>> >>> I believe there is way more important work to get done than this
>> > (and
>> >>> I fear endless discussions about which adapted subsets of markdown
>> > or
>> >>> (whatever comes next) to use). I do not object this work, but I also
>> >>> do not support it at this point in time.
>> >>>
>> >>>
>> >> +1
>> >>
>> >> IMO this makes YANG less readable, especially without any agreement
>> >> on the specific markup supported. A YANG module should be readable by
>> > humans
>> >> without any special tools required.
>> >
>> > I agree.  I would say that if you cannot say it in text/plain, then you
>> > probably should not be saying it (something I would extend to e-mail but
>> > realise that I am less likely to get support there:-)
>>
>> OK, so if somebody writes
>>
>> leaf foo {
>>     description "This is my *favourite* leaf.";
>>     type string;
>> }
>>
>>
> Your premise is that the description-stmt is for the
> benefit of the model writer, not the model reader.
> Since YANG explicitly states this statement contains a human-readable
> string, it seems clear the benefit to the readers is more important.
>
>
> I see that the benefit of allowing markdown really is for the model
> reader.  Longer term, I assume that operators using YANG models probably
> won't interact so much with the raw YANG models themselves, but will be
> much more likely to interact with the constructed tree structure through a
> web browser, or generated APIs.
>
>
IMO it is more robust not to assume people never see the real YANG
statements.
What if these tools have bugs?  How would we ever know?

Allowing markup, e.g. so a paragraph of text can re-flow to fill a box
> seems useful to me, as does some sort of emphasis and lists.
>


This part confuses me.  I've written YANG to HTML tools (e.g.,
netconfcentral.org).
The tool has to render the entire module, not individual description-stmts.
Emphasis is usually formula-driven (like the keywords). The tool has to
know about the entire YANG module, not
just the descriptions.



>
> I also note that quite a lot (most?) language API documentation tools
> generally take some form of structured text, rather than relying on
> text/plain.
>


This makes sense if
  (1) the entire document is subject to markup, not little pieces
  (2) the only tool that needs to use the raw markup is a browser
  (3) the actual markup allowed is strictly controlled and standardized


> But I do agree to the point that this work seems less urgent than some of
> other items that are being worked on in NETMOD.
>

Good -- work such as the OpenConfig module catalog will have a much bigger
impact
demystifying YANG than bold text or an IMG bullet points instead of *.



>
> Rob
>
>
>
>
>
>
>
Andy