From nobody Mon Jun 14 11:38:27 2021
Return-Path: <chopps@chopps.org>
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 B31133A2DBC;
 Mon, 14 Jun 2021 11:38:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level: 
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001, 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 cdYl8XySKo3T; Mon, 14 Jun 2021 11:38:15 -0700 (PDT)
Received: from smtp.chopps.org (smtp.chopps.org [54.88.81.56])
 by ietfa.amsl.com (Postfix) with ESMTP id E92C03A2D6C;
 Mon, 14 Jun 2021 11:38:14 -0700 (PDT)
Received: from smtpclient.apple (047-026-251-217.res.spectrum.com
 [47.26.251.217])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client did not present a certificate)
 by smtp.chopps.org (Postfix) with ESMTPSA id 04789811F1;
 Mon, 14 Jun 2021 18:38:13 +0000 (UTC)
From: Christian Hopps <chopps@chopps.org>
Message-Id: <6CA55CB9-CBF9-48C7-B925-892020D2ED72@chopps.org>
Content-Type: multipart/alternative;
 boundary="Apple-Mail=_447CE31D-42C5-404F-89C7-41AF110B8409"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\))
Date: Mon, 14 Jun 2021 14:38:12 -0400
In-Reply-To: <16776.1623679777@localhost>
Cc: Carsten Bormann <cabo@tzi.org>, anima@ietf.org, tools-discuss@ietf.org,
 netmod@ietf.org
To: Michael Richardson <mcr+ietf@sandelman.ca>
References: <6795.1623632992@localhost>
 <D907A27E-2A70-4292-ADFA-5D8B350E676C@tzi.org> <16776.1623679777@localhost>
X-Mailer: Apple Mail (2.3654.100.0.2.22)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/YtJFgUZ926nKjgWGD-v862DFxYM>
Subject: Re: [netmod] [Anima] looking for practical advice on managing YANG
 source in XML format RFCs
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, 14 Jun 2021 18:38:20 -0000


--Apple-Mail=_447CE31D-42C5-404F-89C7-41AF110B8409
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

I didn=E2=80=99t think you were actually looking for a non-xml solution, =
but as you mentioned in an earlier mail there=E2=80=99s my org-rfc setup =
which makes all this yang stuff pretty simple. The source of the YANG =
module is in the single org-mode formatted draft source, along with =
support for YANG validation of the module and examples, generating YANG =
trees, downloading YANG dependencies etc.. :)

An example use: =
https://github.com/choppsv1/draft-chopps-netmod-geo-location =
<https://github.com/choppsv1/draft-chopps-netmod-geo-location>

Thanks,
Chris.

> On Jun 14, 2021, at 10:09 AM, Michael Richardson =
<mcr+ietf@sandelman.ca> wrote:
>=20
>=20
> Carsten Bormann <cabo@tzi.org> wrote:
>> On 14. Jun 2021, at 03:09, Michael Richardson <mcr+ietf@sandelman.ca> =
wrote:
>>>=20
>>> 1) how to process yang files with YYYY-DD-MM into XML.
>>> 2) how to generate yang tree files.
>>> 3) how do I get my YANG includes downloaded, and do I put them into =
my repo?
>>> 4) how to do this with MT Makefiles?
>=20
>> I people could tell me what they need, we could develop a feature in
>> kramdown-rfc to handle this.
>=20
> One possibility is that kramdown-rfc ought to look for, and include =
the
> latest foo-YYYY-MM-DD.yang file, when told to ::include foo.yang.
> Alternatively, it could perhaps do the YYYY-MM-DD substitution itself.
>=20
>> (This would presumably also include support for YANG-SID files.)
>=20
> That's mostly just a question about including the results, and it's =
not that
> hard thing to add to the main Makefile.
>=20
> But, as I said, I xml2rfc doesn't have a useful include functionality, =
for
> when not working with kramdown.
>=20
> --
> Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 I=C3=B8T =
consulting )
>           Sandelman Software Works Inc, Ottawa and Worldwide
>=20
>=20
>=20
>=20
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod


