Re: [Netconf] Opinion poll on RESTCONF encoding

Andy Bierman <andy@yumaworks.com> Thu, 27 August 2015 00:23 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 256661ACCE1 for <netconf@ietfa.amsl.com>; Wed, 26 Aug 2015 17:23:32 -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 czmVz2o0sGGk for <netconf@ietfa.amsl.com>; Wed, 26 Aug 2015 17:23:30 -0700 (PDT)
Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) (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 A21471A92B4 for <netconf@ietf.org>; Wed, 26 Aug 2015 17:23:29 -0700 (PDT)
Received: by lbbsx3 with SMTP id sx3so1939775lbb.0 for <netconf@ietf.org>; Wed, 26 Aug 2015 17:23:28 -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=2w6yiKcIZ8lX4r6QWtFEOZsbR2ZEreCnxCA2GDhKgB4=; b=hTs6WULYa5utXqYdcav8Ejf2boW1HQ/1rIcKuFotD9zuhD2E11u54rd9Nq5yri/RPb Vc/X1rATT4BkeBC3ZnvB1QZQh7N80mcjdQnDsnRZgFIltYHqlWhNAF+mN72ATd3LbBcZ evIZywtsVTOq5pQFqIU9RsKH7nb9a/Np2FEM/BsNQiAp52GGQfZkKbQLdAPoF5POqIOa Fw1YYmhcxpDo+s0bOIecOvN/5P3xbcQAhBXQGi7aqMSVEm1XiUqn+QpsCqtkDHeIe5Ia Y0XVo+a9rdPTGaqEZlgFxS4c66lhvwyHyyo6aRaLKm7kqbMK82kGCVtwghgZhyaTn9x/ bU5w==
X-Gm-Message-State: ALoCoQnv4tHfKNAkLjzwVkSd7q0Nomqc1S/kSJbIhLup6nMOpTDXmg/WGguYVLI5sv40KnHtOGfO
MIME-Version: 1.0
X-Received: by 10.152.120.74 with SMTP id la10mr788119lab.37.1440635007779; Wed, 26 Aug 2015 17:23:27 -0700 (PDT)
Received: by 10.112.200.104 with HTTP; Wed, 26 Aug 2015 17:23:27 -0700 (PDT)
In-Reply-To: <1232641A-BE91-4AAD-962D-779E4D85403A@gmail.com>
References: <1232641A-BE91-4AAD-962D-779E4D85403A@gmail.com>
Date: Wed, 26 Aug 2015 17:23:27 -0700
Message-ID: <CABCOCHRkmHw0oy8-AYyin+YaE8-2aS5fjwAmggx_FUOzd1rg5A@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
Content-Type: multipart/alternative; boundary="089e01229022e3e131051e3ff9ce"
Archived-At: <http://mailarchive.ietf.org/arch/msg/netconf/fy5DFsvlY9dWYeTppqzD0zqQ8No>
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 00:23:32 -0000

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.




> Mahesh & Mehmet
>
>
>
Andy


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