Re: [netmod] Module tags

Christian Hopps <chopps@chopps.org> Sun, 12 February 2017 09:42 UTC

Return-Path: <chopps@chopps.org>
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 EA4061293E8 for <netmod@ietfa.amsl.com>; Sun, 12 Feb 2017 01:42:24 -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] 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 NFGaFoAcmnVl for <netmod@ietfa.amsl.com>; Sun, 12 Feb 2017 01:42:23 -0800 (PST)
Received: from smtp.chopps.org (smtp.chopps.org [54.88.81.56]) by ietfa.amsl.com (Postfix) with ESMTP id ACC13127A90 for <netmod@ietf.org>; Sun, 12 Feb 2017 01:42:23 -0800 (PST)
Received: from utops.chopps.org (97-83-46-222.dhcp.trcy.mi.charter.com [97.83.46.222]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by smtp.chopps.org (Postfix) with ESMTPSA id EDC61623B2; Sun, 12 Feb 2017 09:42:22 +0000 (UTC)
References: <87shnogymx.fsf@chopps.org> <20170208.231709.2214078600549867460.mbj@tail-f.com> <CABCOCHQJ+ef4C=TAfH9NK47mWgO0XOy1gg-cggigWq7Fqdfkgw@mail.gmail.com> <87d1eouby0.fsf@chopps.org> <20170211135417.GC6490@elstar.local>
User-agent: mu4e 0.9.18; emacs 25.1.1
From: Christian Hopps <chopps@chopps.org>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
In-reply-to: <20170211135417.GC6490@elstar.local>
Date: Sun, 12 Feb 2017 04:42:22 -0500
Message-ID: <8737fju4n5.fsf@chopps.org>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha512"; protocol="application/pgp-signature"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/lq4QwJLIpWmjPoe6E83sp1atpKA>
Cc: "netmod@ietf.org" <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: Sun, 12 Feb 2017 09:42:25 -0000

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> writes:

> On Sat, Feb 11, 2017 at 07:52:23AM -0500, Christian Hopps wrote:
>>
>> Again the in module list allows for single xpath selection of a given
>> node for all modules that have a certain tag set. I found this rather
>> elegant, so that's why I've argued to keep it. I want to make sure that
>> people have considered this before we abandon it.
>
> Can you point me to a set of modules and a concrete query where this
> makes sense? I am like Martin not yet convinced that there is a use
> case for this.

I gave the example of something that implements a common interface. So
for example most IGP routing protocols have hello timers. One could
imagine an "ietf:implements:hello-timer" (or whatever) tag. This type of
thing is used to avoid the use of multiple-inheritance in OOP. It could
serve a similar purpose with yang (although in this case it avoids having
to factor all commonality out into tiny modules).

I don't know if this would develop organically or not, but I do know
having a central list eliminates the option. Why choose the option with
less capabilities?

>> Is there a way to get the reset to default behavior? We do allow the
>> user to remove default set tags, so I think that's why Lou added that
>> RPC.
>
> Note sure whether this (removing of non-configured tags) is a good
> idea. Again, concrete use cases might help to make the point.

I do want to support tag removal. The most obvious case for tags is for
operator use, and the resulting tag set for any module should be under
the control of the operator. A use case would be that some server has a bug
in their implementation and the admin wants to remove it from possible
use. I'd ask the reverse question, why take this control away from the
operator?

Thanks,
Chris.

>
> /js