Re: [netmod] WG Last Call: draft-ietf-netmod-schema-mount-07

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Fri, 10 November 2017 16:10 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
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 02A4D126DC2 for <netmod@ietfa.amsl.com>; Fri, 10 Nov 2017 08:10:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
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 znmPLsEzancW for <netmod@ietfa.amsl.com>; Fri, 10 Nov 2017 08:10:06 -0800 (PST)
Received: from atlas5.jacobs-university.de (atlas5.jacobs-university.de [212.201.44.20]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 45A51126BF6 for <netmod@ietf.org>; Fri, 10 Nov 2017 08:10:06 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas5.jacobs-university.de (Postfix) with ESMTP id 392426F; Fri, 10 Nov 2017 17:10:04 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas5.jacobs-university.de ([10.70.0.217]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10032) with ESMTP id rc8JN5yQeG6u; Fri, 10 Nov 2017 17:10:03 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas5.jacobs-university.de (Postfix) with ESMTPS; Fri, 10 Nov 2017 17:10:04 +0100 (CET)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id 25DDA2011F; Fri, 10 Nov 2017 17:10:04 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id AD6lavU7PzOO; Fri, 10 Nov 2017 17:10:03 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id BB4DF2011E; Fri, 10 Nov 2017 17:10:03 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 3BFDF415297C; Fri, 10 Nov 2017 17:08:36 +0100 (CET)
Date: Fri, 10 Nov 2017 17:08:36 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Robert Wilton <rwilton@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20171110160836.2hy5nr4zuklwnjjj@elstar.local>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Robert Wilton <rwilton@cisco.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <47B1141C-8979-4910-B7CA-2114B9C0D352@juniper.net> <68c6a4d5-fd3e-efdb-9c34-f69f241d6a31@cisco.com> <874lq4oq94.fsf@nic.cz> <7d8a8b01-6d3b-ac29-dd58-f2771ecdad56@cisco.com> <87d14rjwdq.fsf@nic.cz> <56ea1907-c2ed-1940-089c-527b33f0723e@cisco.com> <20171109181638.zel2otpzrptggvwz@elstar.local> <87lgje9m87.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <87lgje9m87.fsf@nic.cz>
User-Agent: NeoMutt/20170714 (1.8.3)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/iT7swbKtzpRNosKGhbkRNnxuQ-s>
Subject: Re: [netmod] WG Last Call: draft-ietf-netmod-schema-mount-07
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, 10 Nov 2017 16:10:13 -0000

On Fri, Nov 10, 2017 at 04:39:36PM +0100, Ladislav Lhotka wrote:
> >
> > So what is the difference between "schema tree" and "schema"? Or to
> > put it differently, what is "all associated semantics" that you are
> > adding to a "schema tree" to obtain a "schema"? RFC 7950 says:
> >
> >    o  schema tree: The definition hierarchy specified within a module.
> 
> As Rob points out, this is probably incorrect, as schema tree should
> involve multiple modules. It makes no sense to talk about a schema tree
> of an augmenting module unless we also take into account the augmented
> module.
> 
> Anyway, schema tree is really just the hierarchy, i.e. a tree of schema
> nodes, whereas schema is the hierarchy with datatypes, semantic rules
> and all that. We can validate instance data against the schema, not
> against the schema tree. This is at least how I understand it.

The current definition says "definition hierarchy specified within a
module", perhaps this was intended to mean 'tree of schema nodes', but
perhaps it means "the hierarchy with datatypes, semantic rules and all
that". ;-) Looking at the definition of schema node, I see:

  o schema node: A node in the schema tree.  One of action, container,
  leaf, leaf-list, list, choice, case, rpc, input, output,
  notification, anydata, and anyxml.

With this, your interpretation makes sense and a better way to define
scheme tree would then be:

  o schema tree: The tree formed out of schema nodes of a module.

The schema could be defined as

  o schema: All definitions of a module including the schema tree.

I think it is OK to scope these definitions to the notion of a module.
If people talk about the schema (schema tree, schema nodes) of a
collection of modules, it seems natural to assume that this means the
union of the schemas (schema trees, schema nodes).

/js

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>