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

"Rob Wilton (rwilton)" <rwilton@cisco.com> Fri, 04 October 2019 10:28 UTC

Return-Path: <rwilton@cisco.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 CDEF8120906 for <netmod@ietfa.amsl.com>; Fri, 4 Oct 2019 03:28:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 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_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=jN3Cdo+w; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=Z/g1vznk
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 MNujTIWzbKcl for <netmod@ietfa.amsl.com>; Fri, 4 Oct 2019 03:28:48 -0700 (PDT)
Received: from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 81CDD1208FB for <netmod@ietf.org>; Fri, 4 Oct 2019 03:28:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=7127; q=dns/txt; s=iport; t=1570184928; x=1571394528; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=mfqu8HJveG5uVhDTVboGJ2y1xjqTmv5hGbQqI36i4qI=; b=jN3Cdo+wgfQL9SxH7RuY20VdIcR4Gu4KEzOWI1iNh7D6sTXkiXmrUjqK DMmrwL+7byjRNQi0Pwk8eczC6X/Ger5AUf6iNIbHFlo74r0812Y+2a02+ TNJF+m6BlYst+jWTGrUvhMQ+qvIh6ajm0ItovoBEturSy8y+uhrRb9i92 I=;
IronPort-PHdr: 9a23:R4aB6R8TYsoJdP9uRHGN82YQeigqvan1NQcJ650hzqhDabmn44+8ZB7E/fs4iljPUM2b8P9Ch+fM+4HYEW0bqdfk0jgZdYBUERoMiMEYhQslVdSaCEnnK/jCZC0hF8MEX1hgrDm2
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AOAAB0Hpdd/5tdJa1cCRkBAQEBAQEBAQEBAQEMAQEBAQEBgVUCAQEBAQELAYFKUANtViAECyoKh18DikmCXIlojhGBLoEkA1QJAQEBDAEBGAsKAgEBg3tFAoJHIzYHDgIDAQMCAwEBBAEBAQIBBQRthS0MhUsBAQEBAgEBARAoBgEBLAsBCwQCAQgOAwQBAQEeECEGCx0IAQEEDgUIEweDAYFqAw4PAQIMox8CgTiIYYIngn0BAQWBOAIOQYMCDQuCFwmBNAGMDRiBQD+BEUaBTn4+ghpHAQECAQEWgR0UGIM9giase0EKgiOHCIoJhCKCOnKGXI84lkuCDY8EAgQCBAUCDgEBBYFZCiiBWHAVGiGCbAlHEBSBT4NzhRSFP3SBKY8iAYEiAQE
X-IronPort-AV: E=Sophos;i="5.67,256,1566864000"; d="scan'208";a="350419753"
Received: from rcdn-core-4.cisco.com ([173.37.93.155]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 04 Oct 2019 10:28:47 +0000
Received: from XCH-ALN-007.cisco.com (xch-aln-007.cisco.com [173.36.7.17]) by rcdn-core-4.cisco.com (8.15.2/8.15.2) with ESMTPS id x94ASlV1019876 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 4 Oct 2019 10:28:47 GMT
Received: from xhs-aln-002.cisco.com (173.37.135.119) by XCH-ALN-007.cisco.com (173.36.7.17) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 4 Oct 2019 05:28:46 -0500
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by xhs-aln-002.cisco.com (173.37.135.119) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 4 Oct 2019 05:28:46 -0500
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 4 Oct 2019 06:28:45 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZxlzpVpV/7btxwxALLQ243llgOjWc9k5S2JILNjnsomrntwlAJb/dXwuCcwOHco67wvMZef7ow6HPGWgvzhd4Gd6NbCAA+ezv3ZjBM0sCfSblnAfGXs0lNNVQeuJKFRv6AdpwycJv+30C1YZKMZ6pnXxKaWurZb2shtqBDXB77vZaracmlDPJupVf6KNZ6d0xIJFLq42H+THsv7zSzuew0NVMZHRqOjT/uW5SWdhs7YEY91zH1CHh3IKuwEzr/7Pyvf7UpFmX9F/4p0nra6aufdB4bNcnuz/XWbbsUyosv8N/vXPHLL9KfJdVe5Gp3CTbgfzLyU/DSZTIctQRktQmQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JJS3cTWfyrdLooXSUASFJF8N+R7K4wUE4ISR6sW65PY=; b=btHd2w/o1IT2HnktAaP8cyGbpmnqOZ5aG3hO3/AHMTI+uxRUeqG3vqyDrB/9CRqap8HtXplCQfEkdP1RnfuvIG21xKfdh9kC+2w/I9IuUe7Zr0konOSl4p4ROQlgJCnI7R5A64n8Jj/j9f2EiPcMDIyYBbNyp9BdgBA4XyfbzBNW4cy57qIj2MWYEyvvgRfuOiIGaT47oP90IyCIFnPlN6eEv5WhuYO5R7TrpWncWPDWq26d6T3qpwFkMEzbNkK2s8UABZ2bM1d6od419FUnnpHpRHdVyKiYze+yKKZWTEYt5w2pZfotaUnTG5Adohd1q8+vR4kYJV3IT+SNP4r8nA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JJS3cTWfyrdLooXSUASFJF8N+R7K4wUE4ISR6sW65PY=; b=Z/g1vznkmTdBrdr/yziwGF5JWqQ5vUG7pz4Eod5dz4pP0zHS2vkZEKn4xFEw6PUQvw/l/iGjv2NK08vMEsF8u6N/+SQ77TKMYPnPBwS/Jj8zgj5JbgtKldHCxP/nwUyXWn+2XRnXHwFMQEkZ6mGhZoZyD+q0FwrBZ7eg8gm2svk=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (52.135.38.209) by MN2PR11MB3584.namprd11.prod.outlook.com (20.178.251.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2305.20; Fri, 4 Oct 2019 10:28:44 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::cca:41bd:b0bb:c549]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::cca:41bd:b0bb:c549%2]) with mapi id 15.20.2305.023; Fri, 4 Oct 2019 10:28:43 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Christian Hopps <chopps@chopps.org>
CC: Mahesh Jethanandani <mjethanandani@gmail.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] References to the "tags" typedef
Thread-Index: AdV5zjrR87+ocsTFRHuyDJWUSmakTQASvOqAAAKhPIAAGXctcAACxrgAAAGsdUA=
Date: Fri, 04 Oct 2019 10:28:43 +0000
Message-ID: <MN2PR11MB4366A66E4F35EFD97FD0C240B59E0@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <MN2PR11MB4366172C3044D238A5BE7C30B59F0@MN2PR11MB4366.namprd11.prod.outlook.com> <824BC817-DAFD-41CE-88B7-D24A32F22E19@gmail.com> <1B318BB7-9214-45DC-94AC-E164198CF97D@chopps.org> <MN2PR11MB436662777568D8D4746FCED0B59E0@MN2PR11MB4366.namprd11.prod.outlook.com> <94CE9ADC-C823-4B08-8107-016B6490BA73@chopps.org>
In-Reply-To: <94CE9ADC-C823-4B08-8107-016B6490BA73@chopps.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rwilton@cisco.com;
x-originating-ip: [173.38.220.46]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: c651ca74-f674-48b4-63b2-08d748b5a1da
x-ms-traffictypediagnostic: MN2PR11MB3584:
x-ms-exchange-purlcount: 5
x-microsoft-antispam-prvs: <MN2PR11MB35840543FC7CD20F563AE785B59E0@MN2PR11MB3584.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 018093A9B5
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(366004)(396003)(136003)(376002)(39860400002)(13464003)(51444003)(189003)(199004)(71190400001)(6246003)(71200400001)(478600001)(26005)(76116006)(186003)(52536014)(6436002)(66574012)(74316002)(102836004)(966005)(8936002)(6306002)(9686003)(55016002)(33656002)(229853002)(256004)(25786009)(14454004)(6506007)(66066001)(81166006)(81156014)(86362001)(7736002)(6916009)(99286004)(2906002)(476003)(64756008)(66446008)(11346002)(66556008)(6116002)(446003)(4326008)(5660300002)(76176011)(7696005)(305945005)(8676002)(53546011)(66476007)(66946007)(3846002)(54906003)(316002)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB3584; H:MN2PR11MB4366.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: uBgwVb04QDSKIJ8IvvkvOr7zT7xW6pSeg8RXjkY8HkMr07Xi/0SqvhpRoK/6RK+jOjhvaXOAf5SMFL9BBZZ42l2ApJvBebLlSa3nAujRsiOgNi0HXDiWzEbT23c2d+Ur9m5TFVDFmllyconnQfo0pGso/CDNYTrbD8VA7lfi68LIQNikpDobIzKCdh/RW9DaQHiadkfyKZINDRnAYUb7bWROBe4ntkaC7pLchQ8Z9t2gEV2LEnr/YQP6CPX8ivfyhQfSh8ZfVYddDOrvoVRav09PPKoQunPHtZTw/jwbXdeWtBhImPhT2K3/fokxv5FTI7gYZu9jW5ezBpojYNMyJGRl3fbySmorZK2XP0MVrHl/Q5gXF42aX4GcsnaniOQCzRkxlAgTY9dcmIBiXk+MqXyMtJYuweviJOBDQKM8za26APPynMxBxdcgmtL68+Ggkcor5DS8m6fUMGUDz4+XzA==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: c651ca74-f674-48b4-63b2-08d748b5a1da
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Oct 2019 10:28:43.5920 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: vfDKOUVxfrwz51IfBclO8DcpnNMH/51meHqGMKEhFTfRteggZJPNuG8HnI31Gg3ZKCJUZfRTu5ea6WQMaWd1jA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3584
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.17, xch-aln-007.cisco.com
X-Outbound-Node: rcdn-core-4.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/mk-b95P__raKSnBvniICiEL4EV4>
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: Fri, 04 Oct 2019 10:28:51 -0000


