Re: [netmod] revised-datastores and commonality of schemas

Kent Watsen <kwatsen@juniper.net> Thu, 02 November 2017 20:31 UTC

Return-Path: <kwatsen@juniper.net>
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 2662813F692 for <netmod@ietfa.amsl.com>; Thu, 2 Nov 2017 13:31:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.801
X-Spam-Level:
X-Spam-Status: No, score=-4.801 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=juniper.net
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 zK-DbXJeLmjs for <netmod@ietfa.amsl.com>; Thu, 2 Nov 2017 13:31:15 -0700 (PDT)
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0109.outbound.protection.outlook.com [104.47.42.109]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5027113F93F for <netmod@ietf.org>; Thu, 2 Nov 2017 13:31:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=hQjg6jdrUBnVGFLYZBp+vNJhfYePFr3eSpFiG62HOok=; b=jNcX/pMm2WhQPZfuhr2sieRiEV3d82TPv03//m4hfJS3Ui3f1i2rYQ7ej4YqDjinugEQ7twQtIvDvACh+XnnrIBTM/jC8WcMtTbgiNs9Wxr3fGOxIZx0HCZnZ8+WI6u+GVhRYMVlIx5DyVpeFaXdcWByL8vuCWgRUN4ogHp1rW0=
Received: from BLUPR05MB275.namprd05.prod.outlook.com (10.141.22.149) by BLUPR05MB275.namprd05.prod.outlook.com (10.141.22.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.4; Thu, 2 Nov 2017 20:31:11 +0000
Received: from BLUPR05MB275.namprd05.prod.outlook.com ([10.141.22.149]) by BLUPR05MB275.namprd05.prod.outlook.com ([10.141.22.149]) with mapi id 15.20.0197.013; Thu, 2 Nov 2017 20:31:11 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>, Robert Wilton <rwilton@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] revised-datastores and commonality of schemas
Thread-Index: AQHTVBmF43E0D8ha602Z4L7V9HBU3A==
Date: Thu, 02 Nov 2017 20:31:11 +0000
Message-ID: <076270A6-B2C1-44BC-8F02-F4E96675E76F@juniper.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kwatsen@juniper.net;
x-originating-ip: [66.129.241.10]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BLUPR05MB275; 6:pq0/BB/2gFQcLwwRVVel/Q5YZyMiPJvUeaDsKY9E7a4Qw4eF+OW+PgJoiSsgC3u+i7yc2h8DgrdJI9ZVx2enH15dKXQi+S63k81ZHuUjOAKixiQPwABw6Xag+yy0r8VteUwgLkb7ZeCUkVpp68HeQiJJ7joBIE2lt72VSW6EB4D9HsubusWqTh3Zl+6GvrrMvM+J48Hfb7saWLGXIxMxQOkhYVC8y346NRL9YwxCCzfsQCU3ysJbqMKhAlftrOf2N5X+xzWbYa3zhxmWvy9LBbjW38zDDqCmsAyNxs/dMSCnijZlmueifBxPtUXPK60fXPcTfzXI111w60eBEUzaLXnlPpphgpkINlIYhr8oKZA=; 5:g7/r7eQdRb5nYi8CfcpcSYUVmpkVwk3Qa5qla5AF6AP3ZcptGa6p2Y6idTDkWXvreFALpEV3hCIB6qHvOKW/8FjbyrxeeOJhH7qZT0X7BDAHqVRPKlJDDDRD1YScKqHJ9UZFCfn2xbOcav33xddGZDilovvFYvSopEt2bylTlLw=; 24:l0Z5vbO2TZ2KYv3ZmsRwgAt8+uV6Z9MfFDMDBXPJrL+HEPcD/tTwtLtY6jxAA1O9lmMvIbYG9GqDtEKVehZmMexwSAkGOGrhK8tQeJnImAo=; 7:b6nNKbh0s2dY3Z6ZTMZ/fA1n7B/C3pfzzD+/ZGtZCsu24TEVpAfKdKtAfQBZyUYvGyovb1DhaR0Refbw4RQBbl/Ec+td7sKLZ8nqA7O30LRENeCJGjYBnguwmvudRLTdrcy7/cwJoQmcMP7dEEnllQOj0CqxeT45qmqP1LKftUf2XytJPbzOFCYK2tyJdObn/oV4FODeMGhOn36/oNFODtX53Nzol4udbrOzw7ztBQEax2bB9Ucuj2MOcOmj6sA6
x-ms-exchange-antispam-srfa-diagnostics: SSOS;
x-ms-office365-filtering-correlation-id: 0571089f-fcb1-4294-90c4-08d52230a804
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603199); SRVR:BLUPR05MB275;
x-ms-traffictypediagnostic: BLUPR05MB275:
x-exchange-antispam-report-test: UriScan:(10436049006162);
x-microsoft-antispam-prvs: <BLUPR05MB27557608A9885E54C0D53BBA55C0@BLUPR05MB275.namprd05.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(3002001)(3231020)(93006095)(93001095)(6055026)(6041248)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR05MB275; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR05MB275;
x-forefront-prvs: 047999FF16
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(346002)(376002)(199003)(377424004)(13464003)(189002)(24454002)(316002)(68736007)(7736002)(58126008)(25786009)(81156014)(81166006)(82746002)(8656006)(966005)(110136005)(305945005)(101416001)(3660700001)(53546010)(33656002)(4001150100001)(3846002)(6116002)(8936002)(99286004)(97736004)(102836003)(83506002)(5660300001)(8676002)(83716003)(229853002)(575784001)(86362001)(6436002)(6506006)(53936002)(2501003)(6246003)(106356001)(6486002)(6512007)(77096006)(105586002)(6306002)(66066001)(14454004)(478600001)(2900100001)(54356999)(50986999)(36756003)(189998001)(2906002)(3280700002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR05MB275; H:BLUPR05MB275.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <3D16EF3910135F44A9EB99A7DDB2983A@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-Network-Message-Id: 0571089f-fcb1-4294-90c4-08d52230a804
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2017 20:31:11.4345 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR05MB275
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/MOhrTE2BMIM-RemnHBJExJB0MYg>
Subject: Re: [netmod] revised-datastores and commonality of schemas
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 02 Nov 2017 20:31:19 -0000

Hi Jason,

All those details would need to be specified by some future templating drafts.  In this draft, there is only the provision for "configuration transformations" to keep that door open.

Kent // contributor


--

Hi guys,



Templates are something that may be problematic for this concept of common schemas across the running/candidate/intended DSes and then operational being a superset.



The <running> DS needs to have both the template itself in the schema as well as whatever nodes are used to hold 'exploded' data.  But what about intended and operational ?



For example, imagine we have the following instance data in a candidate & running DS:

1) a template that sets an admin-state leaf to 'enabled' in all interfaces

