Re: [netmod] Inventory YANG model (entity-MIB)

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Fri, 06 March 2015 11:05 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 82A2B1A913E for <netmod@ietfa.amsl.com>; Fri, 6 Mar 2015 03:05:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.859
X-Spam-Level:
X-Spam-Status: No, score=-3.859 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01, WEIRD_PORT=0.001] autolearn=ham
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 JsGfYo3qkO5D for <netmod@ietfa.amsl.com>; Fri, 6 Mar 2015 03:05:45 -0800 (PST)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 662BE1A905E for <netmod@ietf.org>; Fri, 6 Mar 2015 03:05:44 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id EB574135A; Fri, 6 Mar 2015 12:05:41 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id XEJDzimW_Jyw; Fri, 6 Mar 2015 12:05:16 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas3.jacobs-university.de (Postfix) with ESMTPS; Fri, 6 Mar 2015 12:05:41 +0100 (CET)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id CC5DD20036; Fri, 6 Mar 2015 12:05:40 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius3.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id IfasBYg602lo; Fri, 6 Mar 2015 12:05:39 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id A2B062003A; Fri, 6 Mar 2015 12:05:37 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id CD61F325F35C; Fri, 6 Mar 2015 12:05:36 +0100 (CET)
Date: Fri, 06 Mar 2015 12:05:36 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Benoit Claise <bclaise@cisco.com>
Message-ID: <20150306110536.GA73575@elstar.local>
Mail-Followup-To: Benoit Claise <bclaise@cisco.com>, NETMOD Working Group <netmod@ietf.org>, draft-dong-i2rs-network-inventory@tools.ietf.org, "i2rs-chairs@tools.ietf.org" <i2rs-chairs@tools.ietf.org>
References: <54F985E2.6020304@cisco.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <54F985E2.6020304@cisco.com>
User-Agent: Mutt/1.4.2.3i
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/MpPfJl_LRByhsHe9Jg7EMy5wwAM>
Cc: draft-dong-i2rs-network-inventory@tools.ietf.org, "i2rs-chairs@tools.ietf.org" <i2rs-chairs@tools.ietf.org>, NETMOD Working Group <netmod@ietf.org>
Subject: Re: [netmod] Inventory YANG model (entity-MIB)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
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: <http://www.ietf.org/mail-archive/web/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, 06 Mar 2015 11:05:47 -0000

On Fri, Mar 06, 2015 at 11:48:02AM +0100, Benoit Claise wrote:
> Dear all,
> 
> The I2RS interim meeting yesterday focused on topology.
> Let me cut/paste a high level slide, with pointers to the relevant drafts.
> 
> 
> If interested, the meeting minutes are at 
> http://etherpad.tools.ietf.org:9000/p/i2rs-interim-march-5-2015-v-bluesheets
> 
> Part of the inventory draft 
> (http://datatracker.ietf.org/doc/draft-dong-i2rs-network-inventory/) 
> discussion, the overlap with the ENTITY-MIB RFC 6933 was discussed (and 
> RFC 7223 btw).
> 
> 
> The message was that I2RS should not re-invent something similar to the 
> ENTITY-MIB
> So, are you aware of any initiatives to "YANGify" the ENTITY-MIB?
> It's true that there is a way to translate MIB into YANG with RFC 6643. 
> This could be a good start. However, I wonder if a hand-written YANG 
> model that closely follows the entPhysical would not be more beneficial.
> Is this something we should take on board in NETMOD?
> 
> What do you think?
> 
> Note: As commented by the I2RS people, indexing is appropriate in the 
> MIB module for its original purpose, but may not be for the topology. 
> I'm not sure we want to change the indexing just for the topology, but 
> the integration within the topology draft should be thought of.
>

My first question is (perhaps not surprising) whether inventory falls
into the I2RS charter, I2RS = interface to the routing system. That
said, RFC 6643 gives you a read-only translation. There are not many
read-write objects in the ENTITY-MIB so perhaps this is good enough
for now. I guess it would help what I2RS needs to know in order to
make the interface to the routing system work.

Anyway, if YANG models overlapping the ENTITY-MIB are done, they they
should at least allow implementation of both in a predictable manner.
Looking at draft-dong-i2rs-network-inventory-00, it seems the whole
interface list is already covered by RFC 7223 and interfaces should be
references not repeated (this is what the ENTITY-MIB does). So what is
left is essentially a (not yet hierarchy) of 'cards' that seem to more
or less match the entPhysicalTable of the ENTITY-MIB (but then the
ENTITY-MIB has a more flexible model that distinguishes between
different kind of hardware components). I also notice that the model
in draft-dong-i2rs-network-inventory-00 is config true - so I am not
sure how this is supposed to use. Is the idea that this model is an
interface to an inventory database where I configure what I have
instead of a model sitting on a device where I can query what the
device actually has?

/js

PS: I personally would have preferred if generic topology and perhaps
    inventory would have split off into a short-lived targeted WG
    instead of doing all of this in I2RS but it seems leadership has
    already decided that I2RS is the home for all of this.

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>