Re: [netconf] YANG attributes in a datastore

Kent Watsen <kent+ietf@watsen.net> Wed, 11 December 2019 19:15 UTC

Return-Path: <0100016ef6634682-bcdf940b-f4aa-430a-af3d-28a2c41fa252-000000@amazonses.watsen.net>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9C8BD120058 for <netconf@ietfa.amsl.com>; Wed, 11 Dec 2019 11:15:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
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 YqhkET2RO2W0 for <netconf@ietfa.amsl.com>; Wed, 11 Dec 2019 11:15:33 -0800 (PST)
Received: from a48-95.smtp-out.amazonses.com (a48-95.smtp-out.amazonses.com [54.240.48.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 175CF120052 for <netconf@ietf.org>; Wed, 11 Dec 2019 11:15:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1576091731; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=SyMC0pJQE/I7Y3u2P98NDgqBOygZ/OdGcyGQKDmx1EY=; b=Y/7Xz5UZfA16U4BdK6BX9qrbJ/OzqhAFQcXBitcTf4QrVS3ryL8Lw+q8haKlI5ht fd5KmAuiEhfXxsmXXw7R8F6RLGVHrfNG47d/nPVZLhDcrUdJzQve8lJjpHP53ozkABE qk7XDMNCAWJleSvBdd+sRhewo1Fw14ESqgH71R38=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <0100016ef6634682-bcdf940b-f4aa-430a-af3d-28a2c41fa252-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_ADE2765C-8B75-480C-BA1E-84CC129CB871"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Wed, 11 Dec 2019 19:15:31 +0000
In-Reply-To: <B8F9A780D330094D99AF023C5877DABAA94F0F2D@dggeml511-mbx.china.huawei.com>
Cc: Ladislav Lhotka <lhotka@nic.cz>, "netconf@ietf.org" <netconf@ietf.org>
To: Qin Wu <bill.wu@huawei.com>
References: <B8F9A780D330094D99AF023C5877DABAA94F0F2D@dggeml511-mbx.china.huawei.com>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2019.12.11-54.240.48.95
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/-lnVbLeeBWa0kVtQM9ghAsvqi18>
Subject: Re: [netconf] YANG attributes in a datastore
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Dec 2019 19:15:34 -0000

Hi Qin,

Quite different.   One is in the YANG model while the other is in the data defined by the YANG model.

Kent



> On Dec 10, 2019, at 8:46 PM, Qin Wu <bill.wu@huawei.com> wrote:
> 
> Kent:
> How “enable” attribute is different from if-feature statement?
>  
> -Qin
> 发件人: netconf [mailto:netconf-bounces@ietf.org] 代表 Kent Watsen
> 发送时间: 2019年12月11日 0:20
> 收件人: Ladislav Lhotka <lhotka@nic.cz>
> 抄送: netconf@ietf.org
> 主题: Re: [netconf] YANG attributes in a datastore
>  
>  
> A typical example is a "comment" annotation - you want to permit it basically
> everywhere but don't want to clutter the schema with "comment" leaves.
>  
> These are what I refer to as "cross-cutting" metadata attributes.  Another example
> is the "enabled" attribute defined in draft-kwatsen-conditional-enablement.
>  
> Kent // contributor
>