Re: [YANG] default values

Ladislav Lhotka <lhotka@cesnet.cz> Thu, 17 January 2008 16:19 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 1JFXTA-0004IX-LM; Thu, 17 Jan 2008 11:19:56 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JFXT9-0004IP-GW for yang-confirm+ok@megatron.ietf.org; Thu, 17 Jan 2008 11:19:55 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JFXT8-0004IC-T8 for yang@ietf.org; Thu, 17 Jan 2008 11:19:54 -0500
Received: from office2.cesnet.cz ([195.113.144.244]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JFXT8-00054K-Gj for yang@ietf.org; Thu, 17 Jan 2008 11:19:54 -0500
Received: from [172.29.2.201] (asus-gx.lhotka.cesnet.cz [195.113.161.161]) by office2.cesnet.cz (Postfix) with ESMTP id B3AEBD800BD; Thu, 17 Jan 2008 17:19:49 +0100 (CET)
Subject: Re: [YANG] default values
From: Ladislav Lhotka <lhotka@cesnet.cz>
To: j.schoenwaelder@jacobs-university.de
In-Reply-To: <20080117152200.GA29447@elstar.local>
References: <DCABA351-3933-4AED-A6E6-80C5F85E3F9C@jdscons.com> <1200501131.7029.151.camel@missotis> <49B89097-B9C1-44FE-A59E-FA12B2D546F2@jdscons.com> <1200556619.10666.16.camel@missotis> <478F17B4.7060500@ericsson.com> <1200565743.10666.64.camel@missotis> <20080117112702.GA29235@elstar.local> <1200571644.10666.91.camel@missotis> <20080117135724.GC29301@elstar.local> <1200582110.19372.43.camel@missotis> <20080117152200.GA29447@elstar.local>
Content-Type: text/plain; charset=utf-8
Organization: CESNET
Date: Thu, 17 Jan 2008 17:19:50 +0100
Message-Id: <1200586790.19372.77.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: 97adf591118a232206bdb5a27b217034
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

Juergen Schoenwaelder píše v Čt 17. 01. 2008 v 16:22 +0100:
> On Thu, Jan 17, 2008 at 04:01:50PM +0100, Ladislav Lhotka wrote:
>  
> > At the start of a NETCONF session, the values in the
> > running/startup/whatever configuration may be different even if the
> > server's factory defaults follow the standards. The client can't IMO
> > safely avoid checking or setting all variables in server's
> > configuration.
> 
> Sure. But when I create something new without specifying all defaults,
> do I know what I get? In SNMP, you don't. In YANG, you do.

It depends on what that something is: Manager front ends can certainly
save the user from seeing/specifying configuration variables with
default values (and these needn't be only "MUST" ones, see most CLIs)
but in get-config and edit-config messages I'd prefer not to rely on the
other end to interpret the missing values as defaults. If this is
ensured, the server and client may use different sets of defaults
without any risk of confusion. 
 
> 
> So if I understand right, your proposal is to remove the default
> statement, not to change its semantics, correct?

Yes.

Lada

-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C



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