Re: [Netconf] RESTCONF modularilty

Andy Bierman <andy@yumaworks.com> Fri, 22 August 2014 17:44 UTC

Return-Path: <andy@yumaworks.com>
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 0B3011A069E for <netconf@ietfa.amsl.com>; Fri, 22 Aug 2014 10:44:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.978
X-Spam-Level:
X-Spam-Status: No, score=-1.978 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-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 NLGYW0F0x8pt for <netconf@ietfa.amsl.com>; Fri, 22 Aug 2014 10:44:17 -0700 (PDT)
Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9425B1A067F for <netconf@ietf.org>; Fri, 22 Aug 2014 10:44:17 -0700 (PDT)
Received: by mail-qc0-f181.google.com with SMTP id x13so11130736qcv.26 for <netconf@ietf.org>; Fri, 22 Aug 2014 10:44:11 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=oQc11Tbccp/Ot+RubD+4qA7eXwRCIunJ0fSeXawKYiQ=; b=kbe5RCofjwu2cu6cbFfUUlqeQeIotfvofFKYjm/FZCw90KfFwNmcMihvBC26yC/ZRK A4UMUqQMQphbD5rmNen0B1RtJ6O5QvlDQHGWl1AvvOznog6gZ+fza/ZHZOUJo4KfOK1g VN9iuoMcSH5OrJq98/1Q45DNReXMsgg0HEw+IP+rZ2ytgRnP9pJYye1CjFROuct/JAuG cNus88SK2CfX+/Da7pV4kShMsOxktKBcZXszMUDRRF9gq0ZDT3cffeil9DRxvWPcAGTM pi1snn0z2nA6ZbvAXZRJdMqq6sRNTB9qV6XzyERJKXEppSHzoVObfEbxHsR6ynAXS+IY qIsw==
X-Gm-Message-State: ALoCoQmQ2stIlpDBLbULg9emGWIkyWjG3okCo220EbKpwME1Dxn/x6CYdWRO+uGYsAmuJXcFS8Nm
MIME-Version: 1.0
X-Received: by 10.140.98.147 with SMTP id o19mr9474408qge.21.1408729451848; Fri, 22 Aug 2014 10:44:11 -0700 (PDT)
Received: by 10.140.83.137 with HTTP; Fri, 22 Aug 2014 10:44:11 -0700 (PDT)
In-Reply-To: <D01CF760.7F32F%kwatsen@juniper.net>
References: <D01263B1.7E18B%kwatsen@juniper.net> <m2a96xly0s.fsf@nic.cz> <CAFFjW4hE5w2_a=wtKuYeuCfiL6uoF3B9Ug6qxY_ofc9DLUwyXA@mail.gmail.com> <D01CF760.7F32F%kwatsen@juniper.net>
Date: Fri, 22 Aug 2014 10:44:11 -0700
Message-ID: <CABCOCHRS1GOa6UBjy-SQGOTDYrLWnq5Ytfr19My_c-iCgLezCw@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: Kent Watsen <kwatsen@juniper.net>
Content-Type: multipart/alternative; boundary="001a113a923c8ffd1a05013b6212"
Archived-At: http://mailarchive.ietf.org/arch/msg/netconf/z8x6Zf_JnuFh76P3CbqzVD8zYMU
Cc: NetConf <netconf@ietf.org>
Subject: Re: [Netconf] RESTCONF modularilty
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.15
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: <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: Fri, 22 Aug 2014 17:44:20 -0000

On Fri, Aug 22, 2014 at 10:37 AM, Kent Watsen <kwatsen@juniper.net> wrote:

>
>  I also agree XML/JSON should be on equal footing.   I like Andy's idea
> of having them both optional to implement.  I can easily imagine cases
> where an implementation only want to support a single encoding, perhaps one
> NETCONF supports in the future.
>
>
NETCONF is problematic because of backward compatibility.
That is why the NETCONF-EX "encoding" capability is part of the
<hello> message.  The first message needs to be XML encoding
using base:1.0 message framing. Framing and encoding switch after
the <hello> message.


Andy




>   From: Wojciech Dec <wdec.ietf@gmail.com>
> Date: Thursday, August 21, 2014 at 1:30 PM
> To: Ladislav Lhotka <lhotka@nic.cz>
> Cc: Kent Watsen <kwatsen@juniper.net>, NetConf <netconf@ietf.org>
> Subject: Re: [Netconf] RESTCONF modularilty
>
>
>
>
> On 21 August 2014 16:26, Ladislav Lhotka <lhotka@nic.cz> wrote:
>
>> Hi,
>>
>> Kent Watsen <kwatsen@juniper.net> writes:
>>
>> > The RESTCONF authors recently discussed adding support for filtering,
>> > sorting, and paging collections (i.e. lists).  One comment was that it
>> > was complex and better defined in another draft.  I agree, but more
>> > importantly, RESTCONF should be fully modular, providing an ability
>> > for implementations to selectively advertise support for various
>> > things.  This is exactly the approach we used for the NETCONF Light
>> > draft (http://tools.ietf.org/html/draft-schoenw-netconf-light-01), but
>> > RESTCONF being a new protocol, there is no reason to not do it from
>> > the get go.  This strategy was discussed in Toronto, but we felt we
>> > should take it to the list before restructuring the document...
>>
>>  I fully agree with this strategy. Support for individual capabilities
>> will be indicated somehow under the "restconf" resource?
>>
>> ...
>>
>> >
>> > The corollary to RESTCONF might be:
>> >
>> >     Base Support
>> >           - the ability to GET and PUT on the top-level node using XML
>> only
>> >
>> >     Optional Support:
>> >           - the ability to do PATCH  (this is already optional)
>> >           - the ability to use JSON encoding
>>
>>  I think XML and JSON should be given equal footing, i.e. the server
>> could support either or both. Perhaps the "Accept" header on the client
>> side and 406/415 status codes on the server side could be enough?
>>
>
>  +1 re XML and JSON on equal footing.
>
>>
>> Lada
>>
>> >           - the ability to POST/GET/PUT/DELETE subtrees   (PATCH too,
>> is support for it is advertised)
>> >           - the ability to use "select" with GET operations
>> >           - the ability to use "filter" with GET on collection
>> resources (i.e. lists) and event streams
>> >           - the ability to do pagination with GET on collection
>> resources (i.e. lists)
>> >           - the ability to do sorting with GET on collection resources
>> (i.e. lists)
>> >
>> >
>> > Thoughts?
>> >
>> > Thanks,
>> > Kent
>> >
>> >
>> >
>>  > _______________________________________________
>> > Netconf mailing list
>> > Netconf@ietf.org
>> > https://www.ietf.org/mailman/listinfo/netconf
>>
>> --
>> Ladislav Lhotka, CZ.NIC Labs
>> PGP Key ID: E74E8C0C
>>
>> _______________________________________________
>> Netconf mailing list
>> Netconf@ietf.org
>> https://www.ietf.org/mailman/listinfo/netconf
>>
>
>
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>
>