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

Andy Bierman <andy@yumaworks.com> Fri, 09 December 2022 16:45 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 68E25C13B4D4 for <netmod@ietfa.amsl.com>; Fri, 9 Dec 2022 08:45:07 -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 HYcxZ3GxaX2S for <netmod@ietfa.amsl.com>; Fri, 9 Dec 2022 08:45:03 -0800 (PST)
Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 4D89AC13B4CF for <netmod@ietf.org>; Fri, 9 Dec 2022 08:45:03 -0800 (PST)
Received: by mail-lj1-x22a.google.com with SMTP id a19so5527505ljk.0 for <netmod@ietf.org>; Fri, 09 Dec 2022 08:45:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vLEg3qmOT79BO84Fv4tOQhVUTaxWmhYfggy/kJkrNPw=; b=OVI4puSMSlzrpad5D9NVa1uN1/jvlm/819iZtEXREMya/krlwUbzinc12Mo+Tt1Pzu CvJO5nH+D221QGt5N48MKa965bntrrK9M3J6h1B2ZYB8+NUVq9BrNkUriTeQMW/FWooC /xjGCSTTXdZH12uerGXyrNdGcqZaRjCBqm8v0257k7MZ6JDzHDetiW9cgWF+d+QC4uNB E/6DdY7UYZyCG/ULbyizmmYv7G2fzRo0HTnJBMi1nWCvfwJmQrjTdSGFQ3sLIuMWzPPc 5vtIlqxu15mH9/M5v53rUzxesgR8/o9UjZ12ae0sc9zIo+xkA4z22+oBa0U7aEVOgdt8 MSZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc: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=vLEg3qmOT79BO84Fv4tOQhVUTaxWmhYfggy/kJkrNPw=; b=v68uXIcG5BUxAa6tffXgD1DWUmNbSj1p/dh1ahLOkcKjgGw7/iMQRxZwZ14ZJpUIht BZDPYefSIz5GvNIs3bYV/RkTb0S0u1ap9N858fs6i8Sbfsg+Mn+D/haPMLcqcGwNXyWa xsx4opfp4C70vDRneyxculxOcg1KlRa97VV0+f2wRGfHn3P0R4WcEbiAuEa1OOWyakPC D9kAQSxO3Cckt/GOEcISAun8i9YhvbGqB9xFN/l6ckrRpHUTbXidxYTnTNGUNuPt5QFm JPq2W/tybgp8tM5L+fquFX4BYAzPR1TAbdvsL3vk4dfN2OV5IpMiynWVzlYg4uT8J5Mq Zrug==
X-Gm-Message-State: ANoB5pkAiarGVVl8W8BnJcOzqAC0Un6ILxCTokIVUIse1xP45PVpYV1K o2SmrcuCCUACgVeK50HXHW0kC1BcQLRAXTBZWICT0Q==
X-Google-Smtp-Source: AA0mqf6RowrFXh4JCCv9X4aQBfymvH68JSFMOR8caPkh87mngl2Jxi5/RIXWB+T9bFr3T0rhUpz30jEzuVN3/jbw5fg=
X-Received: by 2002:a05:651c:1a10:b0:277:5059:82c9 with SMTP id by16-20020a05651c1a1000b00277505982c9mr26430497ljb.218.1670604300313; Fri, 09 Dec 2022 08:45:00 -0800 (PST)
MIME-Version: 1.0
References: <01000184e3f14a15-95feeb1e-c027-4366-ab2c-291ac3f03cc8-000000@email.amazonses.com> <20221205223741.mxeacefm46mkpwrl@anna> <CABCOCHQ1JxcDn0OPnKWFpz9vcZzW8YOjEP8_wdF_KK2z=EoREQ@mail.gmail.com> <20221207.092731.2267015585780052231.id@4668.se> <01000184efaf6098-44b9712e-b4e6-43c8-a7ed-1245b811ee1a-000000@email.amazonses.com> <20221208074206.au7w2ohklk3fhfe3@anna> <CABCOCHRN2DwnxGAs8V_JTg5kk4SZczjK0xj52+TT0LR3iWryUA@mail.gmail.com> <01000184f78c1abe-6d3a5862-f67f-4e5f-abef-54588f9ee2dd-000000@email.amazonses.com> <CABCOCHTg8fzAFyBDiRWce+dRu2vvNxLtLxSH=N9RTsbP+u=y-A@mail.gmail.com> <837A13FC-F3FE-4524-8B40-0C62B829AB5E@cisco.com>
In-Reply-To: <837A13FC-F3FE-4524-8B40-0C62B829AB5E@cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 09 Dec 2022 08:44:48 -0800
Message-ID: <CABCOCHSgpgy5j366r+0XEM2PaUG8_w_e4JB_s9P_i0c7P85NPA@mail.gmail.com>
To: "Acee Lindem (acee)" <acee@cisco.com>
Cc: Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000e1775105ef67df2d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/CYyszJF4ftdX0bG_dC842iBSmZA>
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: Fri, 09 Dec 2022 16:45:07 -0000

