Re: [netmod] I-D Action: draft-ietf-netmod-rfc6991-bis-14.txt

Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de> Mon, 05 December 2022 13:58 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 E7316C1524AE for <netmod@ietfa.amsl.com>; Mon, 5 Dec 2022 05:58:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id t9FB6jXBfnQw for <netmod@ietfa.amsl.com>; Mon, 5 Dec 2022 05:58:26 -0800 (PST)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on0617.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::617]) (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 09CC2C1522B4 for <netmod@ietf.org>; Mon, 5 Dec 2022 05:58:25 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QMFGLsAxbNznnj+P7q82yokfSnkLZ6EmkvbIdzXP8ksvhu8Q/7eNAuoODa9VdYKTYZiHVZJnL8632gRZQrbdmVAZyimSHN7n8WPdKfI4af2u64xM98J1saJwVjSC3SgwzhImGRvvrjBQSY3/P1XKtmrvlIHeYHWRoh6UFmxO6AcfA3ZaQ3s5V14BJuCg+uM7LiEmnNCGdyVNi4WKHM9783StneMRadKS15QyvBt4J6VWgrvdC6zStchKzLvoQvIv6CK9HeoPNWI1bZVySS4Ll7LgxH5LZ+h6uctY7eF4zeu2XWsIPWMec0U3kz2uy/UoipRJxfO1dwBIGk6KA1wknw==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SNE8SrWXPxkAuDGKy/o92ZUSN3kCsZcvPUjNiCQApt8=; b=Leif6D8D9f/827Rjz9mjAwOwP8cGuhTtjf9tC+LEQSsCuRzQ1NI422Vm51jM5Urmwus0NK0nWsgJg+ZYE4bQQryOt1fji7srDtDWejuVXRV5wvdNCcAXVjRgskSqrdozNtzkl/ul4b2e7nWBeQGwXkHQ3LdShK9RnMeGfXis75I0SKLUsZE2/JZAVkTHHN3hSE/HDhNYAvhAOlmLq1JUpIHiiXgxPOzBTZld4MFN5jEs4BcUnDotIS+DIJD31MzskEG+zor+U14X0EXAarjB8j+1kvq5JRR39aTzpXeaM37zwhtaFHVL9osJOZZZ//G5oUFyYCeQjRILEuxSAjmw6Q==
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=SNE8SrWXPxkAuDGKy/o92ZUSN3kCsZcvPUjNiCQApt8=; b=W9J38oaAPCP+chySLVgrPXZu5y1xS4A7yKlXS/hfMRisluerWwz+f9FqJM2N6I7/vnnFhu1pcBhXnYuq0fJ67CEJFcCzjPmoyJJmzeYlmXeFr9YUNkIusOXJnbsrIZB66mgt6Ogzvm7cKK88Aas5Pm8wbX4Lv6vKkvs0FYBL+IM=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jacobs-university.de;
Received: from GVXP190MB1991.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:3::6) by DBAP190MB1013.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:1b1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Mon, 5 Dec 2022 13:58:20 +0000
Received: from GVXP190MB1991.EURP190.PROD.OUTLOOK.COM ([fe80::60d8:65bd:1830:6817]) by GVXP190MB1991.EURP190.PROD.OUTLOOK.COM ([fe80::60d8:65bd:1830:6817%9]) with mapi id 15.20.5880.011; Mon, 5 Dec 2022 13:58:20 +0000
Date: Mon, 05 Dec 2022 14:58:17 +0100
From: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>
To: Kent Watsen <kent+ietf@watsen.net>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20221205135817.3hmtw6fp2vi6pb3t@anna>
Reply-To: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
References: <167023973660.5119.3909679673368752560@ietfa.amsl.com> <01000184e275372f-35eb9271-1f53-4d2a-bd74-c2b49d2a7c07-000000@email.amazonses.com>
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <01000184e275372f-35eb9271-1f53-4d2a-bd74-c2b49d2a7c07-000000@email.amazonses.com>
X-ClientProxiedBy: AM0PR02CA0175.eurprd02.prod.outlook.com (2603:10a6:20b:28e::12) To GVXP190MB1991.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:3::6)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: GVXP190MB1991:EE_|DBAP190MB1013:EE_
X-MS-Office365-Filtering-Correlation-Id: 2ae8a172-cb05-45e3-2f4d-08dad6c8c38f
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: OPZQUFj/5sb7L1gHg8gtD/P2huzFYaR4A2bDYs7tR1Jo6S/QCVJsgkfitc+xqjPrB0LexHNnX2tP/61PwTTYG658qvfsrry9Ec12Pq9MQY3CIeXpSHYCz/75tTPKDUf9voVE6ydQiDMoKQjI1QieoVTSv8ywcIyzx3HR42e4eEzl0Of/TtYMs9tzyIA1tGvnbiT1Jqxi3Fw8SOrL83Ols85HXyEbaK+/D6xuGnNurQubnRfIG5WTc5+IEewPiqqA0C8eARbVFUYd9KQfF0G2hT9KzJUFCRH3PIX9ApNEQIhj5ecRog+DazJguSwBjEgBquVkQPycprkZ3XZh0NHjDrRX6+MModE3v6Efxpx3J3bCjFWXaOBFdZD03W3YDQ74W5mu7HW+7pC2+88NqFTKGrlk2fBd8shN7AkBnUaroIo9aXJ6uAZVxSMz5aA8HCu14Pkv5QSkHg6bGDcveR1RElUvtTzagH0xqXzyW5DOtJxKqjx6vZbZ1ESLJWjuKUBZmcBFgLX9DyIezsN/yJ/1NqfW6Sa/UrqzyyZayOdKR+MnJLGln3pyzMGMSvtw6KbJzuUAnSZJNtnKtIXmH420QOZiwjsLupcDS8k6iV+QWQL2BR2fuSv64qhKDLyrcAmprTxjNUj8gPnBefSpQHBDieEdN2R5urhZ35LxgfWeyVSRlTvSsdpukRisyN9hT4n6lk+D8OtRmIReyZx3H3sXS0vbIYaSbXMjEktLFjd936w=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:GVXP190MB1991.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230022)(7916004)(136003)(396003)(39860400002)(366004)(376002)(346002)(451199015)(86362001)(41320700001)(66556008)(40140700001)(85182001)(186003)(85202003)(41300700001)(1076003)(66946007)(8676002)(4326008)(66476007)(8936002)(66574015)(5660300002)(52116002)(53546011)(6486002)(6506007)(966005)(6666004)(478600001)(316002)(786003)(9686003)(26005)(6512007)(38350700002)(38100700002)(33716001)(83380400001)(2906002)(3450700001); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: bLfAGe6TU2kC4HnQJ+4vdKVeD5zUHSbvt+cXZxI1MjC8U96VKxEYg88od0JkJInr1GAklAN4GoGR9n3OlANSRtOt2/EFg/F9pofxX9sjkO94eRZhfdYXs4rPaU4Ou0gbdb1R7IKxDH71G5eWY9ltmbijGBB88UvQaFLXk020TOazo8RQzZqC50bomNV+hINeRPOpQq1VsBCA1yy+H6bM8Hm3EBZt+fvV1sL19tcpjPxHmPyOF5qLkgI07GrEWetmdwBgrQphyi4sriUrPnSXKxIxWTTqaXTLlV+TAJ/9/Gp6Kq8zPMfMc+eynbaD50eZGkpQb9Ua5bX6peMrTXwTTEV7gJxpWiWB12srVIEFAwoPgX5aVfNKbc17E6OMcX0OTOfELtTmuO7Bucwz4/m4+M8nGULLWA3X1NdtU0YfWAdG9Qt+vP9dHsdvwL2MWKGruVHFJFLp/XzvEzOm5W8dpJW7eM+nW2xgj46U434MU4Tc8N2WpNlfZSBiV/87Qqp9m58WI6dlRqDVfL/LgTnsC/Ojhxk0pZlsAx1vVtMeMwkKwbumnYF8nuShrbIyQM3XjBblyS2RB0orMonkqGQaOYgdMKYs2VKtsoZyPquyhWTD1fJW3yesfNgtAiKTnf+M4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8c38f
X-MS-Exchange-CrossTenant-AuthSource: GVXP190MB1991.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2022 13:58:20.6278 (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: xDTFNIyEDdZUGhZf73zWnT+Sk3iGLOzDuhdtTRTnQXNcOm0z/P6y4mYoEiALQmO46d1/9RMrOyyirqHewqJbIFfZuFhc9AS5TMhciwiq1lE=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAP190MB1013
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/_qXvNBzvjvihdxmwalWJxWEhYtM>
Subject: Re: [netmod] I-D Action: draft-ietf-netmod-rfc6991-bis-14.txt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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: Mon, 05 Dec 2022 13:58:30 -0000

On Mon, Dec 05, 2022 at 01:24:03PM +0000, Kent Watsen wrote:
> Thanks for this update Juergen.  I was just thinking this morning to ping you on it.
> 
> 
> ietf-yang-types:
> 
> 1) The table in the "Overview" section needs to reflect new names (e.g., s/date/date-with-zone-offset/)

