Re: [netmod] Schema Mount Point Instance Yang Library Clarification

Ladislav Lhotka <lhotka@nic.cz> Thu, 25 April 2019 07: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 3B18F1200EA for <netmod@ietfa.amsl.com>; Thu, 25 Apr 2019 00:21:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7
X-Spam-Level:
X-Spam-Status: No, score=-7 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] 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 f7qWt7mKL7gg for <netmod@ietfa.amsl.com>; Thu, 25 Apr 2019 00:21:50 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (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 3D27C12002E for <netmod@ietf.org>; Thu, 25 Apr 2019 00:21:50 -0700 (PDT)
Received: from birdie (unknown [IPv6:2001:718:1a02:1::380]) by mail.nic.cz (Postfix) with ESMTPSA id D50DE62F58; Thu, 25 Apr 2019 09:21:47 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1556176907; bh=WuegaWtOmhkkHzxOeb6iZp0dAWtAP/95ZDjK/voSe9I=; h=From:To:Date; b=D0NcPkqY+cvXhcs0nAJ/IvaQ9WfEZ4StsK34ZDpLEifxGB9VXTs4AEpnOeKp2ePqd F2F/kJzuhIhkw5+pVutLhxlLRw9+m/VovP4mAfxr1M2LlxCmQrB9y3ZEsKdQiK3FK7 6EuMmpCuAipfS+BQeTYdmjJeTxUoNbBOaZ/vYfJM=
Message-ID: <82c3283744d9b7b3aeb0c05b315d978768845ad5.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: Rohit R Ranade <rohitrranade@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>
Date: Thu, 25 Apr 2019 09:21:47 +0200
In-Reply-To: <991B70D8B4112A4699D5C00DDBBF878A6BD49EF6@dggeml530-mbs.china.huawei.com>
References: <991B70D8B4112A4699D5C00DDBBF878A6BD49B90@dggeml530-mbs.china.huawei.com> <87pnpbq3p5.fsf@nic.cz> <991B70D8B4112A4699D5C00DDBBF878A6BD49EF6@dggeml530-mbs.china.huawei.com>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.32.1
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/p3uwOy4YiUEh6Rw449LJKu3Stys>
Subject: Re: [netmod] Schema Mount Point Instance Yang Library Clarification
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: Thu, 25 Apr 2019 07:21:52 -0000

On Wed, 2019-04-24 at 08:52 +0000, Rohit R Ranade wrote:
> Hi Lada,
> 
> Thank you for your response. Please find inline.
> 
> -----Original Message-----
> From: Ladislav Lhotka [mailto:lhotka@nic.cz] 
> Sent: 24 April 2019 12:40
> To: Rohit R Ranade <rohitrranade@huawei.com>; netmod@ietf.org
> Subject: Re: [netmod] Schema Mount Point Instance Yang Library Clarification
> 
> Hi Rohit,
> 
> Rohit R Ranade <rohitrranade@huawei.com> writes:
> 
> > Hi All,
> > 
> > In https://tools.ietf.org/html/rfc8528#section-4, a below example is 
> > shown for parent references,
> > 
> > "
> >      +--rw interfaces
> >      |  +--rw interface* [name]
> >      |     ...
> >      +--rw network-instances
> >         +--rw network-instance* [name]
> >            +--rw name
> >            +--mp root
> >               +--rw routing
> >                  ...
> > 
> > "
> > Consider a simple case where the ietf-routing module and ietf-ospf module
> > are mounted as part of network-instance of a L3vpn. Also consider that for
> > ietf-ospf , it has some interface configuration as shown below.
> > This needs parent-references , since the interface configuration is in the
> > parent data-tree of mount-point.
> > 
> > module: ietf-ospf
> >    augment /rt:routing/rt:control-plane-protocols/
> >             rt:control-plane-protocol:
> >      +--rw ospf
> >         +--rw areas
> >         |  +--rw area* [area-id]
> >         |     +--rw interfaces
> >         |        +--rw interface* [name]
> >         |           +--rw name     if:interface-ref
> > 
> > Since the YANG library "under" the mount-point-instance has to be 
> > complete, I was thinking that the YANG library under the mount-point 
> > will have the "ietf-interfaces" YANG module. Since the 
> > "ietf-interfaces" module under the network-instance mount-point may 
> > not make sense,  the "conformance-type" for it will be "import"
> > instead of "implement".
> 
> Yes, I think this is correct: the ietf-ospf module imports the ietf-interfaces 
> module, so the latter has to be specified in the YANG library of the mounted
> schema with "import" conformance.
> 
> > Another statement though confuses me , where the argument of 
> > "presence" statement of "shared-schema", ""The mounted schema together 
> > with the 'parent-reference'
> >                 make up the schema for this mount point.";"  ==> Does
> 
> This is wrong, parent-reference adds nothing to the schema, only to the
> accessible tree for XPath evaluations.
> [Rohit R Ranade] So this needs to be corrected by an errata ?

This sentence is in the module text, so it would require a new revision in order
to be really effective. My suggestion is to wait until more (and possibly more
substantial) changes accumulate.

Lada 

> 
> Lada
> 
> > this mean that YANG Library of the mount-point-instance should not 
> > have "ietf-interfaces" in this case ? This may make the client work 
> > complicated.
> > 
> > 
> > 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
-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67