Re: [netmod] compact versus iterative representation of the overall schema

Lou Berger <lberger@labn.net> Mon, 23 May 2016 13:59 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 21A6E12D8F9 for <netmod@ietfa.amsl.com>; Mon, 23 May 2016 06:59:06 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Level:
X-Spam-Status: No, score=-2.002 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_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 7nn1oNxxHlpq for <netmod@ietfa.amsl.com>; Mon, 23 May 2016 06:59:04 -0700 (PDT)
Received: from gproxy7-pub.mail.unifiedlayer.com (gproxy7-pub.mail.unifiedlayer.com [70.40.196.235]) by ietfa.amsl.com (Postfix) with SMTP id 85BCE12D198 for <netmod@ietf.org>; Mon, 23 May 2016 06:59:04 -0700 (PDT)
Received: (qmail 11376 invoked by uid 0); 23 May 2016 13:59:02 -0000
Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy7.mail.unifiedlayer.com with SMTP; 23 May 2016 13:59:02 -0000
Received: from box313.bluehost.com ([69.89.31.113]) by cmgw2 with id xpyw1s00D2SSUrH01pyzse; Mon, 23 May 2016 07:59:00 -0600
X-Authority-Analysis: v=2.1 cv=QND7GG7L c=1 sm=1 tr=0 a=h1BC+oY+fLhyFmnTBx92Jg==:117 a=IkcTkHD0fZMA:10 a=-NfooI8aBGcA:10 a=uEJ9t1CZtbIA:10 a=yrkiwgmsf1kA:10 a=wU2YTnxGAAAA:8 a=PKXN5bc5wmwGyTaQxZIA:9 a=u-U2OPmVY9e_8NW8:21 a=P-gktLqHjNH6SAND:21 a=QEXdDO2ut3YA:10 a=Yz9wTY_ffGCQnEDHKrcv: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:Cc:References:To:Subject; bh=gMydN43nOOhhRpYnhJ3ooo+WVPrn4ZWQmieGLBydXGI=; b=F9BPaFLrZ9PCnJzjQtCwPLG2qF 1lMqJ+ES0fJVc+HGATTZLueN31b/2irO2ZASIUfHrmplL/fUtm9qLeAVEyhvzDuhkDd+wlSRyboyh Z1Eorzs8YF/jV/ZxJzexDs+nl;
Received: from box313.bluehost.com ([69.89.31.113]:39348 helo=[127.0.0.1]) by box313.bluehost.com with esmtpa (Exim 4.86_2) (envelope-from <lberger@labn.net>) id 1b4qNm-0003hj-8Q; Mon, 23 May 2016 07:58:58 -0600
To: Ladislav Lhotka <lhotka@nic.cz>
References: <m2y48q96f4.fsf@nic.cz> <5742F7FB.4040803@labn.net> <22C4E267-E883-4909-A824-DB742B9F63A4@nic.cz>
From: Lou Berger <lberger@labn.net>
Message-ID: <57430C99.1000804@labn.net>
Date: Mon, 23 May 2016 09:58:49 -0400
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version: 1.0
In-Reply-To: <22C4E267-E883-4909-A824-DB742B9F63A4@nic.cz>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-Identified-User: {1038:box313.bluehost.com:labnmobi:labn.net} {sentby:smtp auth 69.89.31.113 authed with lberger@labn.net}
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/qTYjemseYf3KeJyq6AYayZX49go>
Cc: netmod@ietf.org
Subject: Re: [netmod] compact versus iterative representation of the overall schema
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.17
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: Mon, 23 May 2016 13:59:06 -0000

Lada

See below

On 5/23/2016 9:43 AM, Ladislav Lhotka wrote:
>> On 23 May 2016, at 14:30, Lou Berger <lberger@labn.net> wrote:
>>
>> Hi Lada,
>>    I looks like no one really jumped on this one -- so better late than
>> never ...
>>
>> When looking at the question below, we should consider the uses cases. 
>> I'm particularity interested (as a contributor) in the use case of
>> nested mounts (NIs mounted within LNEs), as well as the case if  models
>> that will only permit mounting of specific other models vs generically
>> mounting any model.
>>
>> On 4/6/2016 10:07 AM, Ladislav Lhotka wrote:
>>> Hi,
>>>
>>> with a schema mount mechanism in place, there are two different options
>>> for constructing the overall schema (their combinations are possible,
>>> too):
>>>
>>> 1. Define schema mount as an extension of YANG library so that it
>>> defines YANG modules, revisions, features and deviations as before but
>>> also the way how they are combined into a hierarchical structure of
>>> schemas.
>> I think this only makes sense if this is scoped in some way.  For
>> example, with LNEs, the parent/host server may not have visibility into
>> the mounted models, (see draft-rtgyangdt-rtgwg-lne-model).  And even if
> As I understand it, schema-mount is about accessing the LNE models from the parent/host management interface. I believe the real question is whether we want to allow the schema to dynamically change at run time and possibly throw in new modules that the client never heard of. #2 can do it while #1 can't. I am not sure though whether the LNE model really requires something like this.

Again there are different use cases.  In the fixed-mount case (where a
module containing the mount specifies what model is being mounted) a
client will always know what to expect.  In the LNE and probably even NI
cases, a single client may talk to multiple servers, each of which may
have different mounted models.  I'm less sure about a single server with
different models mounted under different NIs, but this is certainly
possible in the LNE case.

>> does, you have to consider the cases of mounted models contained within
>> mounted models.
> This is possible either way, provided that the complete schema is known upfront.

I think the complete schema is likely to be known by there server
upfront in all cases, but not the client.

Lou
>>> 2. Apart from YANG Library data, the server just specifies the mount
>>> points. A client of an NM protocol is expected to fetch a new instance
>>> of YANG library and/or subordinate mount points as state data from a
>>> well-known location under each mount point.
>> I think this depends on the use case.  For LNEs, I think this is right. 
>> For some of the other possible use cases being discussed only a specific
>> model can be mounted.
> I guess I need some example scenarios demonstrating that #1 cannot be used for LNE.
>
> Lada 
>
>>> I think that #1 should be available (alone or along with #2) because
>>> there are cases when YANG is used as a data modelling language outside
>>> the context of a NM protocol – Eliot Lear's MUD presentation is one
>>> example.
>> I think we (the rtg yang arch dt) had envisioned  something closer to
>> 2.  And as you say, an approach that also includes a properly scoped 1
>> is possible.
>>
>> Lou
>>
>>> Lada
>>>
>>
> --
> Ladislav Lhotka, CZ.NIC Labs
> PGP Key ID: E74E8C0C
>
>
>
>
>