Re: [YANG] default values

Balazs Lengyel <balazs.lengyel@ericsson.com> Thu, 17 January 2008 11:36 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 1JFT2s-0008Ld-Tw; Thu, 17 Jan 2008 06:36:30 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JFT2s-0008H7-1W for yang-confirm+ok@megatron.ietf.org; Thu, 17 Jan 2008 06:36:30 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JFT2r-0008Gq-Km for yang@ietf.org; Thu, 17 Jan 2008 06:36:29 -0500
Received: from mailgw4.ericsson.se ([193.180.251.62]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JFT2r-0002lM-4t for yang@ietf.org; Thu, 17 Jan 2008 06:36:29 -0500
Received: from mailgw4.ericsson.se (unknown [127.0.0.1]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id 8227821777; Thu, 17 Jan 2008 12:35:12 +0100 (CET)
X-AuditID: c1b4fb3e-aee9fbb00000459d-cc-478f3d702de4
Received: from esealmw129.eemea.ericsson.se (unknown [153.88.254.124]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id 5A89921785; Thu, 17 Jan 2008 12:35:12 +0100 (CET)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.171]) by esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Thu, 17 Jan 2008 12:35:11 +0100
Received: from [159.107.197.224] ([159.107.197.224]) by esealmw127.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Thu, 17 Jan 2008 12:35:11 +0100
Message-ID: <478F3D6C.5010906@ericsson.com>
Date: Thu, 17 Jan 2008 12:35:08 +0100
From: Balazs Lengyel <balazs.lengyel@ericsson.com>
User-Agent: Thunderbird 2.0.0.4 (X11/20070604)
MIME-Version: 1.0
To: Ladislav Lhotka <lhotka@cesnet.cz>, yang <yang@ietf.org>
Subject: Re: [YANG] default values
References: <1200478981.7029.27.camel@missotis> <20080116.123549.140000433.mbj@tail-f.com> <1200487153.7029.71.camel@missotis> <478E0FCD.6080908@andybierman.com> <1200493871.7029.137.camel@missotis> <478E1EF4.4050002@andybierman.com> <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> <478F3214.4070601@ericsson.com> <1200567879.10666.79.camel@missotis>
In-Reply-To: <1200567879.10666.79.camel@missotis>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 17 Jan 2008 11:35:11.0607 (UTC) FILETIME=[0520E070:01C858FD]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 798b2e660f1819ae38035ac1d8d5e3ab
Cc:
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 wrote:
> Assume there is a standard data model urn:ietf:X and a vendor that is
> essentially happy with it, but in their device they want to change a
> certain default value specified in the model. So they are forced to use
> another model, say, urn:vendor:Y. A NETCONF manager that uses urn:ietf:X
> should in principle be able to interoperate smoothly with the device but
> refuses to establish a session because of unknown capability.
> 
> If the model did not specify the behaviour of the device, the vendor
> could use it directly.
> 
> Lada
This only means that the standard body for that particular protocol was not careful enough when 
choosing the default value. Maybe it should have chosen a "SHOULD" type of default that is not 
formally specified in the default statement just included in the description statement.

YANG gives you the possibility to enforce a default. It just gives you this as an option, that 
you might or might not use.

Balazs


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