Re: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-module-tags-07: (with DISCUSS)

"Rob Wilton (rwilton)" <rwilton@cisco.com> Tue, 18 February 2020 11:12 UTC

Return-Path: <rwilton@cisco.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 10B1C120271 for <netmod@ietfa.amsl.com>; Tue, 18 Feb 2020 03:12:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 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_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=I/wWrGFj; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=Px1KQOip
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 VT4md6fqG5T2 for <netmod@ietfa.amsl.com>; Tue, 18 Feb 2020 03:12:51 -0800 (PST)
Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 18E1112013B for <netmod@ietf.org>; Tue, 18 Feb 2020 03:12:51 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4790; q=dns/txt; s=iport; t=1582024371; x=1583233971; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=IENRnIQprEcHAO/jsD9t+jJ5dIfSqSziNIuL5IS8ifs=; b=I/wWrGFjmG2Fy5v5dqVbf1eDiMpNdO5D8Mm9TFwGqpjFzIr8twhO/n8/ F3vEvWMZjAayPDkiZm/oLKKqyrL5dwoL+y4sYvmzDacHDg1j59HoxvnJs jUHEyeRqRXXagmzrwl2taucNIEgjUpyNopY0MjaB+HCm6fkK1N58LXIZw Y=;
IronPort-PHdr: 9a23:2AclARECxHC2/SPlOOmOmp1GYnJ96bzpIg4Y7IYmgLtSc6Oluo7vJ1Hb+e4z1A3SRYuO7fVChqKWqK3mVWEaqbe5+HEZON0pNVcejNkO2QkpAcqLE0r+eeT1bigmG8JqX15+9Hb9Ok9QS47z
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DjAQBdxkte/51dJa1mDg0BAQEBAQEBBQEBAREBAQMDAQEBgXuBVCknBWxYIAQLKgqHUAOKeYJfmBGCUgNUCQEBAQwBARgLCgIEAQGDe0UCggMkOBMCAw0BAQUBAQECAQUEbYU3DIVmAQEBAQMBARAoBgEBJQcEBwELBAIBCBEEAQEBHhAnCx0IAgQBDQUIEQmDBYJKAy4BAgyhBgKBOYhigieCfwEBBYEvAQMHg3oYggwDBoE4jCQagUE/gRFHgkw+gmQBAQKBZYNAgiygU45FdgqCO5Z1myaObZs+AgQCBAUCDgEBBYFpIoFYcBU7gmxQGA2OHQwXFW8BAoJJhRSFBDt0gSmOVAGBCgUBAQ
X-IronPort-AV: E=Sophos;i="5.70,456,1574121600"; d="scan'208";a="439285276"
Received: from rcdn-core-6.cisco.com ([173.37.93.157]) by alln-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 18 Feb 2020 11:12:50 +0000
Received: from XCH-RCD-003.cisco.com (xch-rcd-003.cisco.com [173.37.102.13]) by rcdn-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id 01IBCneP024802 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 18 Feb 2020 11:12:50 GMT
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by XCH-RCD-003.cisco.com (173.37.102.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 18 Feb 2020 05:12:49 -0600
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 18 Feb 2020 05:12:48 -0600
Received: from NAM10-BN7-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 18 Feb 2020 06:12:48 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gvf0OaP4anU6VPMO3ikfqUdF6XsQllIJIez6ew0mc1cQ9QWtn8VLExu3wx0OEOWnD8DsyYxG2qvHsQcysAsUqWXjGnXSfeiPek9FrFWtCzwWw2S0S2vevcUAqSMXx6bpeZbXXm1IEMgX6l2f7LKQxE2Hphm/sWTC4bFljPJKWNvkAQwR9QxOSZb+rgayUTNi4w+gTc+lGcSkRjuaA17zEPHhJfa7aaIhaYl2d4MQWhA+OkX7MnTlac1cacbeKmVydqADWjoMJUd4iAXlX1363wGhfDbN7uwKXnp4UOULgeQ8zg7c711nPQ1NhlBWI7ZDx1aJc6Oh6lauYCFyCIpRGQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0h4cKySJYzr9hBg5J2JAKF36KJFQ7dThYir3qrGItK8=; b=OaZvTAUsJFMBr3l0eOdo3pVl5NwGGE2bpG0QhbiRFrwUGyC8DmNfkNvh5KLETyruEp6EbxnIxNFcjtVjkCsOsWUD7wLoShjqbX1MuSJIxcq+plTxXpSVasrjzXAK7WAppiQZAEiVGZm4MFEpAPQ99mL1D/+pED8wJ2ISh5EIPs/LG1huPP3bo9JmDkl8bXJt4Gm3AnRjky1h7lHqF7EidGXPU7oQNCZp9TD/H1gD4bZShKp459qbzXyphD4AVRHhmqhMHRvcNcg5Ec1uCCEKVnlLjf4+lTja0NL+2trd17b1FQzbrk1wOd22PhytwtCxJKUmIQhpuXzmWatygNaMtw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0h4cKySJYzr9hBg5J2JAKF36KJFQ7dThYir3qrGItK8=; b=Px1KQOipg8JOko+qJS3cIwRJQTVObMZSwqP2QWR4/FbF+sgg1YnCVbqs5ObwwNnJsanKWS3ZLNgNUd34wmNF2xIlmbvCTXVSvmgYLPPd7uQpWY726fqdHAxHrDWB8QL/7vaCEQA6tF3yNQZFXvWhDgUIWGc0nKHEz8Xf4ypzWF0=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (52.135.38.209) by MN2PR11MB4399.namprd11.prod.outlook.com (52.135.36.153) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.22; Tue, 18 Feb 2020 11:12:47 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::b9ce:1058:5fa6:44a1]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::b9ce:1058:5fa6:44a1%7]) with mapi id 15.20.2729.032; Tue, 18 Feb 2020 11:12:47 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: Per Hedeland <per@hedeland.org>, Christian Hopps <chopps@chopps.org>, Randy Presuhn <randy_presuhn@alumni.stanford.edu>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-module-tags-07: (with DISCUSS)
Thread-Index: AQHV4m8DGI058sprvkKdYtaQYpu786gaftpggAAIeQCAAAFigIAABDQAgABwz4CABESmAIAAXa6AgAAxS4CAACAfgIAACOqAgAAEpoCAANIMUA==
Date: Tue, 18 Feb 2020 11:12:47 +0000
Message-ID: <MN2PR11MB4366A6EE0AB49A4B6409D61CB5110@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <155499006434.22705.5858614581630974980.idtracker@ietfa.amsl.com> <7F3B9E7F-6AD8-4801-AE60-9F2D704DC69B@chopps.org> <2ee6b71c-bd2c-4676-9e14-cb240c6845c9@www.fastmail.com> <MN2PR11MB43668E4C0863B8A61857CE0CB5150@MN2PR11MB4366.namprd11.prod.outlook.com> <714842CF-A65A-40FD-A62D-6FA7E1A6801F@chopps.org> <C1446662-2320-4158-B34B-3E2D67369F48@chopps.org> <9FECF49A-65E5-436F-973A-7538CFC974E8@chopps.org> <14832a78-ff8c-b923-09ba-207c2cf01362@alumni.stanford.edu> <F22DF063-E77B-4384-AD2E-157CC1DC479C@chopps.org> <3a538bc4-b93e-2027-7870-d59e8609944b@alumni.stanford.edu> <DF98AB41-C1DD-4A43-9C22-222D018A213D@chopps.org> <d79d37eb-14ec-a5ab-6161-971a0c6fd57a@alumni.stanford.edu> <BE06C751-D2E1-4797-8E22-9D7A87C0D616@chopps.org> <27ccbba7-d3d0-a9ab-c19a-9da4fa1d0210@hedeland.org>
In-Reply-To: <27ccbba7-d3d0-a9ab-c19a-9da4fa1d0210@hedeland.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rwilton@cisco.com;
x-originating-ip: [173.38.220.49]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: f2715538-274a-4a25-3216-08d7b4637c51
x-ms-traffictypediagnostic: MN2PR11MB4399:
x-microsoft-antispam-prvs: <MN2PR11MB439949A3B026652A0CFB0993B5110@MN2PR11MB4399.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 031763BCAF
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(346002)(366004)(39860400002)(396003)(189003)(199004)(26005)(110136005)(55016002)(2906002)(71200400001)(9686003)(7696005)(33656002)(66476007)(186003)(66946007)(478600001)(966005)(76116006)(4326008)(86362001)(53546011)(6506007)(81156014)(81166006)(8936002)(8676002)(66446008)(64756008)(5660300002)(316002)(66556008)(52536014); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB4399; H:MN2PR11MB4366.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: +jKQMZVzFddRth0byWxhjRHijU2OoRe9fRCcytyt0M2lcy2YOaeQaT27usPCEFbnWOkpUxhma/+c3WCfH6zedn+7Ih60JN101IJXu006cltnV78ZGBhOoDgttiUHp4hpZse7NnsQQdK6jOKCTJu6lHbNiBtDvG1fja0xzDzfvA5FipaaDv1f0uekAJbQMAW3duJsH5HhNuzp62lpHnA2rZ3bMtBLvyaoSAxwoeIobUabHqL6lmbhaF6pXmsGxqzZ7MS9niQXTBFVOOst0liJtuWYlCjIiysnCtLs8PXhc2NL+CBIBzVzeDRKLRUgP/XMQinncGj2EooedANrzFvuVnxrDhgJzKjURozd4nTQfbcCBWzkk4JWXHsab5CUPZwfvuSr4+fojw4yvoiEWB5oqefEuA63y7BItn1SZttHN/NOC+lAd66+ZQEjNzWcrl5WZPiXaYoWUcqJBv2yMHYSYcpckN7KG+ig8b6vyPyeN3X7A7qlE7yxOyorDOEq7g6CCqdrdqQJvmc2/gZ/OIrs/Q==
x-ms-exchange-antispam-messagedata: UiwgNWUOr3FKckmp83dGzxqQXMGMbRikzdjdQ87A4yW2SjxcTChrH1qyF14qPWrTwHXzz06jPiFZyxljOif3wJRt7hOw+cnnf+X+ruwxgZXUlgLNxu31fw+qyQkmmpNxGqpy2cnY0hdnIn2dn9fX9w==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: f2715538-274a-4a25-3216-08d7b4637c51
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2020 11:12:47.4833 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: b09SrS2dFtXCQj/ABcwPTxonxCswHInkYkcK4u+7YQziFcUboL4Ff5AEW9ZIstGLX8gTy+4uuvpZg/ikBdfvFw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4399
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.13, xch-rcd-003.cisco.com
X-Outbound-Node: rcdn-core-6.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/57g04Ujr1D537fRhD-rT3tgcx8g>
Subject: Re: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-module-tags-07: (with DISCUSS)
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, 18 Feb 2020 11:12:54 -0000

