Re: [YANG] mandatory & default

Ladislav Lhotka <lhotka@cesnet.cz> Mon, 28 January 2008 09:02 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 1JJPsf-0007ab-3W; Mon, 28 Jan 2008 04:02:17 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JJPsd-0007aQ-PX for yang-confirm+ok@megatron.ietf.org; Mon, 28 Jan 2008 04:02:15 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JJPsd-0007aH-FJ for yang@ietf.org; Mon, 28 Jan 2008 04:02:15 -0500
Received: from office2.cesnet.cz ([195.113.144.244]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JJPsd-00028s-0V for yang@ietf.org; Mon, 28 Jan 2008 04:02:15 -0500
Received: from [172.29.2.201] (asus-gx.lhotka.cesnet.cz [195.113.161.161]) by office2.cesnet.cz (Postfix) with ESMTP id D488CD800C1 for <yang@ietf.org>; Mon, 28 Jan 2008 10:02:13 +0100 (CET)
Subject: Re: [YANG] mandatory & default
From: Ladislav Lhotka <lhotka@cesnet.cz>
To: yang@ietf.org
In-Reply-To: <20080128084636.GA19843@elstar.local>
References: <200801280322.m0S3Mqhi051945@idle.juniper.net> <000a01c86169$eb717200$6801a8c0@oemcomputer> <20080128084636.GA19843@elstar.local>
Content-Type: text/plain; charset=utf-8
Organization: CESNET
Date: Mon, 28 Jan 2008 10:02:13 +0100
Message-Id: <1201510933.30693.81.camel@missotis>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 69a74e02bbee44ab4f8eafdbcedd94a1
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

Juergen Schoenwaelder píše v Po 28. 01. 2008 v 09:46 +0100:
> On Sun, Jan 27, 2008 at 08:54:51PM -0800, Randy Presuhn wrote:
>  
> > If I'm archiving a configuration, I want to know *exactly*
> > what it is.  One of the reasons for archiving configurations
> > is so that if a box fails, a replacement can be quickly made
> > to function in its place.   If there is even a remote chance
> > that a default value might change between releases or on
> > different versions of a hardware platform, that value needs
> > to be included in an archive of the configuration.
> 
> If your replacement is using the exact same hardware configuration and
> the exact same firmware version, you do not need to worry about the
> defaults.
> 
> If your replacement is not using the exact same hardware configuration
> and the exact same firmware version, there is a chance that things
> won't work as expected, with and without saved defaults.
> 
> If things fail, you need to have a human to figure out what is the

Here is the problem with changed defaults: things will not fail, they
will just work differently from what you expect.

Lada

> configuration and what is saved default noise. So the bottom line of
> my thinking is that you like to have both - the explicitly set config
> and the full configuration state including the defaults. Only if you
> have both, you can reasonably debug configuration playback errors on
> replacement hardware.
> 
> /js
> 
-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C



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