Re: [netmod] schema mount and YANG library

Lou Berger <lberger@labn.net> Wed, 17 January 2018 14:09 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 C1D09127599 for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 06:09:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 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=-0.001, SPF_PASS=-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 emLj8uBudYiV for <netmod@ietfa.amsl.com>; Wed, 17 Jan 2018 06:09:18 -0800 (PST)
Received: from gproxy2-pub.mail.unifiedlayer.com (gproxy2-pub.mail.unifiedlayer.com [69.89.18.3]) (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 E2BAB127444 for <netmod@ietf.org>; Wed, 17 Jan 2018 06:09:17 -0800 (PST)
Received: from cmgw2 (unknown [10.0.90.83]) by gproxy2.mail.unifiedlayer.com (Postfix) with ESMTP id 6845E1E0848 for <netmod@ietf.org>; Wed, 17 Jan 2018 07:09:16 -0700 (MST)
Received: from box313.bluehost.com ([69.89.31.113]) by cmgw2 with id zS9C1w00l2SSUrH01S9F42; Wed, 17 Jan 2018 07:09:16 -0700
X-Authority-Analysis: v=2.2 cv=TIA1cxta c=1 sm=1 tr=0 a=h1BC+oY+fLhyFmnTBx92Jg==:117 a=h1BC+oY+fLhyFmnTBx92Jg==:17 a=IkcTkHD0fZMA:10 a=xqWC_Br6kY4A:10 a=RgaUWeydRksA:10 a=Chlqg--EEEERaDeMNk4A:9 a=QEXdDO2ut3YA:10
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=+QmYSPRvnxBzHHDb14ybruygPPORK3vFp+gsNnFipQw=; b=iz3k9DZSMQwcauEoM0LZqlFt6/ Zz/t9RdmOgW73eM7ZPB8Y2cwAFZT4lFBP1QBV0GKGue4MX6y7qTkeg9/libilnyxDn51LgtykOrEP rIL0zlLLFDGC1EAyrMRBMr/hz;
Received: from pool-100-15-86-101.washdc.fios.verizon.net ([100.15.86.101]:47786 helo=[IPv6:::1]) by box313.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89) (envelope-from <lberger@labn.net>) id 1eboOu-002XkE-Ht; Wed, 17 Jan 2018 07:09:12 -0700
To: Ladislav Lhotka <lhotka@nic.cz>, Robert Wilton <rwilton@cisco.com>, Martin Bjorklund <mbj@tail-f.com>
Cc: netmod@ietf.org
References: <53c046c7-bd41-4a4b-ef61-0d3bf9414269@labn.net> <20180116.161347.1518992717170489943.mbj@tail-f.com> <0d9b55b4-1377-34b9-442a-a94713e6ead1@labn.net> <20180116.165014.297580929914718463.mbj@tail-f.com> <e2065948-f455-dfc7-b1ae-079331b6e626@cisco.com> <1516172373.21945.16.camel@nic.cz>
From: Lou Berger <lberger@labn.net>
Message-ID: <2d3e40ab-7dd6-20ea-ee41-c06c498d767c@labn.net>
Date: Wed, 17 Jan 2018 09:09:08 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2
MIME-Version: 1.0
In-Reply-To: <1516172373.21945.16.camel@nic.cz>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Content-Language: en-US
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.86.101
X-Exim-ID: 1eboOu-002XkE-Ht
X-Source:
X-Source-Args:
X-Source-Dir:
X-Source-Sender: pool-100-15-86-101.washdc.fios.verizon.net ([IPv6:::1]) [100.15.86.101]:47786
X-Source-Auth: lberger@labn.net
X-Email-Count: 4
X-Source-Cap: bGFibm1vYmk7bGFibm1vYmk7Ym94MzEzLmJsdWVob3N0LmNvbQ==
X-Local-Domain: yes
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/18SdlclhFiCpaxvHYNSwVLHpx_8>
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: Wed, 17 Jan 2018 14:09:20 -0000


On 1/17/2018 1:59 AM, Ladislav Lhotka wrote:
...
>>>>>> I think
>>>>>> it is incumbent upon those revisiting past/closed WG decisions (in
>>>>>> this case, inline schema being represented by YL) to argue why the
>>>>>> decision needs to be revisited.
>>>>> I'm repeating my self: b/c the current solution doesn't work well with
>>>>> the NMDA.
>>>> I simply don't understand how YL-bis works at the root node but
>>>> doesn't work equally at an inline mount point.  Can you elaborate?
>>> With NMDA, a server may have one schema for the config datastore and
>>> another one for operational (one is a superset of the other).  A
>>> mounted YL can only be present in operational.  Thus, there's no way a
>>> client can learn the schema for config.
>> If the LNE mounted the full YL-bis at the mount point then you would
>> have the list of datastores, and the schema associated with each
>> datastore.  Of course, this would only be available in operational, but
>> that is the same as a regular server support YL-bis.
> YL-bis is different in that it is in fact metadata even though we call it state
> data.
I couldn't agree more.  YL and SM are server metadata and are 
independent of any DS.  They could be accessed via any (as others have 
suggested), but we are currently choosing to access if via operational 
state.  With NMDA, I think personally think server meta data should have 
it's own DS.  This discussion has convinced me that the current proposed 
alternative, of accessing as operational data is flawed and even access 
via *any* DS is preferable.

> In any case, no matter what datastores the server has, YL-bis is the
> single well-known location from which the schema of all datastores can be
> retrieved.
That's a nice idea, but as was discussed in december, the direction 
being taken doesn't include SM so this statement isn't *currently* true.

>
> We could refer to <operational> as the place from which the mounted schemas of
> NMDA-standard config datastores can be retrieved (except for special cases, one
> is discussed below). But if there is another config datastore (e.g. dynamic)
> with an inline mount point instance, it is unclear where to look for the mounted
> schema.
Why?  Is it unclear where to look for YL-bis in this case?  Why is SM 
any different than YL?

>   With my proposal, the mount point instance will be annotated with
> @schema-ref that points to a schema in the top-level YL.
right and as we thrashed out the last time we had discussed this with 
the whole WG, having inline schema available at the top level was not 
the preferred solution.

>
>> I thought that the problem with the current solution and NMDA, was that
>> there is no way to find out what the LNE schema is if the LNE isn't
>> booted, and hence isn't providing <operational>.  But I'm not sure what
>> issues that actually causes.  E.g. does it cause issues with
>> pre-configuration of the LNE?
> The issue that this causes is that the schema for the pre-configured LNE isn't
> known and validity of <intended> is unclear.
Please elaborate on what you see here as a problem.  Those working on 
LNE's (including myself) don't see an issue here.

Lou
>
> Lada
>