Re: [Netconf] Opinion poll on RESTCONF encoding

Ladislav Lhotka <lhotka@nic.cz> Thu, 27 August 2015 10:40 UTC

Return-Path: <lhotka@nic.cz>
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 DCCFA1B39C6 for <netconf@ietfa.amsl.com>; Thu, 27 Aug 2015 03:40:37 -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
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 mm9AhU9KXmNn for <netconf@ietfa.amsl.com>; Thu, 27 Aug 2015 03:40:35 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 878DA1B39BC for <netconf@ietf.org>; Thu, 27 Aug 2015 03:40:35 -0700 (PDT)
Received: from localhost (unknown [195.113.220.110]) by trail.lhotka.name (Postfix) with ESMTPSA id 770111CC0047; Thu, 27 Aug 2015 12:40:37 +0200 (CEST)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Andy Bierman <andy@yumaworks.com>, Mahesh Jethanandani <mjethanandani@gmail.com>
In-Reply-To: <CABCOCHRkmHw0oy8-AYyin+YaE8-2aS5fjwAmggx_FUOzd1rg5A@mail.gmail.com>
References: <1232641A-BE91-4AAD-962D-779E4D85403A@gmail.com> <CABCOCHRkmHw0oy8-AYyin+YaE8-2aS5fjwAmggx_FUOzd1rg5A@mail.gmail.com>
User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.4.51.2 (x86_64-apple-darwin14.0.0)
Date: Thu, 27 Aug 2015 12:40:32 +0200
Message-ID: <m2d1y9qajj.fsf@birdie.labs.nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <http://mailarchive.ietf.org/arch/msg/netconf/x3e4uMvYHFySAl7dintYVAXzg3s>
Cc: Netconf <netconf@ietf.org>
Subject: Re: [Netconf] Opinion poll on RESTCONF encoding
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: <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, 27 Aug 2015 10:40:38 -0000

Andy Bierman <andy@yumaworks.com> writes:

> On Wed, Aug 26, 2015 at 5:03 PM, Mahesh Jethanandani <
> mjethanandani@gmail.com> wrote:
>
>> A little more than two weeks ago, the chairs of NETCONF WG had issued a
>> opinion poll on RESCONF encoding. The options given were:
>>
>> x) XML is mandatory, JSON optional,
>> j) JSON is mandatory, XML optional,
>> x&j) XML and JSON are both mandatory,
>> x+j) Either XML or JSON is mandatory the other one is optional,
>> nm) Both XML and JSON are optional and _not_ mandatory.
>>
>> The option x+j won by a large margin and at this time can be declared as
>> the rough consensus by the WG.
>>
>> Separately, a secondary question was raised around how the encoding could
>> be or would be discovered. On that we do not seem to have a consensus. Two
>> proposals that were made are:
>>
>>
>>    1. Client sends all supported encodings in Accept request-header, with
>>    an (optional) preference indication via quality (q). Server responds with
>>    one of the encodings or 406 (not supported). The encoding formats would be
>>    limited to a small set - XML and JSON with this option to encourage
>>    interoperability.
>>    2. Server advertises support of encodings using the
>>    ./well-known/host-meta file and XRD.
>>
>>
>> Please indicate your opinion on the discovery of encoding part of the
>> discussion. This opinion will not change the consensus on the poll of
>> RESTCONF encoding.
>>
>>
> This really isn't subject to the opinion of the WG.
> HTTP uses the Accept header.
> The only issue for RESTCONF is what does the server do if
> there is no Accept header from the client?
> Currently I think the draft says the server will send XML by default.
> It needs to change to be silent and let the server send whatever it wants.
>
> Even if (2) was done the server still MUST support the Accept header.

I agree with Andy, this is really HTTP business, and RESTCONF is just an
application on top of it.

Lada

>
>
>
>
>> Mahesh & Mehmet
>>
>>
>>
> Andy
>
>
>>
>>
>> _______________________________________________
>> 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

-- 
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C