On Fri, Dec 9, 2022 at 8:29 AM Acee Lindem (acee) <acee@cisco.com> wrote:

> Top posting to assure everyone reads:
>
>
>
> I don’t think I could of come up with a better strategy to guarantee that
> IETF YANG models aren’t used if I tried. We’ll still specify them in IETF
> document and they’ll provide a useful reference model for other SDOs and
> vendor native models, but no one is going to implement and deploy them.
>
>
>

This is already happening. e.g.
https://github.com/openconfig/public/blob/master/release/models/types/openconfig-inet-types.yang

After all the churn and complexity introduced by the "NMDA redo", we should
be extra careful
not to do that again.  SDOs and vendors need a stable foundation on which
to build their
domain-specific data models.


Thanks,
> Acee
>


Andy


>
>
> *From: *netmod <netmod-bounces@ietf.org> on behalf of Andy Bierman <
> andy@yumaworks.com>
> *Date: *Friday, December 9, 2022 at 11:19 AM
> *To: *Kent Watsen <kent+ietf@watsen.net>
> *Cc: *"netmod@ietf.org" <netmod@ietf.org>
> *Subject: *Re: [netmod] I-D Action: draft-ietf-netmod-rfc6991-bis-14.txt
>
>
>
>
>
>
>
> On Fri, Dec 9, 2022 at 7:41 AM Kent Watsen <kent+ietf@watsen.net> wrote:
>
>
>
>
>
> The idea to encode all relevant semantics of a type in a type's name
> has far-reaching consequences:
>
> - Are we going to deprecate counter32 and introduce
>   non-zero-based-counter32 because we have also zero-based-counter32?
>
> - Do we introduce date-and-time-with-optional-zone-offset and
>   deprecate date-and-time?
>
>
>
> I wish we had guiding principles for such naming decisions or, perhaps, it
> is a matter of the type's definition.
>
>
>
> The current date-and-time is not ambiguous because it asserts that either
> a 'Z' or an offset is present, making impossible for implementations to
> assume a zoneless form.  Whereas the current ip-address is ambiguous
> because it silently accepts the "without" form, leading to surprise in some
> implementations when the expanded form is "unexpectedly" passed.
>
>
>
> Having well-defined guidance could prevent future missteps.
>
>
>
>
>
>
>
> The definition of ip-address (published in 2010) was the right thing
> to do since the optional zone index can disambiguate IP addresses in
> situations where this is needed. In 2013, we also provided the
> ip-address-no-zone definition to be used in situations where there is
> never a need to disambiguate IP addresses (e.g., when the zone is
> known from the context).
>
>
>
>
>
> Trying to focus just on this proposal, not extrapolate the trend...
>
>
>
> For 10 years we have had 2 typedefs for IP address:
>
>
>
>   - ip-address
>
>   - ip-address-no-zone
>
>
>
> This should be enough (even without reading the module!) to determine
>
> 1 form has a zone, and 1 does not.
>
>
>
> But nobody reads the YANG module so they didn't know about
> ip-address-no-zone.
>
> So how will they know about ip-address-zone either?
>
>
>
> Because tooling would flag "ip-address" as deprecated and the description
> statement would say to use the "with-zone" form?
>
>
>
>
>
> There is no reason to deprecate something to replace it with the exact
> same semantics, but a different name.
>
> The only reason to deprecate something is because it will be removed in
> the future,
>
> Deprecating and obsoleting such a critical data type would be highly
> disruptive.
>
> Many vendors and SDOs may refuse to do it.
>
>
>
>
>
>
>
> YANG Catalog search shows 1486 modules import the ip-address typedef.
>
> I suspect the number is about twice that.
>
>
>
> So we want to tell the world:
>
>
>
> "You have to stop using ip-address and use this new type instead".
>
>
>
> "Why? What's wrong with it?"
>
>
>
> "Nothing. We decided after 13 years we like this name better."
>
>
>
> A number of issues were raised (misconfigurations, OpenConfig, etc.).
>
>
>
>
>
> What are these operational problems that are caused because of the name
> ip-address?
>
> IMO it would be far worse to take away the most important typedef in YANG.
>
>
>
> We have never heard any issues at all from customers about problems
> implementing ip-address.
>
> As Martin pointed out, the server MUST check for values such as 0.0.0.0
> that are
>
> accepted by the typedef pattern but not the leaf semantics. Checking for a
> zone index
>
> is no different.  The ip-address typedef has been clarified in the draft
> update.  That is sufficient.
>
>
>
>
>
>
>
>
>
>
>
> Kent // contributor
>
>
>
>
>
>
>
> Andy
>
>
>