Re: [netmod] Datastore leaf for yang instance data

Balázs Lengyel <balazs.lengyel@ericsson.com> Wed, 28 November 2018 09:41 UTC

Return-Path: <balazs.lengyel@ericsson.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 321981271FF for <netmod@ietfa.amsl.com>; Wed, 28 Nov 2018 01:41:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.781
X-Spam-Level:
X-Spam-Status: No, score=-4.781 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.46, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com header.b=LHjf6mR5; dkim=pass (1024-bit key) header.d=ericsson.com header.b=AgR5wmZg
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 S8iLnq0HCadi for <netmod@ietfa.amsl.com>; Wed, 28 Nov 2018 01:41:16 -0800 (PST)
Received: from sesbmg23.ericsson.net (sesbmg23.ericsson.net [193.180.251.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DCAFC124D68 for <netmod@ietf.org>; Wed, 28 Nov 2018 01:41:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1543398073; x=1545990073; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=mQS7DTxZ01jEohoSnrJ9+C9LfpJWghNV8g44muVa8AE=; b=LHjf6mR5DFXyuv9UxFBTsA60GYYLLcnQVM0By0+c0UHWSON5DiWX0BI07ALL4R9E zQOZTPXC7utnUi9cez1M2k97jzeJH7oHWG3YhvBNkrYGg57ZHNDAiJfkgwoj0gwT 2Vtii4GcKcuTi0e0tsjBXO+GQaB6LQs/hUi9t0Hu86E=;
X-AuditID: c1b4fb25-a68609e00000191f-3c-5bfe62b96a63
Received: from ESESSMB501.ericsson.se (Unknown_Domain [153.88.183.119]) by sesbmg23.ericsson.net (Symantec Mail Security) with SMTP id 52.59.06431.9B26EFB5; Wed, 28 Nov 2018 10:41:13 +0100 (CET)
Received: from ESESBMB504.ericsson.se (153.88.183.171) by ESESSMB501.ericsson.se (153.88.183.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Wed, 28 Nov 2018 10:41:13 +0100
Received: from EUR03-DB5-obe.outbound.protection.outlook.com (153.88.183.157) by ESESBMB504.ericsson.se (153.88.183.171) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Wed, 28 Nov 2018 10:41:13 +0100
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PnZik4jcvzvQICvZYmh4GFcbSH4FAjPIpbZDe9tWcew=; b=AgR5wmZgOemFNJ6wGC3JEz26zb08OV9bySOAZpvesjDnE774fJbNIjwL/zcCYMoyZnh/9gSQFK0WLJay/lNT1inn3zYPOHKz8ib9pdese9K6h/6dg3AyfC3xLPDsHGCe5sI16jzXN8o9r39IIrKx1FEsTLbtOoZjT1tf2Y94/IU=
Received: from VI1PR0701MB2736.eurprd07.prod.outlook.com (10.173.80.148) by VI1PR0701MB2511.eurprd07.prod.outlook.com (10.168.139.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.14; Wed, 28 Nov 2018 09:41:12 +0000
Received: from VI1PR0701MB2736.eurprd07.prod.outlook.com ([fe80::70d1:cf80:392b:814b]) by VI1PR0701MB2736.eurprd07.prod.outlook.com ([fe80::70d1:cf80:392b:814b%4]) with mapi id 15.20.1382.017; Wed, 28 Nov 2018 09:41:12 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: Ladislav Lhotka <lhotka@nic.cz>, Martin Bjorklund <mbj@tail-f.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Datastore leaf for yang instance data
Thread-Index: AQHUgy9uQuT8qLL6iU6nVdbyZztkVQ==
Date: Wed, 28 Nov 2018 09:41:12 +0000
Message-ID: <d1716b42-12d0-072a-76b7-74b9a8efcbe9@ericsson.com>
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>
In-Reply-To: <20181123154951.anviss5nllq6gwrn@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
x-originating-ip: [89.135.192.225]
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1
x-clientproxiedby: AM6PR03CA0019.eurprd03.prod.outlook.com (2603:10a6:20b::32) To VI1PR0701MB2736.eurprd07.prod.outlook.com (2603:10a6:801:8::20)
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; VI1PR0701MB2511; 6:y3xp61+qcKIh3voXrB+NxvVXS/IBTdknQ76Z0dGoTBpC0SjY0ftyab7iKKxvLHlYdnvc2EhH2go1T4dvYaijJg5mJaiOBrcaHcUM7Dm3hxXf6VBpknqK+uAUQnmOJhunVkjdpH98usm1Lca9xz92xMAhFAGyVzosCB8IjBOgInmVQ3A/egpHLuugKqEOIZyyW7RwmMDY85KS+DgIRgV9i3AP6wYORYC8OJ0Fgga6BKnlOx/WlILMfljlGsAc/yv8l96CpR5tvVrt1v762L579iJhgo7OXDfmy1AFxQyGXgfTGpzQzCiq3cCaoqMjsNVHqE+mY/sNkFwx9I0WqgOz83QdbsEO3UhLhVlPyBHiibYRmUSfhvOiweUVlLwvQ3YiydTKUo5WkE0A64g70QEN9mOUpHtd1h48FRYIWbxhDbNmzPeUSnoKnFxExlEsqiaQ2LL1oDnikGv5X6E+p1TreQ==; 5:NJ1VBxRqTSYK/IGfLNidpD4ESeMy2XA9yY70s8JDfIXErG1BEX3ImKLzugiONf8hGAchzUrY1aGnJ8u93Bjw6HBlas9yJwasj2p/33MX+sog9Xrz6+6cFSgB5WFEu6xdHAp9k9fBElUDZpQtaudLeAsV9ALQlywhYE/9UXXfgYI=; 7:12tBaC/HJmr7NKuwZgS+aukSz+HvQsNbh5LfOOMplTRQHJ0N+0fVppoM3C3kHmjJJrOyEtRBC/AJgefpOchFYM+LtjOQB2xz2FLPbrHeoSrFja6PJWDPjHX3wHtaWHQ0LgowlCSA5LlLAmedb1S1jg==
x-ms-office365-filtering-correlation-id: 591ab123-63ed-4c54-390d-08d65515a159
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(49563074)(7193020); SRVR:VI1PR0701MB2511;
x-ms-traffictypediagnostic: VI1PR0701MB2511:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=balazs.lengyel@ericsson.com;
x-microsoft-antispam-prvs: <VI1PR0701MB25119FF17F8EE6D1AA26DD55F0D10@VI1PR0701MB2511.eurprd07.prod.outlook.com>
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(102415395)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231443)(999002)(944501436)(4983020)(52105112)(10201501046)(148016)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(201708071742011)(7699051)(76991095); SRVR:VI1PR0701MB2511; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0701MB2511;
x-forefront-prvs: 0870212862
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(396003)(39860400002)(346002)(366004)(136003)(252514010)(199004)(189003)(102836004)(81156014)(65826007)(81166006)(8936002)(186003)(93886005)(26005)(8676002)(68736007)(53936002)(14454004)(6512007)(65956001)(65806001)(66066001)(476003)(2616005)(446003)(31696002)(11346002)(71200400001)(478600001)(86362001)(256004)(71190400001)(6116002)(99286004)(105586002)(106356001)(2906002)(99936001)(85182001)(6486002)(64126003)(486006)(25786009)(85202003)(3846002)(6436002)(386003)(36756003)(5660300001)(6506007)(58126008)(6246003)(52116002)(97736004)(110136005)(316002)(229853002)(31686004)(7736002)(305945005)(2501003)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0701MB2511; H:VI1PR0701MB2736.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: rh3N38iI+MCxHSMtEALjYDWzWmQ50iFPlkYVF0tOEroSQgYIFbn//lxwLIt804CzCR0ExC9WUnfPM8gOR1toQw4oVhYTYc+6WK5HU+YsBENc717yXaTi30mjYLRCWkOG93yKr1y0DHI5c9adgtsYgsDp+r/oLflEMODQYkLeR4iv/WstMLt7yPkvnRZ6g17luLzGCIBZUBKe88+Ny7YeWwzp5qUWPozTsgotBxTSO1d2vr/ZuLEOK879euZw03uyyGyeBNmb6R+6zi/cLJSx0iQ9864zSsDYu3PZ4l8aY3nRvYLVB4YpvOMykaY5rrizPI+P6DSObMW+WnEzO8PsvOaJLlJWV7ntyBtkRJS39gY=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="------------ms070104020006030200030307"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 591ab123-63ed-4c54-390d-08d65515a159
X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Nov 2018 09:41:12.3338 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0701MB2511
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA1WSe0hTURzHObt31zlaHqfTH4qRIwnSpmWloahlgQVhEEQpWVteVNJNdtW0 /lHDtC3Nmqhb2BRNwuzhIx+hmWY+knxTaWYtzUwtsLTHSmnbnVD/fc7v+zg/DodHCKe5Lrw4 eRKtlEvjxRSf1B5rPLu1WbYa6XOvwM9/sKqE8lerZ2z89UMZ3BAirKLiFyesdmQChdUYy8nD RAQ/MJqOj0uhld5Bp/ixY9mNZOLs3tRvD4dQOhoPVCEeD/AO6L64XoX4PCHuRJDeMYxUyNZ0 +I6gpTKQFSo48KApizQLJM4nIMPozgrFHOgaKCDYwwyC5bxxi4vC+yD7SxvHzI44AWZ1+Za5 Aw6AxZyvJDsPBONcn9UjgVtN15B5JRJ7gErjYB4LcDA0aN/YsP25BAy9LeOaBVscDl2F9YSZ EXaCH8+qLT0Edobxab2FATuCYaiPYlkEn6ZWuSyLoXhu3MIifAKKKi4j8wWANQi0Y/PWsBc8 fzmNWHaDYb3aanpFwYeWZWvTIah5VGDDChMIDPVL1Fpa1bNMsetFQctkjnWugN5SlTW8Aapy DWQ+8tH9s7nO1EXgSwjalqpIneUN7KFXO02ypl1wo85AsOwJlWXzxP9hMwdAsbGdYtkdCtQG G5Z3wvzTRcSyL1TeXaFKEb8KiRiakSXEbPeV0Mq40wyjkEvkdFItMv239vrfHk1oZGFPB8I8 JF4neBG1GinkSlOYtIQOtMnU8/7+7UHkQsoVclrsKEgOMsmCaGnaOVqpOKlMjqeZDuTKI8XO AoNfXYQQx0iT6DM0nUgr11QOz9YlHSHt5lI7jVQ0ejX8fL4kWxgDYa5ZbnbBFwZvHvBo/uMd 6k1KckqWm/VFqerO7oH9uu7RnupMLTHQK2sVodeLeoKI2N0/deex+5HC69lTuarKo1c+h/6M Q5vsk/STeb79XjlZzMbgIKfMd10H+47XM8HShoSyjyuakHJP2ZOFVjHJxEq3bSGUjPQvQ6A6 wHcDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/YqCuHzw5u0_8XDilbdXjbfaNyVM>
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 09:41:18 -0000

On 2018. 11. 23. 16:49, Juergen Schoenwaelder wrote:
> On Fri, Nov 23, 2018 at 01:21:23PM +0000, Balázs Lengyel wrote:
>>     BALAZS: "Instance data associated with a datastore" may mean many things,
>>     that's why this relatively loose term is used. It may mean:
>>
>>       * Data was read from that datastore
>>       * Data is intended to be fed into that datastore
>>       * Something else ???
>>
>>     This can be useful if data is read from a datastore, but in a number of
>>     cases it is not useful:
>>
>>       * Preloading configuration data: datastore may be running or candidate.
>>       * Preloading mixed config and state data: We do have state data that is
>>         very stable and thus it is documented as instance data, and the
>>         instance data file is actually used to feed the state data into the
>>         SW. So datastore is: running, candidate + operational if NMDA is
>>         supported or state datastore (whatever that is) if NMDA is not
>>         supported
>>
>>     regards Balazs
>>
> 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.

I want to provide a datastore indicator, but how that should be used 
(and thus what is exactly means) is out of scope.

Anyway in some cases it would be problematic to define a single 
datastore parameter. E.g. the draft allows the real world use case of 
putting config and state data in the same file. In this case state data 
is associated with operational while config data is with 
running/candidate. In the non-NMDA case I do not even know what the 
correct daatastore is for state data.

-- 
Balazs Lengyel                       Ericsson Hungary Ltd.
Senior Specialist
Mobile: +36-70-330-7909              email: Balazs.Lengyel@ericsson.com