Re: [netmod] schema mount open issue #1

Lou Berger <lberger@labn.net> Tue, 29 August 2017 12:34 UTC

Return-Path: <lberger@labn.net>
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 D709A1329C5 for <netmod@ietfa.amsl.com>; Tue, 29 Aug 2017 05:34:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.7
X-Spam-Level:
X-Spam-Status: No, score=-4.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.8, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (768-bit key) header.d=labn.net
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 c9dNsqOzEt6K for <netmod@ietfa.amsl.com>; Tue, 29 Aug 2017 05:34:58 -0700 (PDT)
Received: from gproxy9-pub.mail.unifiedlayer.com (gproxy9-pub.mail.unifiedlayer.com [69.89.20.122]) (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 1331E132968 for <netmod@ietf.org>; Tue, 29 Aug 2017 05:34:58 -0700 (PDT)
Received: from cmgw3 (unknown [10.0.90.84]) by gproxy9.mail.unifiedlayer.com (Postfix) with ESMTP id 446441E0745 for <netmod@ietf.org>; Tue, 29 Aug 2017 06:34:50 -0600 (MDT)
Received: from box313.bluehost.com ([69.89.31.113]) by cmgw3 with id 30am1w0072SSUrH010ap1f; Tue, 29 Aug 2017 06:34:50 -0600
X-Authority-Analysis: v=2.2 cv=F98nTupN c=1 sm=1 tr=0 a=h1BC+oY+fLhyFmnTBx92Jg==:117 a=h1BC+oY+fLhyFmnTBx92Jg==:17 a=Q9fys5e9bTEA:10 a=KeKAF7QvOSUA:10 a=wU2YTnxGAAAA:8 a=48vgC7mUAAAA:8 a=BITaCbhJX4eeEuJkCuEA:9 a=Uo1TAxcZBB5w_AzH:21 a=VILcoSNmgfWgjEKG:21 a=PUjeQqilurYA:10 a=Yz9wTY_ffGCQnEDHKrcv:22 a=w1C3t2QeGrPiZgrLijVG:22
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=labn.net; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version :Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=FMwZbVBw84j4RKH0u7b2yOVQW6vj5SQTl/VH9tBhaXg=; b=nshe5RMNgOeIcXPUPnIhnvgX1i XYECgXNj9T/LMFL8ZUgkXsEUa8PuXalFbWPfE+QFQZsspu+jKG4hKmoMVJFS+MVvsfhDZ7w+1VL+a 3UxLIVYmFbYS/zGAP3i9uHO1I;
Received: from pool-100-15-84-20.washdc.fios.verizon.net ([100.15.84.20]:41262 helo=fs2.dc.labn.net) by box313.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from <lberger@labn.net>) id 1dmfjC-003ryC-45; Tue, 29 Aug 2017 06:34:46 -0600
To: Martin Bjorklund <mbj@tail-f.com>
Cc: lhotka@nic.cz, netmod@ietf.org
References: <7c99497f-d719-0fe2-01f5-a06d53c8fc68@labn.net> <1503929779.1715.65.camel@nic.cz> <81b138c6-9941-3313-979c-61edad7819a7@labn.net> <20170829.093743.762532630259333653.mbj@tail-f.com>
From: Lou Berger <lberger@labn.net>
Message-ID: <647a5ef0-968a-4eb7-322e-b3862a1252bd@labn.net>
Date: Tue, 29 Aug 2017 08:34:45 -0400
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <20170829.093743.762532630259333653.mbj@tail-f.com>
Content-Type: text/plain; charset="iso-8859-15"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - box313.bluehost.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - labn.net
X-BWhitelist: no
X-Source-IP: 100.15.84.20
X-Exim-ID: 1dmfjC-003ryC-45
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: pool-100-15-84-20.washdc.fios.verizon.net (fs2.dc.labn.net) [100.15.84.20]:41262
X-Source-Auth: lberger@labn.net
X-Email-Count: 3
X-Source-Cap: bGFibm1vYmk7bGFibm1vYmk7Ym94MzEzLmJsdWVob3N0LmNvbQ==
X-Local-Domain: yes
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/HE6FlgMOPbWrTKU2pgrAIQtTgWw>
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 12:35:00 -0000

On 08/29/2017 03:37 AM, Martin Bjorklund wrote:
> Lou Berger <lberger@labn.net> wrote:
>> 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.
>> ...
>>>> 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
>> 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?
>>
>> 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
> 
> The current text says:
> 
>   A "container" or "list" node becomes a mount point if the
>   "mount-point" extension (defined in the "ietf-yang-schema-mount"
>   module) is used in its definition.

interesting, read that a few times to (now) get the gist of your intent.

> 
> But of course we should clarify this.
> 



>> , this disconnect was never noticed.  Certainly
>> 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
> 
> I strongly object to letting the extension define a new data node.

> This would be a new type of data node that presumably look a lot like
> a container, 

agreed, just like a mount point looks a lot like a directory in a unix
file system.

> and you'd have to define all sorts of rules for this new
> node (how it is encoded in XML, JSON, CBOR; how it is handled in
> edit-config, how it is mapped to RESTCONF resources etc etc).

I'm don't see this, the rules would be the same as a container, as in
"mount points in data trees are encoded identically as containers".

> 
> If you thought that the extension implicitly creates a node, adding an
> explicit container won't do any harm; it will not change the schema
> tree from what you thought it was.

Well we could make this work, but it feels like every model that uses
schema has added complexity to its definition and use to perhaps avoid
making some minor tooling changes.  Keep in mind that any use of the
mount point extension will required changes in tooling.

> 
> But I think we should also restrict the mount-point extension so that
> there cannot be more than one mount-point in a given container.
> 
In this case, I'd go further and say that the only thing in the
container (of the module schema) is the mount point and a mount point
extension is only valid within a container. (Then the semantics are the
same as we expected, just the syntax is different.)

Lou


> 
> /martin
> 
>