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

Ladislav Lhotka <lhotka@nic.cz> Wed, 19 April 2017 09:09 UTC

Return-Path: <lhotka@nic.cz>
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 E057B1315AD; Wed, 19 Apr 2017 02:09:13 -0700 (PDT)
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, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 XGZIH2Yptvp0; Wed, 19 Apr 2017 02:09:12 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 36D551315AC; Wed, 19 Apr 2017 02:09:12 -0700 (PDT)
Received: from localhost (unknown [195.113.220.115]) by trail.lhotka.name (Postfix) with ESMTPSA id 014491820043; Wed, 19 Apr 2017 11:09:58 +0200 (CEST)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Robert Wilton <rwilton@cisco.com>, Andy Bierman <andy@yumaworks.com>
Cc: "t.petch" <ietfc@btconnect.com>, Jürgen Schönwäl der <j.schoenwaelder@jacobs-university.de>, Kent Watsen <kwatsen@juniper.net>, NETMOD WG <netmod@ietf.org>, NetMod WG Chairs <netmod-chairs@ietf.org>
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>
Date: Wed, 19 Apr 2017 11:09:09 +0200
Message-ID: <m2mvbc69xm.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/YnzcRqavzf8Q9ner5pcQZF6CuOc>
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: Wed, 19 Apr 2017 09:09:14 -0000

Robert Wilton <rwilton@cisco.com> writes:

> On 13/04/2017 17:08, Andy Bierman wrote:
>>
>>
>> On Thu, Apr 13, 2017 at 5:45 AM, Ladislav Lhotka <lhotka@nic.cz 
>> <mailto:lhotka@nic.cz>> wrote:
>>
>>
>>     > On 13 Apr 2017, at 13:34, t.petch <ietfc@btconnect.com
>>     <mailto:ietfc@btconnect.com>> wrote:
>>     >
>>     >
>>     > ----- Original Message -----
>>     > From: "Andy Bierman" <andy@yumaworks.com
>>     <mailto: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
>>     <mailto: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.
>
> 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.

Absolutely. People are converting YANG modules to UML and other formats.

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

Of course, I am far from claiming that this is urgent or terribly
important, I just realized in my recent work that lightweight markup can
make life of tool makers easier without significantly complicating the
reading of module source text.

Lada

>
> Rob
>
>
>
>
>
>

-- 
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67