Re: [netmod] type equivalence

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Fri, 26 February 2021 17:55 UTC

Return-Path: <J.Schoenwaelder@jacobs-university.de>
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 811533A13DE for <netmod@ietfa.amsl.com>; Fri, 26 Feb 2021 09:55:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=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=jacobsuniversity.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 YrIMKk3fPy8y for <netmod@ietfa.amsl.com>; Fri, 26 Feb 2021 09:55:25 -0800 (PST)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2046.outbound.protection.outlook.com [40.107.21.46]) (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 AA78C3A13E6 for <netmod@ietf.org>; Fri, 26 Feb 2021 09:55:24 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VKJWw3C/Cd9VJkXlyjyLmeVVzWxM3Qr1PktbFnm0Yp4pwKLLTYcwOxsFZz5SZJ5JZ6Cvcz1Okhx5cisr+bad93eAKSJlc8YQJl/1wFjZebNtG21iGZmKUVH/yZhAjii+b5QC42gFaiodOyfgoWGxWpNl8BCOjguwpL9lXj+0dnXZczLpZzGqBDBmiVHnuV27+THGj66BHe684F+8+dzoTXmuWH6TFfS7mUWLaEEnmgkKrUWIFML/0CqqxihDGpjHhTcT4x4+iFckYK0XpE8pGj34wQFuy6Hxah5N693ctNZ+ScxOxZU1r9E3zJqQdPLS20Ea2J2oPGNIb2m89TRmMg==
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=Db5JM0GF59Kzv9NLFB2gLSqEQpHaJkeaTwuqxdREosA=; b=nKXC3fODEJwLqnlrmSxht7nHDsCW5JGRo8F8NIKft/EPdJxM6Jj03Sxo5YvUmN09QsQX0lu/ylrDNUzWQj2o9+EllMd924+mb3CHJdw5AZQ0/+utKyM+NGK1Ji/+3xb+Fov1xjm+iEGqg6LT406JVHRfscb0StiW62Jqu2fbLeFwHfZFUhXQoQiVRGHwIyC7HvKTFOSPvteoOW2QtmDnpE37LbOLiFztA3QqSKWG2sUDU4H8J+H53MJSo/9U09FpFQOAOOcO+cC9iSEk8w7Nx9UVqPs5YizTdvR1kvgBLj1cC0MH8CnL/ZFWCDtMxktM1nUk1JptwnwJkmhFhPa1gw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jacobs-university.de; dmarc=pass action=none header.from=jacobs-university.de; dkim=pass header.d=jacobs-university.de; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jacobsuniversity.onmicrosoft.com; s=selector2-jacobsuniversity-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Db5JM0GF59Kzv9NLFB2gLSqEQpHaJkeaTwuqxdREosA=; b=VFi/HrLBuOuX1WF8Xemrcq0cxzJHVl6WZMB1Rr2fQeunp395zTvYmSxe7jQiKZ670oOP+Hrhy2yFNScIuR/uekdUqcK2M/dGF9X4h0gSB2sqcka1ZgpvhHH2/7gE52oqYwJ7kIJPzFLFWc33hQ1CZvS5xMqZkXa7qCgjktwEqow=
Authentication-Results: cisco.com; dkim=none (message not signed) header.d=none;cisco.com; dmarc=none action=none header.from=jacobs-university.de;
Received: from AM0P190MB0641.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:194::23) by AM0P190MB0659.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:198::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.19; Fri, 26 Feb 2021 17:55:22 +0000
Received: from AM0P190MB0641.EURP190.PROD.OUTLOOK.COM ([fe80::1ce1:49e3:3e54:804d]) by AM0P190MB0641.EURP190.PROD.OUTLOOK.COM ([fe80::1ce1:49e3:3e54:804d%5]) with mapi id 15.20.3868.033; Fri, 26 Feb 2021 17:55:21 +0000
Date: Fri, 26 Feb 2021 18:55:21 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20210226175521.rwnzxeyvub2odn6p@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: "Rob Wilton (rwilton)" <rwilton@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <20210222.111343.254950973345362316.id@4668.se> <04B94A94-236A-44CE-B47C-BE5F36FFF278@tzi.org> <20210222135333.t4hfa3ekguwm33pm@anna.jacobs.jacobs-university.de> <C83451C6-56D2-4A95-A0FE-66197E7DFB59@tzi.org> <20210222141715.vhzqka77yzhbkpst@anna.jacobs.jacobs-university.de> <450E683C-4F47-4314-BA63-DAC17AF60970@tzi.org> <20210224203915.2ysjgjv6izjoh6to@anna.jacobs.jacobs-university.de> <MN2PR11MB4366BD4F7DE5297B38488749B59D9@MN2PR11MB4366.namprd11.prod.outlook.com> <20210226142749.ry2pbyym6ernhgi4@anna.jacobs.jacobs-university.de> <MN2PR11MB436663499BB4589CC8581FD2B59D9@MN2PR11MB4366.namprd11.prod.outlook.com>
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <MN2PR11MB436663499BB4589CC8581FD2B59D9@MN2PR11MB4366.namprd11.prod.outlook.com>
X-Originating-IP: [212.201.44.244]
X-ClientProxiedBy: AM0PR01CA0105.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::46) To AM0P190MB0641.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:194::23)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from localhost (212.201.44.244) by AM0PR01CA0105.eurprd01.prod.exchangelabs.com (2603:10a6:208:10e::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.19 via Frontend Transport; Fri, 26 Feb 2021 17:55:21 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 4e13c4ed-5393-456d-9a80-08d8da7fafb7
X-MS-TrafficTypeDiagnostic: AM0P190MB0659:
X-MS-Exchange-Transport-Forked: True
X-Microsoft-Antispam-PRVS: <AM0P190MB065940128764AEF44CFCED27DE9D9@AM0P190MB0659.EURP190.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: CSInXQR4TWGc66mviY0gC0T5j3C0H+7qnOeWi4R9uwYBAQpznFvKG2MjxjIJY929taO+3RcLFc4JPNOWDsVPvVb+XDv+4jlLyItqpEwDIbU3DsReRpSix8fHxfmI8ftrd97vUdpyp6wConB+2bcqwN/rVzJOohxpMWir0QzRauo+gjud8TF2R7Xzy+MiUginJifbMztCUAMlP39r3ECpPJ38oMRtAS4GG7c+wquwGqLjxgL74WWaKCULE4caAqyklbnldLa2oQIw00yqnmH3QLIquaaqlwHDqAlQY0hcCMARW7WHIgApHIvnYHU6z1Sr6GOH6sJHXGONAQidCRrFw1vaLMFivSLc9K67t9OcYr0Ep5z+3tMIfvUkNn8EBezuLwXJDR64qhUm5pdzQKCfArsy5AS7oSZRJyOAh/1eF/lbQL6HIGnJtOCMFck5SL7/1AlyRzS8s8+YbnuroUlxRTGSalXV+45IzcRCMMuiV/P+bJQDMhzhEeDry2P7h4hO7TWZLA3Evj7Gaf/Jg6n90F1DZxJlPrkC4XmKsAEh6r8MiuxMZOVGgliDv0PGGPt/Q1/UGbv2W39Nf0l7hgpOBP4m5P4E9wMInSSKAjmwRvcDmg1DKL8r1Xtgy1DXgspeBoDQVOnbFNlsCcpl5U4+cVC7OLGMA4weVExebSW3KUw=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0P190MB0641.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(396003)(366004)(376002)(39860400002)(136003)(346002)(26005)(66946007)(16526019)(4326008)(186003)(83080400002)(8676002)(8936002)(66556008)(66476007)(86362001)(83380400001)(52116002)(6916009)(956004)(2906002)(316002)(786003)(3450700001)(5660300002)(6486002)(1076003)(478600001)(6496006); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData: Rb9GrSANVikHo3p6wsFOFEcR5m+EMmgEXOjf0NGeq/UTtIGUVZyRx0Dr6ogQZ3f75Tu3m+2EXVwA/nqpAuWantefkFKrx1XXTaM8UeqzOyfkIOUHSQc9wauMRbn6VJ+M8/pRBDEXlsyXJev9oAj/WIDrqXTKJJk9Qz0Co7IlbErfPXZr1w5kW1DbrmEAlDxr/alMKk5P5Lth0MfB/+vigTkhbA+dsptAkBOY6fy9EUFxNeHZ6Fo20j1+z5Jl+/4C9K9TqOEDa/nB5uWfgiKPA2T2wFXBqaI/PhUxp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MS-Exchange-CrossTenant-Network-Message-Id: 4e13c4ed-5393-456d-9a80-08d8da7fafb7
X-MS-Exchange-CrossTenant-AuthSource: AM0P190MB0641.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2021 17:55:21.8554 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f78e973e-5c0b-4ab8-bbd7-9887c95a8ebd
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: k/K/xkg0Nkdv9bYW80KK0MSgpAas1u1bMiF2qQWsn0XKX+4ODQC1IHvW4kiTLtxwTm9dieT9CZgGM+/WJTjPbCw5B0d4i89QRypkWw0owr8=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P190MB0659
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/s6KxV3_O0el9EUFHmVlNx7-9Ihc>
Subject: Re: [netmod] type equivalence
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, 26 Feb 2021 17:55:27 -0000

On Fri, Feb 26, 2021 at 03:27:39PM +0000, Rob Wilton (rwilton) wrote:
> 
> Sure, but if we are going to submit an errata for this definition, we want to ensure that updated definition is clear in all axes, not only the specific issue that was originally raised.
>

This is where the IETF shines, there is an attempt to fix a minor
problem and the result is N additional possible problems are put on
the table to be considered as well before the minor problem can be
fixed. My interest was the original question since I did run into it,
my interest is low in fixing all other possible problems that people
can think of.

Note, there are other places in RFC 7950 where the phrase 'semantics
of a definition' is used, e.g.,

   Otherwise, if the semantics of any previous definition are changed
   (i.e., if a non-editorial change is made to any definition other than
   those specifically allowed above), then this MUST be achieved by a
   new definition with a new identifier.

and this wording goes back to RFC 2578 and I am not aware that many
people had a problem with that, i.e., it seems to have worked 20+
years.

> Hence, my question is really whether "semantics of the type" is intuitively obvious, or it requires further text that defines what is meant by that, specifically, that the description in the type (and probably parent types it's derived from) forms part of the semantics of a type definition.

I believe 'semantics of a definition' is likely as good as it gets.
 
> Otherwise, it is possible that someone may think that it is pattern statement that defines the semantics of inet:ipv6-address, and not also the description.
>

If 'semantics of a definition' is a problem, then someone should come
up with a separate proposal to fix this new problem (and as outlined
above, this phrase goes beyond the paragraph I suggested to clarify).
I am not interested in that can of worms and I assume most technical
people will know when they change the semantics of a definition.

I started this thread because

  type int8 { range "1..10"; description "a number between 1 and 10"; }

  type uint8 { range "1..10"; description "a number between 1 and 10"; }

can appear to be the same type but it is actually not due to the
change of the underlying built-in type and this is what I considered
worth to clarify. This is relevant for people writing YANG modules and
also for people working on encodings of YANG data where it matters
whether they can rely on underlying built-in types not changing.

Anyway, if this leads to N additional problems that can be considered
to be fixed, then I rather leave things as they are.

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>