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

Jernej Tuljak <jernej.tuljak@mg-soft.si> Wed, 10 October 2018 07:53 UTC

Return-Path: <jernej.tuljak@mg-soft.si>
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 2EA92130DC4 for <netmod@ietfa.amsl.com>; Wed, 10 Oct 2018 00:53:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mg-soft.si
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 n3BTxkP8f4uX for <netmod@ietfa.amsl.com>; Wed, 10 Oct 2018 00:53:00 -0700 (PDT)
Received: from galileo.mg-soft.si (gate.mg-soft.si [212.30.73.66]) by ietfa.amsl.com (Postfix) with ESMTP id 9753B1293FB for <netmod@ietf.org>; Wed, 10 Oct 2018 00:53:00 -0700 (PDT)
Received: from [10.0.0.222] (tp-x61t.mg-soft.si [10.0.0.222]) by galileo.mg-soft.si (Postfix) with ESMTP id 8CDE6C417623; Wed, 10 Oct 2018 09:52:56 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.10.3 galileo.mg-soft.si 8CDE6C417623
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mg-soft.si; s=default; t=1539157976; bh=9zLK6Tglau1fx/ckqZIZjuDC5NfUTddUc+KBzC5rChA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=tWOQfe9f9T6GYcvE04DLD9Tuapw6eGSNljslBp/KKNq2OLql2IYHjyonnX9osVjbV atqJO7u+vQM6Du4Nsva6qi9IErI5YbdIeTwzavtw2PoOFocrEJKNPQ8OEgyIZtEB7O 3CeYulWI4KIH4fmGquYRE51lrX6gGret8csI+nHgX+Ni1wlZYEOF+HuNhk9Bs1uCSk gIAcLVUV+u8+Njb4eZ9l2lTPM/YYWSZXEZr1MzTo/q2h3w2xjscmSFQLF5nPSFFvLX YDJh2IG+VRGW0GOOQ8ET/1hv9ZDnpXZHr1PRNNFC+dJ+pzID4B2j8xBX0HRT0aXQ+a p6zwnW2qtPeTQ==
To: Martin Bjorklund <mbj@tail-f.com>, balazs.lengyel@ericsson.com
Cc: netmod@ietf.org
References: <e150939f-913b-d51d-d349-8e362ff55e2e@ericsson.com> <20181008.145313.1979034555219874418.mbj@tail-f.com>
From: Jernej Tuljak <jernej.tuljak@mg-soft.si>
Message-ID: <f51b337f-4c60-fe8e-16ee-8eaca0367dcc@mg-soft.si>
Date: Wed, 10 Oct 2018 09:52:48 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <20181008.145313.1979034555219874418.mbj@tail-f.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/KqxD5TFUhYSp5skMtuvvRACd09A>
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: Wed, 10 Oct 2018 07:53:03 -0000

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

[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