Re: [YANG] default values

Balazs Lengyel <balazs.lengyel@ericsson.com> Fri, 18 January 2008 09:21 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 1JFnQF-0003pa-QW; Fri, 18 Jan 2008 04:21:59 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JFnQD-0003mS-Ry for yang-confirm+ok@megatron.ietf.org; Fri, 18 Jan 2008 04:21:58 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JFnQ7-0003gV-5y for yang@ietf.org; Fri, 18 Jan 2008 04:21:51 -0500
Received: from mailgw4.ericsson.se ([193.180.251.62]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JFnQ5-0002PZ-JJ for yang@ietf.org; Fri, 18 Jan 2008 04:21:51 -0500
Received: from mailgw4.ericsson.se (unknown [127.0.0.1]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id CADB321021; Fri, 18 Jan 2008 10:21:48 +0100 (CET)
X-AuditID: c1b4fb3e-abdeabb0000007e1-1e-47906facaa61
Received: from esealmw129.eemea.ericsson.se (unknown [153.88.254.124]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id B0DB4200FD; Fri, 18 Jan 2008 10:21:48 +0100 (CET)
Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 18 Jan 2008 10:21:48 +0100
Received: from [159.107.197.224] ([159.107.197.224]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 18 Jan 2008 10:21:48 +0100
Message-ID: <47906FAB.2060505@ericsson.com>
Date: Fri, 18 Jan 2008 10:21:47 +0100
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 2.0.0.4 (X11/20070604)
MIME-Version: 1.0
To: Phil Shafer <phil@juniper.net>
Subject: Re: [YANG] default values
References: <200801180300.m0I30a7g007182@idle.juniper.net>
In-Reply-To: <200801180300.m0I30a7g007182@idle.juniper.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 18 Jan 2008 09:21:48.0096 (UTC) FILETIME=[8D13C400:01C859B3]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: -1.0 (-)
X-Scan-Signature: e1e48a527f609d1be2bc8d8a70eb76cb
Cc: yang@ietf.org, lhotka@cesnet.cz
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

Hello,
Why would the presence container come back automatically? There's today no text in the draft, 
that says presence containers are automatically removed or created.

The draft says
"If the leaf has a default value, the server MUST use this value internally if no value is 
provided by the NETCONF client when the instance is created."

Actually we failed to state what happens, if we later explicitly delete a leaf with a default 
value. In my view if the user wants to delete it then it should go away; no value present any 
more.
One more thing I think is still missing from the draft, is whether must expressions consider 
default values or not?

Balazs

Phil Shafer wrote:
> Martin Bjorklund writes:
>> This is an interesting example, but currently YANG does not support
>> this use case, i.e. marking a presence container as present by
>> default.  Is that something we should add?
> 
> This would be confusing and probably broken.  If it's "present"
> by default, why have it and how do you turn it off?  You can't
> delete it, since it comes right back, so you can't turn it off.
> So what's the point of giving it a "presence"?
> 
> Thanks,
>  Phil
> 
> 
> _______________________________________________
> 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