Re: [netmod] Module tags

Martin Bjorklund <mbj@tail-f.com> Thu, 09 February 2017 11:08 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 3E49312997A for <netmod@ietfa.amsl.com>; Thu, 9 Feb 2017 03:08:28 -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, RP_MATCHES_RCVD=-0.001, 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 VKWGa1NrZbby for <netmod@ietfa.amsl.com>; Thu, 9 Feb 2017 03:08:27 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id C9A9B1294E8 for <netmod@ietf.org>; Thu, 9 Feb 2017 03:08:26 -0800 (PST)
Received: from localhost (unknown [173.38.220.46]) by mail.tail-f.com (Postfix) with ESMTPSA id A12051AE0383; Thu, 9 Feb 2017 12:08:24 +0100 (CET)
Date: Thu, 09 Feb 2017 12:08:23 +0100
Message-Id: <20170209.120823.198284779081114388.mbj@tail-f.com>
To: chopps@chopps.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <878tpfac43.fsf@chopps.org>
References: <87r338gtzw.fsf@chopps.org> <20170209.085506.1418859449501855827.mbj@tail-f.com> <878tpfac43.fsf@chopps.org>
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/A_wi_X5ZxVVy_z6c-7vEItBdaMg>
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 11:08:28 -0000

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.

> >> I'm not sure if netconf supports this use of xpath directly, but one can
> >> imagine other systems or protocols supporting it.
> >
> > NETCONF does support XPath filtering.
> 
> Yes, I'm aware of that, but I'm not sure if it supports the above
> clarified idea which would use non-namespace "foobar-value" to fetch all
> values along with an xpath check to see if a tag leaf-list contained a
> tag value. I thought I read that netconf didn't support the latter at
> least.

If it can be expressed in XPath 1.0, then NETCONF supports it.
Checking that a leaf-list contains a particular value is supported.


/martin