Re: [YANG] default values
Andy Bierman <ietf@andybierman.com> Wed, 16 January 2008 14:08 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 1JF8wV-0004Tj-3h; Wed, 16 Jan 2008 09:08:35 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JF8wT-0004Ta-Rw
for yang-confirm+ok@megatron.ietf.org; Wed, 16 Jan 2008 09:08:33 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JF8wT-0004Sk-Hn
for yang@ietf.org; Wed, 16 Jan 2008 09:08:33 -0500
Received: from smtp117.sbc.mail.sp1.yahoo.com ([69.147.64.90])
by ietf-mx.ietf.org with smtp (Exim 4.43) id 1JF8w3-0006yT-4m
for yang@ietf.org; Wed, 16 Jan 2008 09:08:33 -0500
Received: (qmail 36810 invoked from network); 16 Jan 2008 14:07:51 -0000
Received: from unknown (HELO ?192.168.0.10?)
(andybierman@att.net@67.126.240.103 with plain)
by smtp117.sbc.mail.sp1.yahoo.com with SMTP; 16 Jan 2008 14:07:51 -0000
X-YMail-OSG: YkkmKrYVM1l3SFErARDdq6z8kBkajW_vojPFgbHVXwBEcvDd
X-Yahoo-Newman-Property: ymail-3
Message-ID: <478E0FCD.6080908@andybierman.com>
Date: Wed, 16 Jan 2008 06:08:13 -0800
From: Andy Bierman <ietf@andybierman.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: Ladislav Lhotka <lhotka@cesnet.cz>
Subject: Re: [YANG] default values
References: <1200478981.7029.27.camel@missotis> <20080116.123549.140000433.mbj@tail-f.com>
<1200487153.7029.71.camel@missotis>
In-Reply-To: <1200487153.7029.71.camel@missotis>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: c1c65599517f9ac32519d043c37c5336
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
Ladislav Lhotka wrote: >> Yes, changing defaults is incompatible. If you do that, you have to >> change the namespace. > > BTW, that's exactly why I am against the default values in typedef: they > make the data model too specialised. The defaults could be easily > handled as follows: > > 1. The standard that defines the type specifies in plain RFC-English > that the default value MUST, SHOULD or MAY be something. > > 2. An implementor reflects this in a device, but is also required to > fill the default (or another) value in the initial startup > configuration. > > 3. The client needn't care about what the default is, it just queries > the device to see the actual value, changes it if necessary etc. > I disagree 100%. The management of agent-supplied defaults has always been a problem in NE devices. More machine-readable support is needed, not less. YANG has the "DEFVAL with teeth" that SMIv2 never had. In YANG the default MUST be supported by the agent. It is not just a suggestion. This means the manager can actually pay attention to the default defined in the data model, and change it only if needed. On large NE devices, it is common practice to keep the CLI config file as small as possible by only including non-default values. NETCONF needs to support this feature as well, and YANG leaf/typedef default does that. > This approach would make the same data model reusable with other default > value and, in addition, allow for honouring the semantics of MUST, > SHOULD and MAY. The default in typedefs is only usable in the MUST case. > > So my suggestion is to remove the default statement form YANG. > > Lada > > Andy _______________________________________________ YANG mailing list YANG@ietf.org https://www1.ietf.org/mailman/listinfo/yang
- [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Balazs Lengyel
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Balazs Lengyel
- Re: [YANG] how to signal revision? Martin Bjorklund
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Balazs Lengyel
- Re: [YANG] how to signal revision? Martin Bjorklund
- [YANG] default values Ladislav Lhotka
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Balazs Lengyel
- Re: [YANG] how to signal revision? Balazs Lengyel
- Re: [YANG] how to signal revision? Martin Bjorklund
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] how to signal revision? Andy Bierman
- Re: [YANG] default values Andy Bierman
- Re: [YANG] how to signal revision? Ladislav Lhotka
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Andy Bierman
- Re: [YANG] default values Jon Saperia
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Jon Saperia
- Re: [YANG] default values Andy Bierman
- [YANG] Underestimating the problem ([was somethin… Phil Shafer
- [YANG] Re: Underestimating the problem ([was some… Andy Bierman
- Re: [YANG] Underestimating the problem ([was some… Jon Saperia
- Re: [YANG] Re: Underestimating the problem ([was … Jon Saperia
- [YANG] Re: Underestimating the problem ([was some… Phil Shafer
- [YANG] Re: Underestimating the problem ([was some… Andy Bierman
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Balazs Lengyel
- Re: [YANG] Underestimating the problem ([was some… Balazs Lengyel
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Balazs Lengyel
- Re: [YANG] default values Juergen Schoenwaelder
- Re: [YANG] default values Balazs Lengyel
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Juergen Schoenwaelder
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Juergen Schoenwaelder
- Re: [YANG] default values Andy Bierman
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Andy Bierman
- Re: [YANG] default values Martin Bjorklund
- Re: [YANG] default values Andy Bierman
- Re: [YANG] default values Martin Bjorklund
- Re: [YANG] default values Phil Shafer
- Re: [YANG] default values Balazs Lengyel
- Re: [YANG] default values Juergen Schoenwaelder
- Re: [YANG] default values Phil Shafer
- Re: [YANG] default values Ladislav Lhotka
- Re: [YANG] default values Martin Bjorklund
- Re: [YANG] default values Phil Shafer
- Re: [YANG] default values Martin Bjorklund
- Re: [YANG] default values Martin Bjorklund
- Re: [YANG] default values Balazs Lengyel