Fixed.

> 2) The "revision" statement needs to reflect new names (e.g., s/with-zone/with-zone-offset/)

I think the correct names are listed in the revision statement.

> 3) There are two "time-with-zone-offset" typedefs (one should be "time-without-zone-offset"?)

No, I only see one.

> 4) Is the "-offset" postfix needed?  Or maybe remove the "-zone" part and only have "-offset"?

As noted on a private communication, I looked at what some of the more
modern programming language libraries do. So let me shre this here:

* Python (datetime)

  They distinguish 'aware' and 'naive' dates.

    Date and time objects may be categorized as "aware" or "naive"
    depending on whether or not they include timezone information.
    [...]
    An aware object represents a specific moment in time that is not
    open to interpretation.
    [...]
    For applications requiring aware objects, datetime and time
    objects have an optional time zone information attribute, tzinfo,
    that can be set to an instance of a subclass of the abstract
    tzinfo class. These tzinfo objects capture information about the
    offset from UTC time, the time zone name, and whether daylight
    saving time is in effect.

  Note that there is both a zone offset and a zone name. Note that a
  zone name may resolve to different offsets depending on the timezone
  rules in effect at a given point in time.

* Rust (chrono)

  They also distinguish between aware and naive:

    Chrono is timezone-aware by default, with separate timezone-naive
    types.
    [...]
    DateTime is timezone-aware and must be constructed from the
    TimeZone object, which defines how the local date is converted to
    and back from the UTC date. There are three well-known TimeZone
    implementations [...].

  My reading of their documentation is that their TimeZone object
  essentially resolves to an offset, not a timezone name.

