Re: [netmod] LL review of draft-ietf-netmod-intf-ext-yang-03

Robert Wilton <rwilton@cisco.com> Thu, 22 December 2016 14:32 UTC

Return-Path: <rwilton@cisco.com>
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 27559129483 for <netmod@ietfa.amsl.com>; Thu, 22 Dec 2016 06:32:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.622
X-Spam-Level:
X-Spam-Status: No, score=-17.622 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-3.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com
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 sWuHbhb_Cw3y for <netmod@ietfa.amsl.com>; Thu, 22 Dec 2016 06:32:28 -0800 (PST)
Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BBA75129512 for <netmod@ietf.org>; Thu, 22 Dec 2016 06:32:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3313; q=dns/txt; s=iport; t=1482417147; x=1483626747; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=NbEvUrikCpxf12UrnpIw+rS+t64SFRWPANqDfZGOyac=; b=Q7yrIV5XZovob8zwKcot8i8Uy8yWusgcUJZWSi5VVa0ggL2sGNGKJvS5 ECptCd1BqbW7CD6TIBqK2wMqt3FzxDhClf9CY0xNT1wV5Pr2OXJQ5DX/r AeEYqKTN6nhT925BqRtBlvAkF6S2xybo+e+SfaKy3Hacl+rvIIm6ndj2Y I=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0D+AABz41tY/xbLJq1eGQEBAQEBAQEBAQEBBwEBAQEBgzUBAQEBAYEqjipylWCVFYIJhiICgisUAQIBAQEBAQEBYiiEaAEBAQMBIw8BBVELGAICJgICVwYBDAgBAYhhCKlZgiiLBQEBAQEBAQEDAQEBAQEBAQEggQuFPYICgmGHT4JdBY8Ei3WROoojhi+KQINmhA8fN4EHFg0uhWE+iR0BAQE
X-IronPort-AV: E=Sophos;i="5.33,388,1477958400"; d="scan'208";a="650942165"
Received: from aer-iport-nat.cisco.com (HELO aer-core-3.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Dec 2016 14:32:25 +0000
Received: from [10.63.23.74] (dhcp-ensft1-uk-vla370-10-63-23-74.cisco.com [10.63.23.74]) by aer-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id uBMEWPdM012977; Thu, 22 Dec 2016 14:32:25 GMT
To: Ladislav Lhotka <lhotka@nic.cz>, netmod@ietf.org
References: <m2h95xxwee.fsf@birdie.labs.nic.cz>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <33d0132e-750b-97ed-8bdb-0befeb1b81c3@cisco.com>
Date: Thu, 22 Dec 2016 14:32:18 +0000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <m2h95xxwee.fsf@birdie.labs.nic.cz>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Fy60JICOnPtZnDp5e4bBhSJphH0>
Subject: Re: [netmod] LL review of draft-ietf-netmod-intf-ext-yang-03
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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, 22 Dec 2016 14:32:29 -0000

Hi Lada,

Thanks for the review and comments.


On 21/12/2016 13:08, Ladislav Lhotka wrote:
> Hi,
>
> I think this is a very useful addition to ietf-interfaces. In general,
> the document is clearly written and YANG modules nicely designed. Here
> are my comments:
>
> *** Sec. 1
>      - "This document defines two YANG RFC 7950 [RFC7950] modules …"
>        looks weird. I'd suggest "… YANG 1.1 [RFC7950] …" instead.
OK.
> *** Sec. 2
>      - first line: s/of of/of/
> *** Sec. 3.1
>      - If the "bandwidth" parameter is only used for tuning routing
>        algorithms and has nothing to do with real bandwidth on the
>        interface, I would suggest to use a different name
>        (metric?). Perhaps it may indeed be better to leave this to
>        routing protocol modules because they can also specify how
>        exactly such a parameter is used.
Yes, possibility it would be better to define this as part of the 
routing models.  The idea here is that the bandwidth would span across 
the routing protocols rather than be tied to a specific protocol.

> *** Sec. 3.6
>      - The "l3-mtu" parameter is probably the same as "mtu" defined in
>        ietf-ip. Again, I would suggest to leave the definition of MTU
>        to each L3 protocol because there may be specific aspects and
>        constraints.
The MTU being defined here is an "l2-mtu" parameter.  I.e. the maximum 
size of the L2 frames that can be sent/received.  For some devices this 
value is independent of a protocol specific L3 MTU that only affects 
that particular protocol instance.

> *** Sec. 3.8
>      - I think that "transport-layer" is not a good name because in the
>        ISO OSI model it denotes a particular layer (L4). How about
>        "iso-osi-layer"?
>      - The type of "transport-layer" has three enums, namely
>        "layer-[123]". I would suggest to use descriptive names
>        ("physical-layer" etc.), include the remaining layers of the ISO
>        OSI model, and maybe also define it as a typedef - or does this
>        belong to ietf-inet-types?
>      - Is a leaf sufficient? I think some interfaces can be in multiple
>        layers at the same time (e.g. an ATM interface is L3 but can
>        also be L2 for Classical IP over ATM). Or is the idea that such
>        an interface will be split into two entries of the "interface"
>        list?
This needs some further thought/work.

The main idea here was to be able to label sub-interfaces as supporting 
only L2 services or L3 services, since on some platforms different types 
of interfaces get instantiated internally.

> *** YANG modules
>      - Descriptions are not consistently formatted. I think that the
>        current BCP is to start description text on the same line as the
>        "description" keyword only if it all fits on one line.
>      - I don't have a strong opinion on this but it might increase
>        readability if the number of augments is reduced. Perhaps at
>        least augments that contain only one node could be made into one
>        (and the "feature" and "when" statements moved to the nodes'
>        definitions.
Yes, I'll fix these, probably using Martin's suggested approach.

Thanks again,
Rob

>
> Lada
>