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

Lou Berger <lberger@labn.net> Mon, 08 October 2018 14:22 UTC

Return-Path: <lberger@labn.net>
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 BA321130DE3 for <netmod@ietfa.amsl.com>; Mon, 8 Oct 2018 07:22:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (768-bit key) header.d=labn.net
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 WAMyYApwKODQ for <netmod@ietfa.amsl.com>; Mon, 8 Oct 2018 07:22:06 -0700 (PDT)
Received: from gproxy3-pub.mail.unifiedlayer.com (gproxy3-pub.mail.unifiedlayer.com [69.89.30.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CAC4F130DCB for <netmod@ietf.org>; Mon, 8 Oct 2018 07:22:06 -0700 (PDT)
Received: from cmgw14.unifiedlayer.com (unknown [10.9.0.14]) by gproxy3.mail.unifiedlayer.com (Postfix) with ESMTP id EDBE9409D4 for <netmod@ietf.org>; Mon, 8 Oct 2018 07:55:05 -0600 (MDT)
Received: from box313.bluehost.com ([69.89.31.113]) by cmsmtp with ESMTP id 9W01gTCzcvdTu9W01gpU6s; Mon, 08 Oct 2018 07:55:05 -0600
X-Authority-Reason: nr=8
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=labn.net; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=WiBSA8dvEiJT1RMj081HvDsT6UoVPYaqkLwGfg/iL1M=; b=iTAz0L37WtOKZk+pjNd/rB+a8E awYxxFfM5nQrvPJCuMQ1qZFg2pi+BQJwinfnVKJcIFox4TqrEeVdlxC6q76kRycY7LA7vQ5CUHCCi KJhoIJY8j//DyAS8EAnxawyVa;
Received: from pool-100-15-106-211.washdc.fios.verizon.net ([100.15.106.211]:36136 helo=[IPv6:::1]) by box313.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from <lberger@labn.net>) id 1g9W01-000Tmw-JE; Mon, 08 Oct 2018 07:55:05 -0600
To: Balázs Lengyel <balazs.lengyel@ericsson.com>, Martin Bjorklund <mbj@tail-f.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
References: <e150939f-913b-d51d-d349-8e362ff55e2e@ericsson.com> <20181008.145313.1979034555219874418.mbj@tail-f.com> <4bcdc8d6-f776-3ae3-b452-29c64e92b131@ericsson.com>
From: Lou Berger <lberger@labn.net>
Message-ID: <28fe460c-f450-f910-caff-17b145cd6805@labn.net>
Date: Mon, 08 Oct 2018 09:55:01 -0400
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: <4bcdc8d6-f776-3ae3-b452-29c64e92b131@ericsson.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - box313.bluehost.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - labn.net
X-BWhitelist: no
X-Source-IP: 100.15.106.211
X-Source-L: No
X-Exim-ID: 1g9W01-000Tmw-JE
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: pool-100-15-106-211.washdc.fios.verizon.net ([IPv6:::1]) [100.15.106.211]:36136
X-Source-Auth: lberger@labn.net
X-Email-Count: 3
X-Source-Cap: bGFibm1vYmk7bGFibm1vYmk7Ym94MzEzLmJsdWVob3N0LmNvbQ==
X-Org: HG=bhcustomer;ORG=bluehost;
X-Local-Domain: yes
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/myScx6x-7dFNxW2JjZHMlXW7YQI>
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 14:22:09 -0000


On 10/8/2018 9:23 AM, Balázs Lengyel 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 used https://github.com/YangModels/yang for some time, but I don't
> know how up to date that is.

It's not too bad.  just checked an it's just missing one RFC'ed model 
(standard/ietf/RFC/ietf-i2rs-rib@2018-09-13.yang) and I just put in a PR 
for it.

(I have a cron job that auto generates branches to be merged, but do the 
PRs manually, see https://github.com/louberger/yang if interested.)

Lou

>
> 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
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> netmod mailing list
>>> netmod@ietf.org
>>> https://www.ietf.org/mailman/listinfo/netmod