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

Martin Bjorklund <mbj@tail-f.com> Wed, 15 November 2017 07:24 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 0E70F129426 for <netmod@ietfa.amsl.com>; Tue, 14 Nov 2017 23:24:27 -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 nvsCPg_UTjZq for <netmod@ietfa.amsl.com>; Tue, 14 Nov 2017 23:24:26 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id DB1171270A0 for <netmod@ietf.org>; Tue, 14 Nov 2017 23:24:25 -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 200781AE0311; Wed, 15 Nov 2017 08:24:25 +0100 (CET)
Date: Wed, 15 Nov 2017 08:24:24 +0100
Message-Id: <20171115.082424.47357575757430906.mbj@tail-f.com>
To: lhotka@nic.cz
Cc: netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <1510729980.12151.17.camel@nic.cz>
References: <66e88c5b-41fc-7607-e1a9-ebe76eded836@ericsson.com> <20171115.080029.1828084423046734849.mbj@tail-f.com> <1510729980.12151.17.camel@nic.cz>
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/ZfI703c3IeiZKWRTSZd0S6qxUtQ>
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:24:27 -0000

Ladislav Lhotka <lhotka@nic.cz> wrote:
> On Wed, 2017-11-15 at 08:00 +0100, Martin Bjorklund wrote:
> > 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.
> 
> I agree. In XML land, there was a lot of software that relied on specific
> prefixes, and it turned out to be a big problem.
> 
> > 
> > That said, this encoding rule is really unfortunate.  We fixed it in
> > the JSON encoding, and I wish we had the same in XML...
> 
> Prefixes still give you some flexibility, for example the ability to import two
> different revisions of the same module.

Sure, but that's not reflected in the encoding on-the-wire.


/martin