Re: [netmod] 答复: 答复: A question about YANG identifier design

Kent Watsen <kent@watsen.net> Wed, 25 May 2022 16:50 UTC

Return-Path: <01000180fc20bf17-f9292211-f6f2-4cbf-9945-bdd9aba5722e-000000@amazonses.watsen.net>
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 6CC6AC2740CC; Wed, 25 May 2022 09:50:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id NjWm4fV8OA3t; Wed, 25 May 2022 09:50:48 -0700 (PDT)
Received: from a8-83.smtp-out.amazonses.com (a8-83.smtp-out.amazonses.com [54.240.8.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 973D8C2740C7; Wed, 25 May 2022 09:50:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1653497446; h=Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:References:To:Feedback-ID; bh=YW8IACbLJXC8OTrx7aw/YDkkPqNZe8mwwwboq7j8GMM=; b=TWe0eslW8RrzYvQXbtUqnd8k9VZdVLhJx4Vl4nkXnOLSi1e+jN86VVCdVNZfjp4X 5g6sQH4ohRJHi78gjyyftPKlGdSbVRXmwEdS3O+SMgxGznFKxCoYspyUxcp6hBaAojU aHnkLcZ0/uFyqRzUI+HzZniJHpzAFNgB691LR1Cg=
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 15.0 \(3693.60.0.1.1\))
From: Kent Watsen <kent@watsen.net>
In-Reply-To: <20220525081828.kwpbiw43ck4wizw2@anna>
Date: Wed, 25 May 2022 16:50:46 +0000
Cc: yuchaode <yuchaode@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>, Fatai Zhang <zhangfatai@huawei.com>, Zhenghaomian <zhenghaomian@huawei.com>, liuzhoulong <liuzhoulong@huawei.com>, "Chenchunhui (C)" <chenchunhui@huawei.com>
Content-Transfer-Encoding: quoted-printable
Message-ID: <01000180fc20bf17-f9292211-f6f2-4cbf-9945-bdd9aba5722e-000000@email.amazonses.com>
References: <de9b838f10a448c9991d0a381d426716@huawei.com> <20220524101546.cfzkzi55dsutfyic@anna> <f97fd7815d8147a680798dd5159f0594@huawei.com> <20220525072213.udkoy7lejf2qk2iq@anna> <c85dc299766941f7b3749c1572c6ccb3@huawei.com> <20220525081828.kwpbiw43ck4wizw2@anna>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
X-Mailer: Apple Mail (2.3693.60.0.1.1)
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
X-SES-Outgoing: 2022.05.25-54.240.8.83
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/OSLdqxTpUNgyKRQZeehu4yH_KsQ>
Subject: Re: [netmod] 答复: 答复: A question about YANG identifier design
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.34
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, 25 May 2022 16:50:48 -0000


> On May 25, 2022, at 4:18 AM, Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de> wrote:
> 
> I do not think there is currently a way to specify in YANG that a key
> of a list is globally unique and hence a generic protocol engine won't
> know which list key's have this property. I assume the current text is
> there to cover the case where keys are not unique and you like to
> drill down the data tree by processing the URL left to right.

Indeed, I defined an extension called "globally-unique" to declare this in a project I worked on.

K.