Re: [YANG] default values
Martin Bjorklund <mbj@tail-f.com> Thu, 17 January 2008 21:11 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 1JFc12-0004nx-C6; Thu, 17 Jan 2008 16:11:12 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JFc10-0004nP-FD
for yang-confirm+ok@megatron.ietf.org; Thu, 17 Jan 2008 16:11:10 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JFc10-0004nH-52
for yang@ietf.org; Thu, 17 Jan 2008 16:11:10 -0500
Received: from [213.180.94.162] (helo=mail.tail-f.com)
by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JFc0x-0006Py-7g
for yang@ietf.org; Thu, 17 Jan 2008 16:11:09 -0500
Received: from localhost (c213-100-166-13.swipnet.se [213.100.166.13])
by mail.tail-f.com (Postfix) with ESMTP id 850061B80C3;
Thu, 17 Jan 2008 22:11:06 +0100 (CET)
Date: Thu, 17 Jan 2008 22:09:53 +0100 (CET)
Message-Id: <20080117.220953.230961711.mbj@tail-f.com>
To: ietf@andybierman.com
Subject: Re: [YANG] default values
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <478FC242.2040204@andybierman.com>
References: <478F9A7D.2070704@andybierman.com>
<20080117.214411.158582244.mbj@tail-f.com>
<478FC242.2040204@andybierman.com>
X-Mailer: Mew version 5.1.51 on Emacs 22.1 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: f607d15ccc2bc4eaf3ade8ffa8af02a0
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
Andy Bierman <ietf@andybierman.com> wrote: > 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? ^^^^^^^^^^^^^^^^^^^^ What is that? > Isn't the container created by default if it has any child nodes with > defaults? If this flag=FALSE, does that change? A normal structural container (with no presence statement) behaves like that, except that it seems to be a meta-physical question whether the container really is created or not ;-) > This new feature would allow the container to be created even if > it has no child nodes with defaults? Currently, it cannot be defined in the data model if a presence container gets created by default or not. So if you do: container foo { presence "turns on the foo protocol"; leaf bar { type int32; default 42; } } Then it is not defined if foo exists or not (when it's parent gets created). If it exists, foo/bar has the value of 42 by default. At least we should clarify this in the draft, e.g. by saying that a presence container is not created by default. That means that the manager knows which behavior to expect. Or we could add a new statement to control this. > Can this be turned on/off with a container refinement statement (in a > uses-stmt)? If we add such a statement, yes I think it could be refined, just like defaults for leafs. /martin _______________________________________________ YANG mailing list YANG@ietf.org https://www1.ietf.org/mailman/listinfo/yang
- [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Balazs Lengyel
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Balazs Lengyel
- Re: [YANG] how to signal revision? Martin Bjorklund
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Balazs Lengyel
- Re: [YANG] how to signal revision? Martin Bjorklund
- [YANG] default values Ladislav Lhotka
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Balazs Lengyel
- Re: [YANG] how to signal revision? Balazs Lengyel
- Re: [YANG] how to signal revision? Martin Bjorklund
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Andy Bierman
- Re: [YANG] default values Andy Bierman
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Andy Bierman
- Re: [YANG] default values Jon Saperia
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Jon Saperia
- Re: [YANG] default values Andy Bierman
- [YANG] Underestimating the problem ([was somethin… Phil Shafer
- [YANG] Re: Underestimating the problem ([was some… Andy Bierman
- Re: [YANG] Underestimating the problem ([was some… Jon Saperia
- Re: [YANG] Re: Underestimating the problem ([was … Jon Saperia
- [YANG] Re: Underestimating the problem ([was some… Phil Shafer
- [YANG] Re: Underestimating the problem ([was some… Andy Bierman
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Balazs Lengyel
- Re: [YANG] Underestimating the problem ([was some… Balazs Lengyel
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Balazs Lengyel
- Re: [YANG] default values Juergen Schoenwaelder
- Re: [YANG] default values Balazs Lengyel
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Juergen Schoenwaelder
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Juergen Schoenwaelder
- Re: [YANG] default values Andy Bierman
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Andy Bierman
- Re: [YANG] default values Martin Bjorklund
- Re: [YANG] default values Andy Bierman
- Re: [YANG] default values Martin Bjorklund
- Re: [YANG] default values Phil Shafer
- Re: [YANG] default values Balazs Lengyel
- Re: [YANG] default values Juergen Schoenwaelder
- Re: [YANG] default values Phil Shafer
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Martin Bjorklund
- Re: [YANG] default values Phil Shafer
- Re: [YANG] default values Martin Bjorklund
- Re: [YANG] default values Martin Bjorklund
- Re: [YANG] default values Balazs Lengyel