Re: [netmod] Schema Mount with Inline Type

Ladislav Lhotka <lhotka@nic.cz> Wed, 02 January 2019 13:59 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 82CDE127AC2 for <netmod@ietfa.amsl.com>; Wed, 2 Jan 2019 05:59:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 h-YrOawFBl_C for <netmod@ietfa.amsl.com>; Wed, 2 Jan 2019 05:58:59 -0800 (PST)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 5135C126CC7 for <netmod@ietf.org>; Wed, 2 Jan 2019 05:58:59 -0800 (PST)
Received: by trail.lhotka.name (Postfix, from userid 109) id EA5851820191; Wed, 2 Jan 2019 15:06:30 +0100 (CET)
Received: from localhost (nat-2.nic.cz [217.31.205.2]) by trail.lhotka.name (Postfix) with ESMTPSA id 24F5A182018D; Wed, 2 Jan 2019 15:06:28 +0100 (CET)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Rohit R Ranade <rohitrranade@huawei.com>, "netmod\@ietf.org" <netmod@ietf.org>
In-Reply-To: <991B70D8B4112A4699D5C00DDBBF878A6BCB50C7@dggeml530-mbs.china.huawei.com>
References: <991B70D8B4112A4699D5C00DDBBF878A6BCB50C7@dggeml530-mbs.china.huawei.com>
Mail-Followup-To: Rohit R Ranade <rohitrranade@huawei.com>, "netmod\@ietf.org" <netmod@ietf.org>
Date: Wed, 02 Jan 2019 14:58:54 +0100
Message-ID: <878t03duu9.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/HLJPvZg0mJfa9vXtuyTyg09Xa_Q>
Subject: Re: [netmod] Schema Mount with Inline Type
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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, 02 Jan 2019 13:59:02 -0000

Hi Rohit,

Rohit R Ranade <rohitrranade@huawei.com> writes:

> Hi All,
>
>    module: ietf-yang-schema-mount
>      +--ro schema-mounts
>         +--ro namespace* [prefix]
>         |  +--ro prefix    yang:yang-identifier
>         |  +--ro uri?      inet:uri
>         +--ro mount-point* [module label]
>            +--ro module                 yang:yang-identifier
>            +--ro label                  yang:yang-identifier
>            +--ro config?                boolean
>            +--ro (schema-ref)
>               +--:(inline)
>               |  +--ro inline!
>               +--:(shared-schema)
>                  +--ro shared-schema!
>                     +--ro parent-reference*   yang:xpath1.0
>
> Any reason for not adding "parent-reference" for "inline" type ? What
> is the solution for the modules defined under such mount points to
> refer to parent schema ?

The inline case was intentionally designed with an impenetrable "mount
jail". Do you see any use case where parent references are needed and
the "shared-schema" strategy cannot be used?

Lada

>
> With Regards,
> Rohit
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod

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