Re: [YANG] default values

Martin Bjorklund <mbj@tail-f.com> Fri, 18 January 2008 14:34 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 1JFsIj-0004Kq-8y; Fri, 18 Jan 2008 09:34:33 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JFsIg-00042G-Tw for yang-confirm+ok@megatron.ietf.org; Fri, 18 Jan 2008 09:34:31 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JFsIg-0003wg-8c for yang@ietf.org; Fri, 18 Jan 2008 09:34:30 -0500
Received: from [213.180.94.162] (helo=mail.tail-f.com) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JFsIf-0000bw-Pw for yang@ietf.org; Fri, 18 Jan 2008 09:34:30 -0500
Received: from localhost (138.162.241.83.in-addr.dgcsystems.net [83.241.162.138]) by mail.tail-f.com (Postfix) with ESMTP id 5BCA01B80C9; Fri, 18 Jan 2008 15:34:28 +0100 (CET)
Date: Fri, 18 Jan 2008 15:35:39 +0100 (CET)
Message-Id: <20080118.153539.149287946.mbj@tail-f.com>
To: phil@juniper.net
Subject: Re: [YANG] default values
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <200801181409.m0IE9tmK010151@idle.juniper.net>
References: <47906FAB.2060505@ericsson.com> <200801181409.m0IE9tmK010151@idle.juniper.net>
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: ffa9dfbbe7cc58b3fa6b8ae3e57b0aa3
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

Phil Shafer <phil@juniper.net> wrote:
> Balazs Lengyel writes:
> >Why would the presence container come back automatically? There's today no text in the d
> >raft, 
> >that says presence containers are automatically removed or created.
> 
> "come back" in the virtual sense, so if the element isn't it the
> document, it implicitly is there.  Isn't that what Martin meant by
> "present by default"?

You're right, this won't work, or maybe we should say that it is
different.  It is more of an "initial-value" than default.

The original use case was this:

> 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 cannot be done in current YANG.



/martin


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