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

Andy Bierman <andy@yumaworks.com> Thu, 22 January 2015 23:57 UTC

Return-Path: <andy@yumaworks.com>
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 D45C31A0035 for <netmod@ietfa.amsl.com>; Thu, 22 Jan 2015 15:57:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.379
X-Spam-Level:
X-Spam-Status: No, score=-1.379 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, J_CHICKENPOX_34=0.6, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] 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 f6Q4obabnmIE for <netmod@ietfa.amsl.com>; Thu, 22 Jan 2015 15:57:38 -0800 (PST)
Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) (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 450031A8A49 for <netmod@ietf.org>; Thu, 22 Jan 2015 15:57:38 -0800 (PST)
Received: by mail-lb0-f175.google.com with SMTP id 10so3215029lbg.6 for <netmod@ietf.org>; Thu, 22 Jan 2015 15:57:36 -0800 (PST)
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:content-type; bh=ZEo7uLkj2X0C61/C5k93b4kql4x6AcGegKHE3W20jwo=; b=agnUHyhYvM4MFoyIrRTzeMX0YiTCPfJ9nkkMJWamY9WumCUCLYLf5XU66+s1fN+o/f kQz8kvxBFe5QvykxvO5gHJf2cJte/vZKsHOCRCZEaBsjTQ1gBlEg0l/HI583RXGji9zz 2XzPQUj7jd6xNJZCnFBjzS5EZ6fvpHNLvFnYUzY0iL82O7EimygTzOpUXYkJy8Hy3ID1 enTb00Oz2kytEg2jQ1/JC/NeSVrKKhdpv+eOYj+gSHHFALeNXXuLoCIPS8CTlwhr1zaI dWx+68SRtpPPRKNC0OwiOaiaI5wyj3V8rS75F1C3TBt7sWuApZKiHMnx1EZzVxQPdhR3 fP7w==
X-Gm-Message-State: ALoCoQmpipY6AzRipCiIbyHlAuhy0DSEqjaTVYGP5oQQvI3gtAezELIx9S7+GcWUP/q6EFAlUj7j
MIME-Version: 1.0
X-Received: by 10.112.12.65 with SMTP id w1mr4479576lbb.68.1421971056779; Thu, 22 Jan 2015 15:57:36 -0800 (PST)
Received: by 10.112.160.41 with HTTP; Thu, 22 Jan 2015 15:57:36 -0800 (PST)
In-Reply-To: <CABCOCHTWZrfK8zwtLsJMtkRgpw9w6pmK3TRPH+5BTe-ywWt+_A@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>
Date: Thu, 22 Jan 2015 15:57:36 -0800
Message-ID: <CABCOCHT2b+2b9sh1bBmxxO96dfLgtErVh5ONB-msEHa-Abeh9A@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Martin Bjorklund <mbj@tail-f.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/qfkF63ROrONsFNHpigjEsO9OoKY>
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: Thu, 22 Jan 2015 23:57:40 -0000

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.


>
> 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