Re: [YANG] default values

Andy Bierman <ietf@andybierman.com> Wed, 16 January 2008 15:12 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 1JF9wO-00089a-Ob; Wed, 16 Jan 2008 10:12:32 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JF9wO-00089V-5r for yang-confirm+ok@megatron.ietf.org; Wed, 16 Jan 2008 10:12:32 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JF9wN-00089K-S9 for yang@ietf.org; Wed, 16 Jan 2008 10:12:31 -0500
Received: from smtp124.sbc.mail.sp1.yahoo.com ([69.147.64.97]) by ietf-mx.ietf.org with smtp (Exim 4.43) id 1JF9wN-0000Fy-9e for yang@ietf.org; Wed, 16 Jan 2008 10:12:31 -0500
Received: (qmail 41774 invoked from network); 16 Jan 2008 15:12:30 -0000
Received: from unknown (HELO ?192.168.0.10?) (andybierman@att.net@67.126.240.103 with plain) by smtp124.sbc.mail.sp1.yahoo.com with SMTP; 16 Jan 2008 15:12:30 -0000
X-YMail-OSG: EU1XQ5YVM1kgHx_dn2jerA9xgFmyMLkrX9UjQaxaXe117MX6
X-Yahoo-Newman-Property: ymail-3
Message-ID: <478E1EF4.4050002@andybierman.com>
Date: Wed, 16 Jan 2008 07:12:52 -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> <478E0FCD.6080908@andybierman.com> <1200493871.7029.137.camel@missotis>
In-Reply-To: <1200493871.7029.137.camel@missotis>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 769a46790fb42fbb0b0cc700c82f7081
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:
> Andy Bierman píše v St 16. 01. 2008 v 06:08 -0800:
> 
>> 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.
> 
> I understand this but, as a matter of fact, most defaults in protocol
> standards are of the SHOULD class at most. In a vendor-neutral
> environment, it would be much safer if each device fills all the blanks.
> 
>> 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.
> 
> Yes, but this is only possible because the CLIs are vendor-specific. It
> is quite common that different vendors use different defaults. If you
> try to enforce a single default in the data model, the vendor that
> thinks otherwise will come up with an entirely new data model (namespace
> URI) which is IMO much worse for interoperability.
> 

You are entering a new topic zone -- why the IETF has never been
successful in standardizing the configuration of any of its protocols.
After 20 years and a pathetic handful of standard writable knobs,
one has to ask if maybe there is some part of the problem space
that has been overlooked.

We will never have standard writable knobs until vendors understand
the concept of a standard, and make an effort to define some
standard knobs, which actually provide enough functionality
to configure the device.

It takes a lot of work to define the standard knob settings,
and protocol WGs usually decide not to bother with any configuration
at all.  But we make all our hammers and all our nails by hand,
so it is easy to get away with it.

(Lewis and Clark burned down some forts along the way, to
recover and reuse their precious handmade nails.  We need to
learn how to get machines to make the nails... ;-)

> Lada
> 

Andy


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