Re: [netmod] yang to mib

Alan Dawn <alandawn91@gmail.com> Fri, 23 August 2019 23:35 UTC

Return-Path: <alandawn91@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 669DD12006A for <netmod@ietfa.amsl.com>; Fri, 23 Aug 2019 16:35:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.747
X-Spam-Level:
X-Spam-Status: No, score=-1.747 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 DckNBf5uk08Y for <netmod@ietfa.amsl.com>; Fri, 23 Aug 2019 16:35:44 -0700 (PDT)
Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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 A2E2512000F for <netmod@ietf.org>; Fri, 23 Aug 2019 16:35:43 -0700 (PDT)
Received: by mail-ed1-x534.google.com with SMTP id x19so15877822eda.12 for <netmod@ietf.org>; Fri, 23 Aug 2019 16:35:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=p+hvRqd0U/6kmXoV+5pri9f9wDF6Dr5LoXVLlTL4Ekc=; b=H8FA8x/jxXyZjq94cCq3sXNtfxDZSzdw365OdmwrH4s9hQ9oBcDRYqbtoBYtOzcY0Z vwHI1oyklfE04SKpX27a0PvKOgtFN3N7nHZLVms/hLb6yUC5dRnYPjV7T5O8186lFzL6 BUFfvdEN0DyFS52or8bdI3clPpF8u4AfI0AKH83iqHQ96LkSeqbyRmNndeGS34ylprCd cBa0TnpIOEubSupcVpUml284qB7mcDG+6rJvUnjU7sA2D1P2vA+19K+mKJjv8ARW8Z5x j8TjR/EvR0WI2lLrlhQvkruFK/lKRYfLQo3A7CioSEtngYzEYezU4Kp2XuYURQYcA0+C OYjg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=p+hvRqd0U/6kmXoV+5pri9f9wDF6Dr5LoXVLlTL4Ekc=; b=gjbQdpNSgJGSMW6cIwRQp+OSqBWjZ9rftka6Shd7fXv2nEJrgXsiO7MnMXdzglTIqV jCpCk2Nwdxs0jEJxe0yWvuJOQ45D/6g0M0NYy7Zs+TGXU/5/wBEqP7ixZZDFA8Pezgtx KeyIvcm/5L7yj7woadF74tjJbB0qZCHvUzi0mtwZMoNDV8F40HQz92vZ0HUtDUFc/A7S BXYkKZ0RcRFxcZp6rIc1qpCCtGBZ6RAR2tM+dIkKa/QkgnhT3KFtzaBuN52Wkbp2s717 TZC9ULVB/SYjLSEU5WOm+EZ4neVTJIx1OuXZsobFE3V/9x8SuijJyupbBMESvyg/Lscf 4N3g==
X-Gm-Message-State: APjAAAWNrDxUBisxwpYSwH1M/0tr0oy0Dxluuzw9v+h1TjYaFVmkCUWL h8SIwlAZLW9qR81Kp0stWICeytjJvaTQ0w/KQEI=
X-Google-Smtp-Source: APXvYqzr4NjBzAARnUkxc+6sg/aP15F4aJ1YoCOtv1/OWBVAh/auR3hQpLvKFqC67SJoHNac9hw7pinMbFQwBHfko0Y=
X-Received: by 2002:a17:906:e10b:: with SMTP id gj11mr6568931ejb.138.1566603342321; Fri, 23 Aug 2019 16:35:42 -0700 (PDT)
MIME-Version: 1.0
References: <20190823181736.ee562zme3udbj53u@anna.jacobs.jacobs-university.de> <20190823202045.15FF63E83B@rh7.snmp.com> <20190823205943.wuovwozmnwz7wmzn@anna.jacobs.jacobs-university.de>
In-Reply-To: <20190823205943.wuovwozmnwz7wmzn@anna.jacobs.jacobs-university.de>
From: Alan Dawn <alandawn91@gmail.com>
Date: Fri, 23 Aug 2019 19:35:35 -0400
Message-ID: <CAFS-HXqbyc=zwKj73gxFBj4Bh97FA+stowJLsj6qGgycK8iX7w@mail.gmail.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, David Reid <reid@snmp.com>, Alan Dawn <alandawn91@gmail.com>, netmod@ietf.org
Content-Type: multipart/alternative; boundary="000000000000b91a1d0590d143e0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/8FwnnVlUIAKfbSF_kaTItLkmCDg>
Subject: Re: [netmod] yang to mib
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: Fri, 23 Aug 2019 23:35:45 -0000

On Fri, Aug 23, 2019 at 4:59 PM Juergen Schoenwaelder <
j.schoenwaelder@jacobs-university.de> wrote:

> On Fri, Aug 23, 2019 at 04:20:44PM -0400, David Reid wrote:
> > > > Has there been any work done on defining a method of converting yang
> > > > modules to mib modules?
> > >
> > > Since YANG is way more flexible than SMIv2, this will only work if the
> > > YANG language is heavily restricted to a subset that is mappable. My
> > > recommendation is to not spent time on this.
> > >
> > > /js
> >
> > Some of the yang constructs that can't easily be mapped could be mapped
> with some creativity. I think the subset that can't be mapped would be
> relatively small.
> >
>
> Yes, I stand corrected, you can probably even map everything somehow.
> Whether such mappings result in _usable_ MIB module is going to be a
> question for which answers will be subjective.
>
> /js
>
>

Perhaps there would be value in defining a subset that could be reasonably
mapped.

I found a project that has a pyang module for yang to mib conversion:
http://help.openclovis.com/index.php/Convert_YANG_to_MIB_model
I was not able to get it to work, so I don't know how complete it is.