Re: [netmod] compact versus iterative representation of the overall schema
Ladislav Lhotka <lhotka@nic.cz> Mon, 23 May 2016 14:21 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 BD6F412B043 for <netmod@ietfa.amsl.com>; Mon, 23 May 2016 07:21:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.426
X-Spam-Level:
X-Spam-Status: No, score=-8.426 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_HI=-5, RP_MATCHES_RCVD=-1.426] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 TalwvJHc_u3Y for <netmod@ietfa.amsl.com>; Mon, 23 May 2016 07:21:33 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [217.31.204.67]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 56F2912D61A for <netmod@ietf.org>; Mon, 23 May 2016 07:21:33 -0700 (PDT)
Received: from [IPv6:2001:718:1a02:1:19c4:f68e:489c:53ba] (unknown [IPv6:2001:718:1a02:1:19c4:f68e:489c:53ba]) by mail.nic.cz (Postfix) with ESMTPSA id 775F46099D; Mon, 23 May 2016 16:21:31 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1464013291; bh=6HtPfzAl+7/dmh+7ztDL89UWDmBJEItnRbbe6Ik76p8=; h=From:Date:To; b=Cb8pzgxO6zT9ZO/pYetxc7yxwb03TVWO6LROgMdu/4xHTsKYtWFAgfSEJ+/OKkRrW PvssPKA9jG7l6aOxjGUeiT/jMijg4U1FZxkifvClUv6DtvobM5nWI4XVCo3ED2WmHi uq044FT30OkUUjsZelldte8gVbMO7p2BvMa4PHdM=
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Ladislav Lhotka <lhotka@nic.cz>
In-Reply-To: <57430C99.1000804@labn.net>
Date: Mon, 23 May 2016 16:21:33 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <BFC63A0B-FDA6-4BFD-9F4A-495010319807@nic.cz>
References: <m2y48q96f4.fsf@nic.cz> <5742F7FB.4040803@labn.net> <22C4E267-E883-4909-A824-DB742B9F63A4@nic.cz> <57430C99.1000804@labn.net>
To: Lou Berger <lberger@labn.net>
X-Mailer: Apple Mail (2.3124)
X-Virus-Scanned: clamav-milter 0.98.7 at mail
X-Virus-Status: Clean
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/y4dTeTbjRp5bPRcRhAkrVpHN1lU>
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 14:21:36 -0000
> On 23 May 2016, at 15:58, Lou Berger <lberger@labn.net> wrote: > > 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. OK, so it seems to be related to the use cases for peer mount, which IMO has a lot of other issues to solve. > >>> 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. Well, if the server knows everything upfront, it can also publish the schema in the compact form. A client may not support everything but at least it is able to tell whether it is the case or not. Lada > > 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 -- Ladislav Lhotka, CZ.NIC Labs PGP Key ID: E74E8C0C
- [netmod] compact versus iterative representation … Ladislav Lhotka
- Re: [netmod] compact versus iterative representat… Lou Berger
- Re: [netmod] compact versus iterative representat… Ladislav Lhotka
- Re: [netmod] compact versus iterative representat… Lou Berger
- Re: [netmod] compact versus iterative representat… Ladislav Lhotka
- Re: [netmod] compact versus iterative representat… Martin Bjorklund
- Re: [netmod] compact versus iterative representat… Martin Bjorklund
- Re: [netmod] compact versus iterative representat… Ladislav Lhotka
- Re: [netmod] compact versus iterative representat… Ladislav Lhotka
- Re: [netmod] compact versus iterative representat… Martin Bjorklund
- Re: [netmod] compact versus iterative representat… Ladislav Lhotka