Re: [netmod] [Lsr] I-D Action: draft-ietf-lsr-ospfv3-extended-lsa-yang-10.txt

Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de> Thu, 07 April 2022 07:35 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 BB0363A11BE; Thu, 7 Apr 2022 00:35:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.91
X-Spam-Level:
X-Spam-Status: No, score=-6.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 hotwbDUHsZ6p; Thu, 7 Apr 2022 00:34:59 -0700 (PDT)
Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-he1eur02on0614.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe05::614]) (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 ABE633A11C3; Thu, 7 Apr 2022 00:34:58 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I3CXn7CrOBRg68gcdfCOGXJ+/mnaoc4FQRnYzzkk1paHVQq0W13PJpFTCCC5hVCD76nJasU47h8mQws+6j4Kax6TiTQnWgnQQumkWWVGXVgUUu9iv5/eyPfe6g2tFopf7gC8aetoknKhF3kSckpSCXYM1T9tzIDJOnYD9IoRcC6edfjd69tspLEcRSY121EICBGv/TLF0snu8n8oKVJOoooVrNQp82rJfAtGZV9V7zq2yXcGG9Y5Lfba3MBU6jXvjl1tuq8sUcluFMsuIM6Dw4zg9+irdq4OnuTSulsBZgy2QO18fae4XUijN2cawabzl0dlroCU7+nP+KmQHa3gTQ==
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=bC0SuAS53o+nBZ9IsGRe6deYpUkNCFva3DX5itUBq+U=; b=L+HFplnw/xS5BHLqaYsxUDM0fOmuuvzrctn9nyb3oshTABBa4zChN8gEsmHModuyar02sbH+jr0gNN7HxGYHsFwJjcGXOgtFV2ZNjDNvP4lWNVC0xjzC8dTi8tJRW5pb99iE15tp8vUEPX230a0M4dY28yy50YrDghch3es0fxwAPfaSAnzyB3L+3wRuHVKRxFQwW6CBme9tTLkluJNy/zYlxky20jisWgY5e6SRrRAhzTh9CESkLHtSoGmnmAZBJXCtq4AA62MHg0iQFl01RI6lmHzwXWN2a1SJhWxlzHTkHHbcJLqP4z+ks805xdcVinsBA2fI9z4FPdUQYCqL6g==
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=bC0SuAS53o+nBZ9IsGRe6deYpUkNCFva3DX5itUBq+U=; b=iRDXlvB32XhATQyJa2AtT0kLu5A1SRPAD/chJA71ZkDm0aVbJktuSJRvCaMmN9LWH0riHygBw7ooaiIdMfygdNG50kNjpEqnSWaubc6kmFKdinFXsXbhOxgAYBaLQn0hiRV67uRHN91N/NoFO0oo5Yfd0OTD+nmRQIsSmu56pZ4=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=jacobs-university.de;
Received: from AM0P190MB0641.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:194::23) by DB9P190MB1611.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:247::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.19; Thu, 7 Apr 2022 07:34:53 +0000
Received: from AM0P190MB0641.EURP190.PROD.OUTLOOK.COM ([fe80::e409:a2d3:2c86:fe95]) by AM0P190MB0641.EURP190.PROD.OUTLOOK.COM ([fe80::e409:a2d3:2c86:fe95%8]) with mapi id 15.20.5144.019; Thu, 7 Apr 2022 07:34:53 +0000
Date: Thu, 07 Apr 2022 09:34:52 +0200
From: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>
To: "Acee Lindem (acee)" <acee@cisco.com>
Cc: "lsr@ietf.org" <lsr@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>, The IESG <iesg@ietf.org>
Message-ID: <20220407073452.rslzcxakaqnojedr@anna>
Reply-To: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: "Acee Lindem (acee)" <acee@cisco.com>, "lsr@ietf.org" <lsr@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>, The IESG <iesg@ietf.org>
References: <AM7PR07MB6248CE4BDC0B27008D4F04BCA0E59@AM7PR07MB6248.eurprd07.prod.outlook.com> <2C00E058-F836-415E-A357-797E01FE77AD@cisco.com> <DB7E3112-3C2F-4040-81E1-F4625689DA62@chopps.org> <645FCC0B-8279-4070-B052-A553317B8474@cisco.com> <20220405153644.w5faspao6qkbq337@anna> <B98C7C87-D7B6-4DB0-85C7-E8B61EDC66F6@cisco.com> <CABCOCHTZC+HqgBWr=m_wvVdgbDFnR6kTTv-XB20Ujn8uhj6krQ@mail.gmail.com> <20220405190249.chscwo4m4v4l5xoj@anna> <CABCOCHQ17cQz1sM3iWLpmnOrrLR_V9r8qipckhaEb5ouW0YdEg@mail.gmail.com> <E95B1413-1363-4BD6-A23B-141FAA640C00@cisco.com>
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <E95B1413-1363-4BD6-A23B-141FAA640C00@cisco.com>
X-ClientProxiedBy: AM0PR05CA0085.eurprd05.prod.outlook.com (2603:10a6:208:136::25) To AM0P190MB0641.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:194::23)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: bc1deb8a-4f75-4816-93d2-08da18691b06
X-MS-TrafficTypeDiagnostic: DB9P190MB1611:EE_
X-Microsoft-Antispam-PRVS: <DB9P190MB161123F49B7324A6DC096203DEE69@DB9P190MB1611.EURP190.PROD.OUTLOOK.COM>
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: ZVyEzy0D8gTgUs6uttKLFTy8+Nq7W7Gs9AsY6ujGUYqP+2ZjbeLqFUR97PML/WH9Bk792xivLirKBFun5r3DmBB8ABIhWxrLBX3RWBq3tTjhg++c6gREB/GAlPRoMvrssf0nQ855bTKWz9lfTMrWmBd9vDFcic4UDHWGx7DcjVKgltkMfa7CX0wTQxS+FiO7dOFRufKZIjw3s1JLzMY/gwsJCRy+Cc/chMv7gZdZ5sivaR0rLuhfWHxnDjbM4S/3gOrT1GEeuMOlrDA91Tz/NxDVnuD8IWB2Dhg2nbgcg8jF8FOTJAmAE6uLY3nY/9lKsw1g3UF+mVINMtJJbHgzdbqS98a2Se3Gtdv2KEHUSWeLFcJVNX7dAouVIQeffhkUPbcXYlP7/jHMa03sxl65SYwlqXidD9ijLu9ZQPU/Oce8NHwAeBYYRqzbzUD8C7zzCBXx9WRrkcHOf9XFGMDa4pr4Zg4T86P5giDGw1hTROnUf8Q5jXCMT412r4nSBDN2rx85b8lsBKQY3/IKO1oXlgo3SPsx95uF0ql8nTjkURTFdmkI8211BDBOMGVS2IBSjW/j136lP80du7NRqcS0H1YyIFwyacKwEHR+vdvcWD/KsA6rt0d4X27l6lswBXrUJKVNEbVZtqMBqbTv+ANNLhFDk+9zMf7U/2uOZt2y/heG3FiRrOAcwCEFpuhYVEBurw2x1uoyrlJFIPir1pX+cmp7Ej4ABq1QNFrxoXW1PP5wJHm881IoJjYyip9T9wR6FqZItF8aXwNQezvQxJsM2ivyjmJr+1pucTMW5r4C620=
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:(13230001)(7916004)(366004)(2906002)(83380400001)(33716001)(66946007)(186003)(66556008)(3450700001)(26005)(85182001)(4326008)(8676002)(66476007)(6486002)(3716004)(38100700002)(6506007)(6916009)(54906003)(1076003)(5660300002)(85202003)(6512007)(508600001)(53546011)(52116002)(40140700001)(9686003)(86362001)(8936002)(786003)(38350700002)(316002)(66574015); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: hFlJ4UiTQJxNWnM/myhwYKviT6STh9nrgzQ2+eykdwv1wFbG/D/oh2ZhZ+MWULoL5r3gK5Hk1eZgV+15sEvABnqpg3yH8d8HAQwr7QSkvJ/ajix9Xw3oThjl01nGnIbfa3UjmjuB3s1xM8g4TMmFrqNiXbP/WuNI8IloNMH/8mMMPEjLhIB+cEhzRrLSCZMYpO+++GIWg0rvIbhn0nXag6lb0NwNW/16BTP9h3Xonp4MtLn/J/2ZAd1CgMYSX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E/LTUs7gTR9EmQ5Sso7AwwyROXTjKOZps/KD4+I5FBqXKTTWq5VZfXuAUrhK3CeAmCCDz1lhnwD+bg4HBqBCLnNmpgk8wtYfCse/GMZjWaS5VmhNkLRfDoOQPLs2AUeqidCKMNyslEkIPMvfJqS8sJdCpPJXRX77FO1A1suDjSiBx5ME2kdtjNSl7GKQ8sxI9ruW1XKy3bAFQoOLpHremyuuMvTpiAPimjX57lUB8GE3grq6qgdGMhuh9FrW+I47NI5BStQkLSWIonWy3nIGdn/B0q8A72/iZwQO6+OMuPjrujaHpANdHN87HkoKkiUwNRPjgnLyhoZApfroDZrSucNcCsRJ+xfUxQFNkZGNMsSz2OBFUYF7LkaGwJ76LHc3gGp+Qh/rsWrseMjyZHSGrQy8x4iffCHgerl1okcWTI+xfnczFza0iFjazTM2oe24p+itzs0
X-OriginatorOrg: jacobs-university.de
X-MS-Exchange-CrossTenant-Network-Message-Id: bc1deb8a-4f75-4816-93d2-08da18691b06
X-MS-Exchange-CrossTenant-AuthSource: AM0P190MB0641.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2022 07:34:53.1644 (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: MghlFGIrFEVRLjOHPSWjFFAGTCeawf6XIpItYGNqljS2PYcYVNAoKdlRPFBD+7eVpdFE6p3HDS/k41W+dKP6+xxmYrsfYYUxU2BW/uRSXsM=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9P190MB1611
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/aTFCIiV4Q0ImXymK65A6n0RQbdk>
Subject: Re: [netmod] [Lsr] I-D Action: draft-ietf-lsr-ospfv3-extended-lsa-yang-10.txt
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: Thu, 07 Apr 2022 07:35:07 -0000

Here is roughly what happened:

- RFC 6020 (published ~12 years ago) introduced the ip-address
  type. It included an optional zone index part since zone indexes
  are necessary in certain situations (e.g., configuring services
  listening on link-local addresses or clients connecting to services
  listening on link-local addresses).

- RFC 6991 (published ~9 years ago) added the ip-address-no-zone types
  since people felt that it is useful to also an ip address type
  without the optional zone part for situations where a zone is not
  applicable. The name 'ip-address-no-zone' was picked since the name
  ip-address was already taken.

I understand that the names resulting from this evolution of the YANG
module confuse people not looking up the type definitions. Let me note
that using a type allowing for an optional zone for a leaf that never
needs a zone is not a fatal error (its like using an int where a short
is sufficient) while using a type not allowing for a zone for a leaf
that may need zones is a fatal error (using a short where an int is
required) requiring an update of the definition of the leaf to fix.

What are our options?

a) Do nothing and accept that types are called as they are.
b) Change the types as suggested and accept that doing so breaks
   modules where zone indexes are meaningful.
