Re: [YANG] keyref

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 22 January 2008 08:18 UTC

Return-path: <yang-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1JHEL2-00079q-6A; Tue, 22 Jan 2008 03:18:32 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JHEL0-00079l-NM for yang-confirm+ok@megatron.ietf.org; Tue, 22 Jan 2008 03:18:30 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JHEL0-00079d-Dk for yang@ietf.org; Tue, 22 Jan 2008 03:18:30 -0500
Received: from hermes.jacobs-university.de ([212.201.44.23]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JHEKy-0002FT-NR for yang@ietf.org; Tue, 22 Jan 2008 03:18:30 -0500
Received: from localhost (demetrius.jacobs-university.de [212.201.44.32]) by hermes.jacobs-university.de (Postfix) with ESMTP id A99328A37C; Tue, 22 Jan 2008 09:18:27 +0100 (CET)
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id 16178-09; Tue, 22 Jan 2008 09:18:23 +0100 (CET)
Received: from elstar.local (elstar.iuhb02.iu-bremen.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 3A91C8A1F5; Tue, 22 Jan 2008 09:18:23 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id E3942477A33; Tue, 22 Jan 2008 09:18:21 +0100 (CET)
Date: Tue, 22 Jan 2008 09:18:21 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [YANG] keyref
Message-ID: <20080122081821.GA5210@elstar.local>
Mail-Followup-To: Martin Bjorklund <mbj@tail-f.com>, ietf@andybierman.com, yang@ietf.org
References: <4794D016.10107@andybierman.com> <20080121.230429.148337580.mbj@tail-f.com> <47954F24.905@andybierman.com> <20080122.091246.105352306.mbj@tail-f.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20080122.091246.105352306.mbj@tail-f.com>
User-Agent: Mutt/1.5.17 (2007-11-01)
X-Virus-Scanned: amavisd-new 2.3.3 (20050822) at jacobs-university.de
X-Spam-Score: 0.0 (/)
X-Scan-Signature: d6b246023072368de71562c0ab503126
Cc: yang@ietf.org
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: j.schoenwaelder@jacobs-university.de
List-Id: YANG modeling Language for NETCONF <yang.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/yang>, <mailto:yang-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/yang>
List-Post: <mailto:yang@ietf.org>
List-Help: <mailto:yang-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/yang>, <mailto:yang-request@ietf.org?subject=subscribe>
Errors-To: yang-bounces@ietf.org

On Tue, Jan 22, 2008 at 09:12:46AM +0100, Martin Bjorklund wrote:
 
> The idea is that the value space of the keyref type is constrained
> to the set of values of the existing instances.

But that is time varying.

> This means that if you have a keyref to ifIndex, and the interface 1,
> 3, and 4 exists, the value space is {1, 3, 4}.  When setting a leaf of
> this type, you must set it to one of 1, 3, and 4.

So what happens if I choose 3 and interface 3 disappears?

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1, 28759 Bremen, Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>


_______________________________________________
YANG mailing list
YANG@ietf.org
https://www1.ietf.org/mailman/listinfo/yang