> -----Original Message-----
> From: Christian Hopps <chopps@chopps.org>
> Sent: 04 October 2019 10:18
> To: Rob Wilton (rwilton) <rwilton@cisco.com>
> Cc: Christian Hopps <chopps@chopps.org>; Mahesh Jethanandani
> <mjethanandani@gmail.com>; netmod@ietf.org
> Subject: Re: [netmod] References to the "tags" typedef
> 
> 
> 
> > On Oct 4, 2019, at 4:17 AM, Rob Wilton (rwilton) <rwilton@cisco.com>
> wrote:
> >

[RW] snipped.
> > There are a few solutions:
> >
> > 1) Split ietf-module-tags into a ietf-module-tags-types.yang that only
> > defines the typedef and the extension, and hence the
> > ietf-module-tags.yang only defines the module-tags container, and
> > ietf-yang-packages.yang can just import ietf-module-tags-types.yang
> > 2) Have ietf-yang-package.yang define its own "tags" type, hence there
> is no dependency on "ietf-module-tags.yang" at all.
> > 3) Tweak the schema specification for simplified-inline-schema in
> instance-data documents so that the use of ietf-module-tags.yang module
> effectively becomes "import-only" rather than "implemented".
> 
> If there's a problem here it doesn't seem to be with module tags, but more
> generically with this "pulling in" issue you have with instance data
> documents.
[RW] 
I agree that this is a generic issue.


 Are we now going to require *all* YANG types be defined in