c) Deprecate the types and create a new module defining new types
   so that modules can opt-in to use better names.
d) Deprecate the -no-zone types and move back to have a single
   type for IP addresses.

Any other options?

How are we going to pick between them?

/js

On Wed, Apr 06, 2022 at 09:02:23PM +0000, Acee Lindem (acee) wrote:
> Jürgen and netmod WG,  +IESG,
> 
> It is not just the IETF models that are using the inet:ip-address for the standard IPv4/IPv6 addresses without zones. Every vendor’s native models and the OpenConfig models use the base types and expect the standard IP address notation. If we don’t fix this, it is something that people can point to as another example of the IETF being out of touch with reality.
> 
> I thought about more, and it might make the backward compatibility easier if we just leave the existing ip-address-no-zone, ipv4-address-no-zone, and ipv6-address-no-zone types and add *-zone types for the remote possibility that someone actually wants to include the zone.  In the existing RFC 6991 BIS document, we could merely remove the zone from the ip-address, ipv4-address, and ipv6-address types and classify this as we would any other bug fix. While including the zone was the original intent of the base types, this is what those of us who work on software products would classify as a requirements bug.
> 
> Thanks,
> Acee
> 
> From: Andy Bierman <andy@yumaworks.com>
> Date: Tuesday, April 5, 2022 at 3:21 PM
> To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Andy Bierman <andy@yumaworks.com>, Acee Lindem <acee@cisco.com>, "lsr@ietf.org" <lsr@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
> Subject: Re: [netmod] [Lsr] I-D Action: draft-ietf-lsr-ospfv3-extended-lsa-yang-10.txt
> 
> 
> 
> On Tue, Apr 5, 2022 at 12:02 PM Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de<mailto:j.schoenwaelder@jacobs-university.de>> wrote:
> On Tue, Apr 05, 2022 at 10:03:25AM -0700, Andy Bierman wrote:
> > >
> > > The best outcome would be to fix ip-address to not include the zone,
> > > introduce ip-address-zone, and deprecate ip-address-no-zone. My take all
> > > the is that all the existing usages do not require zone and this would be a
> > > fix as opposed to a change.
> > >
> > >
> > I don't think this will harm our implementations.
> > The type is still string. The pattern will change but that is handled by a
> > library.
> > Whatever pattern is used will get handled the same way.
> 
> Either a zone is allowed to be present or it is not, this does make a
> difference, its not a cosmetic change.
> 
> 
> True. The code will probably accept the pattern then fail trying to use the string.
> If the client sends the form with a zone.
> 
> 
> 
> 
> > The same problem exists for 'date' and 'date-no-zone' types,
> > but they are not used very much.
> 
> Perhaps we should call types a, b, c, and so on - this may force
> people to read the descriptions. ;-)
> 
> For some reason, the smarter the person, the less likely they are to
> read any of the documentation before using some software.
> I call it the "it should work the way I would design it" phenomenon :-)
> 
> You have to admit that Acee's suggestion is more intuitive than the current
> definitions.
> 
> Clearly an NBC change.
> IMO it is more useful to put some YANG extension magic in these specific typedefs
> than just bumping a major revision number. This is a great use-case for the version DT.
> 
> There probably is no solution path where nobody has to change any YANG or any code
> and everything still works.
> 
> 
> 
> /js
> 
> Andy
> 
> --
> Jürgen Schönwälder              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/>

-- 
Jürgen Schönwälder              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/>