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

Andy Bierman <andy@yumaworks.com> Tue, 06 December 2022 00:11 UTC

Return-Path: <andy@yumaworks.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 D1A5EC14F73D for <netmod@ietfa.amsl.com>; Mon, 5 Dec 2022 16:11:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.095
X-Spam-Level:
X-Spam-Status: No, score=-7.095 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=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 (2048-bit key) header.d=yumaworks.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 0QokjrGoAl5a for <netmod@ietfa.amsl.com>; Mon, 5 Dec 2022 16:10:56 -0800 (PST)
Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CCF93C14F736 for <netmod@ietf.org>; Mon, 5 Dec 2022 16:10:56 -0800 (PST)
Received: by mail-ed1-x530.google.com with SMTP id l11so18117092edb.4 for <netmod@ietf.org>; Mon, 05 Dec 2022 16:10:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=WKhzf3LnLFHaym7XhgCLVD6yWeibHorFKG2nnBMY1cE=; b=B+hI5dVNlaaO1B5bcYmLw1AiMZlqnkiLkTy5e70idAYWYlDCGtupga6QtGocbkJwtC I45J4U4CJlflvDS5gC/+aNnuw9UJBVOIuc1wY0mz6v773pQBY+OomoKZoUk8Jf/4UYYC bDjp51bCPYAQeUyXPx4jGiSSb/RMZVGrl30f/4DCHtukvuXJFg57sSQBwFqpEf1fAZzD wBuboCaQIE/wpNg2tjVsYdoE8T209mFyBG8ObDZYxh4EJy9AxkEo15ooQ/+mlqkXMrz7 tyIim1LgiZsvvbC8FnuagpFP3jxYz4UDCzYclBAJlVVBGWppToXVgSU+IxaccrGCOq8J mc6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WKhzf3LnLFHaym7XhgCLVD6yWeibHorFKG2nnBMY1cE=; b=Q4Uc6GsN5nys9PwOlMCBqNA2aPXkhOq8pTu7eJ6UQvh/RiLy8m5oRk9ciT0ocf7oBz N1O8vhBAGDqQrl+0qbVS2r3N3sGsr7cqJOrzds5nhmKj3Rw/0JZfgq51cGKltlsAqwP/ 3aP3YOP5ofyXZCzVggCGmwFyGTMA6ZYrhOKLHqfISwxmgKFxJH+hau1vJ+2lLZYKh59n W9bbef+Jcbbi/+D//9/N/U5OoGO0F1D2gEya/voBIEskJ9ohEQi/mDBD9Uao6d10wNpi USZpDh9IR9n84Cpvd6iZwA+aF/HedCi8lajGT6M2NToFX8Ob3Wf2ttfhPO7yHJGt8M0T fjrw==
X-Gm-Message-State: ANoB5pmU1/3FE9csiu3DqOVZ5ghk2JaE8jNS0HvZ8DmDT9+oMruzM3rL f848oHRWRfs9gy4JAZQFOa0tR2zYbZ6/z6o6mKSR07zZR7a7iw==
X-Google-Smtp-Source: AA0mqf5uhcEHjHbFUdflx+7ytJCYEA642hTY+BWf7quzGg2WatVHvWiqi0J0zzppTnXpoI9FB+EZHv8PfMrfByNNzUc=
X-Received: by 2002:a05:6402:1f0a:b0:459:b29:d896 with SMTP id b10-20020a0564021f0a00b004590b29d896mr73760457edb.9.1670285454752; Mon, 05 Dec 2022 16:10:54 -0800 (PST)
MIME-Version: 1.0
References: <167023973660.5119.3909679673368752560@ietfa.amsl.com> <01000184e275372f-35eb9271-1f53-4d2a-bd74-c2b49d2a7c07-000000@email.amazonses.com> <20221205135817.3hmtw6fp2vi6pb3t@anna> <01000184e3f14a15-95feeb1e-c027-4366-ab2c-291ac3f03cc8-000000@email.amazonses.com> <20221205223741.mxeacefm46mkpwrl@anna>
In-Reply-To: <20221205223741.mxeacefm46mkpwrl@anna>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 05 Dec 2022 16:10:43 -0800
Message-ID: <CABCOCHQ1JxcDn0OPnKWFpz9vcZzW8YOjEP8_wdF_KK2z=EoREQ@mail.gmail.com>
To: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>, Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000345a3805ef1da309"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/WCM8J_XgoUpzYhbQN2MwFVTj0Wc>
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: Tue, 06 Dec 2022 00:11:00 -0000

On Mon, Dec 5, 2022 at 2:37 PM Jürgen Schönwälder <
j.schoenwaelder@jacobs-university.de> wrote:

> On Mon, Dec 05, 2022 at 08:19:12PM +0000, Kent Watsen wrote:
> >
> >
> > Hi Juergen,
> >
> >
> >
> > >> 3) There are two "time-with-zone-offset" typedefs (one should be
> "time-without-zone-offset"?)
> > >
> > > No, I only see one.
> >
> > My bad, I didn't see the subtype.
> >
> > But I may've been thrown off by the following "no-zone" types...should
> they be named consistently?
> >
> >    - date-no-zone  -->  date-no-zone-offset  or  date-without-zone-offset
> >    - time-no-zone  -->  time-no-zone-offset  or  time-without-zone-offset
>
> The 'no-zone' indicates no zone information, neither by offset nor by zone
> name.
>
> >
> > >> 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.
> >
> >
> > "Offsets" are good (regional names would be too involved, IMO)
>
> Zone offsets change for certain locations regularly (daylight saving
> times) and this is why many user facing interfaces configure time zone
> locations by letting the user select a zone name like Europe/London
> that then maps via the IANA timezone database rules to the specific
> zone offsets.
>
> > My thought is only to shorten the names.  e.g., time-with-zone-offset
> --> time-with-offset?  If it doesn't make sense, semantically, then no
> worries keeping as is.
>
> Some what descriptive names, some want names to be future proof,
> others want names that match names used elsewhere, then some prefer
> short names, its obviously difficult. Initially we had date (with an
> optional zone offset) plus date-no-zone without it. This matchedthe
> good old date-and-time (which also has an optional zone offset).
>
> > >> 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.
> >
> >
> > This was discussed at 115, on slide #8 here:
> https://datatracker.ietf.org/meeting/115/materials/slides-115-netmod-1-session-intro-wg-status-00
> .
> >
> > Lou and I are trying to break the logjam, and no one objected, so it's
> fine to proceed now.  What I'd do:
> >
> >    1) rename the existing definitions to the new name.
> >    2) recreate the old definitions as having the "type" of the new
> definitions and "status deprecated".
> >
>
> Consensus is determined on the mailing list, no?
>
> I am sorry that I missed decisions taken in London by not reading the
> slides. So I should also remove the language-tag type I guess.
>
> And then I write that ip-address was deprecated because some were
> confused by the name? Well, if this is how we make progress...
>
>

Deprecating ip-address (and ipv4-address and ipv6-address?) is probably the
most disruptive
change to YANG that one could make.  I am not sure there are real
operational problems
that warrant this change.

A type name cannot be changed.
A new name can be introduced so there are 2 types that do the same thing.
IMO this will increase the overall confusion, and not help in any way.

Making this worse is the fact that status "deprecated" is incorrectly
defined in YANG 1.1
because it means the same as "obsolete".  It also adds to the perception
that the IETF
cannot provide stable YANG modules to the world.


/js
>
>
Andy


> --
> 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/>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>