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

Martin Bjorklund <mbj@tail-f.com> Mon, 08 October 2018 17:34 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 AEE9B131225 for <netmod@ietfa.amsl.com>; Mon, 8 Oct 2018 10:34:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-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 KPOEXOrHDu8I for <netmod@ietfa.amsl.com>; Mon, 8 Oct 2018 10:34:01 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 8E206130FA2 for <netmod@ietf.org>; Mon, 8 Oct 2018 10:29:09 -0700 (PDT)
Received: from localhost (h-80-27.A165.priv.bahnhof.se [212.85.80.27]) by mail.tail-f.com (Postfix) with ESMTPSA id 5E5C21AE0332; Mon, 8 Oct 2018 19:29:08 +0200 (CEST)
Date: Mon, 08 Oct 2018 19:29:08 +0200
Message-Id: <20181008.192908.2132329492705733862.mbj@tail-f.com>
To: balazs.lengyel@ericsson.com
Cc: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <4bcdc8d6-f776-3ae3-b452-29c64e92b131@ericsson.com>
References: <e150939f-913b-d51d-d349-8e362ff55e2e@ericsson.com> <20181008.145313.1979034555219874418.mbj@tail-f.com> <4bcdc8d6-f776-3ae3-b452-29c64e92b131@ericsson.com>
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/sQBbekPkLVzW5ATForL9m8ZJKbA>
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: Mon, 08 Oct 2018 17:34:04 -0000

Balázs Lengyel <balazs.lengyel@ericsson.com> wrote:
> Hello Martin,
> 
> Thanks for the info.
> 
> Yang-Catalog does not allow the download of modules. AFAIK it only
> gives you metadata about the modules.
> You mentioned download from pyang. How does that work?

I just meant that the pyang github repo contains the published IETF
YANG models.


/martin



> 
> I used https://github.com/YangModels/yang for some time, but I don't
> know how up to date that is.
> 
> regards
> 
> On 2018. 10. 08. 14:53, Martin Bjorklund wrote:
> > 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]
> >
> >
> > Or you can get them from some 3rd party place like yang-catalog, or
> > pyang.
> >
> >
> >
> > /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
> >>
> >>
> -- 
> Balazs Lengyel                       Ericsson Hungary Ltd.
> Senior Specialist
> Mobile: +36-70-330-7909 email: Balazs.Lengyel@ericsson.com
> 
>