Re: [YANG] new pyang errors

Balazs Lengyel <balazs.lengyel@ericsson.com> Wed, 23 January 2008 09:01 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 1JHbTq-0007gk-Ci; Wed, 23 Jan 2008 04:01:10 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JHbTp-0007bE-Gs for yang-confirm+ok@megatron.ietf.org; Wed, 23 Jan 2008 04:01:09 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JHbTp-0007YF-4y for yang@ietf.org; Wed, 23 Jan 2008 04:01:09 -0500
Received: from mailgw3.ericsson.se ([193.180.251.60]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JHbTo-000081-NS for yang@ietf.org; Wed, 23 Jan 2008 04:01:09 -0500
Received: from mailgw3.ericsson.se (unknown [127.0.0.1]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 9CE9220E2E; Wed, 23 Jan 2008 10:00:53 +0100 (CET)
X-AuditID: c1b4fb3c-a92eabb0000007e0-57-47970245737c
Received: from esealmw129.eemea.ericsson.se (unknown [153.88.254.124]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 5353720E29; Wed, 23 Jan 2008 10:00:53 +0100 (CET)
Received: from esealmw129.eemea.ericsson.se ([153.88.254.177]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Wed, 23 Jan 2008 10:00:50 +0100
Received: from [159.107.197.224] ([159.107.197.224]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Wed, 23 Jan 2008 10:00:50 +0100
Message-ID: <47970242.1040406@ericsson.com>
Date: Wed, 23 Jan 2008 10:00:50 +0100
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 2.0.0.4 (X11/20070604)
MIME-Version: 1.0
To: Randy Presuhn <randy_presuhn@mindspring.com>
Subject: Re: [YANG] new pyang errors
References: <200801230559.m0N5xoXf020086@idle.juniper.net> <000c01c85d89$b114eb20$6801a8c0@oemcomputer>
In-Reply-To: <000c01c85d89$b114eb20$6801a8c0@oemcomputer>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 23 Jan 2008 09:00:50.0623 (UTC) FILETIME=[73A15CF0:01C85D9E]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: -1.0 (-)
X-Scan-Signature: 8abaac9e10c826e8252866cbe6766464
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

Randy Presuhn wrote:
> The "with-defaults" view sounds like it would help, particulary
> if a default-ed value isn't known a priori.

Let's not forget that the handling of defaults effect much more then the result of the 
get-config. IMHO the basic question is simply "does a leaf set only due to it's default exist?" 
(in the conceptual database).

This effects the following:
1) Does it exist?

2) How does edit-config create/delete work on it? E.g. can you create a leaf that already 
exists(?) due to a default value?

3) If you later explicitly delete a leaf with a default value what happens. Will it cease to 
exist? Will it automatically pop-up with the default value again?

4) Is there any difference between a leaf set by the default and a leaf explicitly (edit-config 
replace) set to the same value?
I really hope not.

5) Will get-config return such a leaf?
It may or may not depending on the implementation or the with-defaults option

6) Will a non-presence container exist if it has leafs set by default? This will effect how 
edit-config none is handled.

7) Does a "must" statement consider such leafs to exist.
I assume yes.

Balazs


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