Re: [netmod] [Netconf] magic leaf 'type' in IETF interfaces

Ladislav Lhotka <lhotka@nic.cz> Wed, 19 December 2018 14:16 UTC

Return-Path: <lhotka@nic.cz>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1812212867A; Wed, 19 Dec 2018 06:16:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZGmtvwF9FbIB; Wed, 19 Dec 2018 06:16:14 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 5C0631200B3; Wed, 19 Dec 2018 06:16:14 -0800 (PST)
Received: by trail.lhotka.name (Postfix, from userid 109) id 53BB3182015D; Wed, 19 Dec 2018 15:25:06 +0100 (CET)
Received: from localhost (unknown [195.113.220.121]) by trail.lhotka.name (Postfix) with ESMTPSA id 36C8D182015B; Wed, 19 Dec 2018 15:25:04 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Jan Lindblad <janl@tail-f.com>, Andy Bierman <andy@yumaworks.com>
Cc: "netconf\@ietf.org" <netconf@ietf.org>, "netmod\@ietf.org" <netmod@ietf.org>
In-Reply-To: <6912DD4C-4C4E-45E8-9F0E-D8D8139F83AE@tail-f.com>
References: <VI1PR07MB39818BD20967B36B8F24DBA69BA10@VI1PR07MB3981.eurprd07.prod.outlook.com> <20181217.091505.218628572185200621.mbj@tail-f.com> <83b139a1-a0ab-5fbc-f702-7f0d50a46864@ericsson.com> <90DB3C3B-FD52-4903-81B0-93985E6F74FE@tail-f.com> <CABCOCHQc+kuNiw4guOsU5oRxnwZA0u7-sA5zHUKcERdqytaQpg@mail.gmail.com> <6912DD4C-4C4E-45E8-9F0E-D8D8139F83AE@tail-f.com>
Mail-Followup-To: Jan Lindblad <janl@tail-f.com>, Andy Bierman <andy@yumaworks.com>, "netconf\@ietf.org" <netconf@ietf.org>, "netmod\@ietf.org" <netmod@ietf.org>
Date: Wed, 19 Dec 2018 15:16:10 +0100
Message-ID: <875zvpeh5h.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/LVFGaKyukhnsRfl5SiWQZQkKr8U>
Subject: Re: [netmod] [Netconf] magic leaf 'type' in IETF interfaces
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/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: Wed, 19 Dec 2018 14:16:17 -0000

Jan Lindblad <janl@tail-f.com> writes:

> Hi,
>>> While I agree with Martin, in our systems we have a number of places, where the system does create configuration in running, due to
>>> 
>>> different levels of automation and autonomous algorithms kick-in
>>> the created config needs to be possible to be further modified by the operator
>>> the created config needs to be referenced from operator created config
>>> the created config is not always ephemeral, it might need to be part of backup/restore
>> This is only a sampling from "the list of excuses". I have heard many more. The road to hell is paved with good intentions, however. If we want to build automation based on sound theory, clearly separating the orders from managers from a system's own operational view is key, IMO. Reliability, security, accountability are growing in importance, and they all play in this direction.
>> 
>> We may not need to standardize rules to outlaw the above; the market will take care of that. What we need to ensure is that it is possible to be standards compliant without having to implement design excuses like these.
>> 
>> 
>> NMDA has a lot of room for proprietary mechanisms for converting <running> to <intended>.
>> Many times the features desired by engineers exceed the capabilities of YANG, such as
>> a dynamic default leaf.  YANG allows a simple constant, and no business logic to pick the default.
>> This is a very valid use of "server auto-magic".
>> 
>> Maybe a future version of YANG can improve the client visibility into this "auto-magic"
>
> As you say, this is not uncommon. I usually recommend to leave out any
> default statement, and write in the description what happens if this
> leaf isn't set. The operator can then override the default by giving a
> value.

Anyway, this is not a case where the server writes something on its own
to a configuration datastore.

>
> While some more advanced features for default values may be of some
> utility, the simplicity of YANG is also important. We don't want to
> make the YANG models -- the interface contracts -- the new place for
> all business logic.

Absolutely.

Lada

>
> /jan
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67