Re: [netmod] AD review of draft-ietf-netmod-system-mgmt

Ladislav Lhotka <lhotka@nic.cz> Fri, 13 December 2013 19:58 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5C88C1AE321 for <netmod@ietfa.amsl.com>; Fri, 13 Dec 2013 11:58:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.652
X-Spam-Level:
X-Spam-Status: No, score=-0.652 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HELO_EQ_CZ=0.445, HOST_EQ_CZ=0.904, RP_MATCHES_RCVD=-0.001] autolearn=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 fIKFMOi5OvwH for <netmod@ietfa.amsl.com>; Fri, 13 Dec 2013 11:58:41 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) by ietfa.amsl.com (Postfix) with ESMTP id ADB971AD8D5 for <netmod@ietf.org>; Fri, 13 Dec 2013 11:58:40 -0800 (PST)
Received: from [172.29.2.202] (nat-5.bravonet.cz [77.48.224.5]) by mail.nic.cz (Postfix) with ESMTPSA id BD8A413FAC3; Fri, 13 Dec 2013 20:58:33 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nic.cz; s=default; t=1386964714; bh=XZOdCziPvqnYACUKje5iR3ChLhZPs2TeNwJqvPSDnkg=; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc: Content-Transfer-Encoding:Message-Id:References:To; b=LBEHN22IQ8u6H/JIdBJbgfqKZZcri1pBVCoumzp08Ug2ck5mewAuYnHZHC5mAwTna OGCL2bUxafYn4gjwPvcUdPoFqFCtq93AcVRABmhyaFi3OSzWyloBNv/tsxhVcGUeTV uOeL9JXXXuDALXPNuXzM79JIwhXa6B5n4R0fS2a4=
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <26823763.1386963268732.JavaMail.root@elwamui-huard.atl.sa.earthlink.net>
Date: Fri, 13 Dec 2013 20:58:33 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <4EBD5CDC-81C1-480F-B214-C4380AE54953@nic.cz>
References: <26823763.1386963268732.JavaMail.root@elwamui-huard.atl.sa.earthlink.net>
To: Randy Presuhn <randy_presuhn@mindspring.com>
X-Mailer: Apple Mail (2.1822)
X-Virus-Scanned: clamav-milter 0.97.8 at mail
X-Virus-Status: Clean
Cc: netmod@ietf.org
Subject: Re: [netmod] AD review of draft-ietf-netmod-system-mgmt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Fri, 13 Dec 2013 19:58:42 -0000

On 13 Dec 2013, at 20:34, Randy Presuhn <randy_presuhn@mindspring.com> wrote:

> Hi -
> 
>> From: Martin Bjorklund <mbj@tail-f.com>
>> Sent: Dec 12, 2013 11:22 PM
>> To: randy_presuhn@mindspring.com
>> Cc: netmod@ietf.org
>> Subject: Re: [netmod] AD review of draft-ietf-netmod-system-mgmt
>> 
>> Randy Presuhn <randy_presuhn@mindspring.com> wrote:
>>> Hi -
>>> 
>>>> From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
>>>> Sent: Dec 12, 2013 3:52 AM
>>>> To: Randy Presuhn <randy_presuhn@mindspring.com>, h@elstar.local
>>>> Cc: netmod@ietf.org
>>>> Subject: Re: [netmod] AD review of draft-ietf-netmod-system-mgmt
>>>> 
>>>> On Thu, Dec 12, 2013 at 12:42:57AM -0800, Randy Presuhn wrote:
>>>>> 
>>>>>>   o  An implementation MUST allow any legal "string" (YANG string).
>>>>> 
>>>>> There are good reasons to restrict formatting and control characters -
>>>>> I'll assume YANG strings do this already.  If not, that's another long
>>>>> discussion.
>>>> 
>>>> RFC 6020 says:
>>>> 
>>>>  The string built-in type represents human-readable strings in YANG.
>>>>  Legal characters are tab, carriage return, line feed, and the legal
>>>>  characters of Unicode and ISO/IEC 10646 [ISO.10646]:
>>>> 
>>>>    ;; any Unicode character, excluding the surrogate blocks,
>>>>    ;; FFFE, and FFFF.
>>>>    string = *char
>>>>    char = %x9 / %xA / %xD / %x20-D7FF / %xE000-FFFD /
>>>>           %x10000-10FFFF
>>>> 
>>>> And so far, we have used these strings without further restrictions in
>>>> data models when there was something to be named.
>>> 
>>> Very odd.  It restricts the C0 controls, but permits the C1
>>> control codes?  I hope someone thought that through carefully.
>> 
>> It is what XML Schema 1.0 says is a string.  See
>> http://www.w3.org/TR/xmlschema-2/#string and the reference to
>> http://www.w3.org/TR/2000/WD-xml-2e-20000814#NT-Char
> 
> Let me be more direct.  To exclude, for example,
> VT (vertical tab) but at the same time to include
> RI (reverse line feed) in the set of permitted
> characters seems ill-advised, to say the least.

That was the (somewhat arbitrary) decision taken for XML 1.0. And since it is the serialization format for NETCONF, it was quite logical to adopt it for YANG, too.

> 
> I hope the rationale for including the C1 controls
> (%x80-9F) while quite correctly severely limiting
> the C0 controls is documented somewhere.

Note that XML 1.1 allows #x1..#x1f, represented as character references. BTW, an ultra-long discussion about hairy Unicode issues is now going on in the JSON WG mailing list.

Lada


> 
> Randy
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

--
Ladislav Lhotka, CZ.NIC Labs
PGP Key ID: E74E8C0C