Re: [netmod] Module tags

Lou Berger <lberger@labn.net> Thu, 09 February 2017 12:28 UTC

Return-Path: <lberger@labn.net>
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 302591299CA for <netmod@ietfa.amsl.com>; Thu, 9 Feb 2017 04:28:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.887
X-Spam-Level:
X-Spam-Status: No, score=-3.887 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, RCVD_IN_MSPIKE_H2=-1.887, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (768-bit key) header.d=labn.net
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 ZpUfkrSKNhET for <netmod@ietfa.amsl.com>; Thu, 9 Feb 2017 04:28:17 -0800 (PST)
Received: from gproxy6-pub.mail.unifiedlayer.com (gproxy6-pub.mail.unifiedlayer.com [67.222.39.168]) by ietfa.amsl.com (Postfix) with SMTP id DDB351299B9 for <netmod@ietf.org>; Thu, 9 Feb 2017 04:28:16 -0800 (PST)
Received: (qmail 17188 invoked by uid 0); 9 Feb 2017 12:28:16 -0000
Received: from unknown (HELO CMOut01) (10.0.90.82) by gproxy6.mail.unifiedlayer.com with SMTP; 9 Feb 2017 12:28:16 -0000
Received: from box313.bluehost.com ([69.89.31.113]) by CMOut01 with id icUD1u00W2SSUrH01cUGkt; Thu, 09 Feb 2017 05:28:16 -0700
X-Authority-Analysis: v=2.1 cv=U+QBU4bu c=1 sm=1 tr=0 a=h1BC+oY+fLhyFmnTBx92Jg==:117 a=h1BC+oY+fLhyFmnTBx92Jg==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=n2v9WMKugxEA:10 a=ek1ZzK3JAAAA:8 a=u07AKapRAAAA:8 a=854-Zn4yNZzETw-OiIEA:9 a=CjuIK1q_8ugA:10 a=xQ-UgBqouqXb-DtQvhst:22 a=SkebfZ6J2Mmvk2rLHZle:22
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=labn.net; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:Date:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Xb8ISNX9DGpvjuioPRXkfRM7AIDBm/IAO5/1ozT3G1c=; b=e0FukROaR3vpEB1PStgmGztLqb Kt2wHq/qOcleBbaUrC6zyhxByHYdPbFCl7oy3v2Tr6HHZsae9HzrgFlPJgGNwkY9xPAzj3F5+/ZFZ kfdjSerGb09gWVbkqEYVzAr4o;
Received: from pool-100-15-85-191.washdc.fios.verizon.net ([100.15.85.191]:50951 helo=[11.4.0.102]) by box313.bluehost.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.87) (envelope-from <lberger@labn.net>) id 1cbnpd-0007uu-Dh; Thu, 09 Feb 2017 05:28:13 -0700
From: Lou Berger <lberger@labn.net>
To: Christian Hopps <chopps@chopps.org>, Martin Bjorklund <mbj@tail-f.com>
Date: Thu, 09 Feb 2017 07:28:11 -0500
Message-ID: <15a22d86378.27fd.9b4188e636579690ba6c69f2c8a0f1fd@labn.net>
In-Reply-To: <874m03a74p.fsf@chopps.org>
References: <87r338gtzw.fsf@chopps.org> <20170209.085506.1418859449501855827.mbj@tail-f.com> <878tpfac43.fsf@chopps.org> <20170209.120823.198284779081114388.mbj@tail-f.com> <874m03a74p.fsf@chopps.org>
User-Agent: AquaMail/1.7.2-121 (build: 100700200)
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="us-ascii"
Content-Transfer-Encoding: 8bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - box313.bluehost.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - labn.net
X-BWhitelist: no
X-Source-IP: 100.15.85.191
X-Exim-ID: 1cbnpd-0007uu-Dh
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: pool-100-15-85-191.washdc.fios.verizon.net ([11.4.0.102]) [100.15.85.191]:50951
X-Source-Auth: lberger@labn.net
X-Email-Count: 7
X-Source-Cap: bGFibm1vYmk7bGFibm1vYmk7Ym94MzEzLmJsdWVob3N0LmNvbQ==
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/N-0NrapomBCG72RLQzjjAoFZgO8>
Cc: netmod@ietf.org
Subject: Re: [netmod] Module tags
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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: Thu, 09 Feb 2017 12:28:18 -0000


On February 9, 2017 7:20:22 AM Christian Hopps <chopps@chopps.org> wrote:

>
> Martin Bjorklund <mbj@tail-f.com> writes:
>
>> Christian Hopps <chopps@chopps.org> wrote:
>>>
>>> Martin Bjorklund <mbj@tail-f.com> writes:
>>> > Christian Hopps <chopps@chopps.org> wrote:
>>> >> The reason I went with the grouping and in-module list was that I
>>> >> thought one could then create selecting xpath expressions, e.g.,
>>> >>
>>> >>    get foobar-value[../tags="ietf:implements:foobar"]
>>> >
>>> > I'm not sure I understand what you're after, but I am pretty sure that
>>> > if it can be done with a per-module structure that you propose, then
>>> > it can also be done with a single structure.
>>> >
>>> > Is the idea that you want to read a certain leaf in a certain module,
>>> > but only if that module has been dynamically tagged with a certain
>>> > tag?
>>>
>>> Close, the idea was that I want to read all "foobar-value"s from all
>>> modules that have that tag set.
>>
>> Ok. What is the use case?  It is probably not very common that
>> multiple modules have the exact same data structure defined.
>
> My example is fairly forward looking I guess. The key thing to note is:
> "implements" in the tag name. The idea being that one has defined a
> common structure (or interface) and then associated that interface with
> a tag. Now a client can, with a single xpath expression, access a value
> in all modules that implement that interface.
>

I'm personally more excited by the use of tags as additional module 
meta-data accessible via yang library. But also see no reason to preclude 
this possible  (even if unlikely) usage.

Lou


> Thanks,
> Chris.