Re: [netmod] [Technical Errata Reported] RFC7950 (6031)

Martin Björklund <mbj+ietf@4668.se> Fri, 03 April 2020 13:54 UTC

Return-Path: <mbj+ietf@4668.se>
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 747013A077E for <netmod@ietfa.amsl.com>; Fri, 3 Apr 2020 06:54:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.101
X-Spam-Level:
X-Spam-Status: No, score=-0.101 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, PDS_NAKED_TO_NUMERO=1.999, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=4668.se header.b=rIaVGnV7; dkim=pass (2048-bit key) header.d=messagingengine.com header.b=YwpokkvP
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 wUwah_gDNcOa for <netmod@ietfa.amsl.com>; Fri, 3 Apr 2020 06:54:30 -0700 (PDT)
Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3590C3A14E4 for <netmod@ietf.org>; Fri, 3 Apr 2020 06:54:26 -0700 (PDT)
Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 429A25C02AA; Fri, 3 Apr 2020 09:54:25 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 03 Apr 2020 09:54:25 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=4668.se; h=date :message-id:to:cc:subject:from:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm1; bh= 41vyG/G6rjc3TzcHVFNj1pPdHb8oFogXGgwxTRvfTfQ=; b=rIaVGnV7py3JKtjV h90HIRUkQARqeA2HrpIepBn0Xpz/S7C4dSglgOxSjFrJ51uHsxZJL+fAAjPG7Xcu pchU8g7V9jsVDlKyk4WdRn76Mnav4Edxr6UUlwfOp6rjHY2njtNWBb6w1sUHo23p bbUGjoNSH3lCSes1gxZvDgEHOUaWp73BssYx39/hnZ46xeU6utRApkTQHBbv10RR fOpvvf37cvD2f2ZPrE9bkqdoFb/LfNyZzma3sdnifPha7Q0rlRbWkw6FksQyZsOo fIq2Y1QZFQ0Bsbyv+QXRLBBBZjkMYEEnPDVZiI232YgS+9U9yXzoi2ORfL18GthR 8e6FXA==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=41vyG/G6rjc3TzcHVFNj1pPdHb8oFogXGgwxTRvfT fQ=; b=YwpokkvPl6BfLUlgDlfkT0GlQOx390zVH9zfmB9UUL2Hams0gAa53qxi4 MttZvHyhStHN3iBCaQWZX4uGrR5FGrhK/FhZ2ZH5zSW90JO4T+UC18489oevWbpp A30DvIwss7PKD+CTIbelb2tY1FodWuOSQQupPVp+q4RH0YYf9E0Kc3VfyrCUe95c 0f0d3hrwz+0r6UMHHnEks0rPvx6XMEKvXd8ZhkNY/RyUTTgpaA95EeftUZQWEiSU srHT/DT7RAmHOwp0qeQEJyTWeHzEnhvZW8F+mLVk0AQl5yqQJ2dWrAePJaKSOgrD OExfibcE+zFj/qkTXD7rrtsccAmMA==
X-ME-Sender: <xms:EECHXqZYK3-5W2kCKFvDtjfpSteUw7hb9J_IcUWzIBkaQ57xwSInlQ>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrtdeigdeilecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffkvffuhfgjfhfogggtgfesthhqre dtredtudenucfhrhhomhepofgrrhhtihhnuceujhpnrhhklhhunhguuceomhgsjhdoihgv thhfseegieeikedrshgvqeenucffohhmrghinhepjhgrtghosghsqdhunhhivhgvrhhsih hthidruggvpdhivghtfhdrohhrghenucfkphepudehkedrudejgedrgedrgeegnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgsjhdoihgvth hfseegieeikedrshgv
X-ME-Proxy: <xmx:EECHXo30asNPiQK4ILfbQK1Q7XhTQuII_R_wFA-4dReOuSKEHQnKSA> <xmx:EECHXjr0LVRjxlwUpMuab6rM23mSRAuXIs8bPkUjhc5mBgyKk0FSDw> <xmx:EECHXpxHF-vGI5iF2256Wf1F2HuhjYGyZAUbO2eYxKkC2XN2yoS_Pg> <xmx:EUCHXj-pJ7WRHw6EiuBX3t4WzzTqAol1xsNALoAkzXrrQe88jzOAZw>
Received: from localhost (unknown [158.174.4.44]) by mail.messagingengine.com (Postfix) with ESMTPA id 5C3533280069; Fri, 3 Apr 2020 09:54:23 -0400 (EDT)
Date: Fri, 03 Apr 2020 15:54:21 +0200
Message-Id: <20200403.155421.968858617291773287.id@4668.se>
To: jason.sterne@nokia.com
Cc: rwilton=40cisco.com@dmarc.ietf.org, j.schoenwaelder@jacobs-university.de, mbj+ietf@4668.se, warren@kumari.net, netmod@ietf.org, rfc-editor@rfc-editor.org
From: Martin Björklund <mbj+ietf@4668.se>
In-Reply-To: <DM5PR08MB26333FAB53D3C4C781AB7B6B9BC70@DM5PR08MB2633.namprd08.prod.outlook.com>
References: <20200327161318.ykrx2s36bhmaglxq@anna.jacobs.jacobs-university.de> <MN2PR11MB43666AB22069D14FC3FB9A66B5C70@MN2PR11MB4366.namprd11.prod.outlook.com> <DM5PR08MB26333FAB53D3C4C781AB7B6B9BC70@DM5PR08MB2633.namprd08.prod.outlook.com>
X-Mailer: Mew version 6.8 on Emacs 25.2
Mime-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/08ZJ4ECrLcX-qmlXB_RN5eU7s5Q>
Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (6031)
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, 03 Apr 2020 13:54:33 -0000

