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

Christian Hopps <chopps@chopps.org> Mon, 17 February 2020 11:15 UTC

Return-Path: <chopps@chopps.org>
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 D120812004D for <netmod@ietfa.amsl.com>; Mon, 17 Feb 2020 03:15:57 -0800 (PST)
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 3Wli2RMDtyAw for <netmod@ietfa.amsl.com>; Mon, 17 Feb 2020 03:15:56 -0800 (PST)
Received: from smtp.chopps.org (smtp.chopps.org [54.88.81.56]) by ietfa.amsl.com (Postfix) with ESMTP id D1841120046 for <netmod@ietf.org>; Mon, 17 Feb 2020 03:15:55 -0800 (PST)
Received: from stubbs.int.chopps.org (047-050-069-038.biz.spectrum.com [47.50.69.38]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by smtp.chopps.org (Postfix) with ESMTPSA id 4AE8760B4D; Mon, 17 Feb 2020 11:15:55 +0000 (UTC)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\))
From: Christian Hopps <chopps@chopps.org>
In-Reply-To: <14832a78-ff8c-b923-09ba-207c2cf01362@alumni.stanford.edu>
Date: Mon, 17 Feb 2020 06:15:54 -0500
Cc: Christian Hopps <chopps@chopps.org>, netmod@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <F22DF063-E77B-4384-AD2E-157CC1DC479C@chopps.org>
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>
To: Randy Presuhn <randy_presuhn@alumni.stanford.edu>
X-Mailer: Apple Mail (2.3608.40.2.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/zlJFx-19h9mbLgQXsCIKf0cImNU>
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: Mon, 17 Feb 2020 11:15:58 -0000


> On Feb 14, 2020, at 1:05 PM, Randy Presuhn <randy_presuhn@alumni.stanford.edu> wrote:
> 
> Hi -
> 
> On 2/14/2020 3:21 AM, Christian Hopps wrote:
>> How about I add this to the description of "typedef tag" in the module:
>> 
>>        description
>>          "A tag is a type 'string' value that does not include carriage
>>           return, newline or tab characters. It SHOULD begin with a
>>           registered prefix; however, tags without a registered prefix
>> -         SHOULD NOT be treated as invalid.";
>> +         SHOULD NOT be treated as invalid. For the purposes of comparison
>> +         non-ascii strings should use 'NFC' (RFC5198) normalization";
>>      }
>> 
> 
> There are other considerations beyond normalization form.
> For the tip of the iceberg, see the definition of SnmpAdminString
> in RFC 3411, or the "SHOULD be avoided" stuff in RFC 5198.

Do you think that the above is appropriate to include, or should be left out as doing more harm than helping?

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.

"
     typedef tag {
       type string {
         length "1..max";
         pattern '[\S ]+';
       }
"

The other is about private use unicode, and I don't know anything about that.

I think we either include the diff quoted above, or do nothing, as this isn't the document, as we all seem to agree, to fix the larger unicode issues with YANG string type.

Thanks,
Chris.

> 
> For things like tags where one would like to minimize accidental
> visual punning, I'd suggest NFKC should probably be given some
> consideration.   Excellent presentation of the issues is
> available at https://unicode.org/reports/tr15/
> 
> That said, these are issues that were raised in the earliest days of Netmod /
> Netconf, and no one should be surprised that they haven't gone away by
> themselves.  So I find my self in ironic agreement with Andy that it doesn't
> make sense to wait for / impose a global solution, because there's plenty
> of evidence that having all sorts of ill-defined cases of questionable
> interoperability in theory hasn't been sufficient to prevent adoption of
> the technology.
> 
> Randy
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod