Re: [netmod] regular expression flavours (again)
Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 12 June 2019 09:26 UTC
Return-Path: <j.schoenwaelder@jacobs-university.de>
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 4A230120146 for <netmod@ietfa.amsl.com>; Wed, 12 Jun 2019 02:26:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] 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 mwkUNgK5Jbai for <netmod@ietfa.amsl.com>; Wed, 12 Jun 2019 02:25:59 -0700 (PDT)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88D5712013F for <netmod@ietf.org>; Wed, 12 Jun 2019 02:25:59 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 3B82765B; Wed, 12 Jun 2019 11:25:58 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.198]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id a_oIE1hnXEDO; Wed, 12 Jun 2019 11:25:58 +0200 (CEST)
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 "DFN-Verein Global Issuing CA" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Wed, 12 Jun 2019 11:25:58 +0200 (CEST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by hermes.jacobs-university.de (Postfix) with ESMTP id 23C6C20128; Wed, 12 Jun 2019 11:25:58 +0200 (CEST)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10028) with ESMTP id mSOTBYCdCGDV; Wed, 12 Jun 2019 11:25:57 +0200 (CEST)
Received: from exchange.jacobs-university.de (SXCHMB02.jacobs.jacobs-university.de [10.70.0.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "exchange.jacobs-university.de", Issuer "DFN-Verein Global Issuing CA" (verified OK)) by hermes.jacobs-university.de (Postfix) with ESMTPS id D09FB20126; Wed, 12 Jun 2019 11:25:57 +0200 (CEST)
Received: from anna.localdomain (10.50.218.117) by sxchmb03.jacobs.jacobs-university.de (10.70.0.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1713.5; Wed, 12 Jun 2019 11:25:57 +0200
Received: by anna.localdomain (Postfix, from userid 501) id A8C3A300A4386C; Wed, 12 Jun 2019 11:25:56 +0200 (CEST)
Date: Wed, 12 Jun 2019 11:25:56 +0200
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Ladislav Lhotka <lhotka@nic.cz>
CC: NETMOD WG <netmod@ietf.org>
Message-ID: <20190612092555.xotrr4moh36xv4kl@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Ladislav Lhotka <lhotka@nic.cz>, NETMOD WG <netmod@ietf.org>
References: <291106e34498ebd68f26bf9ff9b679dd5bd8f0cd.camel@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <291106e34498ebd68f26bf9ff9b679dd5bd8f0cd.camel@nic.cz>
User-Agent: NeoMutt/20180716
X-ClientProxiedBy: SXCHMB04.jacobs.jacobs-university.de (10.70.0.156) To sxchmb03.jacobs.jacobs-university.de (10.70.0.155)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/pXPkXHOTR2GGYVOosVSJFY5bXV0>
Subject: Re: [netmod] regular expression flavours (again)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 12 Jun 2019 09:26:02 -0000
On Wed, Jun 12, 2019 at 10:01:30AM +0200, Ladislav Lhotka wrote: > I think it is very unfortunate that OpenConfig folks use POSIX regular > expressions instead of XSD. This of course causes confusion, see e.g. this PR: > > https://github.com/CZ-NIC/yangson/pull/22 > > Given the popularity of OpenConfig models, it seems to me that it would be > better if YANG somehow accomodates such (largely cosmetic) differences. The differences are not cosmetic. See previous discussions on this topic. > One option would be that each YANG module declares the regex flavour used in its > patterns. Yes, it is a complication, but having separate forks of YANG is much > worse. It is sad that OpenConfig does not follow the standard. If OpenConfig can't live without POSIX regular expressions, then OpenConfig should have used proper extension statements instead of simply changing the semantics of the YANG pattern statement to measn something different. That said, they do seem to declare something like oc-ext:regexp-posix; but it would have been much smarter to use for example oc-posix:regex instead of changing the semantics of the pattern statement. I would rather see OpenConfig adopting the standard or fixing their POSIX regular expression solution so that it avoids changing the semantics of YANG statements. Having statements mean different things depending on some context is pretty bad design. /js -- Juergen Schoenwaelder Jacobs University Bremen gGmbH Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany Fax: +49 421 200 3103 <https://www.jacobs-university.de/>
- Re: [netmod] regular expression flavours (again) Rob Wilton (rwilton)
- [netmod] regular expression flavours (again) Ladislav Lhotka
- Re: [netmod] regular expression flavours (again) Juergen Schoenwaelder
- Re: [netmod] regular expression flavours (again) Ladislav Lhotka
- Re: [netmod] regular expression flavours (again) Rob Wilton (rwilton)
- Re: [netmod] regular expression flavours (again) Ladislav Lhotka
- Re: [netmod] regular expression flavours (again) Martin Bjorklund
- Re: [netmod] regular expression flavours (again) Robert Varga
- Re: [netmod] regular expression flavours (again) Robert Varga
- Re: [netmod] regular expression flavours (again) Juergen Schoenwaelder
- Re: [netmod] regular expression flavours (again) Ladislav Lhotka
- Re: [netmod] regular expression flavours (again) Carsten Bormann
- Re: [netmod] regular expression flavours (again) Carsten Bormann
- Re: [netmod] regular expression flavours (again) Rob Wilton (rwilton)
- Re: [netmod] regular expression flavours (again) Rob Wilton (rwilton)
- Re: [netmod] regular expression flavours (again) Carsten Bormann
- Re: [netmod] regular expression flavours (again) Robert Varga