Re: [netmod] schema mount open issue #1

Ladislav Lhotka <lhotka@nic.cz> Tue, 29 August 2017 14:07 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 EBDC5132CF2 for <netmod@ietfa.amsl.com>; Tue, 29 Aug 2017 07:07:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, URIBL_BLOCKED=0.001] 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 W_OhqORVnTUx for <netmod@ietfa.amsl.com>; Tue, 29 Aug 2017 07:07:29 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id D4E1B132C36 for <netmod@ietf.org>; Tue, 29 Aug 2017 07:07:28 -0700 (PDT)
Received: by trail.lhotka.name (Postfix, from userid 109) id 4221C1820E76; Tue, 29 Aug 2017 16:07:03 +0200 (CEST)
Received: from localhost (nat-2.nic.cz [217.31.205.2]) by trail.lhotka.name (Postfix) with ESMTPSA id E20E61820E71; Tue, 29 Aug 2017 16:07:00 +0200 (CEST)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Lou Berger <lberger@labn.net>, Martin Bjorklund <mbj@tail-f.com>
Cc: netmod@ietf.org
In-Reply-To: <81b138c6-9941-3313-979c-61edad7819a7@labn.net>
References: <edf93508-3b14-e962-488f-a4844d7f8399@labn.net> <20170828.122845.1527315474517128533.mbj@tail-f.com> <ca476502-c8f5-ffad-a463-04f21e2411f9@labn.net> <20170828.133507.2047018591752852829.mbj@tail-f.com> <e356dcb1-6bb2-96ec-17d4-c0bf7f1868b4@labn.net> <1503927029.1715.46.camel@nic.cz> <7c99497f-d719-0fe2-01f5-a06d53c8fc68@labn.net> <1503929779.1715.65.camel@nic.cz> <81b138c6-9941-3313-979c-61edad7819a7@labn.net>
Mail-Followup-To: Lou Berger <lberger@labn.net>, Martin Bjorklund <mbj@tail-f.com>, netmod@ietf.org
Date: Tue, 29 Aug 2017 16:07:52 +0200
Message-ID: <87shgacvrb.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Itk26usYcO_ZnASCLUktUAFDy28>
Subject: Re: [netmod] schema mount open issue #1
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, 29 Aug 2017 14:07:33 -0000

Lou Berger <lberger@labn.net> writes:

> Lada,
>
>
> On 8/28/2017 10:16 AM, Ladislav Lhotka wrote:
>> Lou Berger píše v Po 28. 08. 2017 v 09:40 -0400:
>>> Lada,
>>>
>>> On 8/28/2017 9:30 AM, Ladislav Lhotka wrote:
>>>>> Can you please take a look at it and see if we have any other disconnects?
>>>> This is really scary. 
>>> I agree!
>>>
>>>> How can we expect poor data modellers to understand the
>>>> concept if we have such fundamental disconnects, after so many hours of
>>>> discussing it?
>>> This highlights why getting the text in (any) document is so important,
>>> and why discussions shouldn't be viewed as being closed until the impact
>>> on the text is agreed to!
>> I think many people still don't make much distinction between schema mount
>> (manipulation of the schema) and data mount. I still believe we need to clearly
>> separate these two concepts, preferably using two different mechanisms.
>
> Frankly, I'm focused on removing blocking issues on the current WG
> deliverable, i.e., schema mount.

Sure, and one serious issue is the complexity of the spec that makes it
difficult to understand. I have always insisted that the two mechanisms
- inline and use-schema - are fundamentally different concepts. The
former is basically data mount while the latter is an additional
mechanism for schema modularity comparable to augment.

Presenting them together is IMO confusing and wrong. For the use-schema
case, I would even suggest to avoid the term "mount".

> ...
>>> Lou
>>>
>>> PS is your view aligned with martin or our example?
>> If you mean shifting the XPath context node to the mount point instance, then
>> yes.
>
> funny, you answered yes to a choice!  I was asking if you think the

Not at all, I wasn't sure what you meant by "our example". What I wanted
to say is that I am aligned with Martin on his exposition of open issue
#1 that started this thread.

The mount point directly under choice is of course broken, and because
of it I couldn't use the schema from the most recent NI draft
revision in my presentation in Prague. I just forgot to discuss this
issue with you.

> mount point shows up as a node in the data tree, i.e., as shown in the
> example in
> https://tools.ietf.org/html/draft-ietf-rtgwg-ni-model-03#appendix-B.1?

I was pretty clear in my previous reply: "The mount-point extension
itself generates no extra node." The mount point does show up in the data
tree if it is instantiated, because it it defined by a "container" or
"list" statement. But the "mount-point" extension just tags this already
existing data node as a mount point.

>
> from my perspective and my co-authors in the RTG area using schema
> mount, we've never heard of a (filesystem) mount point that doesn't show
> in the (directory) structure and this is the mental analogue we've been
> assuming. Since there never was an explicit example/discussion or text
> to dissuade us of this, this disconnect was never noticed.  Certainly

I agree it would be useful to extend some of the examples so as to
include a tree view of the resulting schema.

> this needs to be explicit in the document (either way). The following
> change could be made to the schema mount draft (at a minimum):
>
> OLD
>           A mount point defines a place in the node hierarchy where
>           other data models may be attached. A server that implements a
> NEW
>           A mount point defines a node in a data tree under which
> instances of
>           other data models may be attached. A server that implements
> a

You nicely illustrate the confusion between data mount and schema
mount. Schema mount (or the "use-schema" approach at least) is a method
of schema construction analogical to an augment. This really means
nothing in terms of instance data - similarly, we don't expect instance
data modelled with an augment to be augmented somehow into the data
tree. The schema is constructed first and it describes constraints for a
data tree.

Note that this is different for the "inline" case because it relies on
instance data (YANG library) appearing somehow under the mount point.

Lada

>
> Lou
>
>> Lada
>>
>>>> Lada
>>>>
>

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