Re: [netmod] revising RFC8366 -- Re: [Anima] BRSKI-AE enum issue -> empty, but what's he encoding ?

Toerless Eckert <tte@cs.fau.de> Fri, 25 June 2021 22:48 UTC

Return-Path: <eckert@i4.informatik.uni-erlangen.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 A1DD53A1019; Fri, 25 Jun 2021 15:48:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.871
X-Spam-Level:
X-Spam-Status: No, score=-0.871 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
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 FpLz4cuihQp2; Fri, 25 Jun 2021 15:48:18 -0700 (PDT)
Received: from faui40.informatik.uni-erlangen.de (faui40.informatik.uni-erlangen.de [IPv6:2001:638:a000:4134::ffff:40]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D64C93A101F; Fri, 25 Jun 2021 15:48:17 -0700 (PDT)
Received: from faui48e.informatik.uni-erlangen.de (faui48e.informatik.uni-erlangen.de [131.188.34.51]) by faui40.informatik.uni-erlangen.de (Postfix) with ESMTP id 830C254804D; Sat, 26 Jun 2021 00:48:10 +0200 (CEST)
Received: by faui48e.informatik.uni-erlangen.de (Postfix, from userid 10463) id 77BE64E787C; Sat, 26 Jun 2021 00:48:10 +0200 (CEST)
Date: Sat, 26 Jun 2021 00:48:10 +0200
From: Toerless Eckert <tte@cs.fau.de>
To: Michael Richardson <mcr+ietf@sandelman.ca>
Cc: "Fries, Steffen" <steffen.fries@siemens.com>, "anima@ietf.org" <anima@ietf.org>, netmod@ietf.org, Kent Watsen <kent+ietf@watsen.net>, rwilton@cisco.com
Message-ID: <20210625224810.GC30200@faui48e.informatik.uni-erlangen.de>
References: <20210625190512.GB30200@faui48e.informatik.uni-erlangen.de> <5025.1624653668@localhost>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <5025.1624653668@localhost>
User-Agent: Mutt/1.10.1 (2018-07-13)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/HclIh14Kf188MSdghsR5H811fVY>
Subject: Re: [netmod] revising RFC8366 -- Re: [Anima] BRSKI-AE enum issue -> empty, but what's he encoding ?
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, 25 Jun 2021 22:48:23 -0000

I was first asking about the encoding ;-)

Would be good to understand if this "empty" encoding would result in a
- same of different degree of "backward compatibility" as an extended enum
- same or different size  of ascii and binary encoding ?

I am also not quite clear what difference it really makes to use empty instead
of just creating a new revision of the voucher, as shown for module b in

https://datatracker.ietf.org/doc/html/rfc7950#section-5.6.5

Need to learn more YANG ;-)

Wrt errata: I would bet that none of this will go through as errata to
RFC8366. In all the instances i remember erratas being accepted as such, 
they where all about what i'd call real textual bugs where it was obvious
that what was desired by the RFC is not what the text of the RFC says.
I think choosing a better/different extensible encoding is purely a feature.
Which is fine, it just means we need to find a different place to track
this, maybe the trac wiki. Errata are just a very limited editorial tool,
not really a generic help for an RFCbis ;-(

Lets hear from yang doctors or yang friends. Right now i bet that if
the only change for yang vouchers is this enum, then its probably easiest
to do b), e.g.: make AE be a formal update. I think c) is appropriate if
we have a larger critical mass of changes for rfc8366.

Cheers
    Toerless

On Fri, Jun 25, 2021 at 04:41:08PM -0400, Michael Richardson wrote:
> 
> Toerless Eckert <tte@cs.fau.de> wrote:
>     tte> https://trac.ietf.org/trac/netmod/wiki/YANG_FAQ#when-use-empty
>     tte> Is this the solution we are looking for ?
> 
> 
> here it the relevant text:
> 
> } The second situation is when you want to define an extensible enumeration,
> } as an alternative to the type "enumeration", which is not extensible by other
> } modules. For example if an enumeration is used:
> 
> } leaf protocol {
> }   type enumeration {
> }     enum smtp;
> }     enum pop3;
> }   }
> } }
> } and we want to add a new protocol 'imap4', it must be done by adding a new
> } enum in the module. But if we use a choice of type empty instead:
> 
> } container protocol {
> }   choice p {
> }     case smtp { leaf smtp { type empty; } }
> }     case pop3 { leaf pop3 { type empty; } }
> }   }
> } }
> } then another module can augment the first:
> }
> } augment /foo:protocol/p {
> }    case imap4 { leaf imap4 { type empty; } }
> } }
> 
> Well, this seems to be exactly what we want.
> Do we get to put a description in there?
> can we put a value in so that our SID process works?
> (I imagine we'll have to hack pyang to make it cope, but...)
> 
> proceedural options:
> 
> 1) write this up as errata against 8366.  That seems a bit much for errata,
>    but how much whisky does it cost to bribe an AD?
> 
> 2) write a formal "Updates" RFC8366 that just does the NEW/OLD version of
>    updates, and that's it.
> 
> 3) do an entire RFC8366bis.
> 
> --
> Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
>            Sandelman Software Works Inc, Ottawa and Worldwide
> 
> 
> 
> 



-- 
---
tte@cs.fau.de