Re: [netmod] yang-data-ext issues
Andy Bierman <andy@yumaworks.com> Fri, 27 April 2018 00:52 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 D821512D77D for <netmod@ietfa.amsl.com>; Thu, 26 Apr 2018 17:52:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.61
X-Spam-Level:
X-Spam-Status: No, score=-2.61 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=ham 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 YTEZQ6eJ0HOe for <netmod@ietfa.amsl.com>; Thu, 26 Apr 2018 17:52:04 -0700 (PDT)
Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (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 E0430124BE8 for <netmod@ietf.org>; Thu, 26 Apr 2018 17:52:03 -0700 (PDT)
Received: by mail-lf0-x22b.google.com with SMTP id w8-v6so270515lfe.3 for <netmod@ietf.org>; Thu, 26 Apr 2018 17:52:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=xut6FIOXkhfHERKAgYox/DT6z5UYc4wpeGLmrHJFhJA=; b=fHlCn3CYMgWHrzp1hDiJEV0mUxhbevl8MYTtyR8Bfo5fytmC87AVesgquaLMYO34zF 491eu/agjvK67N+FAwVUIovS0hsUhv7bgbQEvUfQIycvDSyCQFLY0vBLAC96nuseOyxe JyObljtPMQOCUN2xueZlVBCvkc+A4A4RDAUI3Fz+7wNq0SXD2spP8wMddc6RhS9rnDvr WCZY8nvFjvm4wB18fJL8O9ejExYMlvBoNsm9Qlix3D8cQIaj5lHyo5uyQLjlQ8+V3liV yOYQUljrIEgjfuJCOXm20RLiAtomzGNSRDpWSzRjC04lsxK4onL/uTRk8mdmO2+0xWtH NNgA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=xut6FIOXkhfHERKAgYox/DT6z5UYc4wpeGLmrHJFhJA=; b=LFuzlmN+QPjU1rO/FFktg/WqIgTTWUObLDQXlq17cZq5GHPqylfvSNIg1dkKeTn5Hp y9OL5U1OGwCoghFQbX5Hq1MFJ45Z0c6TqUvsdeTcFv+rjVLLTMKRzrAgfF0NEuoLPI5w /Flm6iKuEio9uklSORYHcxFViFisOpH6AJzPDud5a9bhGYheDFvWWzzKtHUkcSGfSd8y +0YOSFU94S0HfrVaPp4uKBGnBHVLMog7tdvV3cASeIpFhi12l1O/RdTJ9MIjvvXRteBC vmBnwTmtezSKMKOjiL2txBalv1Ncki6hBLee6sUisx3tZS8gIrX6wiGFvu+Aehh39RF8 WprA==
X-Gm-Message-State: ALQs6tCrD1yPDPzvhFqczoE+abI65caB3FCSmXTXaYQt6a17DAzer9Nq UL2vZiLSZwXuhT8sjlzfVENM4TLtPFhBjLoFEKRhEg==
X-Google-Smtp-Source: AB8JxZrr7K7Jb2Pn4VGddqKA6UAyqaNtCXZcep4nQYyuRylcFN8uQRWLMqceNmfrvLi8J7E96RiVcfnBgySZMDGGQO4=
X-Received: by 2002:a19:2092:: with SMTP id g140-v6mr128374lfg.38.1524790322112; Thu, 26 Apr 2018 17:52:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a19:d8c6:0:0:0:0:0 with HTTP; Thu, 26 Apr 2018 17:52:00 -0700 (PDT)
In-Reply-To: <87muxq1pk9.fsf@nic.cz>
References: <20180423165104.zi7g75tifhekmezh@elstar.local> <20180423.215110.441857992070858100.mbj@tail-f.com> <87wowwr826.fsf@nic.cz> <20180424.163601.648085760139600532.mbj@tail-f.com> <20180425135550.jwwbwtpofd7vz52z@elstar.local> <3f6631298f1f7e0c752d7300585962b04ddc49cc.camel@nic.cz> <CABCOCHT9RH5f+ryecVJvE-03__XmHR8CaamLUfEdy7bTa9aMsw@mail.gmail.com> <66a94c163cf41aad4def540141a38ebb19d3ba24.camel@nic.cz> <87muxq1pk9.fsf@nic.cz>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 26 Apr 2018 17:52:00 -0700
Message-ID: <CABCOCHSwB8m6Uk82MZHnjnVi=0ofRohqEPT0Q06NM=+3n5gtFA@mail.gmail.com>
To: Andy Bierman <andy@yumaworks.com>, NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000081c038056ac9e9d6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Yfq6i_w2KEih2OU_MHOTUEDgN04>
Subject: Re: [netmod] yang-data-ext issues
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Fri, 27 Apr 2018 00:52:07 -0000
On Wed, Apr 25, 2018 at 10:53 PM, Ladislav Lhotka <lhotka@nic.cz> wrote: > Ladislav Lhotka <lhotka@nic.cz> writes: > > > On Wed, 2018-04-25 at 08:04 -0700, Andy Bierman wrote: > >> > >> > >> On Wed, Apr 25, 2018 at 7:05 AM, Ladislav Lhotka <lhotka@nic.cz> wrote: > >> > On Wed, 2018-04-25 at 15:55 +0200, Juergen Schoenwaelder wrote: > >> > > On Tue, Apr 24, 2018 at 04:36:01PM +0200, Martin Bjorklund wrote: > >> > > > Ladislav Lhotka <lhotka@nic.cz> wrote: > >> > > > > Martin Bjorklund <mbj@tail-f.com> writes: > >> > > > > > >> > > > > > Hi, > >> > > > > > > >> > > > > > I am not sure what this statement tells us re. the issue in > this > >> > email > >> > > > > > thread. > >> > > > > > >> > > > > It tells us that, in my view, the approach taken in this > document is a > >> > > > > bad idea. > >> > > > > >> > > > Do you mean that the WG shoud drop this document? And people that > >> > > > need yang-data should continue to use the version in 8040? Or > that > >> > > > people that need yang-data do not have a valid use case and they > >> > > > should do something else? > >> > > > >> > > One option is that people use yang-data as defined in RFC 8040 until > >> > > >> > IMO, people should use plain YANG. With the new YANG library it will > be > >> > possible > >> > to confine such non-NM schemas in a special datastore so that the > intention > >> > should be clear and multi-module schemas with all the additional data > >> > (versions, > >> > features, deviations) can be used. > >> > > >> > >> I don't see how yang-data interferes with "plain YANG" at all. > >> It is for data that is not in scope for plain YANG. > > > > My question is why this extension is needed in the first place. > > For example, RFC 8040 could have used two modules instead of > "ietf-restconf", one with the contents of grouping "errors" and the > other with the contents of grouping "restconf". No extension. > > This is true. We used to do this before yang-data was available. > What would be wrong with this solution? Instead, the reader is > overwhelmed with the complexity of the "yang-data" definition, and most > tools cannot process the module. > There are tools that can use yang-data. Not all use-cases involve a server to query for a yang-library. Offline tools need to know about the special data somehow. The yang-data extension prevents data-def-stmts from being treated as if they were configuration or operational data. I agree with you that unconstrained use of yang-data is questionable for a standard extension. The bar should be that all tools which choose to implement the extension should provide the user with the same behavior. Declaring that behavior out-of-scope does not help interoperability at all. > Lada > > Andy > > > >> A plain client can ignore yang-data and not affect and RPC, > notification, or > >> data > >> definitions in plain YANG. > > > > A plain (NC/RC) client should never see such data even if it is not > protected by > > yang-data in YANG. On the other hand, tools will be able to process such > schemas > > (generate the ascii tree, convert it to something else, generate sample > > instances etc.) without explicitly supporting yang-data. > > > > Lada > > > >> > >> > >> > Lada > >> > > >> > >> Andy > >> > >> > > there is a version of YANG that has a proper and complete integrated > >> > > solution. (If for example yang-data is used to declare error content > >> > > for RPCs, then more extensions are needed or a proper integration > into > >> > > YANG. Is it really good to introduce augment-yang-data (instead of > >> > > making augment work with say 'data' in YANG 1.2)? And then we do > >> > > uses-yang-data etc. > >> > > > >> > > /js > >> > > > >> > -- > >> > Ladislav Lhotka > >> > Head, CZ.NIC Labs > >> > PGP Key ID: 0xB8F92B08A9F76C67 > >> > > >> > _______________________________________________ > >> > netmod mailing list > >> > netmod@ietf.org > >> > https://www.ietf.org/mailman/listinfo/netmod > >> > >> > > -- > > Ladislav Lhotka > > Head, CZ.NIC Labs > > PGP Key ID: 0xB8F92B08A9F76C67 > > > > _______________________________________________ > > netmod mailing list > > netmod@ietf.org > > https://www.ietf.org/mailman/listinfo/netmod > > -- > Ladislav Lhotka > Head, CZ.NIC Labs > PGP Key ID: 0xB8F92B08A9F76C67 >
- Re: [netmod] yang-data-ext issues Kent Watsen
- Re: [netmod] yang-data-ext issues Joe Clarke
- Re: [netmod] yang-data-ext issues Kent Watsen
- [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Joe Clarke
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Robert Wilton
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Robert Wilton
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Kent Watsen
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Kent Watsen
- Re: [netmod] yang-data-ext issues Robert Varga
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Robert Varga
- Re: [netmod] yang-data-ext issues Juergen Schoenwaelder
- Re: [netmod] yang-data-ext issues Robert Varga
- Re: [netmod] yang-data-ext issues Juergen Schoenwaelder
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Andy Bierman
- [netmod] Extensions vs new YANG versions [was Re:… Robert Wilton
- Re: [netmod] yang-data-ext issues Robert Wilton
- Re: [netmod] Extensions vs new YANG versions [was… Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Kent Watsen
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Juergen Schoenwaelder
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Robert Wilton
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Robert Wilton
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Juergen Schoenwaelder
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Juergen Schoenwaelder
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Kent Watsen
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Kent Watsen
- Re: [netmod] yang-data-ext issues Juergen Schoenwaelder
- Re: [netmod] yang-data-ext issues Kent Watsen
- Re: [netmod] yang-data-ext issues Juergen Schoenwaelder
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Robert Wilton
- Re: [netmod] yang-data-ext issues Martin Bjorklund
- Re: [netmod] yang-data-ext issues Juergen Schoenwaelder
- Re: [netmod] yang-data-ext issues Ladislav Lhotka
- Re: [netmod] yang-data-ext issues Robert Varga
- Re: [netmod] yang-data-ext issues Robert Varga
- Re: [netmod] yang-data-ext issues Kent Watsen
- Re: [netmod] yang-data-ext issues Juergen Schoenwaelder
- Re: [netmod] yang-data-ext issues Andy Bierman
- Re: [netmod] yang-data-ext issues Kent Watsen
- Re: [netmod] yang-data-ext issues Ladislav Lhotka