Re: [netmod] Place to download Standard YANG Modules ?

Martin Bjorklund <mbj@tail-f.com> Thu, 11 October 2018 06:51 UTC

Return-Path: <mbj@tail-f.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 8DEE2130E44 for <netmod@ietfa.amsl.com>; Wed, 10 Oct 2018 23:51:34 -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, SPF_PASS=-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 Urx0Eh64mcXo for <netmod@ietfa.amsl.com>; Wed, 10 Oct 2018 23:51:32 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 4C8E2130E3A for <netmod@ietf.org>; Wed, 10 Oct 2018 23:51:32 -0700 (PDT)
Received: from localhost (unknown [173.38.220.61]) by mail.tail-f.com (Postfix) with ESMTPSA id 6F9531AE0310; Thu, 11 Oct 2018 08:51:31 +0200 (CEST)
Date: Thu, 11 Oct 2018 08:51:31 +0200
Message-Id: <20181011.085131.1823310178537216646.mbj@tail-f.com>
To: jernej.tuljak@mg-soft.si
Cc: balazs.lengyel@ericsson.com, netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <f51b337f-4c60-fe8e-16ee-8eaca0367dcc@mg-soft.si>
References: <e150939f-913b-d51d-d349-8e362ff55e2e@ericsson.com> <20181008.145313.1979034555219874418.mbj@tail-f.com> <f51b337f-4c60-fe8e-16ee-8eaca0367dcc@mg-soft.si>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/PxnlT2BVcRF5sQ159vrZIBBP5Kk>
Subject: Re: [netmod] Place to download Standard YANG Modules ?
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: Thu, 11 Oct 2018 06:51:34 -0000

Jernej Tuljak <jernej.tuljak@mg-soft.si> wrote:
> Martin Bjorklund je 10/8/2018 ob 2:53 PM napisal:
> > Hi,
> >
> >
> > Balazs Lengyel <balazs.lengyel@ericsson.com> wrote:
> >> Hello,
> >>
> >> What is the best way to download standard Yang Modules? I know the
> >> official answer is to download all the standards then extract the
> >> modules, however this is a "bit" cumbersome. Is there any better way?
> >> We had a git earlier. How up to date is that?
> > You can download them from IANA:
> >
> > https://www.iana.org/assignments/yang-parameters/yang-parameters.xhtml
> >
> > But there are two problems:
> >
> >   1) you have to download one at the time
> >   2) some of them have lost all indentation
> >      (e.g. https://www.iana.org/assignments/yang-parameters/ietf-voucher@2018-04-06.yang)
> >
> >
> > [on 2), I have it on my list to talk to them]
> >
> 
> If you do talk to them, also mention that
> "ietf-network-topology-state@2018-02-26.yang" in their list is
> actually just "ietf-network-topology@2018-02-26.yang" renamed, and
> that "ietf-voucher@2018-04-06.yang" does not have the same revision as
> the module that is part of RFC8366 (2018-05-09).

Done, and they have now fixed all these issues.

> Also, in at least two
> instances, I managed to somehow download a blank module file, which
> then magically downloaded properly after a retry.
> 
> Benoit went through the trouble of gathering modules from different
> sources and his blog entry includes standard modules [1]. I dare say
> that this blog entry is a much more reliable source compared to the
> IANA site.

The IANA site is getting better.  The new process is that the RFC
editor sends the YANG module to IANA as it is before it is put into
the text format in the RFC, i.e., before indentation and page breaks
and all that.

I just which there was a one-click way (or better some repo) to get
all files.


/martin

> [1] - https://www.claise.be/2018/06/ietf-yang-modules-statistiques/
> 
> > Or you can get them from some 3rd party place like yang-catalog, or
> > pyang.
> >
> 
> Pyang git repo has the files without revisions in their name, which is
> somewhat awkward.
> 
> Jernej
> 
> >
> > /martin
> >
> >
> >> It would be wonderful if this could be described in the Netmod WG
> >> wiki.
> >>
> >> (And sorry, no but I am not volunteering :-(   )
> >>
> >> regards Balazs
> >>
> >> -- 
> >> Balazs Lengyel                       Ericsson Hungary Ltd.
> >> Senior Specialist
> >> Mobile: +36-70-330-7909 email: Balazs.Lengyel@ericsson.com
> >>
> >>
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
>