Re: Last Call: <draft-ietf-netmod-yang-json-08.txt> (JSON Encoding of Data Modeled with YANG) to Proposed Standard

Ladislav Lhotka <lhotka@nic.cz> Fri, 26 February 2016 13:06 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7E79E1A9030; Fri, 26 Feb 2016 05:06:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.657
X-Spam-Level:
X-Spam-Status: No, score=-0.657 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, RP_MATCHES_RCVD=-0.006] 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 k__ntcaEVqoa; Fri, 26 Feb 2016 05:06:51 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 44C6A1A9025; Fri, 26 Feb 2016 05:06:51 -0800 (PST)
Received: from [IPv6:2001:718:1a02:1:1ce6:d7fe:806f:4ee1] (unknown [IPv6:2001:718:1a02:1:1ce6:d7fe:806f:4ee1]) by mail.nic.cz (Postfix) with ESMTPSA id 8364D181672; Fri, 26 Feb 2016 14:06:49 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1456492009; bh=rb62CRus7CuhVCp5iBDY8CO2IMWtYwUC0z4GEhSEovQ=; h=From:Date:To; b=v1VAMwvChDVzHCNyGy2v8cEFEjK55rTYw+6FCnrr50cGKB6Q+e7+NKfiKsrkn1KhU b88WLEy4xCManUc7rTaFOnCV4KMIuY3qp+0mNnEiYwjl+IcShQEBhjk0TzkoZTCjKe R+E3L8r45UkkpJMz+ZivwuOSg31RYzCl2CysjveA=
Subject: Re: Last Call: <draft-ietf-netmod-yang-json-08.txt> (JSON Encoding of Data Modeled with YANG) to Proposed Standard
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
Content-Type: text/plain; charset="iso-8859-1"
From: Ladislav Lhotka <lhotka@nic.cz>
X-Priority: 3
In-Reply-To: <010f01d1708c$6d30c4a0$4001a8c0@gateway.2wire.net>
Date: Fri, 26 Feb 2016 14:07:05 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <E794E35F-AE44-4E23-93D4-6E028F065C96@nic.cz>
References: <20160224140746.29017.27133.idtracker@ietfa.amsl.com> <036401d16fca$511a2580$4001a8c0@gateway.2wire.net> <95F286E9-700F-4408-9608-144583789097@nic.cz> <010f01d1708c$6d30c4a0$4001a8c0@gateway.2wire.net>
To: "tom p." <daedulus@btconnect.com>
X-Mailer: Apple Mail (2.3112)
X-Virus-Scanned: clamav-milter 0.98.7 at mail
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/ietf/EJmnLeGSVcZNvDEtr0w0I4BTrfs>
Cc: draft-ietf-netmod-yang-json@ietf.org, Kent Watsen <kwatsen@juniper.net>, ietf@ietf.org
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 26 Feb 2016 13:06:53 -0000

> On 26 Feb 2016, at 12:39, tom p. <daedulus@btconnect.com> wrote:
> 
> <focussing on datastores>
> 
> ----- Original Message -----
> From: "Ladislav Lhotka" <lhotka@nic.cz>
> To: "tom p." <daedulus@btconnect.com>
> Sent: Thursday, February 25, 2016 1:26 PM
> 
> Tom,
> 
>> On 25 Feb 2016, at 13:42, tom p. <daedulus@btconnect.com> wrote:
>> 
>> In the interests of clarity
>> 
>> - datastores are not mentioned.  These loom large in YANG and NETCONF
>> and, I think, have been misunderstood by those wishing to extend YANG
> in
>> various, new directions.  Therefore I think that the I-D should say
>> something, even if it is that the concept of datastore is alien to the
>> envisaged uses of JSON (I could envisage a use where datastores do
>> apply, but it is probably an unrealistic use:-)
> 
> I don't understand. This draft is about encoding a data tree in JSON
> under the assumption that the data tree is valid with respect to a YANG
> data model. How is this related to datastores? In particular, I don't
> think the concept of datastores is alien to it in any way (proofs exist
> to the contrary).
> 
> <tp>
> 
> It is the I-D that introduces datastores
> 
> "   The specification of YANG 1.1 data modelling language
>   [I-D.ietf-netmod-rfc6020bis] defines only XML encoding of data trees,
>   i.e., contents of configuration datastores, state data, input/output
>   parameters of RPC operations or actions, and event notifications.
>   The aim of this document is to define rules for encoding the same
>   data as JavaScript Object Notation (JSON) text [RFC7159]."
> 
> and goes on to give a definition of action and RPC operation but not of
> configuration datastore, state data or event notification.  To me, that
> looks odd.  The I-D tells me I could take rfc6020bis and replace every
> XMP snippet with JSON text and for that, I think I need a knowledge of
> datastores!  I suggest adding those three missing definitions to section
> 2, nothing more.

OK, so the problem seems to be a missing reference to RFC 6241 where all three terms are defined. Would that be sufficient?

Thanks, Lada

> 
> Tom Petch
> 
> 
> <snip>

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