Re: [OPSAWG] Minutes of L3NM/L2NM module discussions (27th-May-2020)

tom petch <ietfc@btconnect.com> Thu, 04 June 2020 10:57 UTC

Return-Path: <ietfc@btconnect.com>
X-Original-To: opsawg@ietfa.amsl.com
Delivered-To: opsawg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6C9F83A07EA for <opsawg@ietfa.amsl.com>; Thu, 4 Jun 2020 03:57:00 -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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=btconnect.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 mH0d5iug0NZF for <opsawg@ietfa.amsl.com>; Thu, 4 Jun 2020 03:56:58 -0700 (PDT)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2132.outbound.protection.outlook.com [40.107.20.132]) (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 131AB3A07DD for <OPSAWG@ietf.org>; Thu, 4 Jun 2020 03:56:57 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T3x4a5KNkOC02/1jB8GyMbvW4ZO/noJVmCibbNM8atyS+FwSAQvU7W7wWVARfy8m9V/Zu0fufTQ9cNvoY9pwuYA1M6Lgm3uwW0Qc7FFECtAcEKOEuH+aiQcMaEz0pPCGhFGeZjqCy/QlUucMUv7ZSqW+gut7nJT+OrfIEll/HggbQgq2h1uKf+JkKqsHL207+kBJrQU1bMK2Ux5pg168mwHMfSG431vp+sy0cEtIBCG1Wbw94oOVEpho38vC4nY58X4L9todKt9A643xuXcmuqZq2fuyEwOTmpDGKCiAIXcOEkLJRCZgeGUwB7I3ya7aH5he9hN/gsLznpvVt80uyw==
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=jDSVfEnm6MiRLE9JGgf5xbP+uMWY7WHifP8WRYsSDm4=; b=OYvK2cz9fUJRh48XgU5ejER0yf1ixgMMIe8lV0ohFHbr0sAeXGwuz7MadVCEfdi7AgSMgasnrXwnp1rX2GRnKlZeJxeyKSXYWy5WleXS41Q2Krc1d3JSBKioQ42GngIH7MZ4fSsjtbNrPYjvyT2iUckKbhYAZIbXzCnDGDNCjV26vS8w92E109iCQg/HYLarDcU6YQm4Dr6icchS7YHAzOxeyMBvhi/R9vJnTQ6CpHBblVpfUTaNs3if1Zr+YClnn85/b3J3JMKddcVzTkgRsPwGssP/3GV/9t1tyNQJZT4f4GLR/ydxWJCUApIobaJLoYlQPRX42UMUqb3xjOfCAA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jDSVfEnm6MiRLE9JGgf5xbP+uMWY7WHifP8WRYsSDm4=; b=sR3gWUAGUp28Pe0hQuxeQDlaEKgXWNjz/gtShUzn/Wm5BWt5rt3jseUPxz6hToJ3oYWKLoSjhibbjc65P0+O3Sx/eSaGQZs15Ib8mfBwbqFuP1kTggRMzCu6r/N1BdL3cvaRTvCXqVzLyv58vYee3s+D7K+ejnznTBmE4bCkFQU=
Received: from DBAPR07MB7016.eurprd07.prod.outlook.com (2603:10a6:10:198::14) by DB6PR07MB4261.eurprd07.prod.outlook.com (2603:10a6:6:4f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.7; Thu, 4 Jun 2020 10:56:54 +0000
Received: from DBAPR07MB7016.eurprd07.prod.outlook.com ([fe80::592c:285:6786:bc65]) by DBAPR07MB7016.eurprd07.prod.outlook.com ([fe80::592c:285:6786:bc65%7]) with mapi id 15.20.3066.016; Thu, 4 Jun 2020 10:56:54 +0000
From: tom petch <ietfc@btconnect.com>
To: Zhenghaomian <zhenghaomian@huawei.com>, Qin Wu <bill.wu@huawei.com>, "Joe Clarke (jclarke)" <jclarke=40cisco.com@dmarc.ietf.org>, SAMIER BARGUIL GIRALDO <samier.barguilgiraldo.ext@telefonica.com>
CC: "OPSAWG@ietf.org" <OPSAWG@ietf.org>
Thread-Topic: [OPSAWG] Minutes of L3NM/L2NM module discussions (27th-May-2020)
Thread-Index: AdY6N6JpjUNZLGn8TEKjd2e5w5f7ewAJMP1z
Date: Thu, 04 Jun 2020 10:56:54 +0000
Message-ID: <DBAPR07MB7016B4BECD4638BCBE969A39A0890@DBAPR07MB7016.eurprd07.prod.outlook.com>
References: <E0C26CAA2504C84093A49B2CAC3261A43F87D578@dggeml511-mbx.china.huawei.com>
In-Reply-To: <E0C26CAA2504C84093A49B2CAC3261A43F87D578@dggeml511-mbx.china.huawei.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=btconnect.com;
x-originating-ip: [86.139.211.104]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: e8fb7eb5-8e3c-4e59-b4d5-08d80875fea2
x-ms-traffictypediagnostic: DB6PR07MB4261:
x-microsoft-antispam-prvs: <DB6PR07MB426118795FD44E97491B6931A0890@DB6PR07MB4261.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 04244E0DC5
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 9XXxE3BVHnlux3FPHNq9g3CZBLksMKQUCY0/fFqSyMqGSE0kHWjVDF8+9jGw20BanRhIIq6YQnnQM+HeYJrav4WTR8+PIYjz7h9Bc5TsYVwJJpkKcX1PubeTKJCgugCzeOV4Ma+nhRdYxwmTOnke7JZ9FHl4DfDD3Bb4Dlefy11xTeO95EA39JwJEZ8MejxLK3f4owq+5Q4fpGd4CIHIa/de8sGNobWq+MdljcUBjVCzvKYfG4ZJE4aFK/KjPfELOoaJInsha8TSSTdgr6qbtL3bOFUBtzC11QdIbFKcL5iSKudqV9eJR20woplBus3XmDHmZZin+mvcaBNxkrLi/4w2V5ELjo5jiU5YSNPwxJcPhD4odZ1ixe1kss3WZU9peQHEsRGA6fvgHUajb3eWfOpGQvjsoGC1OKf37v/dlWRS/JTpO5S5PP+aLpZlnTGL
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBAPR07MB7016.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(396003)(39860400002)(376002)(366004)(346002)(136003)(2906002)(66446008)(64756008)(66946007)(86362001)(8676002)(66556008)(8936002)(76116006)(91956017)(66476007)(316002)(55016002)(33656002)(9686003)(26005)(5660300002)(71200400001)(52536014)(186003)(6506007)(110136005)(7696005)(478600001)(966005)(4326008)(83380400001)(32563001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: TSYwncn9ST07vhItX7rOMYlLNqTmGTtr/aXN4lEaz1D45YFT6QGguAMGxSuDEYvApm/cBuk/kiHCHghI7pZW7oOOkgjCmGA3CbMZK8EfGqan1/2zeQZrzlfUZdXKpH3NIJYYVUWZfS0cVD3j0gXl18XnrnGec3gML8iThdee5X7gIxypZnsJrcjIHgtgv7RUn79pefWKaJkQlIGwySVhSZDjJdgSRe3joulTsV5PCgSCcuyrg1i+/o8T8j0HggwRkjArywdJmGwh9B+zSDpNSLBjwmud5hdnJBHx0QMTa7TLpuIPOh6K3Q2FLRTW2EQncV5KFQal6nUUw/Vlpv3wHp21KPWCwSWOYTXXaz/HdFLesfSFeSaMold7NgWAIDxugH6DLpDMjRJeZ3ItAokPJ+wgvf1reTQq4PoMmb7YIZPQaX7OkJe0ydynd9QldfAiBISKVKTSOuYt5GDlZX5famrA1HOW4DPgZK5LKkSdynvnbQGXIA8uk3mkGOTUyXdQ
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-Network-Message-Id: e8fb7eb5-8e3c-4e59-b4d5-08d80875fea2
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2020 10:56:54.8271 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: iWvkwoAm88J/bAx/TqXkMfZ/DHeYv9rUHt5VAb1fSc/5jGX0/RJCmHFrqYoKBg2vTt/OPgAxLRqR+UlVcPa4qQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR07MB4261
Archived-At: <https://mailarchive.ietf.org/arch/msg/opsawg/Dn74udg9EhsAULFhbBbCaaBNRiA>
Subject: Re: [OPSAWG] Minutes of L3NM/L2NM module discussions (27th-May-2020)
X-BeenThere: opsawg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: OPSA Working Group Mail List <opsawg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/opsawg>, <mailto:opsawg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/opsawg/>
List-Post: <mailto:opsawg@ietf.org>
List-Help: <mailto:opsawg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/opsawg>, <mailto:opsawg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Jun 2020 10:57:00 -0000

From: OPSAWG <opsawg-bounces@ietf.org> on behalf of Zhenghaomian <zhenghaomian@huawei.com>
Sent: 04 June 2020 07:16

Hi, Joe, Qin,

The groupings in the types is understood to be used in multiple other modules. Considering about the potential ‘uses’ in other models, it may not be a matter for putting in a same type YANG or separate one.

A more challenging issue is to have a ‘right-fit’ types. If a types contain 100 typedef and identities, sometimes we will be in the dilemma whether we should import it as we may only use no more than 10 in it. In such case re-definition seems to be a waste but importation would be too much weight. It can be even worse if we start a new one, then redefine some of them and add more for extension.

Thoughts?

<tp>
It is a judgement call that is often wrong ie too much is included, too many of something or too many different somethings.  If in doubt, leave it out.  I have no problem with grouping being there but do want the grouping to be a meaningful building block.  As with writing software, I see a tendency to see two lines that appear twice and to say 'Quick, let's make it a subroutine (or macro or procedure ...)'  It needs to be something meaningful, like a 'start', 'end', 'step' or  choice of case for different layer four protocols or some such set.  But with YANG I would say that the grouping must be usable per se; if it requires an augmentation wherever it is used, then it should not be a common grouping - augmentation is a big barrier to comprehension in YANG (and much overused IMHO:-)

As to separate modules or one type/identity/enumeration/grouping module, again it is like software.  What is the likely evolution over, say, five years?  If they proceed in lockstep, then one module;  If parts are something that has been stable for years while other parts are in rapidly evolving technology that will be updated in six months, then split so that they can evolve independently; and one module may then be combined grouping and type.

And there is an option for IANA maintained modules, where updates do not require a new RFC, particularly suitable for registries with Expert Review; the reviewer deems an update is warranted and IANA updates the module.  Works well with enumeration.

Overall, code . DDL and the like are written once and used a hundred or a thousand times so consider the user coming to this a year or two hence - what is easier to understand, what harder to misunderstand/?  Stick to simplicity and consistency.

HTH
Tom Petch 






Best wishes,
Haomian

发件人: OPSAWG [mailto:opsawg-bounces@ietf.org] 代表 Qin Wu
发送时间: 2020年6月4日 12:09
收件人: Joe Clarke (jclarke) <jclarke=40cisco.com@dmarc.ietf.org>; SAMIER BARGUIL GIRALDO <samier.barguilgiraldo.ext@telefonica.com>
抄送: OPSAWG@ietf.org
主题: Re: [OPSAWG] Minutes of L3NM/L2NM module discussions (27th-May-2020)

发件人: OPSAWG [mailto:opsawg-bounces@ietf.org] 代表 Joe Clarke (jclarke)
发送时间: 2020年6月4日 0:16
收件人: SAMIER BARGUIL GIRALDO <samier.barguilgiraldo.ext@telefonica.com<mailto:samier.barguilgiraldo.ext@telefonica.com>>
抄送: OPSAWG@ietf.org<mailto:OPSAWG@ietf.org>
主题: Re: [OPSAWG] Minutes of L3NM/L2NM module discussions (27th-May-2020)


The module is available in the following PULL REQUEST: https://github.com/IETF-OPSAWG-WG/l3nm/pull/118

I know other *types module have included groupings, but to add groupings in a types module seems wrong to me.  I would just expect typedefs and identities.

[Qin]: We lack a good usage guidance on which kind of groupings should be included in types module,
section 4.3 of RFC8407 said:
“
4.13<https://tools.ietf.org/html/rfc8407#section-4.13>.  Reusable Groupings

   A reusable grouping is a YANG grouping that can be imported by
   another module and is intended for use by other modules.
”
But it didn’t tell us whether the reusable grouping should be in the separate module or in the same type modules as identity and typedef.
Following some published type module examples,e.g.,RFC8294 and draft-ietf-teas-yang-te-types-13 in the RFC queue, it did add some of reusable grouping in the type modules, my impression is grouping that contain newly defined typedef and identities can be added into type modules, grouping in grouping, we need to be very carefully,
There are some guidance on reusable grouping in section 4.3 of RFC8407