Re: [Netconf] Opinion poll on RESTCONF encoding
Martin Bjorklund <mbj@tail-f.com> Thu, 27 August 2015 10:45 UTC
Return-Path: <mbj@tail-f.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 D37B01B3AC0 for <netconf@ietfa.amsl.com>; Thu, 27 Aug 2015 03:45:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 vVfNCGsixci7 for <netconf@ietfa.amsl.com>; Thu, 27 Aug 2015 03:45:49 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 6535C1B3ABF for <netconf@ietf.org>; Thu, 27 Aug 2015 03:45:49 -0700 (PDT)
Received: from localhost (unknown [213.136.39.104]) by mail.tail-f.com (Postfix) with ESMTPSA id 021041AE0973; Thu, 27 Aug 2015 12:45:47 +0200 (CEST)
Date: Thu, 27 Aug 2015 12:46:08 +0200
Message-Id: <20150827.124608.1462617116946648474.mbj@tail-f.com>
To: lhotka@nic.cz
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <m2d1y9qajj.fsf@birdie.labs.nic.cz>
References: <1232641A-BE91-4AAD-962D-779E4D85403A@gmail.com> <CABCOCHRkmHw0oy8-AYyin+YaE8-2aS5fjwAmggx_FUOzd1rg5A@mail.gmail.com> <m2d1y9qajj.fsf@birdie.labs.nic.cz>
X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/netconf/FuYx4b5-9oXO47Wfp-e0docpTTU>
Cc: 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:45:51 -0000
Ladislav Lhotka <lhotka@nic.cz> wrote: > 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. I agree that we should not specify anything about the Accept header; that is HTTP's business. But this doesn't mean that (2) cannot be useful. With (2) a client can learn the encodings supported by the server before it constructs payload in an encoding that may or may not be supported by the server. /martin
- Re: [Netconf] Opinion poll on RESTCONF encoding Andy Bierman
- Re: [Netconf] Opinion poll on RESTCONF encoding Kent Watsen
- [Netconf] Opinion poll on RESTCONF encoding Mahesh Jethanandani
- Re: [Netconf] Opinion poll on RESTCONF encoding Juergen Schoenwaelder
- Re: [Netconf] Opinion poll on RESTCONF encoding Ladislav Lhotka
- Re: [Netconf] Opinion poll on RESTCONF encoding Martin Bjorklund
- Re: [Netconf] Opinion poll on RESTCONF encoding Ladislav Lhotka
- Re: [Netconf] Opinion poll on RESTCONF encoding Kent Watsen
- Re: [Netconf] Opinion poll on RESTCONF encoding Juergen Schoenwaelder
- Re: [Netconf] Opinion poll on RESTCONF encoding Kent Watsen
- Re: [Netconf] Opinion poll on RESTCONF encoding Mahesh Jethanandani
- Re: [Netconf] Opinion poll on RESTCONF encoding Ladislav Lhotka
- Re: [Netconf] Opinion poll on RESTCONF encoding Kent Watsen