Re: [YANG] new pyang errors

Phil Shafer <phil@juniper.net> Wed, 23 January 2008 05:32 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 1JHYE3-00064v-4S; Wed, 23 Jan 2008 00:32:39 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JHYE2-000619-GD for yang-confirm+ok@megatron.ietf.org; Wed, 23 Jan 2008 00:32:38 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JHYE2-00060x-5g for yang@ietf.org; Wed, 23 Jan 2008 00:32:38 -0500
Received: from exprod7og109.obsmtp.com ([64.18.2.171]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JHYE1-000802-LQ for yang@ietf.org; Wed, 23 Jan 2008 00:32:38 -0500
Received: from source ([66.129.224.36]) by exprod7ob109.postini.com ([64.18.6.12]) with SMTP; Tue, 22 Jan 2008 21:29:43 PST
Received: from magenta.juniper.net ([172.17.27.123]) by emailsmtp56.jnpr.net with Microsoft SMTPSVC(6.0.3790.3959); Tue, 22 Jan 2008 21:32:15 -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 m0N5WE999827; Tue, 22 Jan 2008 21:32:14 -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 m0N5W7Tt019859; Wed, 23 Jan 2008 05:32:12 GMT (envelope-from phil@idle.juniper.net)
Message-Id: <200801230532.m0N5W7Tt019859@idle.juniper.net>
To: Ladislav Lhotka <lhotka@cesnet.cz>
Subject: Re: [YANG] new pyang errors
In-reply-to: <1200908284.6914.117.camel@missotis>
Date: Wed, 23 Jan 2008 00:32:07 -0500
From: Phil Shafer <phil@juniper.net>
X-OriginalArrivalTime: 23 Jan 2008 05:32:15.0514 (UTC) FILETIME=[500B47A0:01C85D81]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: e5ba305d0e64821bf3d8bc5d3bb07228
Cc: yang@ietf.org
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

Ladislav Lhotka writes:
>Relying on common universal
>defaults would make the system fragile.

As will shipping voluminous defaults.

Visibility into defaults is a distinct issue from carrying the
defaults in the configuration database.  If I have an object with
50 fields where only 2 or 3 are set on each instance, carting around
fully-fleshed configs will be incredibly annoying.

My view of configuration is that if you set it, it should be there.
If you didn't set it, it shouldn't be there.  If you want extra
information, ask for it.  But the normal view of configuration
should be restricted to only what the user or application expressed
configured.

This leads directly to my interpretation of "mandatory".  A mandatory
config statement is one that some user or application must expressly
configure.  If the configuration is valid without the statement,
then it's not mandatory.

The "mandatory"-ness describes the interaction between the device and
applications configuring it.  If the application must create the statement,
then the statement is mandatory.  The "mandatory plus default" interpretation
Andy's using is more of a description of the interaction between the on-box
management software and the other on-box software components.  IMHO this is
less interesting and more internals that YANG should be describing.

Thanks,
 Phil


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