Re: [netmod] An abundant amount of IANA if types...

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Fri, 06 April 2018 08:18 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 666A6128961 for <netmod@ietfa.amsl.com>; Fri, 6 Apr 2018 01:18:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 jQx0QufdstHu for <netmod@ietfa.amsl.com>; Fri, 6 Apr 2018 01:18:34 -0700 (PDT)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B38FD124B17 for <netmod@ietf.org>; Fri, 6 Apr 2018 01:18:33 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id DBF90DF3; Fri, 6 Apr 2018 10:18:31 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id 0JsqN5qpx-Xd; Fri, 6 Apr 2018 10:18:30 +0200 (CEST)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Fri, 6 Apr 2018 10:18:31 +0200 (CEST)
Received: from localhost (demetrius4.jacobs-university.de [212.201.44.49]) by hermes.jacobs-university.de (Postfix) with ESMTP id B4ED620035; Fri, 6 Apr 2018 10:18:31 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius4.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id wgtZqmZ0QKvm; Fri, 6 Apr 2018 10:18:31 +0200 (CEST)
Received: from elstar.local (unknown [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 08A3020031; Fri, 6 Apr 2018 10:18:31 +0200 (CEST)
Received: by elstar.local (Postfix, from userid 501) id DA28D42AB097; Fri, 6 Apr 2018 10:18:30 +0200 (CEST)
Date: Fri, 06 Apr 2018 10:18:30 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: "Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com>
Cc: Ladislav Lhotka <lhotka@nic.cz>, Alex Campbell <Alex.Campbell@Aviatnet.com>, "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20180406081830.go3hfajpr4hp6svm@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: "Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com>, Ladislav Lhotka <lhotka@nic.cz>, Alex Campbell <Alex.Campbell@Aviatnet.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <AM4PR07MB1716AECAC144285D98B0E1EE94BB0@AM4PR07MB1716.eurprd07.prod.outlook.com> <1522972773708.26374@Aviatnet.com> <95e15ae380a2e114a8defa3ad924d73c15137b1b.camel@nic.cz> <AM4PR07MB1716DDB1796AA320616F7C0F94BA0@AM4PR07MB1716.eurprd07.prod.outlook.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <AM4PR07MB1716DDB1796AA320616F7C0F94BA0@AM4PR07MB1716.eurprd07.prod.outlook.com>
User-Agent: NeoMutt/20171215
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/qG_o1fa22uGFYRxua_SSoK8gHBE>
Subject: Re: [netmod] An abundant amount of IANA if types...
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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, 06 Apr 2018 08:18:36 -0000

If we would have a mechanism to deviate an identityref to a subset of
identity values supported by an implementation, we would have solved a
more generic problem. Yes, the IANA list could be 'nicer' but it will
never be 'nice'.

/js

On Fri, Apr 06, 2018 at 08:12:03AM +0000, Bogaert, Bart (Nokia - BE/Antwerp) wrote:
> Alex,
> 
> Not sure if this only has to do with "practical limitations providing a CLI interface"...   In a machine-to-machine interface this is less of a problem but in a human-to-machine interface it seems a bit impractical to me to find a solution for a problem to scroll through a list of 100+ completions if an operator would ask for the possible completion in case he does not know what to provide as input.  There are ways to limit this output but it can be solved on a modelling level as well.  As I indicated identities can be conditional to a feature and if implementations choose not to implement a set of interface-type related features the list becomes (a whole lot) shorter "by itself".  Now iana-if-type is just a collection of all interface types that have been defined once without any kind of "structure".
> 
> Regards, Bart
> 
> -----Original Message-----
> From: Ladislav Lhotka [mailto:lhotka@nic.cz] 
> Sent: Friday, April 6, 2018 9:55 AM
> To: Alex Campbell <Alex.Campbell@Aviatnet.com>; Bogaert, Bart (Nokia - BE/Antwerp) <bart.bogaert@nokia.com>; netmod@ietf.org
> Subject: Re: [netmod] An abundant amount of IANA if types...
> 
> Hi,
> 
> I have argued several times in the past that the IANA interface list (and, for that matter, the iana-if-type module) is a useless pile of rubbish because
> 
> - for some interface classes (Ethernet, tunnels) it is way too coarse-grained
> 
> - on the other hand, it contains a lot of stuff that nobody will ever use
> 
> - using the cabalistic (and wrong, in fact) name "ethernetCsmacd" for Ethernet is outright stupid
> 
> - YANG identities allow for encoding important relationships in interface types,in the flat list all this information is lost 
> 
> - as you say, implementing the iana-if-type module means that all interface types listed therein become valid.
> 
> So yes, I do believe that it would be useful if authoritative expert groups develop a better structure of interface type identities.
> 
> Lada
>   
> On Thu, 2018-04-05 at 23:59 +0000, Alex Campbell wrote:
> > I haven't seen any previous discussions on the topic, but we have a 
> > similar problem.
> > Note this is not really to do with YANG itself, so much as the 
> > practical limitations of the software package that provides our CLI interface.
> > In NETCONF, the existence of extra unused identities doesn't pose any problem.
> > 
> > From: netmod <netmod-bounces@ietf.org> on behalf of Bogaert, Bart 
> > (Nokia -
> > BE/Antwerp) <bart.bogaert@nokia.com>
> > Sent: Thursday, 5 April 2018 8:21 p.m.
> > To: netmod@ietf.org
> > Subject: [netmod] An abundant amount of IANA if types...
> >  
> > Hi,
> >  
> > We were wondering if it would make sense to introduce features in the 
> > IANA if types YANG model to enable grouping of related interface 
> > types.  This would allow implementations to include only the types it 
> > really requires (by supporting the related features but not the 
> > others) and (in case of a CLI
> > interface) would reduce the possible completions if an operator would 
> > ask for the possible values of the type of an interface.
> > Has this ever been considered/discussed?
> >  
> > Best regards,
> > Bart
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
> --
> Ladislav Lhotka
> Head, CZ.NIC Labs
> PGP Key ID: 0xB8F92B08A9F76C67
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

-- 
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/>