Re: [YANG] keyref
Balazs Lengyel <balazs.lengyel@ericsson.com> Tue, 22 January 2008 13:42 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 1JHJOb-0007UW-Lb; Tue, 22 Jan 2008 08:42:33 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JHJOb-0007Ss-8q
for yang-confirm+ok@megatron.ietf.org; Tue, 22 Jan 2008 08:42:33 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JHJOa-0007FX-J6
for yang@ietf.org; Tue, 22 Jan 2008 08:42:32 -0500
Received: from mailgw3.ericsson.se ([193.180.251.60])
by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JHJOY-0001Nc-05
for yang@ietf.org; Tue, 22 Jan 2008 08:42:30 -0500
Received: from mailgw3.ericsson.se (unknown [127.0.0.1])
by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id
F095020CEC; Tue, 22 Jan 2008 14:42:28 +0100 (CET)
X-AuditID: c1b4fb3c-a92eabb0000007e0-86-4795f2c4415d
Received: from esealmw127.eemea.ericsson.se (unknown [153.88.254.122])
by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id
E4C36204D8; Tue, 22 Jan 2008 14:42:28 +0100 (CET)
Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by
esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830);
Tue, 22 Jan 2008 14:42:28 +0100
Received: from [159.107.197.224] ([159.107.197.224]) by
esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830);
Tue, 22 Jan 2008 14:42:28 +0100
Message-ID: <4795F2C3.4080004@ericsson.com>
Date: Tue, 22 Jan 2008 14:42:27 +0100
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 2.0.0.4 (X11/20070604)
MIME-Version: 1.0
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [YANG] keyref
References: <4794D016.10107@andybierman.com> <20080121.230429.148337580.mbj@tail-f.com> <47954F24.905@andybierman.com>
<20080122.091246.105352306.mbj@tail-f.com>
In-Reply-To: <20080122.091246.105352306.mbj@tail-f.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 22 Jan 2008 13:42:28.0149 (UTC)
FILETIME=[A0ED7650:01C85CFC]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 9ed51c9d1356100bce94f1ae4ec616a9
Cc: yang@ietf.org
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
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
So if I have a keyref to ifIndex 3 and then I remove interface with ifIndex 3, that is I get a dangling reference that points into the void, will I have an invalid configuration? If you want to check at delete interface all the leafs that reference the interface, that might not be simple. Balazs Martin Bjorklund wrote: > Andy Bierman <ietf@andybierman.com> wrote: >> Why does it work the same as other types. >> That's kind of a circular definition. >> >> I don't see the use case for writable keyrefs. >> When you read the object the first time, it has the value >> from the ptarh target, and when you set the keyref leaf, >> it has the new value and no longer is a reference to the key leaf. >> Then it changes back to a reference if the manager deletes the >> keyref leaf? > > That's not how it works. What part of the text supports this > interpretation? The idea is that the value space of the keyref type > is constrained to the set of values of the existing instances. > > 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. > > > > /martin > > > _______________________________________________ > YANG mailing list > YANG@ietf.org > https://www1.ietf.org/mailman/listinfo/yang -- Balazs Lengyel Ericsson Hungary Ltd. TSP System Manager ECN: 831 7320 Fax: +36 1 4377792 Tel: +36-1-437-7320 email: Balazs.Lengyel@ericsson.com _______________________________________________ YANG mailing list YANG@ietf.org https://www1.ietf.org/mailman/listinfo/yang
- [YANG] keyref Andy Bierman
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Balazs Lengyel
- Re: [YANG] keyref Balazs Lengyel
- RE: [YANG] keyref Bert Wijnen
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Balazs Lengyel
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Juergen Schoenwaelder
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Phil Shafer
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Randy Presuhn
- Re: [YANG] keyref Randy Presuhn
- Re: [YANG] keyref Phil Shafer
- Re: [YANG] keyref Andy Bierman
- Re: [YANG] keyref Martin Bjorklund
- Re: [YANG] keyref Balazs Lengyel
- Re: [YANG] keyref Andy Bierman