--Apple-Mail=_447CE31D-42C5-404F-89C7-41AF110B8409
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div =
class=3D"">I didn=E2=80=99t think you were actually looking for a =
non-xml solution, but as you mentioned in an earlier mail there=E2=80=99s =
my org-rfc setup which makes all this yang stuff pretty simple. The =
source of the YANG module is in the single org-mode formatted draft =
source, along with support for YANG validation of the module and =
examples, generating YANG trees, downloading YANG dependencies etc.. =
:)</div><div class=3D""><br class=3D""></div><div class=3D"">An example =
use:&nbsp;<a =
href=3D"https://github.com/choppsv1/draft-chopps-netmod-geo-location" =
class=3D"">https://github.com/choppsv1/draft-chopps-netmod-geo-location</a=
></div><div class=3D""><br class=3D""></div><div =
class=3D"">Thanks,</div><div class=3D"">Chris.<br class=3D""><div><br =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On Jun =
14, 2021, at 10:09 AM, Michael Richardson &lt;<a =
href=3D"mailto:mcr+ietf@sandelman.ca" =
class=3D"">mcr+ietf@sandelman.ca</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div class=3D""><br =
class=3D"">Carsten Bormann &lt;<a href=3D"mailto:cabo@tzi.org" =
class=3D"">cabo@tzi.org</a>&gt; wrote:<br class=3D""><blockquote =
type=3D"cite" class=3D"">On 14. Jun 2021, at 03:09, Michael Richardson =
&lt;<a href=3D"mailto:mcr+ietf@sandelman.ca" =
class=3D"">mcr+ietf@sandelman.ca</a>&gt; wrote:<br class=3D""><blockquote =
type=3D"cite" class=3D""><br class=3D"">1) how to process yang files =
with YYYY-DD-MM into XML.<br class=3D"">2) how to generate yang tree =
files.<br class=3D"">3) how do I get my YANG includes downloaded, and do =
I put them into my repo?<br class=3D"">4) how to do this with MT =
Makefiles?<br class=3D""></blockquote></blockquote><br =
class=3D""><blockquote type=3D"cite" class=3D"">I people could tell me =
what they need, we could develop a feature in<br class=3D"">kramdown-rfc =
to handle this.<br class=3D""></blockquote><br class=3D"">One =
possibility is that kramdown-rfc ought to look for, and include the<br =
class=3D"">latest foo-YYYY-MM-DD.yang file, when told to ::include =
foo.yang.<br class=3D"">Alternatively, it could perhaps do the =
YYYY-MM-DD substitution itself.<br class=3D""><br class=3D""><blockquote =
type=3D"cite" class=3D"">(This would presumably also include support for =
YANG-SID files.)<br class=3D""></blockquote><br class=3D"">That's mostly =
just a question about including the results, and it's not that<br =
class=3D"">hard thing to add to the main Makefile.<br class=3D""><br =
class=3D"">But, as I said, I xml2rfc doesn't have a useful include =
functionality, for<br class=3D"">when not working with kramdown.<br =
class=3D""><br class=3D"">--<br class=3D"">Michael Richardson &lt;<a =
href=3D"mailto:mcr+IETF@sandelman.ca" =
class=3D"">mcr+IETF@sandelman.ca</a>&gt; &nbsp;&nbsp;. o O ( IPv6 I=C3=B8T=
 consulting )<br class=3D""> =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandelman =
Software Works Inc, Ottawa and Worldwide<br class=3D""><br class=3D""><br =
class=3D""><br class=3D""><br =
class=3D"">_______________________________________________<br =
class=3D"">netmod mailing list<br class=3D""><a =
href=3D"mailto:netmod@ietf.org" class=3D"">netmod@ietf.org</a><br =
class=3D"">https://www.ietf.org/mailman/listinfo/netmod<br =
class=3D""></div></div></blockquote></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_447CE31D-42C5-404F-89C7-41AF110B8409--

