Re: Gen-Art LC review: draft-ietf-netmod-yang-metadata-04

Ladislav Lhotka <lhotka@nic.cz> Fri, 11 March 2016 15:04 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: ietf@ietfa.amsl.com
Delivered-To: ietf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A41BD12D7F0; Fri, 11 Mar 2016 07:04:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.001
X-Spam-Level:
X-Spam-Status: No, score=-7.001 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, RP_MATCHES_RCVD=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 43mJ7lx4zH9F; Fri, 11 Mar 2016 07:04:44 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C6D7F12D7A5; Fri, 11 Mar 2016 07:04:43 -0800 (PST)
Received: from [IPv6:2001:718:1a02:1:78b3:e555:d573:5b15] (unknown [IPv6:2001:718:1a02:1:78b3:e555:d573:5b15]) by mail.nic.cz (Postfix) with ESMTPSA id 58E4D180C61; Fri, 11 Mar 2016 16:04:42 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1457708682; bh=UQpkKPunZgUBmASqsQqiyQx4A9tPdfwtryl/F8TAw2U=; h=From:Date:To; b=utzc9nLmfAttDAXZJ0lXzNwE/+1a4LVAKZK67hOuxB10IhxSedR9oa8pQxIHjZsoj u0uJ+x8AKcZDlUl02/Ky6gnkjMjxO86z6f4j9EMfimdvDcXNsRu944YdraiIZm6V3A cHV7yPOsb65meWp0ZBQTBguuqKGXbqR0eOZAKVEM=
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
Subject: Re: Gen-Art LC review: draft-ietf-netmod-yang-metadata-04
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <20160311130707.GA10591@elstar.local>
Date: Fri, 11 Mar 2016 16:04:45 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <47A0C6CB-1B26-48E0-ADF4-A7D6E4AA47C0@nic.cz>
References: <56D60EF5.7020001@nostrum.com> <m27fhbvb07.fsf@birdie.labs.nic.cz> <56E209E3.4030805@nostrum.com> <415C6558-F5D2-4575-B380-C082171DFA21@nic.cz> <033701d17b91$710ce580$4001a8c0@gateway.2wire.net> <20160311130707.GA10591@elstar.local>
To: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>
X-Mailer: Apple Mail (2.3112)
X-Virus-Scanned: clamav-milter 0.98.7 at mail
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/ietf/yDia-eDKOgzLZ4m9ezGph0T7ic4>
Cc: draft-ietf-netmod-yang-metadata.all@ietf.org, NETMOD WG <netmod@ietf.org>, General Area Review Team <gen-art@ietf.org>, ietf@ietf.org
X-BeenThere: ietf@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: IETF-Discussion <ietf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ietf>, <mailto:ietf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ietf/>
List-Post: <mailto:ietf@ietf.org>
List-Help: <mailto:ietf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ietf>, <mailto:ietf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 11 Mar 2016 15:04:46 -0000

> On 11 Mar 2016, at 14:07, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> 
> On Fri, Mar 11, 2016 at 11:15:28AM +0000, tom p. wrote:
>> Lada, Robert
>> 
>> The other angle from which this might be approached is that the I-D
>> already says
>> 
>> "   Using the "type" statement, a type is specified for the annotation
>>   value according to the same rules as for YANG "leaf" type. "
>> 
>> while rfc6020bis says
>> 
>> "   The "leaf" statement is used to define a scalar variable of a
>>   particular built-in or derived type."
>> 
>> so if you know your YANG off by heart, then you will know that
>> annotations must be scalar.  I agree that the text needs to be clearer.
>> Perhaps,
>> OLD
>> "   o  annotations are scalar values and cannot be further structured;"
>> NEW
>> "Annotations obey the same rules as for a YANG "leaf" type [rfc6020bis
>> s.7.6] and so are limited to scalar variables."
> 
> There is no 'leaf type' in YANG. YANG has leaf nodes in the schema
> tree. An annotation is not a node in the schema tree. Perhaps
> something like this:
> 
>  An annotation carries a single value. The type substatement, which
>  must be present, takes as an argument the name of an existing
>  built-in or derived type and the value of the annotation must match
>  this type. See Section 7.4 of [RFC6020bis] for details.

Looks good, thanks. Robert, Tom, do you think this text is sufficient? 

Lada

> 
> /js
> 
> -- 
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>

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