Re: [netmod] I-D Action: draft-ietf-netmod-interfaces-cfg-11.txt

Ladislav Lhotka <lhotka@nic.cz> Mon, 17 June 2013 15:00 UTC

Return-Path: <lhotka@nic.cz>
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 15FA121F9CEB for <netmod@ietfa.amsl.com>; Mon, 17 Jun 2013 08:00:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.773
X-Spam-Level:
X-Spam-Status: No, score=-1.773 tagged_above=-999 required=5 tests=[AWL=0.226, BAYES_00=-2.599, J_CHICKENPOX_23=0.6]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RLxtRcmprfgs for <netmod@ietfa.amsl.com>; Mon, 17 Jun 2013 08:00:03 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) by ietfa.amsl.com (Postfix) with ESMTP id AD9B821F9CEA for <netmod@ietf.org>; Mon, 17 Jun 2013 08:00:02 -0700 (PDT)
Received: from [172.29.2.202] (nat-5.bravonet.cz [77.48.224.5]) by mail.nic.cz (Postfix) with ESMTPSA id AC5ED13FCB8; Mon, 17 Jun 2013 17:00:01 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nic.cz; s=default; t=1371481201; bh=9A9ZriK8LXR6Wn8mlD80X1MRxRpRkqiEdpDxexFC0tc=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To; b=Q/hKn/N6PYRLZ9rFUpLqKzhBGG0tXFD8Q1EYrVV4SfJjbGx5b7n67e97GRqPw4Xqe Exz0U46mi7Gxgkahp/217eVQalNsdpdc+8l8tqd1K88+FX5kWs2zpTNzWya5ePhLVU RrFUkGD5HM35hurGDdVM5JeixkAVt0c+EtPU1vbM=
Content-Type: text/plain; charset="iso-8859-1"
Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <CABCOCHRbqJ4BaQYc2L5ZO7RhZMSC3cuNECXOVHfqmXJeECLE7A@mail.gmail.com>
Date: Mon, 17 Jun 2013 17:00:01 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <24A7D8DE-AE8C-407F-9C3D-BBA617A030B6@nic.cz>
References: <20130522.075021.510632113.mbj@tail-f.com> <CABCOCHR0i_e03FtbwmPPGnysowPZTVLzZV7q3TX_+SgSuAnNPQ@mail.gmail.com> <20130522.083817.336589153.mbj@tail-f.com> <CABCOCHR_QqPV13Z+jWVcwpxTtrvGQg4JLudP9Hxb54Z154MfXA@mail.gmail.com> <00a101ce57ca$50c19fc0$4001a8c0@gateway.2wire.net> <20130523182554.GB34233@elstar.local> <EAB5EAE0-7406-4F6B-A636-E044FE51EA49@nic.cz> <019d01ce5b86$71d43140$4001a8c0@gateway.2wire.net> <5AB07445-A5EA-4105-B5CE-85B14D3BF397@nic.cz> <B0FB1FAC2C7B234D87DCEBF309F703C55344B606@CINURCNA15.e2k.ad.ge.com> <20130529235204.GA58491@elstar.local> <m2y5a8q4uo.fsf@nic.cz> <CABCOCHRbqJ4BaQYc2L5ZO7RhZMSC3cuNECXOVHfqmXJeECLE7A@mail.gmail.com>
To: Andy Bierman <andy@yumaworks.com>
X-Mailer: Apple Mail (2.1508)
X-Virus-Scanned: clamav-milter 0.97.8 at mail
X-Virus-Status: Clean
Cc: netmod@ietf.org
Subject: Re: [netmod] I-D Action: draft-ietf-netmod-interfaces-cfg-11.txt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.12
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: <http://www.ietf.org/mail-archive/web/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: Mon, 17 Jun 2013 15:00:05 -0000

On Jun 17, 2013, at 4:41 PM, Andy Bierman <andy@yumaworks.com> wrote:

> Hi,
> 
> I think we should publish what we have, which is more aligned with
> existing implementations and SNMP.  The enhancements you
> describe could be added in the future with augments or a module update.
> An identity in addition to an IANA enum is OK.

