Re: [netmod] schema mount and YANG library

Ladislav Lhotka <lhotka@nic.cz> Tue, 19 December 2017 10:25 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 7C5D51276AF for <netmod@ietfa.amsl.com>; Tue, 19 Dec 2017 02:25:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.01
X-Spam-Level:
X-Spam-Status: No, score=-7.01 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, T_RP_MATCHES_RCVD=-0.01] 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 CyYozbq7oY2d for <netmod@ietfa.amsl.com>; Tue, 19 Dec 2017 02:25:41 -0800 (PST)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (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 6D6FE126B71 for <netmod@ietf.org>; Tue, 19 Dec 2017 02:25:40 -0800 (PST)
Received: from birdie2 (unknown [IPv6:2001:1488:fffe:6:1f99:257b:62cc:c0d5]) by mail.nic.cz (Postfix) with ESMTPSA id A862363D1A; Tue, 19 Dec 2017 11:25:38 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1513679138; bh=9O38C9r9suoSSYxLQjDNGoZzykKEja1SSnthh0aw4X4=; h=From:To:Date; b=FNe1H6CkJWDlYd8vaiLXdOrMhFcpdkDDPle3UVEUIt4I7VOKf7aK8oy3Kj8iTOqwq 84P8GImc7lHyYpvmh+U03/sT2fJuEzcjc4qav4Pw2TLagGBYdMzddtwX150yPAX8EM JfqM2v6T9zfnoXo44Yu7tzHrpsgyG06pFC2h8YzQ=
Message-ID: <1513679138.2479.12.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Cc: NETMOD WG <netmod@ietf.org>
Date: Tue, 19 Dec 2017 11:25:38 +0100
In-Reply-To: <20171219090543.klkffqbdnfifznmt@elstar.local>
References: <1512747137.3467.71.camel@nic.cz> <87zi6kay8b.fsf@nic.cz> <30ba994a-96b5-880c-ea43-b67469933a94@labn.net> <1513663919.478.7.camel@nic.cz> <20171219090543.klkffqbdnfifznmt@elstar.local>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
X-Mailer: Evolution 3.26.3
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/f3HOqIgdH5FfDLpcwWFHpOSkPmc>
Subject: Re: [netmod] schema mount and YANG library
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: Tue, 19 Dec 2017 10:25:43 -0000

On Tue, 2017-12-19 at 10:05 +0100, Juergen Schoenwaelder wrote:
> On Tue, Dec 19, 2017 at 07:11:59AM +0100, Ladislav Lhotka wrote:
> > On Mon, 2017-12-18 at 15:30 -0500, Lou Berger wrote:
> > > lada,
> > > 
> > >     See below.
> > > 
> > > 
> > > On 12/15/2017 8:59 AM, Ladislav Lhotka wrote:
> > > > Hi,
> > > > 
> > > > unfortunately, using an action for querying embedded YANG library data
> > > > (needed for the "inline" case of schema mount) doesn't work either
> > > > because now under NMDA actions can be used only on instances in the
> > > > <operational> datastore.
> > > 
> > > but the inline/embedded library would (only) be present in the in the
> > > operational datastore, so what's the issue?
> > 
> > Well, the issue is described in my initial mail of this thread: the current
> > text
> > requires that every instance of an inline mount point contains the embedded
> > YANG library. Tha latter is state data, so the above requirement cannot be
> > satisfied if the mount point instance is in a configuration datastore.
> > 
> 
> Lada,
> 
> probably a stupid question (since I am not really familiar with the
> details of the mount work): What speaks against augmenting the yang
> library with a list of mount points and then mount point list elements
> can refer to the schema used at the mount point?

Absolutely, that's exactly what IMO needs to be done. All schemas, both top-
level and mounted, would then be contained in the YANG library's schema list.

I think the most sensible approach is to first agree on the new schema of YANG
library, and then define additional schema mount data as an augment.

Lada

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