2) a set of 3 interfaces with a few leafs of config in them (address, etc)



Clearly the schema for the candidate/running DSes contain both the template and the interface schema nodes.



But does the schema for the intended DS actually have the template schema nodes ?   In theory it doesn't *need* to (since templates are exploded between running & intended), and it feels strange to have those in there, but I suppose it could have them.  If they are there, then a read of the intended would show "admin-state enabled" in the template *and* in the 3 interfaces.



Does the operational DS contain the template schema nodes ?  If yes, then I suppose we would consider all templates as 'applied' implicitly ?



Rgds,

Jason





> -----Original Message-----

> From: netmod [mailto:netmod-bounces@ietf.org] On Behalf Of Robert

> Wilton

> Sent: Tuesday, October 31, 2017 10:01

> To: netmod@ietf.org

> Subject: Re: [netmod] I-D Action: draft-ietf-netmod-revised-datastores-

> 06.txt

> 

> So this version of the draft contains the small change that defines "datastore

> schema" and describes the "datastore schema" of <operational> as being the

> superset of the datastore schema for all the configuration datastores.

> 

> There are two remaining issues open on the issue tracker

> (https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_netmod-2Dwg_datastore-2Ddt_issues&d=DwIGaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=HmlA7hSACCJBmjNombXsdSLxNs5JnF3BrFaYXPWYosg&s=Oh70ToB2vUTvtfOGlJFxq9b-VdJvIq7Nw6S69fNgcTA&e=):

> 

> (1) Sign off that usage of RFC 2119 language is appropriate. Perhaps one of

> the proponents of this change could please verify this.

> (2) The email thread regarding Actions and RPCs in NMDA.  I will send

> updated proposed text on the appropriate thread.

> 

> Thanks,

> Rob

> 

> 

> On 30/10/2017 18:04, internet-drafts@ietf.org wrote:

> > A New Internet-Draft is available from the on-line Internet-Drafts

> directories.

> > This draft is a work item of the Network Modeling WG of the IETF.

> >

