Re: [Netconf] [netmod] Restconf - config and operational data sets

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 26 November 2013 14:06 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BB76F1AE1F4 for <netconf@ietfa.amsl.com>; Tue, 26 Nov 2013 06:06:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.251
X-Spam-Level:
X-Spam-Status: No, score=-2.251 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001] autolearn=ham
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 uQG2RzCgdWVE for <netconf@ietfa.amsl.com>; Tue, 26 Nov 2013 06:06:11 -0800 (PST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) by ietfa.amsl.com (Postfix) with ESMTP id 297621AE21E for <netconf@ietf.org>; Tue, 26 Nov 2013 06:06:07 -0800 (PST)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id 9860F20078; Tue, 26 Nov 2013 15:06:02 +0100 (CET)
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 rdMKpUIatK5E; Tue, 26 Nov 2013 15:06:02 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 1FA1A20076; Tue, 26 Nov 2013 15:06:02 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id A3853298539B; Tue, 26 Nov 2013 15:05:57 +0100 (CET)
Date: Tue, 26 Nov 2013 15:05:57 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Wojciech Dec <wdec.ietf@gmail.com>
Message-ID: <20131126140557.GA63168@elstar.local>
Mail-Followup-To: Wojciech Dec <wdec.ietf@gmail.com>, draft-bierman-netconf-restconf@tools.ietf.org, netconf@ietf.org
References: <CAFFjW4j96ehWxFStgHWWLZkHAk3iPJjO1nMzVVOhsoLNy5bEpA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CAFFjW4j96ehWxFStgHWWLZkHAk3iPJjO1nMzVVOhsoLNy5bEpA@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
Cc: netconf@ietf.org, draft-bierman-netconf-restconf@tools.ietf.org
Subject: Re: [Netconf] [netmod] Restconf - config and operational data sets
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
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: <http://www.ietf.org/mail-archive/web/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: Tue, 26 Nov 2013 14:06:13 -0000

Hi,

I think the current home for restconf discussions is the NETCONF WG
mailing list and not the NETMOD WG mailing list.

/js

On Tue, Nov 26, 2013 at 03:02:07PM +0100, Wojciech Dec wrote:
> Hello Restconf authors,
> 
> (retrying)
> 
> got a question regarding your latest Restconf draft. This features the split
> between /config and /operational URIs .
> 
> The text in section 5.1.1 and 5.1.2 indicates that the data in these URIs
> use
> data-stores that are effectively dis-joint sets, i.e. Rw data is in /config
> and
> ro data is in /operational.
> Is that the intent, correct interpretation?
> 
> If so, then the following example also in the draft indicates something
> else:
> 
> The jukebox data model is:
> 
>          |  +--ro artist-count?   uint32
>         |  +--ro album-count?    uint32
>         |  +--rw song-count?     uint32
> 
> 
> (p102)
> 
> While on p52 we see the following returned from the operational store:
> 
> GET /restconf/operational/example-jukebox:jukebox/library
>         HTTP/1.1
>      Host: example.com <http://example.com/>
>      Accept: application/yang.data+json
> 
>   The server might respond:
> 
>      HTTP/1.1 200 OK
>      Date: Mon, 23 Apr 2012 17:01:30 GMT
>      Server: example-server
>      Cache-Control: no-cache
>      Pragma: no-cache
>      Content-Type: application/yang.data+json
> 
>      {
>        "example-jukebox:library" : {
>           "artist-count" : 42,
>           "album-count" : 59,
>           "song-count" : 374
>        }
>      }
> 
> Which interpretation is correct?
> 
> That said, personally I find this URI "fork" undesirable, and not
> something a Rest-like interface ought to provide. If anything, the
> example, even if it turns out to be due to a typo, offers a better
> alternative; ie have a resource that provides "all" info, config and
> operational, and another that delivers an oper or config only set. Some
> better even better options can also be thought of. Anyway, before going
> there, it would be great to understand whether my interpretation is
> correct.
> 
> Regards,
> Wojciech.

> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod


-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>