Re: [netmod] References to the "tags" typedef

Mahesh Jethanandani <mjethanandani@gmail.com> Thu, 03 October 2019 18:34 UTC

Return-Path: <mjethanandani@gmail.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 31E871200DB for <netmod@ietfa.amsl.com>; Thu, 3 Oct 2019 11:34:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 HPW5HlP1OwNS for <netmod@ietfa.amsl.com>; Thu, 3 Oct 2019 11:34:28 -0700 (PDT)
Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 66D0A1200D6 for <netmod@ietf.org>; Thu, 3 Oct 2019 11:34:28 -0700 (PDT)
Received: by mail-pl1-x62a.google.com with SMTP id f21so1896561plj.10 for <netmod@ietf.org>; Thu, 03 Oct 2019 11:34:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=EAkg5w3tvoE1/+iUkrLRJVKmUwKzyT5v/2diW06EB4g=; b=fnd0LeJqbY7Nx2hdn1tlwVRvzma0FLmLVwYIJIkNGvHE0y6TnT3ugcgBzbQuMX0lJ9 x1DHW5F1pPuYfK8QHXPzuo+TADY31gHQLvVFsvnnSKQtpyWUXQY492CG3pycGTwqnHyf SYfzhmoNBfkeeV9yP7G6cGSN433xSWIuZG7tDeIWCz0plRxkpeiqYlI551/JjulIhFqB Dh18KuF++YiVuC0Ocf/40SQ6Hfi2ePZZ0xiYnxckYomxrdC71djDrC6iF2SN5GOmLgrC Ck0B2LOc8Yb6UeEu+EqueHeLuHBOfthCl/CoCbbzEPJgxeH0vJwEhIKgH0nIefMYDAjD qBqA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=EAkg5w3tvoE1/+iUkrLRJVKmUwKzyT5v/2diW06EB4g=; b=P2J1QfV/S2sOGaSfRk+LeqCbwi2Ad0UdKVBY1OuHCKTwLbsYYXYXKRY9+5z2xoGLag 3qK8Jrt7Vodp4hadFMV4lNrJnErX4sDvUjnOZwKsmJUQ++GM76Z+hZ4FwEcAH9ztHwbn nlTwTjar5QlwTWgl83ZnjQrpa+tXzlhnd0tAmVAoYsi8/dMshvhDraZk3SWGfLNAduhp k+aVUxBcXcQXxEneOGS7Bbx4q9UjepF5ybdOExKFZv3XYff5Rp2NvLNvl3YntXuW83Sx gL29HYa78DGFyCe3ymyzbjKP1nR/H53Zr7gbq/2+eHRzruN0K7sdCquYkkVwI1v4yzvb K/Fw==
X-Gm-Message-State: APjAAAWtyDNcUcIM6gMGiO4JVp+EwlOrzYNUrGY5EzaNmy81dGDe/C8y viJJEZfuUohJ1Z7OjohkC64=
X-Google-Smtp-Source: APXvYqxPjtydQlHfat1aRHjIMr2WHzwy+HVnp35IbK62HNkdGcFPCjXnLYZk5NT7hC+eZCMqPJ42JA==
X-Received: by 2002:a17:902:6507:: with SMTP id b7mr10852740plk.37.1570127667762; Thu, 03 Oct 2019 11:34:27 -0700 (PDT)
Received: from [10.33.123.155] ([66.170.99.2]) by smtp.gmail.com with ESMTPSA id j128sm4990236pfg.51.2019.10.03.11.34.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Oct 2019 11:34:26 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Mahesh Jethanandani <mjethanandani@gmail.com>
In-Reply-To: <MN2PR11MB4366172C3044D238A5BE7C30B59F0@MN2PR11MB4366.namprd11.prod.outlook.com>
Date: Thu, 3 Oct 2019 11:34:25 -0700
Cc: Christian Hopps <chopps@chopps.org>, "netmod@ietf.org" <netmod@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <824BC817-DAFD-41CE-88B7-D24A32F22E19@gmail.com>
References: <MN2PR11MB4366172C3044D238A5BE7C30B59F0@MN2PR11MB4366.namprd11.prod.outlook.com>
To: Robert Wilton <rwilton@cisco.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/QUgw-iRYzoGe1T3E0O8QTbRBsYE>
Subject: Re: [netmod] References to the "tags" typedef
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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, 03 Oct 2019 18:34:32 -0000


