Re: [netmod] submodules the hidden benefits

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> Fri, 07 August 2020 21:40 UTC

Return-Path: <jason.sterne@nokia.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 9CB4F3A0B7D for <netmod@ietfa.amsl.com>; Fri, 7 Aug 2020 14:40:07 -0700 (PDT)
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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nokia.onmicrosoft.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 r16tiiNfCNoG for <netmod@ietfa.amsl.com>; Fri, 7 Aug 2020 14:40:06 -0700 (PDT)
Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2139.outbound.protection.outlook.com [40.107.236.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BDDAF3A0B60 for <netmod@ietf.org>; Fri, 7 Aug 2020 14:40:05 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TExU+rRcs0ov2ElVBTgiXvSSfhEesS/qQS2NkMr5o0jeTIjUys7OHNGN3KCW3mp58/XIkeqRyUCto24+2hAz9iV/MVS3BjUtQlFqA35XcpV3w+/03W9D4hMyN9kgVGJk4w/5a5R5A8cFWlJ1P0GsKY9mgOGJwQTBAoUS7ybJ2HNATTRYC58Yso3XjvMEmQ7QFvD0/0rnXZfqjRckshOHoZU2z707ECSQZL4OiflFqcFNMA5yOtOOa1S8ZrJUyT/EXTdH0A2Asxhlz0bQ+o/0/GYYf9Id243KIZV+aF3N+zcikFaYoa3dvm6o7tT9/6st1v3XhsqMxtTDrt0iJhA2rg==
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=/xCgND599hZwzHUNmSMGmLJ1Q8w2VvZk05qJByaNJO4=; b=j1PPDzf/2nkNjndes+Il2XOh4nsDBJIdvxw98iXpFMD45GQOXCYgrNA4IePWMI1ZT4hhdRmFSi+n1Fd4Z30yM4AHCrRcMIhWw5s+L2CHVpubkhi82ZVoEK1O1mWPOd9EleEt11sd766NVZqtsRcMwid/h+y13x9dBlcwCkDWdrhmosTfpLi9KQauTSHqnf4stgZFNGLleK3OJm6xm5rYvfol9uJ5f7ThBwWF1xohXgrk7uTT/3M6vSa3+z4hvFlQlU3tD4TOqgdEiYhUD7tCcm81iQjJuqDj8Qytx89SCGiHrtYjFBKp2H361VcUf+trurNE1LpQf2pbHS1F5q4cjQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/xCgND599hZwzHUNmSMGmLJ1Q8w2VvZk05qJByaNJO4=; b=rIy+crAR6Px5IENJ6dZRWcXxu0JRwjmGVF7QesqOjsBr/CfuHMr+j/e2mMncTuPj69kxosQc0RE6xIJsAbuNOg3qgLaA1KRe9hQxfcMAn53hkRLBvsgVyKv+L0rZ6ljb6rlZ2zEelDkk+xk3iIbDn9VnwNzHBd//Eh3fDZCxW/k=
Received: from MWHPR08MB2637.namprd08.prod.outlook.com (2603:10b6:300:b6::20) by MWHPR08MB2431.namprd08.prod.outlook.com (2603:10b6:300:a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3261.20; Fri, 7 Aug 2020 21:40:00 +0000
Received: from MWHPR08MB2637.namprd08.prod.outlook.com ([fe80::6599:8ff6:9422:c56e]) by MWHPR08MB2637.namprd08.prod.outlook.com ([fe80::6599:8ff6:9422:c56e%5]) with mapi id 15.20.3261.020; Fri, 7 Aug 2020 21:40:00 +0000
From: "Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com>
To: Mahesh Jethanandani <mjethanandani@gmail.com>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] submodules the hidden benefits
Thread-Index: AQHWa3ndRKZrP6rOE06GdenbTbnogaktLuAw
Date: Fri, 7 Aug 2020 21:40:00 +0000
Message-ID: <MWHPR08MB26371DDCCC2EDFB48B20E6389B490@MWHPR08MB2637.namprd08.prod.outlook.com>
References: <AM7PR07MB6248D2079B3637B626198C43A04B0@AM7PR07MB6248.eurprd07.prod.outlook.com> <20200805164820.rv35b74xhc4v7qrx@anna.jacobs.jacobs-university.de> <6125f3e3-0caf-ed25-92b7-bdb644c54d08@lightside-instruments.com> <9F39EC3C-CCEB-4079-BF83-D9C163773757@cisco.com> <FC05AC44-6BFF-49FC-85E0-BB9692C210AC@gmail.com>
In-Reply-To: <FC05AC44-6BFF-49FC-85E0-BB9692C210AC@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=nokia.com;
x-originating-ip: [24.226.236.156]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: dc6a5df9-b3b8-4af0-b4c1-08d83b1a6fb9
x-ms-traffictypediagnostic: MWHPR08MB2431:
x-microsoft-antispam-prvs: <MWHPR08MB2431EAF989B6B592FD0448289B490@MWHPR08MB2431.namprd08.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: QW69u/sSk3OYoCbbTpK4DKsFKEX9FwqfvlnQCUIoQ9q7Ak+U2PgyxOMrP8lJAtJoXhZDGYmhPHgg62RMdh23C+4yXi7Jb7lLpD3mz7d/R4plWIU+PWZw4sybWa044zzA1TeuOADCN4IpytYISWQpHf/6frD+/tVdU5u7JdFa/HTTvxhT4mdLkJjMAWPK+MQMBN7raqh9cT5FEbFs28WYqRYic8soLYZQDGbMIUeVu/ReOphmJBtU7KQ16u9T/s5gYFaWgc81Z+LhBT/mTXpOCpR0G+n92b+7s4WoxaUs+Qy+XKShKj7J0bDuBO78xBFClg9vzC9mleRZm/N4+2cQkBtX3fqEu5nK/D3NEo/1PPQszVS8Qi+2xqZyS4SFs+0BRG43pnXsZDaA63KTB9goSA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR08MB2637.namprd08.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(136003)(396003)(346002)(376002)(39860400002)(966005)(26005)(33656002)(66946007)(9686003)(186003)(76116006)(2906002)(86362001)(71200400001)(478600001)(55016002)(66446008)(66556008)(64756008)(66476007)(5660300002)(166002)(8676002)(110136005)(66574015)(316002)(7696005)(53546011)(6506007)(8936002)(52536014); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: SVO2SkHKP8Osr+GvcYIEodToMAvIe0OIqNCRz9ulBoffBKNyV/LXYSyf9W7qjDNAKaQmzDryEp+DDpZlX5+5V6jQtlJUKeq9p6ap+upjRcg4vXxlCmWcRxtdiFRfdjf6h+79wuG7BgucpAq3HNU1opfi415Dhy8In2CN/KYMQjwm1pceYQjSDWHW9LTX3IWrpqeaus3Or8vQjU3lkm0pozs4P+bWB1GVmYxLlme0rFj0k7iRi5bbSgQQxIx+8tNZuYIssVu2ikyuLLhWmQjODLPv26axT8+i/tF/+ibWPnZujXsLUST3AJOO6FTTXMUKt/avZs7lc8KCJiNbrjx0c9wtVaohx7hXsEDuQapshHCLMoSOiJ75zc+zzfdqQ+rRCy4nGpvXESBxRf+vmPIMN/Ub5pKnJ+iGRcFdDqeOO+j9Ww33zFgpazPPkSZ6L4MYaU7IbOsOfNXKL7DKghwlkYTmJoSpsE861A2V0RHkrG6G1zi4ZFEs7Gz9KKu2U6+YBT8g0Tr8+8gYvSFR6J2+9xmoqR+mR005SKCZW+4y3+yY3gegrFceXk/VyIh/CT3CDLlL0JeuLzzyigUlLMwi5c221u8L7Xqfse4ilF1kuHmVtPoqwKiep9xgp9RSv5dQvoDnojzNsvKwUexr3euFeQ==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_MWHPR08MB26371DDCCC2EDFB48B20E6389B490MWHPR08MB2637namp_"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MWHPR08MB2637.namprd08.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: dc6a5df9-b3b8-4af0-b4c1-08d83b1a6fb9
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2020 21:40:00.0765 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: OCJZ+KjMEKkCgprSUrB+KsUZRN4hnsbxpNwYdrl3ooH+9yn10ehgDjXirfJxUR48E5FVmqX+SP95i50WndypAw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR08MB2431
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/B_kUvPmIQpXf4oYcxtR66-g5oO0>
Subject: Re: [netmod] submodules the hidden benefits
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, 07 Aug 2020 21:40:08 -0000

I agree submodules can cause confusion, but I also agree with Mahesh that they can be useful to partition things for people using the modules. Especially for huge models (e.g. router vendor models). You can jump right to a subsection of the data (a bit like a document with chapters rather than one huge chapter).

It can also be useful for consumers of the models for versioning (when you want to avoid multiple namespaces). If a model is made up of 30 sub-modules, it might be useful to know that the "bgp" part changed while the other parts of the model didn't.

Jason

From: netmod <netmod-bounces@ietf.org> On Behalf Of Mahesh Jethanandani
Sent: Wednesday, August 5, 2020 6:43 PM
To: netmod@ietf.org
Subject: Re: [netmod] submodules the hidden benefits

A contrarian view:

I find the use of sub-modules helpful when I want to use separate files to maintain part of the module that is logically separate, while maintaining/restricting the use of them to a single namespace.
The fact that tools have a problem with trying to compile a sub-module can be addressed in the tools themselves.


On Aug 5, 2020, at 2:44 PM, Reshad Rahman (rrahman) <rrahman=40cisco.com@dmarc.ietf.org<mailto:rrahman=40cisco.com@dmarc.ietf.org>> wrote:

Indeed
https://github.com/netmod-wg/yang-next/issues/26

´╗┐On 2020-08-05, 5:22 PM, "netmod on behalf of Vladimir Vassilev" <netmod-bounces@ietf.org on behalf of vladimir@lightside-instruments.com<mailto:netmod-bounces@ietf.org%20on%20behalf%20of%20vladimir@lightside-instruments.com>> wrote:

   On 05/08/2020 18.48, Juergen Schoenwaelder wrote:


I personally meanwhile believe that sub-modules add complexity with
little extra value but this view surely is not shared by others.

   +1. IMO removing sub-modules from YANG 2.0 should be on the list of
   proposed changes.

   /Vladimir

   _______________________________________________
   netmod mailing list
   netmod@ietf.org<mailto:netmod@ietf.org>
   https://www.ietf.org/mailman/listinfo/netmod

_______________________________________________
netmod mailing list
netmod@ietf.org<mailto:netmod@ietf.org>
https://www.ietf.org/mailman/listinfo/netmod