Re: [netmod] yang-json document
Ladislav Lhotka <lhotka@nic.cz> Thu, 05 February 2015 13:49 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 A6EC01A887A for <netmod@ietfa.amsl.com>; Thu, 5 Feb 2015 05:49:34 -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 oNeBmZJgSe2a for <netmod@ietfa.amsl.com>; Thu, 5 Feb 2015 05:49:33 -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 5456C1A8864 for <netmod@ietf.org>; Thu, 5 Feb 2015 05:49:33 -0800 (PST)
Received: from [IPv6:2001:1488:fffe:6:e580:7737:4dc8:f9ba] (unknown [IPv6:2001:1488:fffe:6:e580:7737:4dc8:f9ba]) by mail.nic.cz (Postfix) with ESMTPSA id 5594713F9AF; Thu, 5 Feb 2015 14:49:31 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nic.cz; s=default; t=1423144171; bh=cQ+dvMh4vagc0yugdJKneGiXKkpfTj5yJlPdUsa/ZeU=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To; b=mICkzJlRxNJY7gD03k70DpmQRzNNnhReG4yEeRLHNSJr/9VAXKOUmYKrxcTk2rbjH 4IacubxXvEVwY7jqH5FDpCF3k3COOeEPTPLk5kru9kytwP7/yx0X7mpZytZlKA7O3y qRVeeObMXFNPFH3XwrVIeVYSu/uvePTfmTM3CLvQ=
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <20150205.135210.818152609244122122.mbj@tail-f.com>
Date: Thu, 05 Feb 2015 14:49:31 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <15CBB080-9288-4881-8F28-DE1A24279820@nic.cz>
References: <m2bnlh7emw.fsf@birdie.labs.nic.cz> <20150205.135210.818152609244122122.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/k4ylBXr7MGfeQlooaOGcaxWSsIo>
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: Thu, 05 Feb 2015 13:49:34 -0000
> On 05 Feb 2015, at 13:52, Martin Bjorklund <mbj@tail-f.com> wrote: > > Ladislav Lhotka <lhotka@nic.cz> wrote: >> Hi, >> >> $SUBJ is already several months late, so I think we should proceed >> towards delivering it. I checked my mail archive since the -02 revision, >> and it seems two issues need to be resolved: >> >> 1. Andy objected to making redundant namespace prefixes illegal. I >> propose the following change to 4th paragraph in sec. 4 (SHOULD NOT >> instead of MUST NOT): >> >> OLD >> >> Names with namespace identifiers in the form shown in Figure 1 MUST >> be used for all top-level YANG data nodes, and also for all nodes >> whose parent node belongs to a different namespace. Otherwise, names >> with namespace identifiers MUST NOT be used. >> >> NEW >> >> Names with namespace identifiers in the form shown in Figure 1 MUST >> be used for all top-level YANG data nodes, and also for all nodes >> whose parent node belongs to a different namespace. Otherwise, names >> with namespace identifiers SHOULD NOT be used. > > I don't think this is a good idea. The reason is that it complicates > both client and server code. An implementation cannot write code like > this: > > name = interface['name'] > mtu = interface['mtu'] > > instead we have to look for both 'name' and 'ietf-interfaces:name': > > if 'name' in interface: > name = interface['name'] > else > name = interface['ietf-interfaces:name'] > > > One single deterministic encoding is simpler everywhere and less > error-prone. I agree with you, this again makes standard JSON parsers (that give you a pointer to the parsed structure) considerably less useful. Lada > >> 2. anyxml encoding: although it is a misnomer, I propose to keep the >> current definition (sec. 5.5), i.e. allow any valid JSON value in >> JSON-encoded anyxml instances. I also think the text makes it >> sufficiently clear that no standard mapping between XML- and >> JSON-encoded instances is defined. > > Ok. > > > /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