Re: [netmod] YANG identities and identityref's

"Acee Lindem (acee)" <acee@cisco.com> Thu, 03 May 2018 18:00 UTC

Return-Path: <acee@cisco.com>
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 B4CE612EA9D for <netmod@ietfa.amsl.com>; Thu, 3 May 2018 11:00:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.51
X-Spam-Level:
X-Spam-Status: No, score=-14.51 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, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 RqmxJAcYFAZU for <netmod@ietfa.amsl.com>; Thu, 3 May 2018 11:00:06 -0700 (PDT)
Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 970F712E856 for <netmod@ietf.org>; Thu, 3 May 2018 11:00:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2358; q=dns/txt; s=iport; t=1525370406; x=1526580006; h=from:to:subject:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=pdNjy+Iw0g7GJoPjjsEFfDv3sgIKpies1DxUkDlZ3gs=; b=kSIUm1YexFN8jWl2gFqKTPswq2KJ3VuutXjlj/a6p+w5zvf3saRbLPj7 HxfKfDI9MvGoOo76c8J+teED1z7iR9DJBWQRuHvM76Eajg9S5OagFuciq Orw54NkwgpKqq25UTJViReOw/F/ipwXDt5SGQS+Dm+KAByDJf09D89LPH Q=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AUAQBaTeta/40NJK1SAQkZAQEBAQEBAQEBAQEBBwEBAQEBg0NheigKg2OIAoxwgT0aIYEPkxuBeAsYC4QDRgIaghYhNBgBAgEBAQEBAQJsHAyFKQEBAQMBASEROhsCAQgYAgImAgICJQsVEAIEARKFDw+pI4IchFiDcII9BYEJhxyCE4EyDIJcgxEBAYE1ASqDADCCJAKYGggCjkqMWZAbAhETAYEkARw4gVJwFTsqAYIYixCFPm+PYYEYAQE
X-IronPort-AV: E=Sophos;i="5.49,359,1520899200"; d="scan'208";a="109002529"
Received: from alln-core-8.cisco.com ([173.36.13.141]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 18:00:04 +0000
Received: from XCH-RTP-014.cisco.com (xch-rtp-014.cisco.com [64.101.220.154]) by alln-core-8.cisco.com (8.14.5/8.14.5) with ESMTP id w43Hxx6j020579 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 3 May 2018 18:00:03 GMT
Received: from xch-rtp-015.cisco.com (64.101.220.155) by XCH-RTP-014.cisco.com (64.101.220.154) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Thu, 3 May 2018 14:00:01 -0400
Received: from xch-rtp-015.cisco.com ([64.101.220.155]) by XCH-RTP-015.cisco.com ([64.101.220.155]) with mapi id 15.00.1320.000; Thu, 3 May 2018 14:00:01 -0400
From: "Acee Lindem (acee)" <acee@cisco.com>
To: Ladislav Lhotka <lhotka@nic.cz>, "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] YANG identities and identityref's
Thread-Index: AQHT4wcmcoN4Fa9nLE+0HGK7LDbJoKQeSw0A
Date: Thu, 03 May 2018 18:00:01 +0000
Message-ID: <3B5F31C4-1504-4F0D-875D-A9B559B01A82@cisco.com>
References: <739F53FB-DD16-4AE3-B1D5-C06DC6972FAB@cisco.com> <09f8964cb246be35d82cba2819891cd4210b3bad.camel@nic.cz>
In-Reply-To: <09f8964cb246be35d82cba2819891cd4210b3bad.camel@nic.cz>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.116.152.196]
Content-Type: text/plain; charset="utf-8"
Content-ID: <7F4A7DF78E9E9E41BB6237B83734B0F1@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/seWZMxeqE6_LSbTkbhKEjXfi0Oo>
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 18:00:09 -0000

Hi Lada, 

So you have a base identify of foo-type and subordinates of foo-type-1, foo-type-2, ... foo-type-9. You have a data leaf that type identityref foo-type but the actual instantiation is not one of the known foo-types. Should a foo-type-unknown be defined to return for this case or should one just return foo-type?  

Thanks,
Acee

On 5/3/18, 1:49 PM, "netmod on behalf of Ladislav Lhotka" <netmod-bounces@ietf.org on behalf of lhotka@nic.cz> wrote:

    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
    
    _______________________________________________
    netmod mailing list
    netmod@ietf.org
    https://www.ietf.org/mailman/listinfo/netmod