Re: [netmod] Datastore leaf for yang instance data

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 28 November 2018 15:32 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 6BDB8128CF3 for <netmod@ietfa.amsl.com>; Wed, 28 Nov 2018 07:32:22 -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 5C1skv9GCdue for <netmod@ietfa.amsl.com>; Wed, 28 Nov 2018 07:32:20 -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 5BA07130E12 for <netmod@ietf.org>; Wed, 28 Nov 2018 07:32:18 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 0EBBBEBD; Wed, 28 Nov 2018 16:32:17 +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 8nG74AmBMiSi; Wed, 28 Nov 2018 16:32:17 +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 16:32:17 +0100 (CET)
Received: from localhost (demetrius3.jacobs-university.de [212.201.44.48]) by hermes.jacobs-university.de (Postfix) with ESMTP id EAF0E2003F; Wed, 28 Nov 2018 16:32:16 +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 ybbFUezsGKab; Wed, 28 Nov 2018 16:32:16 +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 5934F20037; Wed, 28 Nov 2018 16:32:16 +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 16:32:15 +0100
Received: by anna.localdomain (Postfix, from userid 501) id 9004D3004588F5; Wed, 28 Nov 2018 16:32:15 +0100 (CET)
Date: Wed, 28 Nov 2018 16:32:15 +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: <20181128153215.og7yweannmux35ti@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: <87y3a6izap.fsf@nic.cz> <20181106063648.jjf2scqzoack5l3z@anna.jacobs.jacobs-university.de> <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>
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: <bff9a787-f9fd-1bbc-e6f2-e0dfe3fbad63@cisco.com>
User-Agent: NeoMutt/20180716
X-ClientProxiedBy: SXCHMB04.jacobs.jacobs-university.de (10.70.0.156) To sxchmb03.jacobs.jacobs-university.de (10.70.0.155)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/nbJLhBfzrdoMQYoTFK_b7e1l41k>
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 15:32:23 -0000

On Wed, Nov 28, 2018 at 03:27:26PM +0000, Robert Wilton wrote:
> 
> On 28/11/2018 10:20, Juergen Schoenwaelder wrote:
> > On Wed, Nov 28, 2018 at 09:41:12AM +0000, Balázs Lengyel wrote:
> > > > I do not buy this story. Your software needs to decide somehow what
> > > > instance data means. A config true leaf in candidate means something
> > > > different than the same config true leaf in running and this yet again
> > > > means something different than the same config true leaf in operational.
> > > > 
> > > > /js
> > > BALAZS: As I understood the WG decided that this draft should only be about
> > > the format of the yang instance data. What the SW does with it is out of
> > > scope. So considerations whether instance data should be loaded into running
> > > or candidate or not at all, are outside the scope.
> > If you do not know what the instance data means, any attempt to use it
> > is kind of broken.
> > > I want to provide a datastore indicator, but how that should be used (and
> > > thus what is exactly means) is out of scope.
> > I disagree. The datastore indicator is needed to understand what the
> > data means, i.e., to do anything meaningful with it.
> 
> I think that a datastore indicator is useful sometimes.  E.g. it might be
> helpful in some cases to know that the data was associated with a particular
> datastore.
> 
> But in the general case I think that this is just "data at rest", and
> probably the key thing to know is whether (i) the data relates to
> configuration, or (ii) the data relates to operational state.
> 
> This could potentially be inferred from a datastore leaf, or perhaps this
> distinction could more explicitly be made by a separate field, which I would
> make an enumeration or identity, since there might be other types of data in
> future, such as capability information or diagnostics.
>

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.

/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/>