Re: [Netconf] {+restconf}/data vs <running>

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 26 September 2018 12:43 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 155B9130E95 for <netconf@ietfa.amsl.com>; Wed, 26 Sep 2018 05:43:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] 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 DRYnqhwX-J9M for <netconf@ietfa.amsl.com>; Wed, 26 Sep 2018 05:43:30 -0700 (PDT)
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 3CD9C120072 for <netconf@ietf.org>; Wed, 26 Sep 2018 05:43:30 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id D91B3E2C; Wed, 26 Sep 2018 14:43:28 +0200 (CEST)
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 8UXdRD-feNo2; Wed, 26 Sep 2018 14:43:28 +0200 (CEST)
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, 26 Sep 2018 14:43:28 +0200 (CEST)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id BA1A620036; Wed, 26 Sep 2018 14:43:28 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id s-VacIi_WZ0h; Wed, 26 Sep 2018 14:43:28 +0200 (CEST)
Received: from exchange.jacobs-university.de (sxchmb04.jacobs.jacobs-university.de [10.70.0.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "exchange.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by hermes.jacobs-university.de (Postfix) with ESMTPS id 36A8620035; Wed, 26 Sep 2018 14:43:28 +0200 (CEST)
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.1415.2; Wed, 26 Sep 2018 14:43:27 +0200
Received: by anna.localdomain (Postfix, from userid 501) id 86F3F2552DA4; Wed, 26 Sep 2018 14:43:27 +0200 (CEST)
Date: Wed, 26 Sep 2018 14:43:27 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Ladislav Lhotka <lhotka@nic.cz>
CC: Netconf <netconf@ietf.org>
Message-ID: <20180926124327.3aho22r47l5vv4yt@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Ladislav Lhotka <lhotka@nic.cz>, Netconf <netconf@ietf.org>
References: <87lg7osfjt.fsf@nic.cz> <20180926105813.5o47jfszwefzwloa@anna.jacobs.jacobs-university.de> <620e0bb5a40c29809e7a47a0fd69b694db76d3db.camel@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <620e0bb5a40c29809e7a47a0fd69b694db76d3db.camel@nic.cz>
User-Agent: NeoMutt/20180716
X-ClientProxiedBy: SXCHMB03.jacobs.jacobs-university.de (10.70.0.155) To sxchmb03.jacobs.jacobs-university.de (10.70.0.155)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/ROPN6v9QS0Adui8ldnfcE_VUnQk>
Subject: Re: [Netconf] {+restconf}/data vs <running>
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Sep 2018 12:43:33 -0000

On Wed, Sep 26, 2018 at 01:10:53PM +0200, Ladislav Lhotka wrote:
> On Wed, 2018-09-26 at 12:58 +0200, Juergen Schoenwaelder wrote:
> > On Wed, Sep 26, 2018 at 12:45:26PM +0200, Ladislav Lhotka wrote:
> > > Hi,
> > > 
> > > draft-ietf-netconf-nmda-restconf is silent about the relationship
> > > between the {+restconf}/data and the <running> datastore, and it cannot
> > > be deduced from RFC 8040 either, because it only says in sec. 3.3.1:
> > > 
> > >    This mandatory resource [{+restconf}/data] represents the combined
> > >    configuration and state data resources that can be accessed by a
> > >    client.
> > > 
> > > I think this is a serious omission.
> > 
> > We are not changing {+restconf}/data.
> 
> My point is that it is unclear what {+restconf}/data really is: "the combined
> configuration and state data resources" is too vague given that several
> configuration datastores may be present.
>

Well, {+restconf}/data is whatever RFC 8040 says it is. We are not
changing it. If you want to interact with an NMDA datastore, then
there is a defined way to do so.

> > > Regarding draft-lhotka-netconf-restconf-transactions-00, I received a
> > > lot of criticism for changing the semantics of
> > > {+restconf}/data. However, I don't think it was the case: according to
> > > the above definition, it seems perfectly OK if {+restconf}/data
> > > represents combined configuration **from <staging>** and state data.
> > 
> > Perhaps people had the impression that your proposal changes
> > {+restconf}/data or that it should work with the NMDA solution.
> 
> I am arguing that I did NOT change {+restconf}/data, I just made its
> definition more precise.

Making something more precise may be seen by others as changes. Within
the NMDA work, we quickly discovered that the only backwards
compatible way to introduce NMDA to RESTCONF is to expose NMDA
datastores as new resources instead of trying to give an existing
resource a different meaning.
 
> If configuration resources under {+restconf}/data are expected to be
> identical to those under {+restconf}/ds/ietf-datastores:running,
> then draft-ietf-netconf- nmda-restconf should say so.

NMDA does not say what {+restconf}/data is because RFC 8040 defines
what {+restconf}/data is. Among other things, RFC 8040 says this:

      By default, RESTCONF
      methods access a unified view of the underlying datastore
      implementation on the server.

So {+restconf}/data is most likely not the same as
{+restconf}/ds/ietf-datastores:running.

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