The crucial thing is what will be used for restricting augments in future modules (be it in "when" statements or just in descriptions). The current document assumes and recommends the "type" leaf for this purpose, but I am arguing it can hardly work in reality.

The alignment with SNMP can be approached from the opposite end by introducing an extra leaf, say "iana-type", that could be a part of the "if-mib" feature.

Lada

> 
> 
> Andy
> 
> 
> On Mon, Jun 17, 2013 at 5:49 AM, Ladislav Lhotka <lhotka@nic.cz> wrote:
> Hi,
> 
> the discussion below doesn't seem to have reached any conclusion. But whatever the answer to Juergen's question might be, I think we should consider the "type" leaf again, because:
> 
> 1. The "type" leaf is useful in YANG for restricting some configuration parameters for use only with a certain interface type. The existing values in the "iana-if-type" enumeration, such as "ethernetCsmacd" or "tunnel", don't seem very effective in this respect. What we need is the type information that's often encoded in (platform-specific) interface names, for example TenGigabitEthernet0/1, gr-0/0/0 or ppp0.
> 
> 2. We actually need a *hierarchy* of interface types, whereas "iana-if-type" is flat. For instance, take the Ethernet example in Appendix A: The "when" condition
> 
>        when "if:type = 'ethernetCsmacd'";
> 
> causes the generic Ethernet parameters to apply only to this particular type, but not to any specialized Ethernet type, say "ieee-802.11bgn" (if this was ever registered by IANA).
> 
> 3. The set of permitted types should be easily extensible, without the need to go to IANA first.
> 
> In my opinion, YANG identity is a much better choice for the type of "type" because it satisfies all three requirements. No extra registry is needed for identities because they will be registered indirectly through the module where they are defined.
> 
> It is possible that a simple hierarchy of interface types won't be enough for representing the variety of real-world interfaces with all their properties and features. But then additional (type-specific) parameters could be introduced and used along with "type" for conditional augments.
> 
> Lada
> 
> Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> writes:
> 
> > On Wed, May 29, 2013 at 05:53:19PM +0000, Lange, Jeffrey K (GE Energy Management) wrote:
> >> Martin asked that I provide my $0.02 on this draft as we've created
> >> an implementation against the -08 version. So here we go...
> >>
> >> In general I like having the interface-state separate from the
> >> interface configuration, it provides an easy way for a user to see
> >> what devices are currently in the system and are available for
> >> configuration.  In our -08 implementation we created a
> >> /interfaces/physical-interfaces table that would be pre-populated by
> >> the factory with the interfaces that are available for that
> >> particular product.  Note that our product is not customer
> >> expandable, so the interfaces that ship with the unit are the only
> >> ones that the customer can configure (ignoring logical interfaces).
> >> By having this config false list of interfaces we could achieve the
> >> same thing in a more standard way.
> >
> > This is _very_ welcome feedback. Implementation experience is always
> > very welcome - if others implement things as well, please consider to
> > share your experiences. This helps a lot.
> >
> >> We have many proprietary interface types (primarily different types
> >> of in-house radio interfaces) that do not fit into the categories
> >> defined by iana-if-type.  Sure you could use the argument "well then
> >> get them added via iana".  But that will never happen.
> >
> > I have to ask this so I do better understand. Why will this never
> > happen?
> >
> > - Is the procedure to register your interface type too complex?
> >
> > - Is the interface type kind of secret and hence you do not want to
> >   have it registered somewhere?
> >
> > - Is it that developers simply would not know how to register a new
> >   interface type and choose a random value anyway?
> >
> > - Something else?
> >
> > /js
> >
> > --
> > Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> > Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
> > Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>
> > _______________________________________________
> > netmod mailing list
> > netmod@ietf.org
> > https://www.ietf.org/mailman/listinfo/netmod
> 
> --
> Ladislav Lhotka, CZ.NIC Labs
> PGP Key ID: E74E8C0C
> _______________________________________________
> 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

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C