> their own modules so their re-use in instance data documents doesn't "pull
> in" the other stuff? Are we going to go back and revise and republish all
> current YANG modules splitting them up this way?
[RW] 
I don't know.

I don't particularly like the "implemented" vs "import-only" behaviour in YANG.  This is partly because the information about whether a module needs to be implemented, or is an "import only" dependency isn't contained within YANG import statement.  Partly this is because to use identities the server must implement the module.  Partly this is because it is possible to "import-only" multiple revisions of a YANG module (which sort of seems strange, and perhaps also an unwanted complexity).

I also know that when OpenConfig were trying to reuse some of the IETF definitions they got stuck.
They wanted to use "iana-if-types.yang", but that has an import dependency on "ietf-interfaces.yang" which they didn't really want, but needed to import the "if:interface-type" base identity, which probably then requires that "ietf-interfaces.yang" is implemented.  Possibly the "interface-type" identity shouldn't have been defined in "ietf-interfaes.yang" at all.  Maybe it should have been part of "iana-if-types.yang" or perhaps a separate "ietf-interfaces-types.yang", or maybe the tight dependency is fine.
 
Hence, I'm not convinced that mixing type definitions and data node definitions in the same module is necessarily a good idea.  I'm not proposing that we go back and change what we have already done, but I'm also not convinced that the YANG modularity is really working as well as one might hope.

Thanks,
Rob


> 
> Thanks,
> Chris.
> 
> 
> 
> > 4) Don't worry about the fact that the file schema for a YANG package
> contains more than it should.
> >
> > I strongly dislike (4) as an option.
> > But I think that probably either (2) or (3) would be OK as a solution.
> >
> > Hence, it is probably not necessarily to split ietf-module-tags.yang
> into two files, because there are other solutions available.  It isn't
> even clear to me that (1) is necessarily the best solution anyway ...
> >
> > Thanks,
> > Rob
> >
> >
> >>
> >> Thanks,
> >> Chris.
> >>
> >>>
> >>>>
> >>>> (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-ta
> >>>>>> gs
> >>>>>> -09
> >>>>>>
> >>>>>> A diff from the previous version is available at:
> >>>>>> https://www.ietf.org/rfcdiff?url2=draft-ietf-netmod-module-tags-0
> >>>>>> 9
> >>>>>>
> >>>>>>
> >>>>>> 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