Re: [netmod] yang-data-ext issues

Ladislav Lhotka <lhotka@nic.cz> Fri, 27 April 2018 15:13 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 2FF6E1252BA for <netmod@ietfa.amsl.com>; Fri, 27 Apr 2018 08:13:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7
X-Spam-Level:
X-Spam-Status: No, score=-7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 sNOmw7gPfL2J for <netmod@ietfa.amsl.com>; Fri, 27 Apr 2018 08:13:18 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E20211242F7 for <netmod@ietf.org>; Fri, 27 Apr 2018 08:13:17 -0700 (PDT)
Received: from birdie (unknown [IPv6:2a01:5e0:29:ffff:ffc6:c393:cdb9:8db1]) by mail.nic.cz (Postfix) with ESMTPSA id 01F9562691; Fri, 27 Apr 2018 17:13:15 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1524841996; bh=dLpMu4HNSLkRqPwH0Id9xog7wf2wOkH0UuiH/EnZrNM=; h=From:To:Date; b=mQsJFGXDZbRW10zfjOveL+D0bNR2GZvoJqpOimvkFa2mBIyvWztAmNyOKiIGFtBP9 mDjIQDfIzkgVhZE+bMvPvazXZhV8jAf2Wv07BPTUk4IeyvPVvcnC74otocZ/muRLQ1 qazw+G4DY959bGEFPM9yO8eYJus8XDj3GAq7JuuE=
Message-ID: <4305e62a9d301da22f89a0dd9a34c9c4882735af.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Cc: netmod@ietf.org
Date: Fri, 27 Apr 2018 17:13:20 +0200
In-Reply-To: <20180427144708.6ekknrajexvz5yvf@elstar.local>
References: <87muxq1pk9.fsf@nic.cz> <CABCOCHSwB8m6Uk82MZHnjnVi=0ofRohqEPT0Q06NM=+3n5gtFA@mail.gmail.com> <065a363753a67ee12f8bde6224009207b5fe7ee7.camel@nic.cz> <20180427.120325.419501937185262392.mbj@tail-f.com> <11da9315-40d9-60cd-d32f-b0ac4a5640c4@cisco.com> <45f5a97d205a9251b382687f54865c62250787cb.camel@nic.cz> <99aac5c0-aa2f-1a35-8a5c-ad97635e5a40@cisco.com> <b9211ebacd24ffdd558ecf4da5bfa1ad71cfdabb.camel@nic.cz> <20180427144708.6ekknrajexvz5yvf@elstar.local>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.28.1
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/V3NqyXh0scl_yqjWVmE-v7Iuklk>
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 15:13:20 -0000

On Fri, 2018-04-27 at 16:47 +0200, Juergen Schoenwaelder wrote:
> On Fri, Apr 27, 2018 at 04:34:38PM +0200, Ladislav Lhotka wrote:
> 
> > [...] define a special datastore for it, such as "error-messages".
> 
> This seems worse than using, well, RFC 8040 yang-data. The proper

Why it seems worse?

> clear solution for RPCs and actions would be to enable the definition
> of error details right in the rpc/action definition (input, output,
> error).

Agreed.

> 
> But something like yang-data seems to have uses in other contexts.

So other datastores may be defined. I assume that YANG library data can be used
independently, not just on a NC/RC server, pretty much along the lines of draft-
lengyel-netmod-yang-instance-data.

Lada

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