[netmod] Module tags [Re: Augmenting an unimplemented module]

Christian Hopps <chopps@chopps.org> Wed, 08 February 2017 18:25 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 C58901296CD for <netmod@ietfa.amsl.com>; Wed, 8 Feb 2017 10:25:13 -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 S4MX7uhDk5l5 for <netmod@ietfa.amsl.com>; Wed, 8 Feb 2017 10:25:12 -0800 (PST)
Received: from smtp.chopps.org (smtp.chopps.org [54.88.81.56]) by ietfa.amsl.com (Postfix) with ESMTP id A8D1C129591 for <netmod@ietf.org>; Wed, 8 Feb 2017 10:25:12 -0800 (PST)
Received: from tops.chopps.org (97-83-46-222.dhcp.trcy.mi.charter.com [97.83.46.222]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by smtp.chopps.org (Postfix) with ESMTPSA id A44AC623D7; Wed, 8 Feb 2017 18:25:11 +0000 (UTC)
User-agent: mu4e 0.9.19; emacs 25.1.1
From: Christian Hopps <chopps@chopps.org>
To: Martin Bjorklund <mbj@tail-f.com>
Date: Wed, 08 Feb 2017 13:25:10 -0500
Message-ID: <87vaskh75l.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/MWkLfxwHxctLWS5Up2NyLBBmVUc>
Cc: netmod@ietf.org
Subject: [netmod] Module tags [Re: Augmenting an unimplemented module]
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: Wed, 08 Feb 2017 18:25:13 -0000

Martin Bjorklund <mbj@tail-f.com> writes:

> Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
>> On Wed, Feb 08, 2017 at 09:06:19AM -0500, Christian Hopps wrote:
>> >
>> > We also went with the split route with our tags draft.
>> >
>> > https://datatracker.ietf.org/doc/draft-rtgyangdt-netmod-module-tags/
>> >
>> > Features like deviations were not liked internally by the group. 2
>> > modules seemed like the KISS approach.
>> >
>>
>> I wonder why your define add-tags, remove-tags, and reset-tags
>> operations given that we have generic primitives to edit datastores.
>
> I think (hope) they mean that these operations affect only the tags in
> yang-library, not the config container 'modules-tags' in the module
> itself.

There's a single logical tag list for a module that is possibly exposed
in 2 locations depending on what the server supports.

> But I think it would be better to only have these tags in the
> yang-library, and not in the module itself.  (In that case the rpcs
> are required).

The module tags are useful if the yang library is not there, it is also
useful to have the module tags for writing concise xpath selection
criteria.

> Also, it might be useful if the module designer could tag modules
> at design time, using an extension:
>
>   mt:module-tag "ietf:element-model";
>   mt:module-tag "vendor:native";

We have text in the document that talks specifically about module
authors initially seeding the tag list.

Thanks,
Chris.

>
>
> /martin