Re: [netmod] Potential additions to rfc6087bis: RegEx guidelines

Andy Bierman <andy@yumaworks.com> Sat, 02 September 2017 16:46 UTC

Return-Path: <andy@yumaworks.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 26DC3126B6D for <netmod@ietfa.amsl.com>; Sat, 2 Sep 2017 09:46:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 wBUjW3BmHlYk for <netmod@ietfa.amsl.com>; Sat, 2 Sep 2017 09:46:40 -0700 (PDT)
Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2159B132FD6 for <netmod@ietf.org>; Sat, 2 Sep 2017 09:46:40 -0700 (PDT)
Received: by mail-it0-x231.google.com with SMTP id j17so5912901iti.1 for <netmod@ietf.org>; Sat, 02 Sep 2017 09:46:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=zTJ0+1a7rGGfdh2zROtZNSKFaSvTZEk790uAwV6+C9w=; b=RD4WRxUr080JfnO+m0T0MpolxuWYfcZGHsGLzp4Zb+6Pq4IgXic4XXJOzafv5TDFys 3dcLHgb5DOJ+irfSPe3PQl0pje5rM8dDDlstaKZdcqmkBYObkma7Cvo28S72ziBvB/a8 LRsks95YPBYJjBwZFSI8ZB4c0fEsrxtWTxdO6aQkOjWSMeV9jY0+0SLCsSGyXM2riu0S b1FqvcgSsEsMkvVXSUa2NI1K4PlUDL9sYogcPvkzsFS03PZyZeeNLt+1FvQprp/jVhKW g0PX6EKuaNQ2l21wp1tPTaPG19Cud8x1Ly163X+lo/tZX9R1d8Sn+xa0A6HanWS0p8Zh HUbw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=zTJ0+1a7rGGfdh2zROtZNSKFaSvTZEk790uAwV6+C9w=; b=URVHr8ld9r6nEOZ3pjJ6SPMcxSbXm6YiOel/L7/f7P/xCifcUHi7U1YwtRO3xfDCzC 6TI8SNpcWaI/GZV/3p/mesQDP6JTZ3jk8kerqsIW7QxlQx6DvNtPqEDO2dI1jQ03nUGy PzR+0Q4bB3YRx4JO18vSrqM5V/lViPAfFJgHo1Jq19SvF3TEmTXjAPKYbEpjaoAtPO+3 ZcuMY62LjXaHQgrO3+/GeIU1x6LSNonNlowWH/uwATVyU+/z6iWbiRwy3TDt3EieoGc8 Hk9A09xQNsLAHkyo1PPqgAGsYXsuGGnkdz+ZRzMlGKl03e3ebCfYVTi4LNM7L0rh7nru We7g==
X-Gm-Message-State: AHPjjUhNxU5JIz9jBYVvY35B2+5Iy4M4AAqT+DnTkHazWgf6nT5J89LU bXk4yRDCdR5STDcgkwklS7C+RURLbEaC
X-Google-Smtp-Source: ADKCNb6UJg6cyCtf7cv9ukGAHH7bgTBfQbPsbsNlOtw9/mF0RybsoNP44kNQfslMk03ZQjEfM/cqWtZgHnCDsHdTXCo=
X-Received: by 10.36.40.138 with SMTP id h132mr1562073ith.26.1504370799428; Sat, 02 Sep 2017 09:46:39 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.36.6.206 with HTTP; Sat, 2 Sep 2017 09:46:38 -0700 (PDT)
In-Reply-To: <20170902112832.ymorfgdthobeio6q@elstar.local>
References: <f7151a6b-9deb-52ad-62a9-78b29a552540@cisco.com> <20170830102902.2n5q6rgq2x2dxfq2@elstar.local> <e8482a9c-cba3-28e2-9ffa-ec5eb5c1c0a4@cisco.com> <20170830123156.cssrg5kklpo67fie@elstar.local> <CABCOCHTtN611FO2ov2kTLtZx-Q3=tzgH7Xk9uGvFUD1WuyMZyw@mail.gmail.com> <b13c5e9a-e9f9-96e9-8823-0402fb74af09@cisco.com> <1504223854014.55228@Aviatnet.com> <847e5bf9-7b3d-9ff8-9954-970f32a2094c@cisco.com> <20170902073342.xoziwor4tdr5bipw@elstar.local> <D5D00209.C5C67%acee@cisco.com> <20170902112832.ymorfgdthobeio6q@elstar.local>
From: Andy Bierman <andy@yumaworks.com>
Date: Sat, 02 Sep 2017 09:46:38 -0700
Message-ID: <CABCOCHTC2MhBu0Zu44Z=f+J04HiENjQR+J0Sxy-arjcDmBHb_A@mail.gmail.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "Acee Lindem (acee)" <acee@cisco.com>, "Robert Wilton -X (rwilton - ENSOFT LIMITED at Cisco)" <rwilton@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="001a113f62ec1c697f0558379f1f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/El_yiz9IHZorBbDouxd1KjP2M9g>
Subject: Re: [netmod] Potential additions to rfc6087bis: RegEx guidelines
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: Sat, 02 Sep 2017 16:46:42 -0000

On Sat, Sep 2, 2017 at 4:28 AM, Juergen Schoenwaelder <
j.schoenwaelder@jacobs-university.de> wrote:

> On Sat, Sep 02, 2017 at 10:39:57AM +0000, Acee Lindem (acee) wrote:
> >
> > This is not an effort to change or bifurcate the YANG 1.1. It is simply
> to
> > RECOMMEND a proper subset of XSD pattern that is more portable.
> >
>
> If you implement YANG as it is defined, pattern are portable. Given
> this, I do not understand the notion of 'more portable'.
>
> Anyway, it seems that those who want a more portable subset do not
> even agree on what that subset is. Perhaps people pushing for this
> should go and write an I-D that explains why a 'more portable' subset
> is needed (which problems are we fixing), that defines such a 'more
> portable subset', and which includes the reasoning how the subset has
> been determined.
>
>

I do not agree that the YANG pattern contains a string that is both a POSIX
and XSD regular expression.
The RFC is very clear it contains an XSD expression. Pretending it is both
is a hack that does not even seem
to work 100%, so it is not reliable.

If the community wants to support both XSD and POSIX expressions, then the
proper engineering
solution is to introduce a new statement that is defined to contain a POSIX
expression.
This can be done with a YANG extension now and added to YANG 2.0 later.



> /js
>

Andy


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