Hi,

"Sterne, Jason (Nokia - CA/Ottawa)" <jason.sterne@nokia.com> wrote:
> I don't think we should allow overwriting a require-instance true with
> a require-instance false in a derived type. It seems to go against the
> spirit of avoiding expansion of allowable values.

As I wrote earlier in this thread, the value space doesn't change with
require-instance.


/martin



> 
> From section 4.1 of RFC7950:
> 
>         Derived types can restrict their base type's set of valid values
> 
> And this text in section 7.3.4 implies that derived types only do
> further restriction:
> 
>     If the type's default value is not valid according to the new
>    restrictions specified in a derived type or leaf definition, the
>    derived type or leaf definition MUST specify a new default value
>    compatible with the restrictions.
> 
> Going the other direction (overwriting with require-instance true)
> seems OK to me.
> 
> Jason
> 
> 
> > -----Original Message-----
> > From: netmod <netmod-bounces@ietf.org> On Behalf Of Rob Wilton
> > (rwilton)
> > Sent: Friday, April 3, 2020 8:06 AM
> > To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>;
> > Martin
> > Björklund <mbj+ietf@4668.se>
> > Cc: warren@kumari.net; netmod@ietf.org; rfc-editor@rfc-editor.org
> > Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (6031)
> > 
> > 
> > 
> > > -----Original Message-----
> > > From: netmod <netmod-bounces@ietf.org> On Behalf Of Juergen
> > Schoenwaelder
> > > Sent: 27 March 2020 16:13
> > > To: Martin Björklund <mbj+ietf@4668.se>
> > > Cc: ibagdona@gmail.com; warren@kumari.net; netmod@ietf.org; rfc-
> > > editor@rfc-editor.org
> > > Subject: Re: [netmod] [Technical Errata Reported] RFC7950 (6031)
> > >
> > > On Fri, Mar 27, 2020 at 04:35:44PM +0100, Martin Björklund wrote:
> > > > [re-sent w/ correct address]
> > > >
> > > > Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> > > > > Hi,
> > > > >
> > > > > two comments:
> > > > >
> > > > > - It is unclear to me whether this really qualifies as an errata.
> > > > >
> > > > > - If we add this, then there should probably text about which
> > > > >   combinations are allowed. For example, for pattern and ranges, there
> > > > >   is explicit text that says further restrictions of the value space
> > > > >   are possible, bot not expansions. If we follow that logic, then
> > > > >
> > > > >   typedef a {
> > > > >     type leaf-ref {
> > > > >       path "/some/thing";
> > > > >       require-instance true;
> > > > >     }
> > > > >   }
> > > > >
> > > > >   typedef b {
> > > > >     type a {
> > > > >       require-instance false;
> > > > >     }
> > > > >   }
> > > > >
> > > > >   might be illegal since b has a larger value space than a.
> > > >
> > > > The value space of b is the same as for a. "require-instance" doesn't
> > > > change the value space; it changes semantic validation of the given
> > > > values ((see my mail from 17 Mar, "Require-instance problem").
> > > >
> > > > /martin
> > >
> > > OK. If we consider require-instance a constraint and not a
> > > restriction,
> > > then the motivation for this errata is at least
> > > confusing:
> > >
> > >   Since no one argued against this understanding, this errata changes
> > >   the text to the same form as in other restrictions applicable to
> > >   derived types.
> > >
> > > Simply put: Do you think it is OK to overwrite a require-instance true
> > > with a require-instance false in a derived type?
> > [RW]
> > I'm not sure, but going in the other direction seems plausible.
> > 
> > E.g. you start with a typedef that is explicitly require-instance
> > false that is then
> > refined by a typedef to be require-instance true.
> > 
> > Regards,
> > Rob
> > 
> > 
> > >
> > > /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/>
> > >
> > > _______________________________________________
> > > netmod mailing list
> > > netmod@ietf.org
> > > https://www.ietf.org/mailman/listinfo/netmod
> > 
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod