Re: [netmod] yang-json document
Martin Bjorklund <mbj@tail-f.com> Thu, 05 February 2015 12:52 UTC
Return-Path: <mbj@tail-f.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 A48AB1A8768 for <netmod@ietfa.amsl.com>; Thu, 5 Feb 2015 04:52:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 gaKWj3-kSoaN for <netmod@ietfa.amsl.com>; Thu, 5 Feb 2015 04:52:12 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [83.241.162.140]) by ietfa.amsl.com (Postfix) with ESMTP id 061B31A0091 for <netmod@ietf.org>; Thu, 5 Feb 2015 04:52:12 -0800 (PST)
Received: from localhost (x15.tail-f.com [192.168.1.60]) by mail.tail-f.com (Postfix) with ESMTPSA id C61D71280B3D; Thu, 5 Feb 2015 13:52:10 +0100 (CET)
Date: Thu, 05 Feb 2015 13:52:10 +0100
Message-Id: <20150205.135210.818152609244122122.mbj@tail-f.com>
To: lhotka@nic.cz
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <m2bnlh7emw.fsf@birdie.labs.nic.cz>
References: <m2bnlh7emw.fsf@birdie.labs.nic.cz>
X-Mailer: Mew version 6.5 on Emacs 23.4 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/mCtvup_YnL3gvr95EIe4sSFcKfs>
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 12:52:13 -0000
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.
> 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
- 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