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

Qin Wu <> Thu, 20 December 2018 00:57 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id CEDC7126F72; Wed, 19 Dec 2018 16:57:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id GF3eD7fIFO3R; Wed, 19 Dec 2018 16:57:46 -0800 (PST)
Received: from ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 2AB3A1294D0; Wed, 19 Dec 2018 16:57:46 -0800 (PST)
Received: from (unknown []) by Forcepoint Email with ESMTP id 35FFAA068949A; Thu, 20 Dec 2018 00:57:42 +0000 (GMT)
Received: from ( by ( with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 20 Dec 2018 00:57:43 +0000
Received: from ([]) by ([]) with mapi id 14.03.0415.000; Thu, 20 Dec 2018 08:57:40 +0800
From: Qin Wu <>
To: Andy Bierman <>, Jan Lindblad <>, "" <>, "" <>
Thread-Topic: [Netconf] [netmod] magic leaf 'type' in IETF interfaces
Thread-Index: AQHUl8tEIaeGkfvXD0+KnC4oEKYl6aWGzJKQ
Date: Thu, 20 Dec 2018 00:57:40 +0000
Message-ID: <>
References: <> <> <> <> <> <> <> <>
In-Reply-To: <>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
x-originating-ip: []
Content-Type: multipart/alternative; boundary="_000_B8F9A780D330094D99AF023C5877DABA9B1B55F5nkgeml513mbxchi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <>
Subject: Re: [netmod] [Netconf] magic leaf 'type' in IETF interfaces
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Thu, 20 Dec 2018 00:57:49 -0000

发件人: Netconf [] 代表 Andy Bierman
发送时间: 2018年12月20日 2:46
收件人: Jan Lindblad; Andy Bierman;;
主题: Re: [Netconf] [netmod] magic leaf 'type' in IETF interfaces

On Wed, Dec 19, 2018 at 6:16 AM Ladislav Lhotka <<>> wrote:
Jan Lindblad <<>> 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.

I don't think it is a problem if NMDA or non-NMDA servers write to <running>.
Just part of the complexity that is baked in -- NMDA does nothing to help the client know
why <running> is different than <intended> anyway.

[Qin]: I think it is important to make NMDA server can use existing operation to

   return the same results to Non-NMDA client with <rpc-reply> as non-NMDA server

   does. We call this Server Backwards-Compatibility in

> 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.


I am not proposing YANG needs a new default-stmt. There is a description-stmt
and vendors can add their own extensions to flag auto-magic data nodes.


> /jan


> _______________________________________________
> netmod mailing list

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