[Netconf] {+restconf}/data

Ladislav Lhotka <lhotka@nic.cz> Wed, 18 July 2018 19:45 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 9B9E6130FE1 for <netconf@ietfa.amsl.com>; Wed, 18 Jul 2018 12:45:21 -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] 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 6aPPeaPuX6pz for <netconf@ietfa.amsl.com>; Wed, 18 Jul 2018 12:45:18 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id BDAD5130FEE for <netconf@ietf.org>; Wed, 18 Jul 2018 12:45:14 -0700 (PDT)
Received: by trail.lhotka.name (Postfix, from userid 109) id 86E5F1820CBC; Wed, 18 Jul 2018 21:51:16 +0200 (CEST)
Received: from localhost (dhcp-9627.meeting.ietf.org [31.133.150.39]) by trail.lhotka.name (Postfix) with ESMTPSA id DE8921820053 for <netconf@ietf.org>; Wed, 18 Jul 2018 21:51:15 +0200 (CEST)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Netconf <netconf@ietf.org>
Date: Wed, 18 Jul 2018 15:45:10 -0400
Message-ID: <87efg0nxa1.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/wRvrHwK8A02AF0kyq7gS9zJTSC8>
Subject: [Netconf] {+restconf}/data
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.27
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, 18 Jul 2018 19:45:22 -0000

Hi,

it seems that using RESTCONF with the updated NMDA-compatible modules
leads to the (IMO undesirable) result where under the "legacy" root
"{+restconf}/data" state data are mixed with configuration. For example,
with ietf-interfaces@2018-02-20

GET {+restconf}/data/ietf-interfaces:interfaces

yields configuration, state data and statistics, whereas with the old
revision ietf-interfaces@2014-05-08 GET on the same URL yields only
configuration. I think this defeats the purpose of NMDA.

On the other hand, the short datastore-less URLs are too handy to be
simply deprecated. I would therefore propose that {+restconf}/data be
essentially an alias for the configuration datastore that the user can
directly edit. This means:

- with writable <running> it will be an alias to running

- if the implementation uses <candidate>, it will be an alias to
  <candidate>.

Lada

-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67