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

Martin Bjorklund <mbj@tail-f.com> Wed, 26 September 2018 11:32 UTC

Return-Path: <mbj@tail-f.com>
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 A7015130E84 for <netconf@ietfa.amsl.com>; Wed, 26 Sep 2018 04:32:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-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 0Z1E_dTog27A for <netconf@ietfa.amsl.com>; Wed, 26 Sep 2018 04:32:44 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 8151512426A for <netconf@ietf.org>; Wed, 26 Sep 2018 04:32:44 -0700 (PDT)
Received: from localhost (unknown [173.38.220.61]) by mail.tail-f.com (Postfix) with ESMTPSA id 9F0741AE02BE; Wed, 26 Sep 2018 13:32:43 +0200 (CEST)
Date: Wed, 26 Sep 2018 13:32:42 +0200
Message-Id: <20180926.133242.469987738646017624.mbj@tail-f.com>
To: lhotka@nic.cz
Cc: netconf@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <59d2b505319a874964436ab8c488a6d4f3a59fe9.camel@nic.cz>
References: <87lg7osfjt.fsf@nic.cz> <20180926.130400.328479331143716638.mbj@tail-f.com> <59d2b505319a874964436ab8c488a6d4f3a59fe9.camel@nic.cz>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/K_08LW6AoSOm5kY7ipLM_NAbXYI>
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 11:32:47 -0000

Ladislav Lhotka <lhotka@nic.cz> wrote:
> On Wed, 2018-09-26 at 13:04 +0200, Martin Bjorklund wrote:
> > Ladislav Lhotka <lhotka@nic.cz> 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.
> > 
> > draft-ietf-netconf-nmda-restconf doesn't change {+restconf}/data.  It
> > works as before.  See RFC 8040 section 1.4 for relationship to
> > <running>.
> 
> Sec. 1.4 is about coexistence with NETCONF, whereas draft-lhotka-netconf-
> restconf-transactions facilitates the use of RESTCONF *without* NETCONF.

As I wrote in my reply to the adoption poll, I think that a staging
datastore would be useful also for NETCONF.  As such, I think it would
be unfortunate to do a solution that is just for RESTCONF, and even
worse, doesn't work if the RESTCONF server is co-located with a
NETCONF server.

> > > 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.
> > 
> > This would violate section 1.4 of RFC 8040, at least if the RESTCONF
> > server is co-located with a NETCONF server.
> 
> In fact, the use of the staging datastore makes sense only if <running> is not
> writable and <candidate> not supported (or not used, at least). Moreover,
> NETCONF server needn't be present at all.


/martin


> 
> Lada 
> 
> > 
> > 
> > 
> > /martin
> > 
> > 
> > > 
> > > Lada
> > > 
> > > -- 
> > > Ladislav Lhotka
> > > Head, CZ.NIC Labs
> > > PGP Key ID: 0xB8F92B08A9F76C67
> > > 
> > > _______________________________________________
> > > Netconf mailing list
> > > Netconf@ietf.org
> > > https://www.ietf.org/mailman/listinfo/netconf
> > > 
> -- 
> Ladislav Lhotka
> Head, CZ.NIC Labs
> PGP Key ID: 0xB8F92B08A9F76C67
>