Re: [netmod] [Anima] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Christian Hopps
I didn’t think you were actually looking for a non-xml solution, but as you mentioned in an earlier mail there’s 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

Re: [netmod] [Anima] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Michael Richardson
Carsten Bormann wrote: cb> How about >> cb> {::include foo--??-??.yang} >> cb> and, if there is no such file, kramdown-rfc expands the wild card in cb> the directory and uses the numerically latest file? >> >> You'd use shell globs? > Yes. Any need to go

Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-06-08

2021-06-14 Thread Andy Bierman
On Mon, Jun 14, 2021 at 10:40 AM Sterne, Jason (Nokia - CA/Ottawa) < jason.ste...@nokia.com> wrote: > Hi guys, > > I can understand that concern; and in particular for something like the > new import by "revision-or-derived". Ignoring that extension can mean tools > may not build the right schema

Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-06-08

2021-06-14 Thread Sterne, Jason (Nokia - CA/Ottawa)
Hi guys, I can understand that concern; and in particular for something like the new import by "revision-or-derived". Ignoring that extension can mean tools may not build the right schema (although is that any worse than today without using import by revision ?). Despite that issue, I'd still

Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-06-08

2021-06-14 Thread Kent Watsen
> I meant the current work is using extensions instead of new language > statements. > Not that the yang-version will never be changed in the future. Ah, okay. > It is not a matter of "when" if new functionality is added via extensions. > In theory the WG could add new functionality to YANG 1

Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-06-08

2021-06-14 Thread Andy Bierman
On Mon, Jun 14, 2021 at 9:38 AM Kent Watsen wrote: > > > > Good thing we are not discussing YANG-next... >> >> Sarcasm? ;) >> > > No. The NETMOD WG has repeatedly decided not to produce a new YANG language > version in which the yang-version string is changed. > > > That’s not possibly true. I

Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-06-08

2021-06-14 Thread Kent Watsen
> > Good thing we are not discussing YANG-next... > > Sarcasm? ;) > > No. The NETMOD WG has repeatedly decided not to produce a new YANG language > version in which the yang-version string is changed. That’s not possibly true. It's a matter of “when", not “if”, unless you’re anticipating

Re: [netmod] [Tools-discuss] [Anima] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Salz, Rich
Netmod and anima moved to bcc. >You'd use shell globs? I think it might be better to use PCRE. Horrible idea to use PCRE instead of globs. ___ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod

Re: [netmod] [Anima] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Carsten Bormann
On 2021-06-14, at 18:26, Michael Richardson wrote: > >cb> How about > >cb> {::include foo--??-??.yang} > >cb> and, if there is no such file, kramdown-rfc expands the wild card in >cb> the directory and uses the numerically latest file? > > You'd use shell globs? Yes. Any

Re: [netmod] [Anima] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Michael Richardson
Carsten Bormann wrote: >> One possibility is that kramdown-rfc ought to look for, and include >> the latest foo--MM-DD.yang file, when told to ::include foo.yang. >> Alternatively, it could perhaps do the -MM-DD substitution itself. cb> How about cb> {::include foo-?

Re: [netmod] [Anima] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Carsten Bormann
I can’t help you with your dark desires to use XML, but I would propose the following fix for that: — use xi:include or src= for the XML source (I forget which one works), with a static name — simply generate a symlink from the most recent .yang to the static name in the Makefile — use --expand

Re: [netmod] [Anima] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Michael Richardson
Carsten Bormann wrote: > On 14. Jun 2021, at 03:09, Michael Richardson > wrote: >> >> 1) how to process yang files with -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 t

Re: [netmod] [Anima] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Carsten Bormann
> One possibility is that kramdown-rfc ought to look for, and include the > latest foo--MM-DD.yang file, when told to ::include foo.yang. > Alternatively, it could perhaps do the -MM-DD substitution itself. How about {::include foo--??-??.yang} and, if there is no such file, kramdown

Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-06-08

2021-06-14 Thread Andy Bierman
On Mon, Jun 14, 2021 at 3:34 AM Kent Watsen wrote: > > > > Good thing we are not discussing YANG-next... > > Sarcasm? ;) > No. The NETMOD WG has repeatedly decided not to produce a new YANG language version in which the yang-version string is changed. > I do wonder if it’s not about time we m

Re: [netmod] [Anima] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Michael Richardson
Carsten Bormann wrote: > On 14. Jun 2021, at 03:09, Michael Richardson wrote: >> >> 1) how to process yang files with -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

Re: [netmod] YANG Versioning Weekly Call Minutes - 2021-06-08

2021-06-14 Thread Kent Watsen
> Good thing we are not discussing YANG-next... Sarcasm? ;) I do wonder if it’s not about time we make another go at that effort...perhaps a 111-hum on interest? That said, there’s a world apart from WG-interest and author-commitments. In either case, said effort wouldn’t complete for some

Re: [netmod] [Anima] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Kent Watsen
Hi Michael! There isn’t a standard of any sort, but as an active author of a large number of drafts, I’ve been force to automate as much as possible: - validating the schema - validating examples - generating tree diagrams - stitching all off the above into an XML file - on a per-build

Re: [netmod] looking for practical advice on managing YANG source in XML format RFCs

2021-06-14 Thread Ladislav Lhotka
Hi Michael, you can check my project YANG-I-D [1] for some ideas. The most elegant way of including YANG modules in RFCs would be to treat the RFC source as a compound XML document combining xml2rfc with YANG modules in the YIN syntax - if only xml2rfc could process it. Lada [1] https://githu