Re: [netconf] YANG attributes in a datastore
Qin Wu <bill.wu@huawei.com> Wed, 11 December 2019 01:46 UTC
Return-Path: <bill.wu@huawei.com>
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 7D019120219 for <netconf@ietfa.amsl.com>; Tue, 10 Dec 2019 17:46:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level:
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URIBL_BLOCKED=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 RPQ0LD3eRbKh for <netconf@ietfa.amsl.com>; Tue, 10 Dec 2019 17:46:34 -0800 (PST)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (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 7B75612008C for <netconf@ietf.org>; Tue, 10 Dec 2019 17:46:34 -0800 (PST)
Received: from lhreml708-cah.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id BF057DEFA4E3EF19E5E8; Wed, 11 Dec 2019 01:46:32 +0000 (GMT)
Received: from DGGEML406-HUB.china.huawei.com (10.3.17.50) by lhreml708-cah.china.huawei.com (10.201.108.49) with Microsoft SMTP Server (TLS) id 14.3.408.0; Wed, 11 Dec 2019 01:46:32 +0000
Received: from DGGEML511-MBX.china.huawei.com ([169.254.1.39]) by dggeml406-hub.china.huawei.com ([10.3.17.50]) with mapi id 14.03.0439.000; Wed, 11 Dec 2019 09:46:26 +0800
From: Qin Wu <bill.wu@huawei.com>
To: Balázs Lengyel <balazs.lengyel=40ericsson.com@dmarc.ietf.org>, Martin Bjorklund <mbj@tail-f.com>, "mvasko@cesnet.cz" <mvasko@cesnet.cz>
CC: "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [netconf] YANG attributes in a datastore
Thread-Index: AdWvxEvm6tjbWQ/aTOKJuC240b07PQ==
Date: Wed, 11 Dec 2019 01:46:26 +0000
Message-ID: <B8F9A780D330094D99AF023C5877DABAA94F0F1F@dggeml511-mbx.china.huawei.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.134.31.203]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/uV5uqtwbGP9KiFM9PptQwOeoXzM>
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 01:46:36 -0000
I am wondering whether the metadata is part of NMDA datastore, e.g., operational datastore? Should protocol operation tackle these metadata? -Qin -----邮件原件----- 发件人: netconf [mailto:netconf-bounces@ietf.org] 代表 Balázs Lengyel 发送时间: 2019年12月10日 22:59 收件人: Martin Bjorklund <mbj@tail-f.com>; mvasko@cesnet.cz 抄送: netconf@ietf.org 主题: Re: [netconf] YANG attributes in a datastore Hello, If we try to standardize editing metadata, we will face a number of issues that need to be clarified: - Will you model whether the attribute (metadata) is writable? Config is not an allowed substatement in https://tools.ietf.org/html/rfc7952#section-3 - Can a metadata have other additional properties? (mandatory, cardinality, uniqueness of some kind?) - If it is modified, will it be subject to validation, error-messages? Will a bad metadata result in a failed error-config? Regards Balazs -----Original Message----- From: netconf <netconf-bounces@ietf.org> On Behalf Of Martin Bjorklund Sent: 2019. december 10., kedd 15:04 To: mvasko@cesnet.cz Cc: netconf@ietf.org Subject: Re: [netconf] YANG attributes in a datastore Hi, Michal Vaško <mvasko@cesnet.cz> wrote: > Hello, > we are thinking about adding support for arbitrary attributes [1] in > our YANG/NETCONF datastore. To my knowledge, only the representation > in XML or JSON is defined and standardized but there are no guidelines > for editing (CRUD) these attributes. > > So, my question is a rather general one, regarding implementations > that support editing these attributes, would you mind sharing some > basic ideas or principles used? Or is this outside any consensus and > each implementation is free to handle this completely in its own > fashion? Thanks for any input. I think this depends on the attribute defintion. Some attributes are read-only from the northbound's protocol point of view. Internally in the server you may need some API to set/change them of course. Some other attributes are read-write. In our implementation we support a few read-write attributes (and some read-only). Here's a simple example (in an edit-config): <foo annotation="hello"/> This would set/change the "annotation" attribute's value to "hello", regardless of its previous value. To delete an annotation, you would do: <foo annotation=""/> Each of our attributes has a special value that means "delete" (in most cases it is the empty string. /martin > > Regards, > Michal > > [1] https://tools.ietf.org/html/rfc7952 > > _______________________________________________ > netconf mailing list > netconf@ietf.org > https://www.ietf.org/mailman/listinfo/netconf > _______________________________________________ netconf mailing list netconf@ietf.org https://www.ietf.org/mailman/listinfo/netconf
- [netconf] YANG attributes in a datastore Michal Vaško
- Re: [netconf] YANG attributes in a datastore Ladislav Lhotka
- Re: [netconf] YANG attributes in a datastore Martin Bjorklund
- Re: [netconf] YANG attributes in a datastore Ladislav Lhotka
- Re: [netconf] YANG attributes in a datastore Martin Bjorklund
- Re: [netconf] YANG attributes in a datastore Balázs Lengyel
- Re: [netconf] YANG attributes in a datastore Ladislav Lhotka
- Re: [netconf] YANG attributes in a datastore Andy Bierman
- Re: [netconf] YANG attributes in a datastore Ladislav Lhotka
- Re: [netconf] YANG attributes in a datastore Kent Watsen
- Re: [netconf] YANG attributes in a datastore Andy Bierman
- Re: [netconf] YANG attributes in a datastore Ladislav Lhotka
- Re: [netconf] YANG attributes in a datastore Andy Bierman
- Re: [netconf] YANG attributes in a datastore Kent Watsen
- Re: [netconf] YANG attributes in a datastore Qin Wu
- Re: [netconf] YANG attributes in a datastore Qin Wu
- Re: [netconf] YANG attributes in a datastore Ladislav Lhotka
- Re: [netconf] YANG attributes in a datastore Martin Bjorklund
- Re: [netconf] YANG attributes in a datastore Kent Watsen
- Re: [netconf] YANG attributes in a datastore Kent Watsen
- Re: [netconf] YANG attributes in a datastore Andy Bierman
- Re: [netconf] YANG attributes in a datastore Andy Bierman