Re: [YANG] default values

Martin Bjorklund <mbj@tail-f.com> Fri, 18 January 2008 14:50 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 1JFsXy-00045e-Qt; Fri, 18 Jan 2008 09:50:18 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JFsXx-00045Y-Ms for yang-confirm+ok@megatron.ietf.org; Fri, 18 Jan 2008 09:50:17 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JFsXx-00045Q-CY for yang@ietf.org; Fri, 18 Jan 2008 09:50:17 -0500
Received: from [213.180.94.162] (helo=mail.tail-f.com) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JFsXx-0005Kw-1T for yang@ietf.org; Fri, 18 Jan 2008 09:50:17 -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 64E2C1B80C9; Fri, 18 Jan 2008 15:50:16 +0100 (CET)
Date: Fri, 18 Jan 2008 15:51:28 +0100 (CET)
Message-Id: <20080118.155128.68978705.mbj@tail-f.com>
To: phil@juniper.net
Subject: Re: [YANG] default values
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <200801181443.m0IEhM9g010492@idle.juniper.net>
References: <20080118.153539.149287946.mbj@tail-f.com> <200801181443.m0IEhM9g010492@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.1 (/)
X-Scan-Signature: 856eb5f76e7a34990d1d457d8e8e5b7f
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:
> Martin Bjorklund writes:
> >>> 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.
> 
> If it's off, then it doesn't appear in configs.  When it appears,
> it's turned on.  When it's removed, it's turned off.
> 
> But I'm sure I'm missing something here....

I guess I mentally extrapolated from Andy's example... if the WG can
agree that it's 'off' by default, I was thinking they could agree that
it is 'on' by default as well.  This cannot be done.


/martin


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