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 18:32 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 B1E9912001E for <netmod@ietfa.amsl.com>; Tue, 18 Feb 2020 10:32:32 -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=KmPNkMvn; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=TscOqcui
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 wDwKseqNWiea for <netmod@ietfa.amsl.com>; Tue, 18 Feb 2020 10:32:30 -0800 (PST)
Received: from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 443DA120018 for <netmod@ietf.org>; Tue, 18 Feb 2020 10:32:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3424; q=dns/txt; s=iport; t=1582050750; x=1583260350; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=j8fhwf+40dxN8MNBlIOjj/WA6mbYD9L5jGJKU89EQj4=; b=KmPNkMvnT6gNZlTtF4JXMoOr2mxFtxP9IlTpTGx++3T9T7Od/boc1NEd Zhl9a3U+wSjyR4ZVFMfIwBGRKHKcVES2G9KfHtNSFDAVRm4Us7eH0FFFw YyUX78/r08gOfBt/nVVpLmXtAFh8mcPZShQSx903FBbLKeid67xey0oLo k=;
X-IPAS-Result: A0CwAADmLExe/4QNJK1jAxoBAQEBAQEBAQEDAQEBAREBAQECAgEBAQGBe4FUJCwFbFggBAsqCodQA4p6gl+YEYJSA1QJAQEBDAEBHw4CBAEBhEACggMkOBMCAwEBAQMCAwEBAQEFAQEBAgEFBG2FNwyFZgEBAQECARIuAQE3AQsCAgIBCBABBAEBAS4bFx0IAgQOBQgagmECIoJKAw4gAQKieAKBOYhigieCfwEBBYVEGIIMAwYFgTOMJBqBQT+BEUeCTD6EMxoFGiaCe4IslnJjiH6POwqCO40YiV2CSYxni3aqKwIEAgQFAg4BAQWBaSKBWHAVgydQGA2OHTiDOzOKIHSBKY4wAYEPAQE
IronPort-PHdr: 9a23:kOdnfxbRIYj+URh5VuyKr0T/LSx94ef9IxIV55w7irlHbqWk+dH4MVfC4el20gebRp3VvvRDjeee87vtX2AN+96giDgDa9QNMn1NksAKh0olCc+BB1f8KavwcC0+AMNEfFRk5Hq8d0NSHZW2PgeAuHC54D8MFxm6LhJ7drinPInUgoz3z/q155DYfwRPgny6fK92KxK16w7Ws5teiop5IaF3wRzM6ndPdv8ew2R0bV6ehBfz4M6s8fsBuzxdofcg69JNXe3hcqI0QKYQDDM9L3t06Q==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.70,456,1574121600"; d="scan'208";a="418169097"
Received: from alln-core-10.cisco.com ([173.36.13.132]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 18 Feb 2020 18:32:29 +0000
Received: from XCH-RCD-003.cisco.com (xch-rcd-003.cisco.com [173.37.102.13]) by alln-core-10.cisco.com (8.15.2/8.15.2) with ESMTPS id 01IIWSgT003117 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 18 Feb 2020 18:32:29 GMT
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by XCH-RCD-003.cisco.com (173.37.102.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 18 Feb 2020 12:32:28 -0600
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 18 Feb 2020 12:32:26 -0600
Received: from NAM12-DM6-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 18 Feb 2020 12:32:26 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hcKZNRvkI8J/c6SACeGBAD5qBwEt+xc5oyAdmZE+CKpZudNNBsVlAz5X19VfSdj4i3LuDOprR8PehM4ZU8C8BtESLLUnrVuvWYwEJAuabzdEO+iU3xAXjd7WetUYHRIWhHJK8GGWU0m/jtwdE6Avi8w2gm/tN+cZ8zre/dbydDH9XkxcGRG8qgEaMX8aCM3k3SBN8+8D8/ZM9p0XikDfPsuMpS7qFcaeGrRDbGEkXi5gEOKrfJoYN7LWcDVadcFYUkLUzb+GFfnBUixN1CvPPRNzeaZImQhJi3kG2s7oeRv4hJezjamZKGVBEL1aZBpLzM5ZaNM2eLc2Rw1TUB5y+Q==
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=1eGKjod6+AeQTpxEa4K3S48PPVb4viwU7+tmpZMXZxQ=; b=Daoj9NBvI0P6yoO3N5QIAtHtvPgvogliFs4voqgwGeNPU6dOAwGhsPQlMVZF9gr6dAIedXQ+wciXwlD5Z84e/AaswyEGGAhgg31RX/muKHCy8bewPcGYQW/hyDgS7PRuce+vjinEgpqhzg9MI0ZJhsTcqZQ0VxTZjnqKBkkRcU2DBEvJLJrea/mCXvJsso7ZBgw5hSojjPF6ze+sB52P24BzpmwsyUtqjuZG8QHyPfMhSZjNAgdi8nuGCE3zR727WPedEAvWXean9pIYYycs7xxWjaMvAMsHT5DDwwt/yFTOZkPcnCjj/HmDkByEaCrskICDyiIzf/cYGs8x9BvKNQ==
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=1eGKjod6+AeQTpxEa4K3S48PPVb4viwU7+tmpZMXZxQ=; b=TscOqcuimur6hFxBXO6LLmI4vVr5fJ2y1VoGTNszz3LFBgWZgBc8GVMJnWHDZ3TVonM5gBdMD2/lx6LN4FsgK2mnJRuml1O0E+21DD5U14i8T6Oa6ja23pbNDes5p9Ca0bROsB8bFSiZ0kEoFUbzzko9ckhjSXHu+JNZVjMI6XA=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (52.135.38.209) by MN2PR11MB4431.namprd11.prod.outlook.com (52.135.37.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.25; Tue, 18 Feb 2020 18:32:26 +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 18:32:26 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: "Schönwälder, Jürgen" <J.Schoenwaelder@jacobs-university.de>
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: AQHV4m8DGI058sprvkKdYtaQYpu786gaftpggAAIeQCAAAFigIAABDQAgABwz4CABESmAIAAXa6AgAAxS4CAACAfgIAACOqAgAAEpoCAANIMUIAABMOAgAANy6A=
Date: Tue, 18 Feb 2020 18:32:25 +0000
Message-ID: <MN2PR11MB4366A4C8214E3DEEF50F4BCDB5110@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <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> <MN2PR11MB4366A6EE0AB49A4B6409D61CB5110@MN2PR11MB4366.namprd11.prod.outlook.com> <20200218111956.bmqx5i6fyjrx7qn4@anna.jacobs.jacobs-university.de>
In-Reply-To: <20200218111956.bmqx5i6fyjrx7qn4@anna.jacobs.jacobs-university.de>
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: 4f30b13b-bbba-47f2-2ee0-08d7b4a0e70c
x-ms-traffictypediagnostic: MN2PR11MB4431:
x-microsoft-antispam-prvs: <MN2PR11MB4431BF1FCAD856D8DFF7A0F3B5110@MN2PR11MB4431.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 031763BCAF
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(366004)(346002)(376002)(39860400002)(136003)(199004)(189003)(9686003)(33656002)(53546011)(2906002)(6506007)(26005)(478600001)(6916009)(55016002)(66574012)(316002)(5660300002)(4326008)(8936002)(86362001)(7696005)(71200400001)(52536014)(8676002)(66446008)(66556008)(64756008)(81166006)(66946007)(66476007)(81156014)(76116006)(186003); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB4431; H:MN2PR11MB4366.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: BpLnj0HHosy2ZX1nagcGUIgPzVnZCIdZG5UsKdK1YojYGVDtr16uN41fNAYxJFfJoaZsK6gdCZ5a79mFU3BEydHod/oR+usRhSSRuBJmX8fmKTu/Mxi3XC3/dFC2xnDYhH9Tbeh8SVUmVPvnqfQxJlr+o6zmB4v8zc0RZLVN4xHLtzeIedvbxCCyR47zMZ/2tUJa5LV/v73wrKkdQpQ34HPNHIw6mLfkc2zy7d8Vv3GsIZJGoQd6/iU8j9IK+QUw7dD62Qe+xCoA248v79d80Y23JfMCiP7FNnvx6gkWIkS9Pp/FhrmhTvFeICV92ayuqZw0PS8U7IHc8xHeP4mEyLB7mZVcyiBl6r+8vE/9GiCIX/BKE9r2X+Gr8lM4VCU/qATYACx9hnSo8g5rpKFNz9QRI+DkkJlL86sCfJHPBrnJiWTkjMBfVz2QdlrZVvGTpJFfdzAhkIV9xDiPum9E+g3+G7EcnlFEviCMdRMI7n9UeGet011WEn9JknasQWS6m6xuVcg6SgaRf0un0yfG6Q==
x-ms-exchange-antispam-messagedata: MV52YgTCV5adI93B1bCCBRYkJp+8NUs2wedm0wb+TnKociJs9GNX4SC/8t/uj7fuUzwLfu6P4sTPlJfHILAM2uYEcPVE5xJtAMrPmYmf6aWUJmK3p5HK4jBy2cM64doGZyQR95fC7PuXdZsyC/cfzw==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 4f30b13b-bbba-47f2-2ee0-08d7b4a0e70c
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2020 18:32:25.9517 (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: /m2f1j6btR8D6qWfGZONu+XUWH+KHsPhpaKdb4UYUqXSC2v9o2jjamGRC4pa1V+Itn8mUEbBlhOPPygMMFDSZg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4431
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.13, xch-rcd-003.cisco.com
X-Outbound-Node: alln-core-10.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/3t3xjgZrUWwrHsofWoS56Df4xVo>
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 18:32:33 -0000

Hi Juergen,

> -----Original Message-----
> From: Schönwälder, Jürgen <J.Schoenwaelder@jacobs-university.de>
> Sent: 18 February 2020 11:20
> To: Rob Wilton (rwilton) <rwilton@cisco.com>
> Cc: netmod@ietf.org
> Subject: Re: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-
> module-tags-07: (with DISCUSS)
> 
> On Tue, Feb 18, 2020 at 11:12:47AM +0000, Rob Wilton (rwilton) wrote:
> >
> > 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.
> >
> 
> That's a weird argument. If there is agreement on a restriction and we can
> express that restriction in a pattern, we should IMHO do so.

Not really.

I believe that ultimately the configuration is the responsibility of the client.  If there are reasonable steps that a server can take to help police that configuration and reject obvious errors then that is obviously helpful, but it most cases a server cannot check that the value provided by the client is correct, which I suspect is the far more likely error (e.g. a client configures the wrong IP address rather than a malformed IP address).

So, in the case of regexes, I still prefer a shorter, easier to read/understand, and likely more performant pattern statement instead of a longer, complex, and harder to verify pattern statement.

In particular, I note that unicode properties do not seem to be widely used in YANG pattern statements (e.g. perhaps only 10 unique pattern instances in all YANG modules on github YANG repo, some of which look plausibly wrong to me (unless they intended to include ASCII control characters), and hence I question whether it is worth using them, but maybe I am being biased towards languages using the Latin alphabet.

Further, I was concerned that there didn't seem to be widespread support for unicode properties within standard regex engines, but it looks like this may have changed, and perhaps support for them is more widespread now, even if the exact specification of what character properties are defined and what characters are included in those properties seem to able to vary over time depending on the unicode version, and presumably between implementations.

In the case of module tags, I'm not sure what would go wrong if a space was included in the tag name.  I suspect nothing, just that it could be confusing to a user when displayed.

So, I'm still think that pragmatically the existing regex is fine.  But if the consensus is to use \P{Z} or better \P{Separator} then I would also be okay with that.


> 
> Note the order: It is backwards if there is first a pattern and as a
> consequence we agree on that specific restriction.
> 
> Ideally, the agreed upon restriction is stated in the description and if
> possible also expressed as a pattern. This way it does not matter how
> implementations enforce the restriction and it is clear to everyone what
> the pattern is trying to achieve.

Yes. I agree to both these points.

Thanks,
Rob


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