Re: [YANG] mandatory & default

Balazs Lengyel <balazs.lengyel@ericsson.com> Fri, 25 January 2008 15:29 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 1JIQUz-0004fW-BH; Fri, 25 Jan 2008 10:29:45 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JIQUx-0004fO-Q8 for yang-confirm+ok@megatron.ietf.org; Fri, 25 Jan 2008 10:29:43 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JIQUx-0004fG-Ds for yang@ietf.org; Fri, 25 Jan 2008 10:29:43 -0500
Received: from mailgw3.ericsson.se ([193.180.251.60]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JIQUw-0001Er-87 for yang@ietf.org; Fri, 25 Jan 2008 10:29:43 -0500
Received: from mailgw3.ericsson.se (unknown [127.0.0.1]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 7CE9C213D2; Fri, 25 Jan 2008 16:28:49 +0100 (CET)
X-AuditID: c1b4fb3c-ad31ebb0000007e0-33-479a00312673
Received: from esealmw127.eemea.ericsson.se (unknown [153.88.254.122]) by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 6288E213C7; Fri, 25 Jan 2008 16:28:49 +0100 (CET)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.175]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 25 Jan 2008 16:28:47 +0100
Received: from [159.107.197.224] ([159.107.197.224]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 25 Jan 2008 16:28:46 +0100
Message-ID: <479A002E.3070708@ericsson.com>
Date: Fri, 25 Jan 2008 16:28:46 +0100
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 2.0.0.4 (X11/20070604)
MIME-Version: 1.0
To: Andy Bierman <ietf@andybierman.com>
Subject: Re: [YANG] mandatory & default
References: <4799FD8F.1090402@andybierman.com>
In-Reply-To: <4799FD8F.1090402@andybierman.com>
Content-Type: multipart/mixed; boundary="------------030103050403080701070401"
X-OriginalArrivalTime: 25 Jan 2008 15:28:46.0956 (UTC) FILETIME=[FA3B6AC0:01C85F66]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a3f7094ccc62748c06b21fcf44c073ee
Cc: yang <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

Hello,
I agree with Andy that a leaf either exists or not. I don't like half existing defaults.
Please also consider that defaults effect much more then just the get-config results. (See 
attachment.
I attached a file about an alternative (and I hope very understandable) solution. Please start 
to tell me why it is bad :-)
Balazs

PS.Sorry if my proposal is long.

Andy Bierman wrote:
> Hi,
> 
> I don't think every vendor deals with agent-created defaults in the
> same way, and there is zero chance every implementation will converge
> on one interpretation.
> 
> The important thing to consider is:
>   what is important for standards-based configuration?
> 
> Here is the bottom line:
> 
>  - RFC 4741 requires that *all* config database objects be returned
>    in a <get-config> without any filters
> 
>  - All data nodes that exist in the configuration have some value
>    (consider the value for 'empty' to be present/not-present)
> 
>  - An extension is needed (e.g., with-defaults=false) to change the
>    behavior of RFC 4741 wrt/ returning a subset of all nodes without
>    any filter defined
> 
> Phil seems to be arguing that nodes that contain the agent-specified
> default value are not really there.   Yet, if the manager
> sets a node explicitly to the default value, it is there.
> IMO, this is rather confusing, and broken.
> 
> The idea of tracking down stacks of offline vendor documentation
> to determine the theoretical values of these 'default nodes', instead of
> simply asking the agent for the real values, is a non-starter.
> That may be good enough for CLI, but not standards based configuration.
> 
> 
> Andy
> 
> 
> 
> 
> _______________________________________________
> 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