In some contexts, it may be useful to think in terms of
2022-12-05@[Europe/Berlin] rather than 2022-12-05+01:00 (in particular
if you keep daylight saving times in your mind or changes of offsets)
and to be clear that we currently only model offsets, I decided for
the longer and more explicit name date-with-zone-offset (as there was
some push towards longer and more precise type names).

For interested parties, there is also work in the IETF on adding
names to the RFC3339 format:

https://datatracker.ietf.org/doc/draft-ietf-sedate-datetime-extended/

They discuss formats like 2022-07-08T00:14:07+01:00[Europe/Paris] and
then go into the details if the name and offset are inconsistent etc.
 
> Ietf-inet-types:
> 
> 1) "*-address-and-prefix" instead of "*-address-with-zone"?

He?

> 2) no deprecation of the legacy "*-address" types?

Since there was no consensus to change (and break) definitions, I
thought we agreed to simply make no changes and to keep what we have.

/js
 
> PS: Diff2 shows nearly everything changed.  Diff1 is correct:
>        https://www.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-netmod-rfc6991-bis-14.txt
> 
> 
> Kent // as Shepherd
> 
> 
> 
> > On Dec 5, 2022, at 6:28 AM, 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           : Common YANG Data Types
> >        Author          : Jürgen Schönwälder
> >  Filename        : draft-ietf-netmod-rfc6991-bis-14.txt
> >  Pages           : 43
> >  Date            : 2022-12-05
> > 
> > Abstract:
> >   This document defines a collection of common data types to be used
> >   with the YANG data modeling language.  This version of the document
> >   adds several new type definitions and obsoletes RFC 6991.
> > 
> > 
> > The IETF datatracker status page for this draft is:
> > https://datatracker.ietf.org/doc/draft-ietf-netmod-rfc6991-bis/
> > 
> > There is also an HTML version available at:
> > https://www.ietf.org/archive/id/draft-ietf-netmod-rfc6991-bis-14.html
> > 
> > A diff from the previous version is available at:
> > https://www.ietf.org/rfcdiff?url2=draft-ietf-netmod-rfc6991-bis-14
> > 
> > 
> > Internet-Drafts are also available by rsync at rsync.ietf.org::internet-drafts
> > 
> > 
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
> 

-- 
Jürgen Schönwälder              Constructor University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>