Re: [netmod] yang-json document
Ladislav Lhotka <lhotka@nic.cz> Mon, 09 February 2015 13:15 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 E4CC81A00F4 for <netmod@ietfa.amsl.com>; Mon, 9 Feb 2015 05:15:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.361
X-Spam-Level:
X-Spam-Status: No, score=-0.361 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HELO_EQ_CZ=0.445, HOST_EQ_CZ=0.904, MIME_8BIT_HEADER=0.3, T_RP_MATCHES_RCVD=-0.01] 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 1HRSRmmmXNj2 for <netmod@ietfa.amsl.com>; Mon, 9 Feb 2015 05:15:07 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AD47E1A0018 for <netmod@ietf.org>; Mon, 9 Feb 2015 05:15:06 -0800 (PST)
Received: from [IPv6:2001:718:1a02:1:d0a5:b44f:7a29:653a] (unknown [IPv6:2001:718:1a02:1:d0a5:b44f:7a29:653a]) by mail.nic.cz (Postfix) with ESMTPSA id D15A3140BD1; Mon, 9 Feb 2015 14:15:03 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nic.cz; s=default; t=1423487703; bh=kx0v0mCBMzDdYUwUqW8m41T1UQ17SF+yBAoWZi0REmE=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To; b=VLLFqqoRg8g4KTGMeRnO2a0cq/wuv5jd/PFIkIKp9DhF+q+PDEZS6W0z/mPlZ9FIM qgL9eS7sFh5cDYL98/+ysm4c8rxH1FYMoP+PVyC+mRmLuhudVG2/TxpT7h/YGVlFJq hp6hb6WSe0FIwJvpoP01K1W8FQm4GXiHV+1uQ8LU=
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <20150209.135651.1017394851894918029.mbj@tail-f.com>
Date: Mon, 09 Feb 2015 14:15:03 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <182994D6-5396-44D2-B625-5E80D2165124@nic.cz>
References: <20150209.091838.2239188145158636181.mbj@tail-f.com> <CABCOCHQSYgG7XeZhmRk3GDR1QyUzioV9rH2aC8FN=g=bQ=V=+Q@mail.gmail.com> <E30F2CF1-D6A9-4EEB-A59E-52695F717876@nic.cz> <20150209.135651.1017394851894918029.mbj@tail-f.com>
To: Martin Björklund <mbj@tail-f.com>
X-Mailer: Apple Mail (2.2070.6)
X-Virus-Scanned: clamav-milter 0.98.1 at mail
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/g6bZshRCBCgklImAnIn0tcahAzk>
Cc: netmod@ietf.org
Subject: Re: [netmod] yang-json document
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: Mon, 09 Feb 2015 13:15:09 -0000
> On 09 Feb 2015, at 13:56, Martin Bjorklund <mbj@tail-f.com> wrote: > > Ladislav Lhotka <lhotka@nic.cz> wrote: >> >>> On 09 Feb 2015, at 09:59, Andy Bierman <andy@yumaworks.com> wrote: >>> >>> On Mon, Feb 9, 2015 at 12:18 AM, Martin Bjorklund <mbj@tail-f.com> >>> wrote: >>>> Phil Shafer <phil@juniper.net> wrote: >>>>> Andy Bierman writes: >>>>>> Solution Y34-06 >>>>>> - do not deprecate anyxml >>>>>> - do not add anydata (no agreement on rules) >>>>>> - implementations MAY restrict the XML accepted in anyxml >>>>>> - MAY ignore processing instructions >>>>>> - MAY reject mixed mode input >>>>>> - document in YANG 1.1 that anyxml is not considered interoperable >>>>>> if PIs and mixed mode XML are used >>>>> >>>>> This is essenially "be aware that server implementations might not >>>>> implement all of YANG". >>>>> >>> >>> Isn't this already the case? >>> Why is it that not all servers fully support anyxml? >>> >>> >>>>>> - The guidelines document should say that YANG Doctors will review >>>>>> each use of anyxml in IETF modules >>>>> >>>>> This part I completely agree with. >>>>> >>>>> Here's my proposal: >>>>> >>>>> Solution Y34-07 >>>>> - do not change YANG >>>>> - Change the JSON encoding rules to encode anyxml nodes as strings >>>>> - The guidelines document should say that YANG Doctors will review >>>>> each use of anyxml in IETF modules (lifted from Y34-06) >>>> >>>> This is fine (*) as one part of the solution, but by itself it isn't >>>> sufficient. >>>> >>>> The problem is illustrated in YANG PATCH, which is supposed to work >>>> for both XML and JSON. If YANG PATCH uses anyxml, it means that the >>>> JSON encoding of a YANG PATCH is pretty much useless (since the edit >>>> would be expressed as XML, but the reast in JSON). >>>> >>>> This is why we have suggested to add anydata, which YANG PATCH then >>>> should use instead of anyxml. >>>> >>> >>> >>> I strongly object to making YANG Patch YANG 1.1 only. >>> I would rather drop JSON support. >> >> I think you can continue using anyxml in YANG PATCH, IMO there is >> nothing wrong with it. If the module gets upgraded to YANG 1.1, the >> descriptions could perhaps be made shorter, and that’s all. > > I think you're missing the context. Phil suggested that anyxml should > be encoded as a string in json, and we're discussing the implications > of that. In this context, I do not think that anyxml can be used in > YANG PATCH - or we do what Andy suggests, drop json support. OK. Anyway, I am opposed to that encoding of anyxml in JSON. Apart from the problems you mentioned it is also asymmetric: no equivalent is available for JSON. Lada > > > /martin -- Ladislav Lhotka, CZ.NIC Labs PGP Key ID: E74E8C0C
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Juergen Schoenwaelder
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Randy Presuhn
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Juergen Schoenwaelder
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Juergen Schoenwaelder
- Re: [netmod] yang-json document Juergen Schoenwaelder
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Randy Presuhn
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Andy Bierman
- [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Juergen Schoenwaelder
- Re: [netmod] [Ladislav Lhotka] Re: yang-json docu… Andy Bierman
- Re: [netmod] [Ladislav Lhotka] Re: yang-json docu… Martin Bjorklund
- Re: [netmod] [Ladislav Lhotka] Re: yang-json docu… Andy Bierman
- [netmod] [Ladislav Lhotka] Re: yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Juergen Schoenwaelder
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Phil Shafer
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] [Ladislav Lhotka] Re: yang-json docu… Ladislav Lhotka
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Martin Bjorklund
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] [Ladislav Lhotka] Re: yang-json docu… Phil Shafer
- Re: [netmod] [Ladislav Lhotka] Re: yang-json docu… Ladislav Lhotka
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Andy Bierman
- Re: [netmod] yang-json document Ladislav Lhotka
- Re: [netmod] yang-json document Ladislav Lhotka