Re: [netmod] I-D Action: draft-chopps-netmod-geo-location-00.txt
Martin Bjorklund <mbj@tail-f.com> Tue, 05 March 2019 14:05 UTC
Return-Path: <mbj@tail-f.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 B40BA131140 for <netmod@ietfa.amsl.com>; Tue, 5 Mar 2019 06:05:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=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 daRc7dysQwaC for <netmod@ietfa.amsl.com>; Tue, 5 Mar 2019 06:05:15 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 9018B131284 for <netmod@ietf.org>; Tue, 5 Mar 2019 06:05:02 -0800 (PST)
Received: from localhost (unknown [173.38.220.61]) by mail.tail-f.com (Postfix) with ESMTPSA id 6CC2E1AE0386; Tue, 5 Mar 2019 15:05:00 +0100 (CET)
Date: Tue, 05 Mar 2019 15:05:01 +0100
Message-Id: <20190305.150501.1809357052440270699.mbj@tail-f.com>
To: chopps@chopps.org
Cc: wlupton@broadband-forum.org, netmod@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <sa65zsx4eay.fsf@chopps.org>
References: <sa67ede1jef.fsf@chopps.org> <CAEe_xxi4QeGbwQxXQFJE7EB9Cz1ee2ZhRLY9FOaNd3opw9M=Jw@mail.gmail.com> <sa65zsx4eay.fsf@chopps.org>
X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/PrVw7nvNvmKBJQHQIKUv8vbH6rE>
Subject: Re: [netmod] I-D Action: draft-chopps-netmod-geo-location-00.txt
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: Tue, 05 Mar 2019 14:05:19 -0000
Christian Hopps <chopps@chopps.org> wrote: > > William Lupton <wlupton@broadband-forum.org> writes: > > >> The intent was "ascii-printable". Would be nice if there was an easier > > way to specify this. :) > > > > Printable ASCII characters are ' ' (space) through '~' (tilde) so > > naively [ > > -~] should work ... but perhaps that makes unacceptable assumptions > > -about > > the locale and/or character encoding? (Certainly it should be OK if we > > can > > assume UTF-8, because all printable ASCII characters retain their > > ASCII > > representations in UTF-8.) > > I think your suggestion is a good one! Not sure I get it. What exactly is the suggestion? > YANG references > <https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#dt-regex> says > it will work too (its the range between the UTF code points, which in > this case are the ascii values), but then that reference is also where > i got the "#x22" hex format from that Martin said was invalid. :) But they use the hex form in the grammar that describes XSD, and that grammar uses EBNF as explained in https://www.w3.org/TR/2000/WD-xml-2e-20000814. /martin > > Thanks, > Chris. > > > > > On Mon, 4 Mar 2019 at 20:20, Christian Hopps <chopps@chopps.org> > > wrote: > > > >> > >> Martin Bjorklund <mbj@tail-f.com> writes: > >> > >> > Hi, > >> > > >> > Just some quick comments on the YANG: > >> > > >> > However, it seems libxml2's regexp engine requires both "[" and "^" to > >> > be escaped: > >> > > >> > '[-0-9a-z "#\[\]' + > >> > '!$%&()*+,./:;<=>?@\\\^_`{|}~]+'; > >> > > >> > This expression isn't wrong, but it seems to me that these characters > >> > should not have to be escaped. > >> > > >> > The pattern allows double quote (") but not single quote ('). Is > >> > that intentional? > >> > >> The intent was "ascii-printable". Would be nice if there was an easier > >> way > >> to specify this. :) > >> > >> > [a simple way to test the patterns is to have a "default" statement > >> > and a YANG complier that verifies defaults] > >> > >> Does pyang do this? > >> > >> > I recommend that you rename the example module in section to > >> > "example-uses-geo-location" (and change the namespace to > >> > urn:example:uses-geo-location). We should not use the "ietf" > >> > namespace for examples. > >> > >> Will do. > >> > >> Thanks, > >> Chris. > >> > >> > /martin > >> _______________________________________________ > >> netmod mailing list > >> netmod@ietf.org > >> https://www.ietf.org/mailman/listinfo/netmod > >> >
- [netmod] I-D Action: draft-chopps-netmod-geo-loca… Christian Hopps
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… Kent Watsen
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… Christian Hopps
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… Martin Bjorklund
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… Martin Bjorklund
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… Christian Hopps
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… William Lupton
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… Martin Bjorklund
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… Christian Hopps
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… Martin Bjorklund
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… William Lupton
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… Martin Bjorklund
- Re: [netmod] I-D Action: draft-chopps-netmod-geo-… Christian Hopps