Re: [YANG] mandatory & default
Martin Bjorklund <mbj@tail-f.com> Fri, 25 January 2008 23:28 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 1JIXxr-0005vK-1Y; Fri, 25 Jan 2008 18:28:03 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JIXxp-0005ou-FJ
for yang-confirm+ok@megatron.ietf.org; Fri, 25 Jan 2008 18:28:01 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JIXxp-0005m1-4Y
for yang@ietf.org; Fri, 25 Jan 2008 18:28:01 -0500
Received: from [213.180.94.162] (helo=mail.tail-f.com)
by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JIXxo-0008WB-M2
for yang@ietf.org; Fri, 25 Jan 2008 18:28:01 -0500
Received: from localhost (c213-100-166-13.swipnet.se [213.100.166.13])
by mail.tail-f.com (Postfix) with ESMTP id E64A81B80CB;
Sat, 26 Jan 2008 00:27:59 +0100 (CET)
Date: Sat, 26 Jan 2008 00:26:18 +0100 (CET)
Message-Id: <20080126.002618.144263975.mbj@tail-f.com>
To: ietf@andybierman.com
Subject: Re: [YANG] mandatory & default
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <479A6CDF.5030304@andybierman.com>
References: <4799FD8F.1090402@andybierman.com>
<20080125.233824.88508964.mbj@tail-f.com>
<479A6CDF.5030304@andybierman.com>
X-Mailer: Mew version 5.1.51 on Emacs 22.1 / Mule 5.0 (SAKAKI)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 50a516d93fd399dc60588708fd9a3002
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
Andy Bierman <ietf@andybierman.com> wrote: > > Or, if you, for a moment, try to view thing from the other side, you > > need an extension with-defaults=true to actually get the default > > values, since they are not stored in the configuration data store. > > > > I disagree. > > If I invoke an <edit-config> and set the leaf to this > default value, it is still not there? Yes it's there. > If I invoke an <edit-config> and set the leaf to a > non-default value, it is clearly there. Yes it's there. > Whether the manager or the agent sets the leaf to the default, > it is there from a NETCONF protocol PoV. The crucial point is that - in this way of seeing things - the agent does not set the leaf to the default. Again, I do understand that there are other ways to define how defaults work. I'm just trying to explain the rationale for this one. > >> Phil seems to be arguing that nodes that contain the agent-specified > >> default value are not really there. > > > > Right, since they are not there in his implementation. Why would you > > store stuff that's not even needed to store? That's just a waste of > > resources. > > > Nobody said anything about storing the value. I just tried to explain why "nodes that contain the agent-specified default value are not really there". > It is an implementation-specific matter as to how > an agent generates a reply to a <get-config> request. > The defaults do not have to be stored -- they can > be generated on the fly. Agreed. /martin _______________________________________________ YANG mailing list YANG@ietf.org https://www1.ietf.org/mailman/listinfo/yang
- [YANG] mandatory & default Andy Bierman
- Re: [YANG] mandatory & default Balazs Lengyel
- Re: [YANG] mandatory & default Andy Bierman
- Re: [YANG] mandatory & default Ladislav Lhotka
- Re: [YANG] mandatory & default Martin Bjorklund
- Re: [YANG] mandatory & default Andy Bierman
- Re: [YANG] mandatory & default Martin Bjorklund
- Re: [YANG] mandatory & default Andy Bierman
- Re: [YANG] mandatory & default Martin Bjorklund
- Re: [YANG] mandatory & default Andy Bierman
- Re: [YANG] mandatory & default Phil Shafer
- Re: [YANG] mandatory & default Andy Bierman
- Re: [YANG] mandatory & default Randy Presuhn
- Re: [YANG] mandatory & default Phil Shafer
- Re: [YANG] mandatory & default Phil Shafer
- Re: [YANG] mandatory & default Ladislav Lhotka
- Re: [YANG] mandatory & default Balazs Lengyel
- Re: [YANG] mandatory & default Juergen Schoenwaelder
- Re: [YANG] mandatory & default Ladislav Lhotka
- Re: [YANG] mandatory & default Juergen Schoenwaelder
- Re: [YANG] mandatory & default Ladislav Lhotka
- Re: [YANG] mandatory & default Juergen Schoenwaelder
- Re: [YANG] mandatory & default Balazs Lengyel
- Re: [YANG] mandatory & default Andy Bierman
- Re: [YANG] mandatory & default Ladislav Lhotka
- Re: [YANG] mandatory & default tom.petch
- Re: [YANG] mandatory & default Andy Bierman