Re: [YANG] default values

Phil Shafer <phil@juniper.net> Fri, 18 January 2008 03:01 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 1JFhTz-0005Nv-9n; Thu, 17 Jan 2008 22:01:27 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JFhTx-0005Nl-W1 for yang-confirm+ok@megatron.ietf.org; Thu, 17 Jan 2008 22:01:25 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JFhTx-0005Nd-K0 for yang@ietf.org; Thu, 17 Jan 2008 22:01:25 -0500
Received: from exprod7og105.obsmtp.com ([64.18.2.163]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JFhTx-0004w0-5V for yang@ietf.org; Thu, 17 Jan 2008 22:01:25 -0500
Received: from source ([66.129.224.36]) by exprod7ob105.postini.com ([64.18.6.12]) with SMTP; Thu, 17 Jan 2008 19:00:27 PST
Received: from magenta.juniper.net ([172.17.27.123]) by emailsmtp56.jnpr.net with Microsoft SMTPSVC(6.0.3790.3959); Thu, 17 Jan 2008 19:00:50 -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 m0I30n929288; Thu, 17 Jan 2008 19:00:50 -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 m0I30a7g007182; Fri, 18 Jan 2008 03:00:36 GMT (envelope-from phil@idle.juniper.net)
Message-Id: <200801180300.m0I30a7g007182@idle.juniper.net>
To: Martin Bjorklund <mbj@tail-f.com>
Subject: Re: [YANG] default values
In-reply-to: <20080117.214411.158582244.mbj@tail-f.com>
Date: Thu, 17 Jan 2008 22:00:36 -0500
From: Phil Shafer <phil@juniper.net>
X-OriginalArrivalTime: 18 Jan 2008 03:00:50.0724 (UTC) FILETIME=[55059640:01C8597E]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 68c8cc8a64a9d0402e43b8eee9fc4199
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:
>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?

This would be confusing and probably broken.  If it's "present"
by default, why have it and how do you turn it off?  You can't
delete it, since it comes right back, so you can't turn it off.
So what's the point of giving it a "presence"?

Thanks,
 Phil


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