Re: [netmod] [Netconf] magic leaf 'type' in IETF interfaces
Andy Bierman <andy@yumaworks.com> Wed, 19 December 2018 18:46 UTC
Return-Path: <andy@yumaworks.com>
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 AD297130EBA for <netmod@ietfa.amsl.com>; Wed, 19 Dec 2018 10:46:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.com
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 Ws4UDzTmBVLr for <netmod@ietfa.amsl.com>; Wed, 19 Dec 2018 10:46:43 -0800 (PST)
Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E29F0130EAE for <netmod@ietf.org>; Wed, 19 Dec 2018 10:46:42 -0800 (PST)
Received: by mail-lj1-x230.google.com with SMTP id g11-v6so18322535ljk.3 for <netmod@ietf.org>; Wed, 19 Dec 2018 10:46:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=XPB8xIbAOgKImY7DsUU9U0/1nQUI0FWFHmZc+36soos=; b=igjxdSf3Y2uWj06m507+OPGlYgjmrWZyDzNzF6X6VWEhJ8LgqcB1pX4vHaCKbFOoP/ cJg0jZRNB7UyNI+B0lJog+iE5iSvNet5ehndmU92ShXg54G5mBDl8SNgPXCfnhXaMP9I OKFE4JDduMcZE6NbFr9vqdgFLCwdPfVHGdqUCQhZxkxygBrM2bob1Kvai5dtL1doJXa6 wwLUr59kBF+cpTSN+RWufsb+DsAvAf5MVuGMFo+QL0DehTSntfatGDyvwYXbE/i28rg9 stq+OrM6cmKGuLTgTvvKIJBctvjTsQcHOXg0SA+XNesNSTKKadVWpkAmYyOOekq3UfFl yoSw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=XPB8xIbAOgKImY7DsUU9U0/1nQUI0FWFHmZc+36soos=; b=OnFwlGojfteOrAvcZpogLHiDNjsJnsW219OZTCYviWESr7I0qp3paMrVHCZpfvWnwh 7tvPNAADqJEH3xtIifzAFWaVOKdgTDDqOYC6hQwnxg+j+NEjyRlVoL2dUs1ngIa4QiqN HzMalxtRQEmcV2WG/E31dCWYZfQXj8xXADlHoM3CHO+pin2sV7FvkbaowPQIqOTEigo+ l1RhJ0E3rXKMkzPj8CYjHSLISRVk8oO+DUGhwxcmehGNrggH2DSpqDe9w0puJsqQI5/f umV1KtrBI4uZpCvnpjSkxJdnpL0+d/LnKHVLG0aElPbBA3lq87MuX7mY7rEud1eXej8L gcsw==
X-Gm-Message-State: AA+aEWaavzLJFKYBSQWeTL989nojmDyekfy25BWwn4N8LrB55GAK7QYU pCxlMgGFqSyD9Fw5Ub2m4MOHCq2SG4A3XtM+lyjrUA==
X-Google-Smtp-Source: AFSGD/UY+U4ETEVEL+nmSn0urGiypQVUbmveDjvs5ZC3yXcTeUTmTnNNNdKddnOXFfXsSHJzFOWkjvkpHKY3siqRWDo=
X-Received: by 2002:a2e:9603:: with SMTP id v3-v6mr11361630ljh.15.1545245200812; Wed, 19 Dec 2018 10:46:40 -0800 (PST)
MIME-Version: 1.0
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> <875zvpeh5h.fsf@nic.cz>
In-Reply-To: <875zvpeh5h.fsf@nic.cz>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 19 Dec 2018 10:46:29 -0800
Message-ID: <CABCOCHSuRma0bqB8qZjim2Y=V1PDwuEzUMG0-t5VKMUH4FwaYg@mail.gmail.com>
To: Jan Lindblad <janl@tail-f.com>, Andy Bierman <andy@yumaworks.com>, "netconf@ietf.org" <netconf@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000004931b4057d646fa5"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/WFwCW9CiRsypd6YpHLNSmLkoB-Y>
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 18:46:47 -0000
On Wed, Dec 19, 2018 at 6:16 AM Ladislav Lhotka <lhotka@nic.cz> wrote: > 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. > 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. > > > > > 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. > > 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. > Lada > > > > > /jan > Andy > > > > _______________________________________________ > > netmod mailing list > > netmod@ietf.org > > https://www.ietf.org/mailman/listinfo/netmod > > -- > Ladislav Lhotka > Head, CZ.NIC Labs > PGP Key ID: 0xB8F92B08A9F76C67 >
- [netmod] magic leaf 'type' in IETF interfaces Sterne, Jason (Nokia - CA/Ottawa)
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Andy Bierman
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Martin Bjorklund
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Balázs Lengyel
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Jan Lindblad
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Ladislav Lhotka
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Andy Bierman
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Jan Lindblad
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Ladislav Lhotka
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Andy Bierman
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Qin Wu
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Qin Wu
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Belotti, Sergio (Nokia - IT/Vimercate)
- Re: [netmod] [Netconf] magic leaf 'type' in IETF … Andy Bierman