Re: [netmod] Schema-mount question: Augmentation to the Mounted Module
"Xufeng Liu" <xufeng.liu.ietf@gmail.com> Fri, 16 June 2017 16:17 UTC
Return-Path: <xufeng.liu.ietf@gmail.com>
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 B3C9C1294B7; Fri, 16 Jun 2017 09:17:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 YnVafV6qpps9; Fri, 16 Jun 2017 09:17:54 -0700 (PDT)
Received: from mail-lf0-x234.google.com (mail-lf0-x234.google.com [IPv6:2a00:1450:4010:c07::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4C23A126B6E; Fri, 16 Jun 2017 09:17:54 -0700 (PDT)
Received: by mail-lf0-x234.google.com with SMTP id o83so27751760lff.3; Fri, 16 Jun 2017 09:17:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=O+4g4o0ybAKzfWJ/eodqbKMbtwnhv9seAdCHc1c9EEM=; b=vdt9O5K9qZ+WBYXvtJc7W3JGitfIj20SdF91Jl34YqDprkmBIHCpYIRrhxhau3q3Em BLG4EwywYvMnIUkNPnEurdr8Xrj/Yvq1uveTQJO2TJUYPm98IztIiD1CkKOqIBm5OCqw kMr+aMwW3EppO8he0XPJTxF26JwjeiDuTpHkBp0JguE1WumaQZ3KQUfGUXZRPcKEh+UD lxzOOUu7+B5FJ46XGM3ksrj3YzTCo4oP+XVw7dz6oYxROZvPS3iCz46nu+fXUeEe3YSl f56d0JJM4xeNA2//wY11CJLUeKcSZXERbkUAngwg9MJiKmcC7deqs2cwzaECWI/6xV9C qDrA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=O+4g4o0ybAKzfWJ/eodqbKMbtwnhv9seAdCHc1c9EEM=; b=GkgYMH0we1WiqMJGnJo+O5bx1A1cGxPcRqcfZOCvMEVOiEYOMd4pl5hbMbg7c2kVL6 fn+4Dp3ZGGR7oyssnAZjh1klEG/ADQrKV4rW/bcLUwPuiIsChTznRXEfCeCcxNxZGLFu rzCFwDOoS0wK9dW4MwJCD5sYfLV7OeIpba6wGJASzbkGRt7Fyh2Qs7uKWzLn45RY4rx1 vflJk/97WRYJIbO5RsmJRiGsx/fjh79MRiMEXerEahcG6ZVXtsLuC93DrYOpGknyVUHY g6PV8AslgS0wjOyWJxh0d0YvsHlumV8cbujmr3fxeHLHNA9QoD8xf0w7lMjdxKZXBVKz z8YA==
X-Gm-Message-State: AKS2vOwmwsDyTuJ1ZYrdWvEy2ZMjZ5JVlrIQ2/lZ6NeXTqgORjYeRpRP LHlvyB1ZBQ862SgIsyI=
X-Received: by 10.46.5.130 with SMTP id 124mr3399033ljf.95.1497629872096; Fri, 16 Jun 2017 09:17:52 -0700 (PDT)
Received: from xliuus (wsip-98-191-72-170.dc.dc.cox.net. [98.191.72.170]) by smtp.gmail.com with ESMTPSA id w2sm516512ljd.52.2017.06.16.09.17.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Jun 2017 09:17:51 -0700 (PDT)
From: Xufeng Liu <xufeng.liu.ietf@gmail.com>
To: 'Martin Bjorklund' <mbj@tail-f.com>
Cc: lhotka@nic.cz, lberger@labn.net, draft-ietf-netmod-schema-mount@ietf.org, netmod@ietf.org
References: <CC3B662E-1018-45DD-95A8-9AC07848C6F9@nic.cz> <20170614.190714.1094691660981968653.mbj@tail-f.com> <025301d2e53a$40576960$c1063c20$@gmail.com> <20170616.143819.1546920443725020981.mbj@tail-f.com>
In-Reply-To: <20170616.143819.1546920443725020981.mbj@tail-f.com>
Date: Fri, 16 Jun 2017 12:17:47 -0400
Message-ID: <02a301d2e6bc$19e083b0$4da18b10$@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQFccaLe8nDjqdS+GVv9FVRFetRQCwM81hkJAfEwPN0CaFHNYqLX4fIA
Content-Language: en-us
x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNceGxpdVxhcHBkYXRhXHJvYW1pbmdcMDlkODQ5YjYtMzJkMy00YTQwLTg1ZWUtNmI4NGJhMjllMzViXG1zZ3NcbXNnLTU0ZmQwMzA4LTUyYWYtMTFlNy05YzE1LTE4NWUwZmUzYzQ1Y1xhbWUtdGVzdFw1NGZkMDMwYS01MmFmLTExZTctOWMxNS0xODVlMGZlM2M0NWNib2R5LnR4dCIgc3o9IjM3NjQiIHQ9IjEzMTQyMTAzNDY2OTY4MDI1NSIgaD0iT253T1poWHNIRmV5L3VCOHRDWnA2T1ZCcDlzPSIgaWQ9IiIgYmw9IjAiIGJvPSIxIi8+PC9tZXRhPg==
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/Gy9ZZhWNLyJ2bl4H9spYNsCibPI>
Subject: Re: [netmod] Schema-mount question: Augmentation to the Mounted Module
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
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: Fri, 16 Jun 2017 16:17:57 -0000
Hi Martin, That will be good. Thanks, - Xufeng > -----Original Message----- > From: Martin Bjorklund [mailto:mbj@tail-f.com] > Sent: Friday, June 16, 2017 8:38 AM > To: xufeng.liu.ietf@gmail.com > Cc: lhotka@nic.cz; lberger@labn.net; draft-ietf-netmod-schema- > mount@ietf.org; netmod@ietf.org > Subject: Re: [netmod] Schema-mount question: Augmentation to the Mounted > Module > > "Xufeng Liu" <xufeng.liu.ietf@gmail.com> wrote: > > Hi Martin, > > > > > -----Original Message----- > > > From: Martin Bjorklund [mailto:mbj@tail-f.com] > > > Sent: Wednesday, June 14, 2017 1:07 PM > > > To: lhotka@nic.cz > > > Cc: lberger@labn.net; xufeng.liu.ietf@gmail.com; > > > draft-ietf-netmod-schema- mount@ietf.org; netmod@ietf.org > > > Subject: Re: [netmod] Schema-mount question: Augmentation to the > > > Mounted Module > > > > > > Ladislav Lhotka <lhotka@nic.cz> wrote: > > > > > > > > > On 14 Jun 2017, at 13:43, Lou Berger <lberger@labn.net> wrote: > > > > > > > > > > Hi, > > > > > > > > > > (speaking as contributor...) > > > > > > > > > > > > > > > On 6/14/2017 7:17 AM, Ladislav Lhotka wrote: > > > > >> Hi Xufeng, > > > > >> > > > > >> please see my answers inline. > > > > >> > > > > >> Xufeng Liu <xufeng.liu.ietf@gmail.com> writes: > > > > >> > > > > >>> Hi Lada, > > > > >>> > > > > >>> > > > > >>> > > > > >>> We have got two questions on how to specify the module entries > > > > >>> in a > > > > >>> schema: > > > > >>> > > > > >>> > > > > >>> > > > > >>> 1. Are augmentations of parent modules inherited when > > > > >>> augmented module is listed in schema-mounts schema? > > > > >>> > > > > >>> For example, ietf-ospf module augments ietf-routing. When we > > > > >>> include ietf-routing to the schema entry, is ietf-ospf > > > > >>> automatically > > > included? > > > > >> No, you also have to include "ietf-ospf" in the "module" list > > > > >> inside the corresponding "schema" entry, exactly as you do in > > > > >> the top level YANG library, otherwise ietf-ospf won't be mounted. > > > > > > > > > > I agree. The draft should have text that makes this explicit. > > > > > > > > Why? It should be sufficiently clear that modules that are not > > > > listed in "schema" are not present in the mounted schema. An > > > > augment is just a special mechanism of contributing schema nodes. > > > > > > Yes I agree. But let's see if we can clarify the text. Xufeng, > > > what in > > the current > > > text led you to believe that a module in the parent schema would be > > > automatically present in the mounted schema? > > > > > [Xufeng] Thanks for looking at this. The confusion is because of the > > lack of text, I would say. The term "mount" has an analogy to the Unix > > file system "mount", where what we only specify the parent directory > > and child file system (the connecting relationship at the connection > > point). Also, similar is the command for the Unix soft/hard links, > > where we don't need to check if there are other links under the child. > > I see. Note that the analogy doesn't quite work, since there is no requirement > that the mounted module is even present in the parent schema. It has been > suggested before that the term "mount" is unfortunate... Anyway, I think we > can clarify that there is really no relation between the parent schema and > mounted modules, maybe like > this: > > The modules that are mounted under a mount point has no relation to > the modules in the parent schema; specifically, if a module is > mounted it may or may not be present in the parent schema. > > > > /martin
- [netmod] Schema-mount question: Augmentation to t… Xufeng Liu
- Re: [netmod] Schema-mount question: Augmentation … Ladislav Lhotka
- Re: [netmod] Schema-mount question: Augmentation … Lou Berger
- Re: [netmod] Schema-mount question: Augmentation … Ladislav Lhotka
- Re: [netmod] Schema-mount question: Augmentation … Lou Berger
- Re: [netmod] Schema-mount question: Augmentation … Martin Bjorklund
- Re: [netmod] Schema-mount question: Augmentation … Xufeng Liu
- Re: [netmod] Schema-mount question: Augmentation … Martin Bjorklund
- Re: [netmod] Schema-mount question: Augmentation … Xufeng Liu