Re: [netmod] Schema Mount Point Instance Yang Library Clarification
Ladislav Lhotka <lhotka@nic.cz> Wed, 24 April 2019 07:10 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 7D42B1202EB for <netmod@ietfa.amsl.com>; Wed, 24 Apr 2019 00:10:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, URIBL_BLOCKED=0.001] 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 oemnEHmhDVHK for <netmod@ietfa.amsl.com>; Wed, 24 Apr 2019 00:10:05 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 594C7120096 for <netmod@ietf.org>; Wed, 24 Apr 2019 00:10:04 -0700 (PDT)
Received: by trail.lhotka.name (Postfix, from userid 109) id C004B1820414; Wed, 24 Apr 2019 09:10:31 +0200 (CEST)
Received: from localhost (nat-1.nic.cz [217.31.205.1]) by trail.lhotka.name (Postfix) with ESMTPSA id 7B34E1820408; Wed, 24 Apr 2019 09:10:28 +0200 (CEST)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Rohit R Ranade <rohitrranade@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>
In-Reply-To: <991B70D8B4112A4699D5C00DDBBF878A6BD49B90@dggeml530-mbs.china.huawei.com>
References: <991B70D8B4112A4699D5C00DDBBF878A6BD49B90@dggeml530-mbs.china.huawei.com>
Mail-Followup-To: Rohit R Ranade <rohitrranade@huawei.com>, "netmod\@ietf.org" <netmod@ietf.org>
Date: Wed, 24 Apr 2019 09:09:58 +0200
Message-ID: <87pnpbq3p5.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/DIZ-WVjhx16-JUu0Ggq_PBeOU-c>
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: Wed, 24 Apr 2019 07:10:09 -0000
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. 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
- [netmod] Schema Mount Point Instance Yang Library… Rohit R Ranade
- Re: [netmod] Schema Mount Point Instance Yang Lib… Ladislav Lhotka
- Re: [netmod] Schema Mount Point Instance Yang Lib… Rohit R Ranade
- Re: [netmod] Schema Mount Point Instance Yang Lib… Ladislav Lhotka