[netmod] regular expression flavours (again)
Ladislav Lhotka <lhotka@nic.cz> Wed, 12 June 2019 08:02 UTC
Return-Path: <lhotka@nic.cz>
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 37E9D12007A for <netmod@ietfa.amsl.com>; Wed, 12 Jun 2019 01:02:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.998
X-Spam-Level:
X-Spam-Status: No, score=-6.998 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, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 Zvg8VTYHOh5O for <netmod@ietfa.amsl.com>; Wed, 12 Jun 2019 01:02:05 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A8ED312003F for <netmod@ietf.org>; Wed, 12 Jun 2019 01:02:05 -0700 (PDT)
Received: from birdie (unknown [IPv6:2001:718:1a02:1::380]) by mail.nic.cz (Postfix) with ESMTPSA id D43AE1409C1 for <netmod@ietf.org>; Wed, 12 Jun 2019 10:01:30 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1560326523; bh=UtK0rMs2tKgtMbOmhIn5L0XhfRy3jL1+wC3RlvQi7Lo=; h=From:To:Date; b=k9DZ+ISLt1AdBlLTPUTOTWNRIelSfZQ9HLHHp+OS5islvznniJJLooY1YYca+ouJW gkvWGqJI8K7EsDflZZ9yup8pzdniYFp9WTFJp7LoXqOwImPbL19RdexLtu9DfFkQyc VsXSBSOhvA4rMvwaWuPXBPjJUwQ06dPtH1/R7Tg0=
Message-ID: <291106e34498ebd68f26bf9ff9b679dd5bd8f0cd.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: NETMOD WG <netmod@ietf.org>
Date: Wed, 12 Jun 2019 10:01:30 +0200
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.32.2
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.100.3 at mail.nic.cz
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/OM2myEYl7_GvIJxBSTKRmBgeiF4>
Subject: [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 08:02:08 -0000
Hi, 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. 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. ISO Schematron adopted a similar approach with "query language binding" that can be declared with the schema element, for example <schema xmlns="http://purl.oclc.org/dsdl/schematron" queryBinding="exslt"> Any thoughts on this? Lada -- Ladislav Lhotka Head, CZ.NIC Labs PGP Key ID: 0xB8F92B08A9F76C67
- 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