Re: Blog: YANG Really Takes Off in the Industry

Brian E Carpenter <brian.e.carpenter@gmail.com> Tue, 09 December 2014 19:39 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7A9AB1A1A54 for <ietf@ietfa.amsl.com>; Tue, 9 Dec 2014 11:39:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
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 iRw44_jzpxFz for <ietf@ietfa.amsl.com>; Tue, 9 Dec 2014 11:39:40 -0800 (PST)
Received: from mail-pd0-x233.google.com (mail-pd0-x233.google.com [IPv6:2607:f8b0:400e:c02::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3282F1A1A50 for <ietf@ietf.org>; Tue, 9 Dec 2014 11:39:40 -0800 (PST)
Received: by mail-pd0-f179.google.com with SMTP id fp1so1180264pdb.10 for <ietf@ietf.org>; Tue, 09 Dec 2014 11:39:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:organization:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=Z56fQp9ajORcHlQ9rUnqcXrDkii/5Kd+3WoZP4G9pFk=; b=zDMFscRSnL3dhCJJzsVC6FIuc0OL2Vs90AYGMPcEPZLB9MJgQupjyQ1+qtvWKJo81o HTfsG6uWb1HovAm7dk4ZOnlu3e6dj0sSaFzecsTZPKDFIAR5qq9fh0M2Ausm1EiyMlWs fdN0CRK6DJF0nSo6qHnrT9Zv03Lc8XLmckaNhNORJJCwo4gEsO4kux8XmcIBPfSK55jj yFDqFZh567fGlYs14q9jc40EijCXHmm2VqtR9Pk1htB9E47+kOSW47W4XvCWAm4kJINl BD7dadHsIOlTkIaMYS+qPbqum5rNe4P9hx/DON3y1FRbLjpIK/dFGF0i6xADIXJTiHgB Y3IA==
X-Received: by 10.68.97.131 with SMTP id ea3mr81560pbb.144.1418153979411; Tue, 09 Dec 2014 11:39:39 -0800 (PST)
Received: from [192.168.178.26] (101.230.69.111.dynamic.snap.net.nz. [111.69.230.101]) by mx.google.com with ESMTPSA id zn2sm2189133pbb.41.2014.12.09.11.39.36 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Dec 2014 11:39:38 -0800 (PST)
Message-ID: <54874FFD.4010506@gmail.com>
Date: Wed, 10 Dec 2014 08:39:41 +1300
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: Ted Lemon <Ted.Lemon@nominum.com>
Subject: Re: Blog: YANG Really Takes Off in the Industry
References: <54770BA5.5060603@cisco.com> <809EFD2B-A845-46B7-A394-A9C9E5393CD5@piuha.net> <547874D6.1090001@cisco.com> <7890AE32-F7A9-4C32-9C3D-8251E70B1F29@lucidvision.com> <m2sigyhpxc.wl%randy@psg.com> <8BBBDF7F-00A0-44BD-AA64-DA7044D35012@lucidvision.com> <C51AC247-C16D-4452-874E-0D97BDB009EB@juniper.net> <547D0AEA.4020309@gmail.com> <0BFD0B22-EC45-473F-8E7A-7FB608B60E6F@juniper.net> <139D837E-F131-4791-A026-234699A7E617@nominum.com> <01f901d00ee4$3c077b40$4001a8c0@gateway.2wire.net> <FF42158A-AC42-4EBF-9FCB-1A3EF4162027@nominum.com> <00f601d013bd$a1d23900$4001a8c0@gateway.2wire.net> <822FFCEB-7848-484E-9231-9BFDA4B97672@nominum.com>
In-Reply-To: <822FFCEB-7848-484E-9231-9BFDA4B97672@nominum.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/ietf/Bu5y6ASeuWsLBlhRJJb1AvJlGJQ
Cc: IETF-Discussion list <ietf@ietf.org>
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Dec 2014 19:39:41 -0000

On 10/12/2014 03:54, Ted Lemon wrote:
> On Dec 9, 2014, at 9:31 AM, t.p. <daedulus@btconnect.com> wrote:
>> The expression that controls the permissible format of IPv6 addresses in
>> yang-types is of this ilk.
>> "       type string {
>>         pattern '((:|[0-9a-fA-F]{0,4}):)([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])))'
>>               + '(/(([0-9])|([0-9]{2})|(1[0-1][0-9])|(12[0-8])))';
>>         pattern '(([^:]+:){6}(([^:]+:[^:]+)|(.*\..*)))|'
>>               + '((([^:]+:)*[^:]+)?::(([^:]+:)*[^:]+)?)'
>>               + '(/.+)'; "
>> which was got wrong several times before it became what it is now (which
>> rings alarm bells for me).
> 
> Wow, so there's no way to do this ABNF-style?

In fairness, it took numerous attempts to get the ABNF for the text
representation of IPv6 addresses right, with RFC 6874 being the latest
twist (which, if I am not mistaken, is not covered by the above
gobbledygook; at least, I don't see anything in there that seems
equivalent to '"%25" ZoneID', but maybe I missed it).

    Brian