Re: [netmod] Comment on draft-clacla-netmod-yang-model-update-02

Martin Bjorklund <mbj@tail-f.com> Wed, 15 November 2017 07:00 UTC

Return-Path: <mbj@tail-f.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D6F5412951F for <netmod@ietfa.amsl.com>; Tue, 14 Nov 2017 23:00:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 0q06NWNQWlyh for <netmod@ietfa.amsl.com>; Tue, 14 Nov 2017 23:00:31 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id B8A8B1270A0 for <netmod@ietf.org>; Tue, 14 Nov 2017 23:00:31 -0800 (PST)
Received: from localhost (h-40-225.A165.priv.bahnhof.se [94.254.40.225]) by mail.tail-f.com (Postfix) with ESMTPSA id 945691AE0311; Wed, 15 Nov 2017 08:00:29 +0100 (CET)
Date: Wed, 15 Nov 2017 08:00:29 +0100
Message-Id: <20171115.080029.1828084423046734849.mbj@tail-f.com>
To: balazs.lengyel@ericsson.com
Cc: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <66e88c5b-41fc-7607-e1a9-ebe76eded836@ericsson.com>
References: <19a4129f-84b4-2d6b-8405-37b85952f53a@ericsson.com> <20171114212210.7b2g3t3nqzrhcgrs@elstar.local> <66e88c5b-41fc-7607-e1a9-ebe76eded836@ericsson.com>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/CUCOQODwegKAmAIwrIFCluZw2o0>
Subject: Re: [netmod] Comment on draft-clacla-netmod-yang-model-update-02
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: <https://mailarchive.ietf.org/arch/browse/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: Wed, 15 Nov 2017 07:00:34 -0000

Balazs Lengyel <balazs.lengyel@ericsson.com> wrote:
> See bellow!
> 
> 
> On 2017-11-15 05:22, Juergen Schoenwaelder wrote:
> > In XML land, this is mostly a change of the namespace (not of the
> > prefix) if one keeps the same structure, no? In JSON land, the change
> > of the module name more directly becomes visible in instance data; but
> > this is all encoding details.
> BALAZS: Even in XMLland we store the prefix as part of any leaf with
> type instance-identifier or identityref and potentially CLI scripts.

This would be a broken implementation.  Since the prefix might change
you cannot store them as is.  You have to translate the prefix to
namespace/module name, and store that.

That said, this encoding rule is really unfortunate.  We fixed it in
the JSON encoding, and I wish we had the same in XML...


/martin