Re: [YANG] default values

Phil Shafer <phil@juniper.net> Fri, 18 January 2008 14:43 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 1JFsRr-0005qJ-13; Fri, 18 Jan 2008 09:43:59 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JFsRp-0005q8-OQ for yang-confirm+ok@megatron.ietf.org; Fri, 18 Jan 2008 09:43:57 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JFsRp-0005q0-E4 for yang@ietf.org; Fri, 18 Jan 2008 09:43:57 -0500
Received: from exprod7og111.obsmtp.com ([64.18.2.175]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JFsRp-0005Cn-0P for yang@ietf.org; Fri, 18 Jan 2008 09:43:57 -0500
Received: from source ([66.129.224.36]) by exprod7ob111.postini.com ([64.18.6.12]) with SMTP; Fri, 18 Jan 2008 06:43:51 PST
Received: from magenta.juniper.net ([172.17.27.123]) by emailsmtp55.jnpr.net with Microsoft SMTPSVC(6.0.3790.1830); Fri, 18 Jan 2008 06:43:33 -0800
Received: from idle.juniper.net (idleski.juniper.net [172.25.4.26]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id m0IEhW993516; Fri, 18 Jan 2008 06:43:32 -0800 (PST) (envelope-from phil@idle.juniper.net)
Received: from idle.juniper.net (localhost [127.0.0.1]) by idle.juniper.net (8.13.8/8.13.8) with ESMTP id m0IEhM9g010492; Fri, 18 Jan 2008 14:43:22 GMT (envelope-from phil@idle.juniper.net)
Message-Id: <200801181443.m0IEhM9g010492@idle.juniper.net>
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [YANG] default values
In-reply-to: <20080118.153539.149287946.mbj@tail-f.com>
Date: Fri, 18 Jan 2008 09:43:22 -0500
From: Phil Shafer <phil@juniper.net>
X-OriginalArrivalTime: 18 Jan 2008 14:43:33.0025 (UTC) FILETIME=[7FB62910:01C859E0]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7a6398bf8aaeabc7a7bb696b6b0a2aad
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 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....

Thanks,
 Phil


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