Re: [netmod] yang-data-ext issues

Robert Varga <nite@hq.sk> Fri, 04 May 2018 21:32 UTC

Return-Path: <nite@hq.sk>
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 AE1C612DA11 for <netmod@ietfa.amsl.com>; Fri, 4 May 2018 14:32:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=hq.sk
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 SKIxL9b8_1Vz for <netmod@ietfa.amsl.com>; Fri, 4 May 2018 14:32:16 -0700 (PDT)
Received: from mail.hq.sk (hq.sk [81.89.59.181]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0D0C312D9FE for <netmod@ietf.org>; Fri, 4 May 2018 14:32:16 -0700 (PDT)
Received: from nitebug.localdomain (chello085216197060.chello.sk [85.216.197.60]) by mail.hq.sk (Postfix) with ESMTPSA id 772F9242EC1; Fri, 4 May 2018 23:32:14 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hq.sk; s=mail; t=1525469534; bh=Evv3ADaP7zf2HXDzmgPCl+oLbJy09mW29pIKSKcMpzQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=LJvCZO41KXCkkRhu2KKA78Bce6P7IPvc4ua4m0schC4I2iqpkNHEro3EWBvxBUSiO 7AxiBhRsjhNWn6zB8QmqLcCLech4H8OHPCL1ajrBF6an11xzozfsPxZzE912Kestet PGIJXK2Ntm6zYWHYkA+wAsiJcxBIjrJZzSX3DMxE=
To: Martin Bjorklund <mbj@tail-f.com>, lhotka@nic.cz
Cc: netmod@ietf.org
References: <87muxq1pk9.fsf@nic.cz> <CABCOCHSwB8m6Uk82MZHnjnVi=0ofRohqEPT0Q06NM=+3n5gtFA@mail.gmail.com> <065a363753a67ee12f8bde6224009207b5fe7ee7.camel@nic.cz> <20180427.120325.419501937185262392.mbj@tail-f.com>
From: Robert Varga <nite@hq.sk>
Message-ID: <6e687971-7135-e16a-de6d-2275fd809a6e@hq.sk>
Date: Fri, 04 May 2018 23:32:13 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <20180427.120325.419501937185262392.mbj@tail-f.com>
Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="RK3q4vG4SSYHhI1BNMg4miaGSz6MuEyix"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/OzrVeCjdOmRqPQAuHvcNqr75DMQ>
Subject: Re: [netmod] yang-data-ext issues
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: Fri, 04 May 2018 21:32:17 -0000

On 27/04/18 12:03, Martin Bjorklund wrote:
>>> This is true. We used to do this before yang-data was available.
>> If I remember correctly, the stuff was inside groupings that were not used
>> anywhere.
> Which doesn't quite work, since no namespace is attached to the nodes.
> 

True, but that is can boil down to a simple data transplant:

1) treat the nodes declared in a grouping to be defined underneath their
containing grouping identifier
2) recognized when grouping instantiations are data-compatible (i.e.
disregarding namespace)

Unlike an extension, this behavior becomes default-on, not something you
opt into by using an extension -- which would necessitate a revision of
existing modules take advantage of.

Regards,
Robert

P.S.: OpenDaylight Java Bindinds do this to a certain, not perfect, extent.