Re: [netmod] Datastore leaf for yang instance data

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 28 November 2018 16:03 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 5783D130DCD for <netmod@ietfa.amsl.com>; Wed, 28 Nov 2018 08:03:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 SZ-CXGh9N2kC for <netmod@ietfa.amsl.com>; Wed, 28 Nov 2018 08:03:35 -0800 (PST)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4BAAF130DCE for <netmod@ietf.org>; Wed, 28 Nov 2018 08:03:31 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id DF0E5ED7; Wed, 28 Nov 2018 17:03:29 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id lL434M2vQFoR; Wed, 28 Nov 2018 17:03:29 +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 atlas5.jacobs-university.de (Postfix) with ESMTPS; Wed, 28 Nov 2018 17:03:29 +0100 (CET)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id C710620037; Wed, 28 Nov 2018 17:03:29 +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 yJNcXu62GpZ7; Wed, 28 Nov 2018 17:03:29 +0100 (CET)
Received: from exchange.jacobs-university.de (SXCHMB01.jacobs.jacobs-university.de [10.70.0.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "exchange.jacobs-university.de", Issuer "DFN-Verein Global Issuing CA" (verified OK)) by hermes.jacobs-university.de (Postfix) with ESMTPS id 440E120044; Wed, 28 Nov 2018 17:03:29 +0100 (CET)
Received: from anna.localdomain (10.50.218.117) by sxchmb03.jacobs.jacobs-university.de (10.70.0.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1591.10; Wed, 28 Nov 2018 17:03:28 +0100
Received: by anna.localdomain (Postfix, from userid 501) id 791BB300458B98; Wed, 28 Nov 2018 17:03:27 +0100 (CET)
Date: Wed, 28 Nov 2018 17:03:27 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Robert Wilton <rwilton@cisco.com>
CC: =?utf-8?Q?Bal=C3=A1zs?= Lengyel <balazs.lengyel@ericsson.com>, Ladislav Lhotka <lhotka@nic.cz>, Martin Bjorklund <mbj@tail-f.com>, "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20181128160327.dd2f4ftjslnvwxad@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Robert Wilton <rwilton@cisco.com>, =?utf-8?Q?Bal=C3=A1zs?= Lengyel <balazs.lengyel@ericsson.com>, Ladislav Lhotka <lhotka@nic.cz>, Martin Bjorklund <mbj@tail-f.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <58740c15bf3277e04329546476f60c1d12516594.camel@nic.cz> <20181106.104157.239419955739949818.mbj@tail-f.com> <866ff105cf8fda7eadbdce5b344f4cd734fd99b8.camel@nic.cz> <1f4103c1-4953-3df4-d50d-aed1961fbc50@ericsson.com> <20181123154951.anviss5nllq6gwrn@anna.jacobs.jacobs-university.de> <d1716b42-12d0-072a-76b7-74b9a8efcbe9@ericsson.com> <20181128102050.37iyrx2xhdohnepb@anna.jacobs.jacobs-university.de> <bff9a787-f9fd-1bbc-e6f2-e0dfe3fbad63@cisco.com> <20181128153215.og7yweannmux35ti@anna.jacobs.jacobs-university.de> <f60b0d28-0747-2478-a1c4-07924151d30d@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
X-Clacks-Overhead: GNU Terry Pratchett
Content-Transfer-Encoding: 8bit
In-Reply-To: <f60b0d28-0747-2478-a1c4-07924151d30d@cisco.com>
User-Agent: NeoMutt/20180716
X-ClientProxiedBy: SXCHMB01.jacobs.jacobs-university.de (10.70.0.120) To sxchmb03.jacobs.jacobs-university.de (10.70.0.155)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/_8MxJ2JTp1gIMhvaqzH9Jukcexc>
Subject: Re: [netmod] Datastore leaf for yang instance data
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: Wed, 28 Nov 2018 16:03:40 -0000

On Wed, Nov 28, 2018 at 03:43:01PM +0000, Robert Wilton wrote:
> 
> > > 
> > I do not understand why a datastore leaf is not sufficient and why we
> > need yet something new. If ever needed, NMDA does allow us to define
> > new datastores.
> 
> Because a distinction between "candidate" vs "running" vs "intended" won't
> necessarily be that useful.  Although knowing "running" vs "intended" would
> allow the client to know whether it is pre/post template expansion and that
> might be useful.

I think it is. I would also assume that the need to save <candidate>
instance data in a file is rare. So its likely <running> or <intended>
and for some systems the difference is small, for others it may not be
small. My point is we have a way to distinguish things and we should
use that instead of creating something new that lumps things together
again.
 
> The second reason is that I don't know whether things like capabilities and
> diagnostics will be new datastores or just part of operational.  I don't
> think that either of these two areas have really been properly worked out
> yet.  I presume that they will come over time, once more network management
> becomes more automated.

By default this is all <operational>. The schema (aka YANG library)
exists in <operational> already today. I do not know what your
definition of 'diagnostics' is but until we have something else, I
assume this is in <operational>. And yes, if systems have other
creative datastores, we have a way to deal with that as well. Its all
there and I am afraid that creating yet another way to classify data
just adds pain and brings back ambiguity.

/js

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