Re: [Netconf] {+restconf}/data
Andy Bierman <andy@yumaworks.com> Thu, 19 July 2018 22:33 UTC
Return-Path: <andy@yumaworks.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 BBA3E130E42 for <netconf@ietfa.amsl.com>; Thu, 19 Jul 2018 15:33:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.com
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 VNqK2kJQtA_w for <netconf@ietfa.amsl.com>; Thu, 19 Jul 2018 15:33:56 -0700 (PDT)
Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1B079130E66 for <Netconf@ietf.org>; Thu, 19 Jul 2018 15:33:50 -0700 (PDT)
Received: by mail-lf1-x12b.google.com with SMTP id v22-v6so455979lfe.8 for <Netconf@ietf.org>; Thu, 19 Jul 2018 15:33:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7ttTLGFS853caKaNmZAqCKeasfhPZgAhNF0JoihUqTE=; b=ENujEP3LfffgXmqLQe301PSucNU1BBTZy6TuB7IvudZ7vFcFcWXrwdf4fCbjkS1BmF sNFuZio1NDyXz9vXmg3OxQq2Ibblfbu1Iv2j7gLc+DiAcj9yBNTY+QIihjKCxHueKfzb eWkkE4JoJNwCX19T2ylM8Xoi+n/r1XMm08iT4Xstw2aPfIyWQIRlt4vTfX7Mmq0uJXCd M4z3w5Z8L8RW5SFJCHnguxWRWjn+VG+jyifYMJKe62gmEsSVmKsaPueI+WBY2KM2y1h8 Rc9Vx4L1O+nS7NXwr9Gn05uU2HpJS8gHbeL0I2ZTfNTMI+uRYtBZ+lyviHPaXIvtj4IU zKcQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7ttTLGFS853caKaNmZAqCKeasfhPZgAhNF0JoihUqTE=; b=JPLfx7mLKkzRDPyYAbkQQAGcyDQey9XCIWSqHZxqrdQP2+Elx5f3QUCJK/PX2ZG1w6 CmuAFq0OpNHkLzQamiFP1XtZMgpwr7pC6du35Gr9aZBdgqDQU657Tw9sOUrmGeu0+nI+ L4iZqOBA94ZQRsY1YDJH1lRaidwXpxrT1tb8oUDqioyIFS/lI9WLZzj7W1qeMYaF7Llb pQffo8Z+b6sBx/OU3iXmHdhWxnZjR0GgzxqSQMiaAF983Ycmq8BPtp+YBy4/qOahLapM bbz9CXPQHv7TQG4zdaoy4CpEQvteS7GiuKgtOHmiquB+39a364WGKwhIYbuHAt1voFLf 3caQ==
X-Gm-Message-State: AOUpUlGOjou11N28KbmNuzcCYsRttGAfBUUodnUCZez3EJHxdaL1ed5m pX6nhN/FC/Zo2OsHDsTPnOpDdBDvpZvTKT/Ia9rAIh4e
X-Google-Smtp-Source: AAOMgpe66AI4kD4X4bUg7Ht+vF9/M/tOwDgpDcs7QEqQJ/fkRXt1RPD8SUjra8ebCnjLw6K1y2+rq3nKS6LN7b3gIeU=
X-Received: by 2002:a19:b598:: with SMTP id g24-v6mr8090272lfk.129.1532039628029; Thu, 19 Jul 2018 15:33:48 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a19:aa46:0:0:0:0:0 with HTTP; Thu, 19 Jul 2018 15:33:47 -0700 (PDT)
In-Reply-To: <3a52d5243607493b4ee82be68669b970642acf07.camel@nic.cz>
References: <87efg0nxa1.fsf@nic.cz> <20180719084156.llzgfj465hov4s47@anna.jacobs.jacobs-university.de> <87o9f39ccy.fsf@nic.cz> <CABCOCHTa8R7xZzATFLJT56UiH3+U0ZcR2g7GBHWd_gNNYpM76Q@mail.gmail.com> <3a52d5243607493b4ee82be68669b970642acf07.camel@nic.cz>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 19 Jul 2018 15:33:47 -0700
Message-ID: <CABCOCHRDD8_kyPbNAi=p4O9ZsbLWyUbO1JmcUnoBo85pT=2nxg@mail.gmail.com>
To: Ladislav Lhotka <lhotka@nic.cz>
Cc: Mahesh Jethanandani <Netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000cf9782057161c574"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/cVLWKEOJY41u1GAgjNFKgevF1r0>
Subject: Re: [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: Thu, 19 Jul 2018 22:34:00 -0000
Hi, I think people should use the new NMDA URIs if they want different behavior than RFC 8040. Andy On Thu, Jul 19, 2018 at 2:27 PM, Ladislav Lhotka <lhotka@nic.cz> wrote: > On Thu, 2018-07-19 at 13:58 -0700, Andy Bierman wrote: > > > > > > On Thu, Jul 19, 2018 at 1:53 PM, Ladislav Lhotka <lhotka@nic.cz> wrote: > > > Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> writes: > > > > > > > Lada, > > > > > > > > there is no point in changing the definition of {+restconf}/data > since > > > > this would lead to interoperability issues and hence {+restconf}/data > > > > remains what it is. > > > > > > Clients can have interoperability issues already now, e.g. if the > server > > > upgrades to the new "ietf-interfaces" module: > > > > > > - it can receive loads of unexpected state data and statistics > > > > > > - no data may be available under "interfaces-state" (because of the > > > ambiguity of the deprecated status). > > > > > > > > > > > Yes, the new datastore names are longer but we did not want to > require > > > > globally unique datastore names (which would require some form of a > > > > registry and that everybody uses the registry). > > > > > > Most of the text in RFC 8040 deals with the {+restconf}/data resource > > > and its descendants, so effectively deprecating it in another document > > > seems pretty confusing. I think that {+restconf}/data should remain the > > > main entry point to configuration for an average client. > > > > > > > I agree with Juergen. > > You cannot change the usage of /restconf/data. > > Old clients will expect the old behavior and break if a new server did > this. > > What is "the old behavior" and how would it change with my proposal? The > old > resources and their URIs continue to exist, clients can use the same > methods as > before, only the returned data may be different. As my example with "ietf- > interfaces" demonstrates, this happens already when this module is > upgraded to > the NMDA-compatible revision. > > As a matter of fact, with my proposal the returned data would be exactly > the > same as with the old version of "ietf-interfaces" - only configuration. > > > > > There is no reason to deprecate or change this URI. > > Pick a new URI for new functionality. > > This is much less confusing and it does not break old clients. > > But {+restconf}/data is essentially equivalent to <get> output in NETCONF, > and > this is what we wanted to get rid of. > > Lada > > > > > > > > > > Lada > > > > > > > Andy > > > > > > > > > > /js > > > > > > > > On Wed, Jul 18, 2018 at 03:45:10PM -0400, Ladislav Lhotka wrote: > > > > > 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 > > > > > > > > > > _______________________________________________ > > > > > Netconf mailing list > > > > > Netconf@ietf.org > > > > > https://www.ietf.org/mailman/listinfo/netconf > > > > > > > > -- > > > > 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/> > -- > Ladislav Lhotka > Head, CZ.NIC Labs > PGP Key ID: 0xB8F92B08A9F76C67 > > _______________________________________________ > Netconf mailing list > Netconf@ietf.org > https://www.ietf.org/mailman/listinfo/netconf >
- [Netconf] {+restconf}/data Ladislav Lhotka
- Re: [Netconf] {+restconf}/data Juergen Schoenwaelder
- Re: [Netconf] {+restconf}/data Ladislav Lhotka
- Re: [Netconf] {+restconf}/data Andy Bierman
- Re: [Netconf] {+restconf}/data Ladislav Lhotka
- Re: [Netconf] {+restconf}/data Andy Bierman
- Re: [Netconf] {+restconf}/data Juergen Schoenwaelder