Re: [Rtg-yang-coord] LIME connection-less draft-rtgyangdt-rtgwg-routing-types

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Mon, 14 November 2016 06:39 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: rtg-yang-coord@ietfa.amsl.com
Delivered-To: rtg-yang-coord@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 610F8129459; Sun, 13 Nov 2016 22:39:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.697
X-Spam-Level:
X-Spam-Status: No, score=-5.697 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-1.497] 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 txfN61_R_aEP; Sun, 13 Nov 2016 22:39:47 -0800 (PST)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0DCEE12954E; Sun, 13 Nov 2016 22:39:44 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 41C4D16BB; Mon, 14 Nov 2016 07:39:42 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.205]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id d2H3U5efytfs; Mon, 14 Nov 2016 07:39:41 +0100 (CET)
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 atlas3.jacobs-university.de (Postfix) with ESMTPS; Mon, 14 Nov 2016 07:39:41 +0100 (CET)
Received: from localhost (demetrius4.jacobs-university.de [212.201.44.49]) by hermes.jacobs-university.de (Postfix) with ESMTP id D14CC20053; Mon, 14 Nov 2016 07:39:41 +0100 (CET)
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 EzXVpWAsaDX4; Mon, 14 Nov 2016 07:39:40 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 8B4B520050; Mon, 14 Nov 2016 07:39:40 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 4A9073D3BC08; Mon, 14 Nov 2016 07:39:38 +0100 (CET)
Date: Mon, 14 Nov 2016 07:39:38 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: draft-rtgyangdt-rtgwg-routing-types@ietf.org
Message-ID: <20161114063938.GA45227@elstar.local>
Mail-Followup-To: draft-rtgyangdt-rtgwg-routing-types@ietf.org, Benoit Claise <bclaise@cisco.com>, "lime@ietf.org" <lime@ietf.org>, "<rtg-ads@ietf.org>" <rtg-ads@ietf.org>, "Rtg-yang-coord@ietf.org" <rtg-yang-coord@ietf.org>, "Joe Clarke (jclarke)" <jclarke@cisco.com>
References: <7c9884b6-f786-22af-0ab1-5b410ae5237d@cisco.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <7c9884b6-f786-22af-0ab1-5b410ae5237d@cisco.com>
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-yang-coord/yGDqnAljMkUKTaFqW79SVqmR3w4>
Cc: Benoit Claise <bclaise@cisco.com>, "<rtg-ads@ietf.org>" <rtg-ads@ietf.org>, "Joe Clarke \(jclarke\)" <jclarke@cisco.com>, "lime@ietf.org" <lime@ietf.org>, "Rtg-yang-coord@ietf.org" <rtg-yang-coord@ietf.org>
Subject: Re: [Rtg-yang-coord] LIME connection-less draft-rtgyangdt-rtgwg-routing-types
X-BeenThere: rtg-yang-coord@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
List-Id: "\"List to discuss coordination between the Routing related YANG models\"" <rtg-yang-coord.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-yang-coord>, <mailto:rtg-yang-coord-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtg-yang-coord/>
List-Post: <mailto:rtg-yang-coord@ietf.org>
List-Help: <mailto:rtg-yang-coord-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-yang-coord>, <mailto:rtg-yang-coord-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Nov 2016 06:39:50 -0000

Another option could be to reuse the definitions from ietf-inet-types
and to subtype them to constrain them to multicast addresses. Also
double check that you will never ever need a zone index.

/js

On Mon, Nov 14, 2016 at 12:08:31PM +0900, Benoit Claise wrote:
> draft-rtgyangdt-rtgwg-routing-types authors,
> 
> I see the following typedef in draft-ietf-lime-yang-connectionless-oam
> 
>      typedef IPv4-Multicast-Group-Address {
>             type string {
>              pattern '(2((2[4-9])|(3[0-9]))\.)'
>                          +'(([0-9]|[1-9][0-9]|1[0-9][0-9]|'
>                          +'2[0-4][0-9]|25[0-5])\.){2}'
>                          +'([0-9]|[1-9][0-9]|1[0-9][0-9]'
>                          +'|2[0-4][0-9]|25[0-5])';
>             }
>             description
>               "The IPv4-Multicast-Group-Address type
>                represents an IPv4 multicast address
>                in dotted-quad notation.";
>             reference "RFC4607 <https://tools.ietf.org/html/rfc4607>";;
>       } // typedef IPv4-Multicast-Group-Address
>       typedef IPv6-Multicast-Group-Address {
>             type string {
>             pattern
>                         '(((FF|ff)[0-9a-fA-F]{2}):)([0-9a-fA-F]'
>                         +'{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?'
>                         +'(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4]'
>                         +'[0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|'
>                         +'2[0-4][0-9]|[01]?[0-9]?[0-9])))';
>             pattern
>             '(([^:]+:){6}(([^:]+:[^:]+)|'
>                         +'(.*\..*)))|((([^:]+:)*[^:]+)'
>                         +'?::(([^:]+:)*[^:]+)?)';
>              }
>             description
>                         "The IPv6-Multicast-Group-Address
>                         type represents an IPv6 address in full,
>                         mixed, shortened, and shortened-mixed
>                         notation.";
>             reference "RFC4291 <https://tools.ietf.org/html/rfc4291>  2.7.
>             ietf-inet-types:ipv6-address";
>       }
>       typedef IP-Multicast-Group-Address {
>             type union {
>               type IPv4-Multicast-Group-Address;
>               type IPv6-Multicast-Group-Address;
>             }
> 
>             description
>              "The IP-Multicast-Group-Address type
>               represents an IP multicast address and
>               is IP version neutral. The format of the
>               textual representations implies the IP version.";
>       } // typedef IP-Multicast-Group-Address
> 
> 
> It's probably a good idea to introduce those typedefs in your draft, for
> everybody's interest.
> Now, hopefully, your draft will be published very soon. We can't delay other
> doc publications.
> 
> Also, look at this new tool, developed during this hackathon (new tool, so
> bare with us): http://yangcatalog.org/yang-search/yang-search.php
> You should do a couple of searches with specific keywords.
> For example, I searched on "multicast" and typedef.
>     Note: we get some hits from YANG modules generated from MIB. Not sure
> how useful that is.
> We want to make sure there are no discrepancies in the typedef, and that the
> typedef definitions are not spread around in too many documents.
> 
> Regards, Benoit
> 
> 

> _______________________________________________
> Rtg-yang-coord mailing list
> Rtg-yang-coord@ietf.org
> https://www.ietf.org/mailman/listinfo/rtg-yang-coord


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