Re: [netmod] system-creatable

"Randy Presuhn" <randy_presuhn@mindspring.com> Sat, 17 October 2009 02:58 UTC

Return-Path: <randy_presuhn@mindspring.com>
X-Original-To: netmod@core3.amsl.com
Delivered-To: netmod@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 5E6A93A6842 for <netmod@core3.amsl.com>; Fri, 16 Oct 2009 19:58:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level:
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[BAYES_50=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WGeUCil+LiLY for <netmod@core3.amsl.com>; Fri, 16 Oct 2009 19:58:19 -0700 (PDT)
Received: from elasmtp-banded.atl.sa.earthlink.net (elasmtp-banded.atl.sa.earthlink.net [209.86.89.70]) by core3.amsl.com (Postfix) with ESMTP id 7B2173A682E for <netmod@ietf.org>; Fri, 16 Oct 2009 19:58:19 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=mindspring.com; b=iaAR03Z5Nd7blrFIopG2+khUmzm6WNh8V9tlRgt37X6mTYgJ0+L2SJif6y9JaFgY; h=Received:Message-ID:From:To:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-ELNK-Trace:X-Originating-IP;
Received: from [99.30.226.77] (helo=oemcomputer) by elasmtp-banded.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <randy_presuhn@mindspring.com>) id 1MyzUr-00045I-La for netmod@ietf.org; Fri, 16 Oct 2009 22:58:21 -0400
Message-ID: <022b01ca4ed5$e4ae28e0$6801a8c0@oemcomputer>
From: Randy Presuhn <randy_presuhn@mindspring.com>
To: netmod@ietf.org
References: <20091012.183346.123577726.mbj@tail-f.com>
Date: Fri, 16 Oct 2009 19:59:48 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-ELNK-Trace: 4488c18417c9426da92b9037bc8bcf44d4c20f6b8d69d8881afdcb5313ff34f9ec77b5f91215b1fd9bd9e5676fb63fa3350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 99.30.226.77
Subject: Re: [netmod] system-creatable
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/netmod>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 17 Oct 2009 02:58:20 -0000

Hi -

> From: "Martin Bjorklund" <mbj@tail-f.com>
> To: <netmod@ietf.org>
> Sent: Monday, October 12, 2009 9:33 AM
> Subject: [netmod] system-creatable
...
> Here is proposed text for a new statement "system-creatable"
> (a.k.a. "assigned-by system").
> 
> 
> 7.6.6.  The leaf's system-creatable Statement
> 
>    The "system-creatable" statement, which is optional, specifies
>    whether the server is permitted to create instances of a leaf.  Such
>    leafs are used when the device needs to record persistent values that
>    cannot be known until the device validates the configuration.  The
>    argument is one of the strings "true" or "false".  If not specified,
>    the default is "false".
> 
>    If "system-creatable" is "true", the server MAY create an instance of

Replace "MAY" with "MUST".  Otherwise, interoperability will suffer.

>    the leaf in the data tree, if it doesn't exist, in the following
>    cases.  The behavior depends on the leaf's closest ancestor node in
>    the schema tree which is not a non-presence container:
> 
>    o  If no such ancestor exists in the schema tree, the server MAY

Replace "MAY" with "MUST".

>       create an instance of the leaf if it doesn't exist.
> 
>    o  Otherwise, if this ancestor is a case node, the server MAY create

Replace "MAY" with "MUST".

>       an instance of the leaf in the data tree if any node from the case
>       exists in the data tree, or if the case node is the choice's
>       default case, and no nodes from any other case exist in the data
>       tree.
> 
>    o  Otherwise, the server MAY create an instance of the leaf in the
>       data tree if the ancestor node exists in the data tree.

Replace "MAY" with "MUST".

As I see it, the only difference between system-creatable and "default"
is that a default value is explicitly given in the model, and is consequently
in some sense redundant when given in response to a retrieval operation.

Randy