Re: [netmod] VRFY :Y34: remove/deprecate/replace the 'anyxml' statement

Ladislav Lhotka <lhotka@nic.cz> Fri, 23 January 2015 09:34 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5EFF41A0204 for <netmod@ietfa.amsl.com>; Fri, 23 Jan 2015 01:34:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.3
X-Spam-Level:
X-Spam-Status: No, score=-1.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, J_CHICKENPOX_34=0.6] autolearn=no
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 Qehc5D31ZbNJ for <netmod@ietfa.amsl.com>; Fri, 23 Jan 2015 01:34:14 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 0D9511A01AE for <netmod@ietf.org>; Fri, 23 Jan 2015 01:34:13 -0800 (PST)
Received: from localhost (unknown [195.113.220.110]) by trail.lhotka.name (Postfix) with ESMTPSA id 743041CC05F5; Fri, 23 Jan 2015 10:34:14 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Andy Bierman <andy@yumaworks.com>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Martin Bjorklund <mbj@tail-f.com>, "netmod@ietf.org" <netmod@ietf.org>
In-Reply-To: <CABCOCHT2b+2b9sh1bBmxxO96dfLgtErVh5ONB-msEHa-Abeh9A@mail.gmail.com>
References: <20150107145943.GE13482@elstar.local> <20150108.103728.1499085884469962335.mbj@tail-f.com> <20150121102144.GE32055@elstar.local> <CABCOCHTWZrfK8zwtLsJMtkRgpw9w6pmK3TRPH+5BTe-ywWt+_A@mail.gmail.com> <CABCOCHT2b+2b9sh1bBmxxO96dfLgtErVh5ONB-msEHa-Abeh9A@mail.gmail.com>
User-Agent: Notmuch/0.18.1 (http://notmuchmail.org) Emacs/24.4.51.2 (x86_64-apple-darwin14.0.0)
Date: Fri, 23 Jan 2015 10:34:10 +0100
Message-ID: <m2h9vhn8ml.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/fCRm1v8ikwsrZ44Xyi-h65Gh4Nw>
Subject: Re: [netmod] VRFY :Y34: remove/deprecate/replace the 'anyxml' statement
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Jan 2015 09:34:16 -0000

Andy Bierman <andy@yumaworks.com> writes:

> On Wed, Jan 21, 2015 at 7:05 AM, Andy Bierman <andy@yumaworks.com> wrote:
>> On Wed, Jan 21, 2015 at 2:21 AM, Juergen Schoenwaelder
>> <j.schoenwaelder@jacobs-university.de> wrote:
>>> On Thu, Jan 08, 2015 at 10:37:28AM +0100, Martin Bjorklund wrote:
>>>> Hi,
>>>>
>>>> Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
>>>> > The 2014-12-03 virtual interim meeting proposal is to adopt Y34-04.
>>>>
>>>> I don't think Y34-04 is sufficient.  If I understand Y34-04 (add
>>>> 'root) correctly, the difference between it and Y34-02 (add 'anydata')
>>>> is that 'root' is a special case of 'anydata'; i.e., 'root' behaves as
>>>> 'anydata' with the constraint that it only can hande top-level nodes.
>>>>
>>>> As an example of why this is not sufficient, YANG PATCH uses anyxml
>>>> with non-top-level nodes.  It would not be possible to use 'root' in
>>>> this case.  'anydata' would be a better match.
>>>>
>>>
>>> Andy,
>>>
>>> can you please respond to this since you created Y34-04? I now hear
>>> two people in favour of Y34-02 and we had this back in July 2014:
>>>
>>>    2014-07-21 meeting proposal and action: adopt Y34-02, AB to work out
>>>    a concrete proposal.
>>>
>>> So is the main delta of Y34-04 compared to Y34-02 (i) the additional
>>> text (the three list items) or (ii) additional restrictions of "root"
>>> to top-level nodes. (The Y34-04 referes to ncx:root which is not known
>>> to everybody.)
>>>
>>
>>
>> There are corner cases like YANG Patch edit value that need to be
>> anyxml.
>>
>>> Would adoption of Y34-02 with the additional text (the three list
>>> items) of Y34-04 be a workable solution?
>>>
>
>
> The discussion in the last VI meeting seemed to favor this solution
> but there is still this issue of JSON -> XML -> JSON round-trip
> conversion of anydata (unstructured data).
>
> IMO the loss of JSON typing through the XML conversion
> is not an issue because the only schema that matters is
> the YANG anydata.  E.g.,  booleans and numbers are
> just strings. null is not supported.  All simple nodes are
> strings.  There are no keys so there are no real arrays.
> The server may return multiple containers that could
> have been encoded as an array.

So it seems JSON encoding will change (compared to
draft-ietf-netmod-yang-json-02, sec. 5.5) only so that null will be
allowed only in a single-element array ("[null]") and array containing
both scalar values and objects/arrays won't be allowed.

Is it correct?

Lada

>
>
>>
>> yes
>>
>>
>>> /js
>>>
>>
>> Andy
>>
>
> Andy
>
>
>>> --
>>> 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/>
>>>
>>> _______________________________________________
>>> netmod mailing list
>>> netmod@ietf.org
>>> https://www.ietf.org/mailman/listinfo/netmod
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

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