Re: [YANG] default values

Andy Bierman <ietf@andybierman.com> Thu, 17 January 2008 20:56 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 1JFbmw-00051P-81; Thu, 17 Jan 2008 15:56:38 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JFbmu-00051J-Jy for yang-confirm+ok@megatron.ietf.org; Thu, 17 Jan 2008 15:56:36 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JFbmu-000513-9v for yang@ietf.org; Thu, 17 Jan 2008 15:56:36 -0500
Received: from smtp119.sbc.mail.sp1.yahoo.com ([69.147.64.92]) by ietf-mx.ietf.org with smtp (Exim 4.43) id 1JFbmt-00067y-Q9 for yang@ietf.org; Thu, 17 Jan 2008 15:56:36 -0500
Received: (qmail 23825 invoked from network); 17 Jan 2008 20:56:32 -0000
Received: from unknown (HELO andrew-biermans-computer.local) (andybierman@att.net@67.126.240.103 with plain) by smtp119.sbc.mail.sp1.yahoo.com with SMTP; 17 Jan 2008 20:56:31 -0000
X-YMail-OSG: NECVfmMVM1lHUUXLjh2awLZXi5c.4g_2XwLm0Tl4C2KWIFmj
X-Yahoo-Newman-Property: ymail-3
Message-ID: <478FC242.2040204@andybierman.com>
Date: Thu, 17 Jan 2008 13:01:54 -0800
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 2.0.0.5 (Macintosh/20070716)
MIME-Version: 1.0
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [YANG] default values
References: <478F7766.4080905@andybierman.com> <1200589029.19372.100.camel@missotis> <478F9A7D.2070704@andybierman.com> <20080117.214411.158582244.mbj@tail-f.com>
In-Reply-To: <20080117.214411.158582244.mbj@tail-f.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 52e1467c2184c31006318542db5614d5
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

Martin Bjorklund wrote:
> Hi,
>
> Andy Bierman <ietf@andybierman.com> wrote:
>   
>> A trivial example is a boolean knob (or presence container in YANG)
>> that represents some service or feature, and the WG agrees it is 'off' 
>> by default.
>>     
>
> 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?
>   

What does it mean wrt/ the child nodes of the container
if the default present flag is set to true?

Isn't the container created by default if it has any child nodes with
defaults?  If this flag=FALSE, does that change?

This new feature would allow the container to be created even if
it has no child nodes with defaults?

Can this be turned on/off with a container refinement statement (in a 
uses-stmt)?

>
> /martin
>
>
>   

Andy




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