Re: [netmod] Request to review the YANG compiler annotations draft.

worley@ariadne.com (Dale R. Worley) Wed, 06 July 2016 01:38 UTC

Return-Path: <worley@alum.mit.edu>
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 A8A3712B025 for <netmod@ietfa.amsl.com>; Tue, 5 Jul 2016 18:38:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.934
X-Spam-Level:
X-Spam-Status: No, score=-1.934 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_SOFTFAIL=0.665] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=comcast.net
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 OZO3lz8pda7a for <netmod@ietfa.amsl.com>; Tue, 5 Jul 2016 18:38:43 -0700 (PDT)
Received: from resqmta-ch2-06v.sys.comcast.net (resqmta-ch2-06v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 71A6112B016 for <netmod@ietf.org>; Tue, 5 Jul 2016 18:38:43 -0700 (PDT)
Received: from resomta-ch2-12v.sys.comcast.net ([69.252.207.108]) by resqmta-ch2-06v.sys.comcast.net with SMTP id KbnRbJMuLE8zeKbnWbva52; Wed, 06 Jul 2016 01:38:42 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1467769122; bh=d+/x4wLMcqaNch6YBigP3R1DDm7FM/U2DnrElIBWIs4=; h=Received:Received:Received:Received:From:To:Subject:Date: Message-ID; b=eZngKl9rnoSwLjgrnsk+iRvHhuBUZj8VBpb7xf3ztkw+wYmizC4IN2vrm/Bp2Pl// co0GraSMY8O1C9BvltEdaNk9v/MFLikPOYyuRwYcNgq013gdivdUm5p7t9H00Nm51I mWWlKKVxy88cLXnXvWw6jTwQZg26KZnYHRuhTkigsrlHkEkzxFFQN7dxu9o3/TEe6o OPTT+/KmG6pSN3x3d4pXIWRESOk5gDsu8AGMeEtj1yGWi5mNdfk3E+5K0Qi7znoL14 ysaIJSNIrIJdBCap/4PUPFvrI/njkrdfTR4ui8glNQ8nXyVxlp8vkbRNooUxNDqOQN ZqpNwPOPJZR7Q==
Received: from hobgoblin.ariadne.com ([73.143.237.82]) by resomta-ch2-12v.sys.comcast.net with comcast id FDei1t0021nMCLR01Deiu3; Wed, 06 Jul 2016 01:38:42 +0000
Received: from hobgoblin.ariadne.com (hobgoblin.ariadne.com [127.0.0.1]) by hobgoblin.ariadne.com (8.14.7/8.14.7) with ESMTP id u661cfo4010018 for <netmod@ietf.org>; Tue, 5 Jul 2016 21:38:41 -0400
Received: (from worley@localhost) by hobgoblin.ariadne.com (8.14.7/8.14.7/Submit) id u661cf4b010015; Tue, 5 Jul 2016 21:38:41 -0400
X-Authentication-Warning: hobgoblin.ariadne.com: worley set sender to worley@alum.mit.edu using -f
From: worley@ariadne.com
To: netmod@ietf.org
In-Reply-To: <20160701.104034.227190528657031397.mbj@tail-f.com>
Sender: worley@ariadne.com
Date: Tue, 05 Jul 2016 21:38:41 -0400
Message-ID: <87bn2bczq6.fsf@hobgoblin.ariadne.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/VjUEJSihSTJNGoEtVS8F7Uopxq4>
Subject: Re: [netmod] Request to review the YANG compiler annotations draft.
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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: Wed, 06 Jul 2016 01:38:45 -0000

Martin Bjorklund <mbj@tail-f.com> writes:
> "vinods.kumar" <vinods.kumar@huawei.com> wrote:
>>     We have written a draft, to add annotation in YANG definition which can
>> be used by the YANG compilers.
>
>   1)  What you propose is not valid YANG.  This new syntax would
>       require a new version of the YANG language.

I must vigorously agree with the other commentators that if the
annotations are permitted to be in-line in a Yang module, then you must
develop a syntax that is valid Yang.  Otherwise, an annotated Yang file
isn't processable by an arbitrary Yang processor, it is bound to a
special processor, and isn't really a Yang file at all.

If the concept of more-or-less implementation independent annotations is
adopted, it seems to be best to put it conceptually in the framework by
which one Yang module extends another module.

Dale