Re: [netmod] draft-wilton-netmod-interface-properties-00

Ladislav Lhotka <lhotka@nic.cz> Thu, 27 July 2017 09:12 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 112E9131822 for <netmod@ietfa.amsl.com>; Thu, 27 Jul 2017 02:12:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7
X-Spam-Level:
X-Spam-Status: No, score=-7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 IkN69CESLDBf for <netmod@ietfa.amsl.com>; Thu, 27 Jul 2017 02:12:53 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (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 8AE7413188F for <netmod@ietf.org>; Thu, 27 Jul 2017 02:12:52 -0700 (PDT)
Received: from [IPv6:2001:718:1a02:1:799c:72ce:4320:d6e5] (unknown [IPv6:2001:718:1a02:1:799c:72ce:4320:d6e5]) by mail.nic.cz (Postfix) with ESMTPSA id A58BA62414; Thu, 27 Jul 2017 11:12:50 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1501146770; bh=KQ775BT2ao/ptaeetTJdyJ9r9OLLWpwWZotb1mNr92c=; h=From:Date:To; b=GbL/m870bB8r1hrFnCEJGSGwJcXZpt5cxCCaIe0BfYAt3ECIFD4O8FdIwXTXzM3LU b5XtcxEikRkL1p2LjYj6MbUquNoZBIBq2Jv+ssIwk0AgkJ3ObyLZcJyknK23RwSm/6 oRI+aA800JJAt8SJQId7kTbsKVHsdyowq/eOoKPk=
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <20170727073143.GA27636@elstar.local>
Date: Thu, 27 Jul 2017 11:12:50 +0200
Cc: Alex Campbell <Alex.Campbell@Aviatnet.com>, Robert Wilton <rwilton@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Transfer-Encoding: quoted-printable
Message-Id: <0FD5ED43-E53E-4847-AEB6-DA804630DC59@nic.cz>
References: <ec8da209-5e8f-9eb0-28d1-149858c3708a@cisco.com> <m2k22vzgy6.fsf@birdie.labs.nic.cz> <1501111035566.49813@Aviatnet.com> <20170727073143.GA27636@elstar.local>
To: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>
X-Mailer: Apple Mail (2.3273)
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/E9mqn4M9qRw0yhgLwXvS6vGyKW4>
Subject: Re: [netmod] draft-wilton-netmod-interface-properties-00
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: Thu, 27 Jul 2017 09:12:56 -0000

> On 27 Jul 2017, at 09:31, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> 
> Hi,
> 
> what is needed is a clear and crisp description what terms such as
> "ethernet-like", "ethernet-mac-like", "ethernet-phy-like" really mean.
> Ideally, proposals for terms would include such descriptions, perhaps
> including examples where these terms apply and where they do not
> apply. The devil is in the details.

Even better, these identities could be defined along with the corresponding configuration and state data. From the viewpoint of data modelling, everything would then be absolutely clear.

Lada

> 
> /js
> 
> On Wed, Jul 26, 2017 at 11:17:16PM +0000, Alex Campbell wrote:
>> Hi,
>> 
>> I would very much like to see this happen.
>> 
>> However I recommend at least splitting up "ethernet-like" into "ethernet-mac-like" and "ethernet-phy-like". At Aviat we have microwave radio interfaces that behave like Ethernet at the MAC level but have totally different PHYs. The distinction is also useful for virtual links, such as link aggregations and tunnels.
>> 
>> ________________________________________
>> From: netmod <netmod-bounces@ietf.org> on behalf of Ladislav Lhotka <lhotka@nic.cz>
>> Sent: Wednesday, 26 July 2017 9:27 p.m.
>> To: Robert Wilton; netmod@ietf.org
>> Subject: Re: [netmod] draft-wilton-netmod-interface-properties-00
>> 
>> Hi Rob,
>> 
>> I think this is a very useful work and we will probably implement it
>> soon. A few comments:
>> 
>> - I support the proposed redesign of "iana-if-type" but I believe this
>>  module should in fact be declared historic. For one, the name of the
>>  most frequently used type, "ethernetCsmacd", is not only notoriously
>>  hard to remember but it is also a misnomer: these days, almost no
>>  Ethernet network uses CSMA/CD any more. Instead, "csma-cd" can be
>>  another identity that could be added to the mix of bases where
>>  necessary.
>> 
>> - Interface type identities should be defined in a distributed way and
>>  not in a single module as in "iana-if-type". A module defining
>>  configuration and state data for a particular technology should also
>>  define the corresponding identity or identities. This way, the choice
>>  of interface types will always be limited to those supported by a
>>  specific server.
>> 
>> - In Appendix B I don't understand the comment in the definition of
>>  container "encapsulation": what could be the abstract type and how
>>  would it aid extensibility?
>> 
>> Thanks, Lada
>> 
>> Robert Wilton <rwilton@cisco.com> writes:
>> 
>>> Hi,
>>> 
>>> In the NETMOD session on Wednesday I will spend 5 minutes speaking on
>>> draft-wilton-netmod-interface-properties-00, that has been created due
>>> to discussions with various folks to handle interface type specific
>>> configuration.
>>> 
>>> The draft isn't particularly long, 21 pages, two thirds of that is just
>>> examples, and it is presenting a simple idea.
>>> 
>>> In particular, it is aiming at solving the problem of when statements
>>> like this:
>>> 
>>>      augment "/if:interfaces/if:interface" {
>>>        when "derived-from-or-self(if:type, 'ianaift:ethernetCsmacd') or
>>>              derived-from-or-self(if:type, 'ianaift:ieee8023adLag') or
>>>              derived-from-or-self(if:type, 'ianaift:l2vlan') or
>>>              derived-from-or-self(if:type, 'ianaift:ifPwType')" {
>>>          description "Applies to all Ethernet-like interfaces";
>>>        }
>>> 
>>> and instead proposes this:
>>> 
>>>     augment "/if:interfaces/if:interface" {
>>>       when "derived-from(if:type, 'ianaifp:ethernet-like')" {
>>>         description
>>>           "Applies to all interfaces that derive from the Ethernet-like
>>>            interface property.";
>>>       }
>>> 
>>> The core idea being that new identities are defined to represent
>>> interface properties (like ethernet-like) and the existing interface
>>> types iana-if-types.yang are updated to also derive from the new
>>> interface properties.
>>> 
>>> This simplifies the YANG, should make interface based configuration more
>>> future proof, since new interface types can also derive from the
>>> appropriate interface properties.  Of course additional interface
>>> properties could also be defined.
>>> 
>>> I'm seeking input from the WG as to whether they like this approach, AND
>>> also whether the WG drafts: draft-ietf-netmod-intf-ext-yang-05 and
>>> draft-ietf-netmod-sub-intf-vlan-model-02 should be updated to make use
>>> of this approach (possibly in a future bis revision to avoid delaying
>>> publishing the models).
>>> 
>>> Thanks,
>>> Rob
>>> 
>>> _______________________________________________
>>> 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
>> 
>> _______________________________________________
>> 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         <http://www.jacobs-university.de/>

--
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67