Re: [Netconf] {+restconf}/data vs <running>
Ladislav Lhotka <lhotka@nic.cz> Wed, 26 September 2018 12:02 UTC
Return-Path: <lhotka@nic.cz>
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 8692E1252B7 for <netconf@ietfa.amsl.com>; Wed, 26 Sep 2018 05:02:24 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7
X-Spam-Level:
X-Spam-Status: No, score=-7 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_HI=-5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 dcRHaRNtS1UW for <netconf@ietfa.amsl.com>; Wed, 26 Sep 2018 05:02:22 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (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 8E6CF130E94 for <netconf@ietf.org>; Wed, 26 Sep 2018 05:02:21 -0700 (PDT)
Received: from birdie (unknown [IPv6:2001:718:1a02:1::404]) by mail.nic.cz (Postfix) with ESMTPSA id 877B760162; Wed, 26 Sep 2018 14:02:19 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1537963339; bh=HcxmBTHOtT2p4aeiGNxf+1myu6b+zPmJjaWTW70AI6A=; h=From:To:Date; b=TWHYphgdT5xWqg1aB5gGvFnlzJfZXmgrYMBdKnKYeng0UPa17Ngzqetw+fY5vW5l2 vkLUTVy+an39njB9itw/TgO5efT7UreAe0gigPtW/vBNPKYiLXRNKtSdv0Sq/ypcpw ovGv2VsYfTDb3/DMur32Spg2SLybvL64dSDrtwpc=
Message-ID: <6972ffe5927fe9665d8c1e5fcf0837be55a07c99.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: Martin Bjorklund <mbj@tail-f.com>
Cc: netconf@ietf.org
Date: Wed, 26 Sep 2018 14:02:19 +0200
In-Reply-To: <20180926.133242.469987738646017624.mbj@tail-f.com>
References: <87lg7osfjt.fsf@nic.cz> <20180926.130400.328479331143716638.mbj@tail-f.com> <59d2b505319a874964436ab8c488a6d4f3a59fe9.camel@nic.cz> <20180926.133242.469987738646017624.mbj@tail-f.com>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.30.1
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/wrdVeAwK9mdvmm96qqx10h3g4GU>
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:02:24 -0000
On Wed, 2018-09-26 at 13:32 +0200, Martin Bjorklund wrote: > 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. Section 1.4 assumes only two options for client's edits: either to <running> (with :writable-running) or to <candidate>. The staging datastore adds a new option that is essentially incompatible with those two. I support adding the staging datastore to NETCONF as well but the datastore relationships need to be clarified. Specifically, I don't see any reason why sec. 1.4 of RFC 8040 cannot be updated to say: Otherwise, if the device supports :staging, all edits to configuration nodes in {+restconf}/data are performed in the staging configuration datastore. Lada > > > > > 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 > > -- Ladislav Lhotka Head, CZ.NIC Labs PGP Key ID: 0xB8F92B08A9F76C67
- [Netconf] {+restconf}/data vs <running> Ladislav Lhotka
- Re: [Netconf] {+restconf}/data vs <running> Juergen Schoenwaelder
- Re: [Netconf] {+restconf}/data vs <running> Martin Bjorklund
- Re: [Netconf] {+restconf}/data vs <running> Ladislav Lhotka
- Re: [Netconf] {+restconf}/data vs <running> Ladislav Lhotka
- Re: [Netconf] {+restconf}/data vs <running> Martin Bjorklund
- Re: [Netconf] {+restconf}/data vs <running> Ladislav Lhotka
- Re: [Netconf] {+restconf}/data vs <running> Martin Bjorklund
- Re: [Netconf] {+restconf}/data vs <running> Ladislav Lhotka
- Re: [Netconf] {+restconf}/data vs <running> Juergen Schoenwaelder
- Re: [Netconf] {+restconf}/data vs <running> Qin Wu