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

Mahesh Jethanandani <mjethanandani@gmail.com> Thu, 11 October 2018 19:42 UTC

Return-Path: <mjethanandani@gmail.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 38CB6130DE7 for <netmod@ietfa.amsl.com>; Thu, 11 Oct 2018 12:42:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 6-z6n8bjEdS7 for <netmod@ietfa.amsl.com>; Thu, 11 Oct 2018 12:42:10 -0700 (PDT)
Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 53FF8130ED7 for <netmod@ietf.org>; Thu, 11 Oct 2018 12:42:10 -0700 (PDT)
Received: by mail-pg1-x52c.google.com with SMTP id v133-v6so4657380pgb.2 for <netmod@ietf.org>; Thu, 11 Oct 2018 12:42:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=ACbDFirW7jPE1aetsFXxHFh2GS1CJk+uPxP3e0eZTVg=; b=NYyaOnU04gtHd/ysoscV5yI8h0oen1CYvb96u2v9e26tPEZ/xAJWSCLG2eaXqx9ImD rVvqezVOLQWmwWRiEJf68956VXcbkK7Lj7IR2b5v19H7uVxj8jMH45pYuk+EGhDhVL0o W1hqhXQyD0TYvvlVHT4b/9Eru0BE0/W3H3eF4+ITEtBg9+2Db2ZrMXQO9Rx2yLXYCEjd sG6XpkXMAG3DLGm7J2pUvzyeapGTGWLc921UErRyKCDY1puv+xaAnR5wt7CYApaMsp8Z 8c4uUQFZ31vzMWtQJJu+bGwz3n8Haxn8PlC9tWZ1R4jn4uXE1aMpi/wQBhfRGA2Uldvh gkJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=ACbDFirW7jPE1aetsFXxHFh2GS1CJk+uPxP3e0eZTVg=; b=tdWkvgOZzH13zsCVi8axKmVQMOhi9FmsEquR85W4rtf7xXEMVIXTIWQ4cf5Rcvf3wm Gdfhx2J0Y8N4D8nsmNzW7eOciCtT0/1GQRieWM6MVibXNitEmkS+K0RT4+QK0sPDB2nJ Br/BFk/NWwcmVitY3nSkFMOAqw0po5fUJ4QtQQ8ZdaUTx+goTcREW229rzEnNTaSD2OS qNVzi7pEJ1GubdvQ1OlKNYoqECni3kZ8mezlhG7N62oaClsmJJ77OyvwYkPshYzjFbAV WHmjKDQgxphHW91D5x2oNj+HxE4p4hVrxrVWe2B7IQw431nMMQBGFPwYQva5/o2QkQX3 +Qag==
X-Gm-Message-State: ABuFfoj9GXXv3qWofXz6OUYruv8pP9TdDpNK8lNGHmDL7nYjb0uKB/hZ HDqCvC+EEbXVffDMKp/VWwQ=
X-Google-Smtp-Source: ACcGV6058SC32/8qg8KeqRhZmzXt/wtErorxaLdpppygEgoyAZ4R5lhbHY9uA1hHPBvW1dokcuzEbA==
X-Received: by 2002:a62:1b45:: with SMTP id b66-v6mr2887606pfb.94.1539286929726; Thu, 11 Oct 2018 12:42:09 -0700 (PDT)
Received: from [10.33.122.212] ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id g123-v6sm34907029pfc.67.2018.10.11.12.42.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 12:42:08 -0700 (PDT)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-Id: <C567E340-932E-4F04-B439-5B22A152EA6E@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_AB23E603-A815-40B5-96D0-0C45FEF57744"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Thu, 11 Oct 2018 12:42:07 -0700
In-Reply-To: <20181011.170459.1195717619306547806.mbj@tail-f.com>
Cc: jernej.tuljak@mg-soft.si, netmod@ietf.org
To: Martin Bjorklund <mbj@tail-f.com>
References: <f51b337f-4c60-fe8e-16ee-8eaca0367dcc@mg-soft.si> <20181011.085131.1823310178537216646.mbj@tail-f.com> <2DC2347C-3029-4033-BC35-9F308201ADF4@gmail.com> <20181011.170459.1195717619306547806.mbj@tail-f.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/JmyXdeXUxSCTttSiE10pOmfZYyc>
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 19:42:12 -0000


> On Oct 11, 2018, at 8:04 AM, Martin Bjorklund <mbj@tail-f.com> wrote:
> 
> Mahesh Jethanandani <mjethanandani@gmail.com> wrote:
>> 
>> 
>>> On Oct 10, 2018, at 11:51 PM, Martin Bjorklund <mbj@tail-f.com> wrote:
>>> 
>>> I just which there was a one-click way (or better some repo) to get
>>> all files.
>> 
>> There is. Benoit had written it, but for the life of me I cannot
>> remember what it is called.
> 
> I meant from IANA.  3rd party mirrored repos are fine, but it would be
> nice to get them directly from IANA in a simple way.

Ok. Here is the process.

You can get the entire IANA repository by doing this:

rsync -avzH rsync.iana.org <http://rsync.iana.org/>::assignments std/iana

But if you care just about the YANG models in the IANA repository, do this:

rsync -avz --delete rsync.ietf.org::iana/yang-parameters .

> 
> 
> /martin

Mahesh Jethanandani
mjethanandani@gmail.com