> On Oct 3, 2019, at 2:37 AM, Rob Wilton (rwilton) <rwilton@cisco.com>; wrote:
> 
> Hi Chris,
> 
> I know that this is late, but ...
> 
> The YANG packages draft (https://tools.ietf.org/html/draft-rwilton-netmod-yang-packages-01, but an updated version will be posted soon), is currently using the module-tags typedef to allow a package definition to contain a list of tags.
> 
> E.g. 
> module: ietf-yang-package
>       +--ro yang-package
>          +--ro name                      yang:yang-identifier
>          +--ro version                   yang-sem-ver
>          +--ro revision-date?            yanglib:revision-identifier
>          +--ro location*                 inet:uri
>          +--ro description?              string
>          +--ro reference?                string
>          +--ro previous-version?         yang-sem-ver
>          +--ro tag*                      tags:tag
>          +--ro referentially-complete?   Boolean
>          ...
> 
> This package definition goes into an instance data document, for which the schema should just be ietf-yang-package, but by it importing ietf-module-tags.yang, it effectively also pulls in the "container module-tags" into the schema for the package definition, that I don't think should be there.
> 
> If we keep package tags, then I think that there are two ways to fix this:
> 
> (1) Split ietf-module-tags into an ietf-module-tags-types.yang and a ietf-module-tags.yang.  But it would be very late to do this, and the packages draft isn't even a workgroup document at this stage.

I know it is late. But what will it take to split the tags-types module from the tags module?

> 
> (2) Have the package draft define its own "package tag" typedef, and not have an import reference on module-tags at all.  Probably if we do keep package tags, then we should also consider a mechanism by which they can be updated on a device equivalently to module tags.
> 
> I'm currently thinking that the second choice might be a better approach at this time, but wanted to check whether you or the WG had an opinion.
> 
> Thanks,
> Rob
> 
> 
> 
>> -----Original Message-----
>> From: netmod <netmod-bounces@ietf.org>; On Behalf Of Christian Hopps
>> Sent: 25 September 2019 17:19
>> To: netmod@ietf.org
>> Subject: Re: [netmod] I-D Action: draft-ietf-netmod-module-tags-09.txt
>> 
>> This adds the deprecated non-NMDA state module.
>> 
>> Thanks,
>> Chris.
>> 
>>> On Sep 25, 2019, at 12:15 PM, internet-drafts@ietf.org wrote:
>>> 
>>> 
>>> A New Internet-Draft is available from the on-line Internet-Drafts
>> directories.
>>> This draft is a work item of the Network Modeling WG of the IETF.
>>> 
>>>       Title           : YANG Module Tags
>>>       Authors         : Christian Hopps
>>>                         Lou Berger
>>>                         Dean Bogdanovic
>>> 	Filename        : draft-ietf-netmod-module-tags-09.txt
>>> 	Pages           : 18
>>> 	Date            : 2019-09-25
>>> 
>>> Abstract:
>>>  This document provides for the association of tags with YANG modules.
>>>  The expectation is for such tags to be used to help classify and
>>>  organize modules.  A method for defining, reading and writing a
>>>  modules tags is provided.  Tags may be registered and assigned during
>>>  module definition; assigned by implementations; or dynamically
>>>  defined and set by users.  This document also provides guidance to
>>>  future model writers; as such, this document updates RFC8407.
>>> 
>>> 
>>> The IETF datatracker status page for this draft is:
>>> https://datatracker.ietf.org/doc/draft-ietf-netmod-module-tags/
>>> 
>>> There are also htmlized versions available at:
>>> https://tools.ietf.org/html/draft-ietf-netmod-module-tags-09
>>> https://datatracker.ietf.org/doc/html/draft-ietf-netmod-module-tags-09
>>> 
>>> A diff from the previous version is available at:
>>> https://www.ietf.org/rfcdiff?url2=draft-ietf-netmod-module-tags-09
>>> 
>>> 
>>> Please note that it may take a couple of minutes from the time of
>>> submission until the htmlized version and diff are available at
>> tools.ietf.org.
>>> 
>>> Internet-Drafts are also available by anonymous FTP at:
>>> ftp://ftp.ietf.org/internet-drafts/
>>> 
>>> _______________________________________________
>>> netmod mailing list
>>> netmod@ietf.org
>>> https://www.ietf.org/mailman/listinfo/netmod
>>> 
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

Mahesh Jethanandani
mjethanandani@gmail.com