> >          Title           : Network Management Datastore Architecture

> >          Authors         : Martin Bjorklund

> >                            Juergen Schoenwaelder

> >                            Phil Shafer

> >                            Kent Watsen

> >                            Robert Wilton

> > 	Filename        : draft-ietf-netmod-revised-datastores-06.txt

> > 	Pages           : 38

> > 	Date            : 2017-10-30

> >

> > Abstract:

> >     Datastores are a fundamental concept binding the data models written

> >     in the YANG data modeling language to network management protocols

> >     such as NETCONF and RESTCONF.  This document defines an architectural

> >     framework for datastores based on the experience gained with the

> >     initial simpler model, addressing requirements that were not well

> >     supported in the initial model.

> >

> >

> > The IETF datatracker status page for this draft is:

> > https://urldefense.proofpoint.com/v2/url?u=https-3A__datatracker.ietf.org_doc_draft-2Dietf-2Dnetmod-2Drevised-2Ddatastores_&d=DwIGaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=HmlA7hSACCJBmjNombXsdSLxNs5JnF3BrFaYXPWYosg&s=kntbgpHJnrByHYnP6-gIQawFyxzuB4qqA8a7sJ73Yro&e=

> >

> > There are also htmlized versions available at:

> > https://urldefense.proofpoint.com/v2/url?u=https-3A__tools.ietf.org_html_draft-2Dietf-2Dnetmod-2Drevised-2Ddatastores-2D06&d=DwIGaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=HmlA7hSACCJBmjNombXsdSLxNs5JnF3BrFaYXPWYosg&s=l8WerMNvfvgZVJCnIEqxPofbgMz_Q_EzSiIoGbCQgNI&e=

> > https://urldefense.proofpoint.com/v2/url?u=https-3A__datatracker.ietf.org_doc_html_draft-2Dietf-2Dnetmod-2Drevised-2Ddatast&d=DwIGaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=HmlA7hSACCJBmjNombXsdSLxNs5JnF3BrFaYXPWYosg&s=WCuOo1niAkyscQUKzIYmTuLvajFh0jn8MtmRmc6jjho&e=

> > ores-06

> >

> > A diff from the previous version is available at:

> > https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_rfcdiff-3Furl2-3Ddraft-2Dietf-2Dnetmod-2Drevised-2Ddatastores&d=DwIGaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=HmlA7hSACCJBmjNombXsdSLxNs5JnF3BrFaYXPWYosg&s=L7nQJMiX3M_yXLSwPASZefUdW7YmA4ly9MiocXVGh40&e=

> > -06

> >

> >

> > Please note that it may take a couple of minutes from the time of

> > submission until the htmlized version and diff are available at tools.ietf.org.

> >

> > Internet-Drafts are also available by anonymous FTP at:

> > https://urldefense.proofpoint.com/v2/url?u=ftp-3A__ftp.ietf.org_internet-2Ddrafts_&d=DwIGaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=HmlA7hSACCJBmjNombXsdSLxNs5JnF3BrFaYXPWYosg&s=e_mQeyXZbxETyvr0-gcvkPeWqv4mScsFa5ueArTKoQQ&e=

> >

> > _______________________________________________

> > netmod mailing list

> > netmod@ietf.org

> > https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_netmod&d=DwIGaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=HmlA7hSACCJBmjNombXsdSLxNs5JnF3BrFaYXPWYosg&s=L2xQyj_938aVcv4QyFMHlNwXkX9tT8L46M1PXc6Lnh4&e=

> > .

> >

> 

> _______________________________________________

> netmod mailing list

> netmod@ietf.org

> https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_netmod&d=DwIGaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=HmlA7hSACCJBmjNombXsdSLxNs5JnF3BrFaYXPWYosg&s=L2xQyj_938aVcv4QyFMHlNwXkX9tT8L46M1PXc6Lnh4&e=

_______________________________________________
netmod mailing list
netmod@ietf.org
https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_mailman_listinfo_netmod&d=DwIGaQ&c=HAkYuh63rsuhr6Scbfh0UjBXeMK-ndb3voDTXcWzoCI&r=9zkP0xnJUvZGJ9EPoOH7Yhqn2gsBYaGTvjISlaJdcZo&m=HmlA7hSACCJBmjNombXsdSLxNs5JnF3BrFaYXPWYosg&s=L2xQyj_938aVcv4QyFMHlNwXkX9tT8L46M1PXc6Lnh4&e=