[CCAMP] Getting rid of network-hardware-inventory container for straightfoward model alignment that satisfies both hardware inventory needs and generalization/extensibility goals (was: Re: [OPSAWG] [inventory-yang] poll for network inventory base model)

Alexander L Clemm <ludwig@clemm.org> Wed, 06 September 2023 20:58 UTC

Return-Path: <ludwig@clemm.org>
X-Original-To: ccamp@ietfa.amsl.com
Delivered-To: ccamp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F037CC151999; Wed, 6 Sep 2023 13:58:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.907
X-Spam-Level:
X-Spam-Status: No, score=-6.907 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PJkKvF_e5dgY; Wed, 6 Sep 2023 13:58:54 -0700 (PDT)
Received: from mout.perfora.net (mout.perfora.net [74.208.4.196]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B28AEC15198D; Wed, 6 Sep 2023 13:58:53 -0700 (PDT)
Received: from [172.16.0.44] ([73.189.160.186]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MNJJ1-1qXg5V1ctt-006sFv; Wed, 06 Sep 2023 22:58:52 +0200
Content-Type: multipart/alternative; boundary="------------hzPmr39x3OopkVqm6Ru1CTgo"
Message-ID: <4ee7a7b3-cb14-0970-9101-cc10884bcbdb@clemm.org>
Date: Wed, 06 Sep 2023 13:58:50 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0
Content-Language: en-US
To: "maqiufang (A)" <maqiufang1=40huawei.com@dmarc.ietf.org>, "inventory-yang@ietf.org" <inventory-yang@ietf.org>
Cc: "ivy-chairs@ietf.org" <ivy-chairs@ietf.org>, opsawg <opsawg@ietf.org>, "ccamp@ietf.org" <ccamp@ietf.org>
References: <7c4effcc6c5d43a6a7ddc4735d370272@huawei.com>
From: Alexander L Clemm <ludwig@clemm.org>
In-Reply-To: <7c4effcc6c5d43a6a7ddc4735d370272@huawei.com>
X-Provags-ID: V03:K1:TmlpzJIfmVyQWFtxcj4cAZ5LaYlbZP1usHNRZaV44si+WArkxsg 39BgZWSR5X592sC+vriP0a1MzcxnY7LzlowyiH8R+hn5BlZwPAthUntS8+/wEduaYZ2hGEW LUUxgAnQ2n7+Z2HZBrcd45ybsfIzebVttinRj31aFM7zr7c/DqnqnDcf+9IB3c5+8jJovft nQ/QaJfPzoQianyk6fHmA==
UI-OutboundReport: notjunk:1;M01:P0:+x82jx+/1Q8=;vOQQHgaYF9HRz+hCAkjEb/BxiXZ AsB1zViHz64N/DUaKxbJD5/rAhF5aSyC6xyXEUeYWZVK4D/a7Cz5wT8jbIUbVVONsWGY/7Hg2 jrT7qpg+JLpgyLsjQbvi7JhDiNAwT/1wDYIvtZ5YcptZhBkus51WGW0GNZMcYsOjhZ1nkoaaF 0XhO/i/yBcIuicFJ2N4ka6PLjAB1klh7b3LkoKU3HOBeW1JmuCqH9SIWIUPszyfFY7q/S0lff TiklSfkfFZP9UzA+WYBrZfYEak57TRG1zzXx0V3SAnrWQLU9W+QZGla3oj0h4rDTlj+iq3Y/1 K//lDtepwhWjhPnrlr8gcQBYco81bu/Luvz8BkoJBVOGPL9tY6whwRgc02r7MfBnsyhxEcNPW XHi0RH9XC8bdLjU8vwxNEBb6guKo54HrOF5MSK2r8Z4ID5+SXG1SzeJZm/41/J59bZYfhEVGp rQM/FSgJXoqaJFtwBLr8inO/MmoqQLYggr+Warlx5ZdmAxLr6mkfmFxanIbQXLicxI6ioR54t 2G6+bOdXTEgMUAjM/l2jYTTBS+VSFfELMwCde7Pk3iL+6Iq8CsylRB+c69BbHxLXoeJscB+XE 4Qr5K5+zNfd0mBjqPXaZ0Il4I3yv7xB9KusU98aphPPtj6riaKRMB/Q5Ktst8l83MjqnqK0Rx WFrxB6CyAA+5bfWJXyb8uU8hGaLjggCYqv8+HOdRhKurhh1VzLH3FMRayariOyfiqGYqtV/k/ 16sb1uDm02zii/SzGhsN2ZL4Lwnec6XYzUmX70+hZVsK4HR4u9HdPMGKbUxeU7EEqGVQziEbT UV7Qp/fHcmdqg4CbN79nOXVoHLGMu7A4kjXTQ65wQivJjDWNwBE8TZfvqFcOf6N5ynP0WD4lv 1INdeXQBMv/VU7VoeQliSMMzO3reGebJo3D4=
Archived-At: <https://mailarchive.ietf.org/arch/msg/ccamp/N6d2LdIzFWxthg2_nGXROATiRoY>
Subject: [CCAMP] Getting rid of network-hardware-inventory container for straightfoward model alignment that satisfies both hardware inventory needs and generalization/extensibility goals (was: Re: [OPSAWG] [inventory-yang] poll for network inventory base model)
X-BeenThere: ccamp@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Discussion list for the CCAMP working group <ccamp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ccamp>, <mailto:ccamp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ccamp/>
List-Post: <mailto:ccamp@ietf.org>
List-Help: <mailto:ccamp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ccamp>, <mailto:ccamp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 06 Sep 2023 20:58:58 -0000

Hi all,

I have been looking at both of the inventory models that have been 
proposed and think that they are actually closer than it might seem and 
that it should be relatively straightforward to align them.

The main obstacle seems to the top container object 
"network-hardware-inventory" in 
draft-ietf-ccamp-network-inventory-yang.  Is this data node really 
important?  It seems to serve not particular function, other than 
serving as a container for equipment room  and network-elements. 
However, both could easily stand on their own; there does not seem to be 
a compelling reason that instances would need to be prefixed with 
"network-hardware-inventory/".

By removing this object, we get in effect two separate modules - one for 
equipment-room, the other for network-elements.  This makes sense 
anyway, as only network-elements are items subject to inventorying and 
equipment-room can stand on its own, providing auxiliary information 
independent of actual inventory (plus allowing for network elements to 
be housed also outside equipment rooms  (Plus, depending on use case, 
not every network element may not be located in an equipment room with 
racks/rows/columns, but possibly in other locations eg roadside etc).

The structure of network-elements now very much resembles the same 
structure as we have in draft-wzwb-opsawg-network-inventory-management.  
Yes, the list is defined in the model, instead of reusing / augmenting 
the list of nodes, but this is a detail - the main thing is the 
structures are aligned.

The main difference from this point out concerns the actual parameters 
that are actually included.  Both models have a set of parameters in 
common.  draft-ietf-ccamp-network-inventory-yang includes a couple of 
additional hardware parameters, while 
draft-wzwb-opsawg-network-inventory-management includes additional 
subtrees for licenses etc.  It would seem that it would be 
straightforward to define the common set of parameters as part of the 
base model, then define additional augmentations to incorporate other 
aspects of inventory as needed.  Hardware inventory models would make 
the start, of course, as this has the most pressing need of being 
defined; at the same time the  model structure provides the hooks and 
implies a design pattern that will allow other aspects of inventory 
(virtual network elements, licenses, etc) to be added in an integrated 
fashion as needed.

As a broad sketch, the resulting model structure would then be composed 
of base inventory model (defining the network-elements list with very 
few very basic data nodes, perhaps just name and asset tag) , augmented 
with a hardware inventory model which adds augmentations for  the 
hardware parameters and components hierarchy and a separate equipment 
room model.  This covers everything that we have in 
draft-ietf-ccamp-network-inventory-yang.  Then, IVY can add a model for 
virtual network element inventory (augmented in per the same pattern as 
the hardware model), license inventory, and anything else, per the 
additional stuff that we have in 
draft-wzwb-opsawg-network-inventory-management.

So, in that sense I don't think we have to make a hard choice between 1 
and 2, but merge and in the course make some alignments to both.  For 
example, one could start with draft-ietf-ccamp-network-inventory-yang, 
modifying it to remove the network-hardware-inventory container and 
splitting the remaining module in two (for equipment-room and 
network-elements, both of which will now be top-level containers).  
Remaining modifications can be made from there.  I guess this makes me a 
proponent of option 3, but with the caveat that this would not need to 
restart from scratch - really an option 4 that says merge (for overall 
structure and common parts, which in this case is possible) and split 
the remaining difference.

--- Alex

On 8/27/2023 11:21 PM, maqiufang (A) wrote:
>
> Hi Working Group,
>
> It’s now time to start considering how to move forward with the 
> inventory base model. We have two different documents that could be 
> used as a starting point for our work or, in case the working group 
> believes none of them is “good enough”, we can start a brand new ID.
>
> In case the latter option is chosen, Daniele and I will write a -00 
> version including just the table of content and what we’d like to be 
> covered in each section. The document will then be handed over to a 
> pool of authors which will bring it till the WG adoption.
>
> Hence, we will have a 3 weeks polling starting today. We decided to 
> make it a bit longer than usual because this time the working group is 
> requested to review two drafts instead of one.
>
> This mail starts a 3 weeks polling, terminating on September 15^th , 
>  where we would like the working group to express your preference among:
>
>  1. Adopt draft-ietf-ccamp-network-inventory-yang-02 in IVY and evolve
>     it to become the network inventory base model
>  2. Adopt draft-wzwb-opsawg-network-inventory-management-03 in IVY and
>     evolve it to become the network inventory base model
>  3. Start a brand new document from scratch as described above
>
> In the week after the closure of the polling (between September 18 and 
> 25) we will have an IVY interim meeting to discuss the issues/concerns 
> raised during the polling ( A separate mail will be sent).
>
> Thank you,
>
> Qiufang and Daniele
>
>
> _______________________________________________
> OPSAWG mailing list
> OPSAWG@ietf.org
> https://www.ietf.org/mailman/listinfo/opsawg