Re: [netmod] YANG identities and identityref's

Ladislav Lhotka <lhotka@nic.cz> Thu, 03 May 2018 17:49 UTC

Return-Path: <lhotka@nic.cz>
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 5628E124217 for <netmod@ietfa.amsl.com>; Thu, 3 May 2018 10:49:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.999
X-Spam-Level:
X-Spam-Status: No, score=-6.999 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, URIBL_BLOCKED=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 4M45rJBGzZU2 for <netmod@ietfa.amsl.com>; Thu, 3 May 2018 10:49:39 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (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 B9982124234 for <netmod@ietf.org>; Thu, 3 May 2018 10:49:39 -0700 (PDT)
Received: from birdie (unknown [IPv6:2a01:5e0:29:ffff:ffc6:c393:cdb9:8db1]) by mail.nic.cz (Postfix) with ESMTPSA id 0660760773 for <netmod@ietf.org>; Thu, 3 May 2018 19:49:38 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1525369778; bh=NipPiK/k6Z79TTJ/b0u4vCecdINtdAfN68kCLwRwCxA=; h=From:To:Date; b=UgWDOuMUHDl2KMV24edDHNaCcNzXxXbldmpYbOtpGxZE41j16V1Gw9u/C7rDMW5qV oPzcPRfni8IUjKjv7InD4OgWjuBHZ/fUZEhB8S0/V6seEiR77uVzSdirhF3IrIE7No UMKyVK1REN1zoARNfR2bFImqjP+zvnPxbzgcI7pQ=
Message-ID: <09f8964cb246be35d82cba2819891cd4210b3bad.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: netmod@ietf.org
Date: Thu, 03 May 2018 19:49:46 +0200
In-Reply-To: <739F53FB-DD16-4AE3-B1D5-C06DC6972FAB@cisco.com>
References: <739F53FB-DD16-4AE3-B1D5-C06DC6972FAB@cisco.com>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.28.1
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/cFRdSmqnjUeGs9J3unFQ5hmj0-E>
Subject: Re: [netmod] YANG identities and identityref's
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 03 May 2018 17:49:42 -0000

Hi Acee,

I am not sure what you mean by unknown identities. In general, the identity used
as the base of an identityref (or in Xpath functions derived-from/derived-from-
or-self) should be the most general identity that can match at the given place.

Do you have any example illustrating your case?

Lada


On Thu, 2018-05-03 at 17:30 +0000, Acee Lindem (acee) wrote:
> Let’s say one define a base identity with a hierarchy of identifyref’s using
> it. This will allow for augmentation in future models. Should one also define
> an identityref for the class of unknown identities? Or, should one simply
> return the lowest parent in the hierarchy matching the value? Many times, this
> would be the base identity.
>  
> Thanks,
> Acee
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67