I agree with Per.

I think that the original pattern (with the \S) is fine and captures the intent clearly and simply.

I'm also not convinced of how many implementations would properly honour the XML regex property categories, e.g., if the pattern statement has been translated to another regex engine.

Thanks,
Rob


> -----Original Message-----
> From: netmod <netmod-bounces@ietf.org> On Behalf Of Per Hedeland
> Sent: 17 February 2020 22:31
> To: Christian Hopps <chopps@chopps.org>; Randy Presuhn
> <randy_presuhn@alumni.stanford.edu>
> Cc: netmod@ietf.org
> Subject: Re: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-
> module-tags-07: (with DISCUSS)
> 
> On 2020-02-17 23:14, Christian Hopps wrote:
>  >
>  >
>  >> On Feb 17, 2020, at 4:42 PM, Randy Presuhn
> <randy_presuhn@alumni.stanford.edu> wrote:
>  >>
>  >> Hi -
>  >>
>  >> On 2/17/2020 11:47 AM, Christian Hopps wrote:
>  >>>> On Feb 17, 2020, at 11:51 AM, Randy Presuhn
> <randy_presuhn@alumni.stanford.edu> wrote: Hi - On 2/17/2020 3:15 AM,
> Christian Hopps wrote: ...
>  >>>>> BTW, I did look at the "SHOULD be avoided" (occurs twice that I
> saw) once dealing with LFs and CRs which lucky for us is not part of a
> tags allowable characters.
>  >>>> There are lots of other things that complicate life. The Yang string
> definition circumscribes some of them, but not all.
>  >>>>> " typedef tag { type string { length "1..max"; pattern '[\S ]+'; }
> "
>  >>>> This pattern doesn't make sense to me when I try to understand it
> using https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#charcter-
> classes It excludes "symbols", but permits, for example, paragraph
> separators and formatting characters and such delights as zero-width non-
> joiner. Also, in complementing the "all symbols" category, it seems to me
> it already permits space, so I don't see why it calls out space again.
>  >>> The intent was to have the pattern match the description immediately
> below it: "A tag value is composed of a standard prefix followed by any
> type 'string' value that does not include carriage return, newline or tab
> characters." Does this pattern fail in doing that?
>  >>
>  >> Yes, what it accomplishes does not match the stated intent.
>  >
>  > I'm finding this hard to believe looking at the definition of "\S"
> which is "everything but space, tab, newline and carriage return" and then
> adding "space". Seems to match the definition unless we quibble over the
> prefix (which I don't think we are).
> 
> +1
> 
>  >> I suspect you may have intended something like '[\Z ]+'
>  >> See https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#charcter-
> classes
>  >
>  > I don't think that's a valid pattern.
> 
> +1
> 
>  > If you are talking about the property categories (where I see 'Z'
> mentioned as "All separators") then there doesn't appear to be a "lower
> means include, upper means exclude" relationship. Also it appears that to
> refer to one of these things the syntax is actually "\P{Z}" or "\p{Z}" not
> just "Z". So translating maybe that's "[\P{Z} ]"? I see nothing that
> defines how "catEsc" (\p{}) vs "compEsc"
> (\P{}) are different, but maybe the upper here means exclude.
> 
> The description is right above the definitions:
> 
>    The set containing all characters that have property X, can be
>    identified with a category escape \p{X}. The complement of this set
>    is specified with the category escape \P{X}. ([\P{X}] = [^\p{X}])
> 
> So yes, \P{Z} would be the complement of "All Separators", while your
> original \S is the complement of \s ([#x20\t\n\r]). I.e. \P{Z} would
> exclude "more separators", but is hardly worth the trouble I think - and
> it is *not* the "stated intent".
> 
>  > I'm more inclined to just ditch any pattern or restriction the more
> this gets discussed. Let the user do what they want. If they want to
> include crazy unicode stuff (almost certainly they dont) then I guess
> that's what they want.
> 
> FWIW, as I already wrote, I think your original pattern is fine (and I
> think Randy needs to have a closer look at the section he references).
> 
> --Per
> 
>  > Thanks,
>  > Chris.
>  >
>  >>
>  >> Randy
>  >>
>  >> _______________________________________________
>  >> netmod mailing list
>  >> netmod@ietf.org
>  >> https://www.ietf.org/mailman/listinfo/netmod
>  >>
>  >
>  > _______________________________________________
>  > netmod mailing list
>  > netmod@ietf.org
>  > https://www.ietf.org/mailman/listinfo/netmod
>  >
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod