[netmod] 答复: (no subject)

Zhuzhiguo <zhuzhiguo@huawei.com> Tue, 07 November 2017 13:21 UTC

Return-Path: <zhuzhiguo@huawei.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 719DA13FE69 for <netmod@ietfa.amsl.com>; Tue, 7 Nov 2017 05:21:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.22
X-Spam-Level:
X-Spam-Status: No, score=-4.22 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, 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 VJFnGXPk78Ef for <netmod@ietfa.amsl.com>; Tue, 7 Nov 2017 05:21:48 -0800 (PST)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2D0EB13FDA4 for <netmod@ietf.org>; Tue, 7 Nov 2017 05:21:47 -0800 (PST)
Received: from 172.18.7.190 (EHLO lhreml702-cah.china.huawei.com) ([172.18.7.190]) by lhrrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id DSD89611; Tue, 07 Nov 2017 13:21:45 +0000 (GMT)
Received: from NKGEML413-HUB.china.huawei.com (10.98.56.74) by lhreml702-cah.china.huawei.com (10.201.108.43) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 7 Nov 2017 13:21:22 +0000
Received: from NKGEML513-MBS.china.huawei.com ([169.254.2.198]) by NKGEML413-HUB.china.huawei.com ([10.98.56.74]) with mapi id 14.03.0361.001; Tue, 7 Nov 2017 21:21:12 +0800
From: Zhuzhiguo <zhuzhiguo@huawei.com>
To: Martin Bjorklund <mbj@tail-f.com>
CC: "netmod@ietf.org" <netmod@ietf.org>, "Liquan (Liquan, NOS CSD)" <liquan92@huawei.com>
Thread-Topic: [netmod] (no subject)
Thread-Index: AQHTV8FIOYLj0hXU2EOAvZHtRNyUf6MI5BgQ
Date: Tue, 07 Nov 2017 13:21:12 +0000
Message-ID: <90D4AD4FAC4AD946A3593922318387CC9C227381@nkgeml513-mbs.china.huawei.com>
References: <90D4AD4FAC4AD946A3593922318387CC9C2272D9@nkgeml513-mbs.china.huawei.com> <20171107.130801.1219859225033022699.mbj@tail-f.com>
In-Reply-To: <20171107.130801.1219859225033022699.mbj@tail-f.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.134.175.187]
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A090203.5A01B369.0140, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=169.254.2.198, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32
X-Mirapoint-Loop-Id: c0130ebefbc7afb0959d0eb07ff1bc30
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ypnwES6ZSJzU62Bi74WAYY9iKHU>
Subject: [netmod] 答复: (no subject)
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: Tue, 07 Nov 2017 13:21:49 -0000

Hi Martin,
Thank you for your reply.

If module-A and modul-B are 1.0 modules, are they should be presented in <hello>?


-----邮件原件-----
发件人: Martin Bjorklund [mailto:mbj@tail-f.com] 
发送时间: 2017年11月7日 20:08
收件人: Zhuzhiguo <zhuzhiguo@huawei.com>
抄送: netmod@ietf.org; Liquan (Liquan, NOS CSD) <liquan92@huawei.com>
主题: Re: [netmod] (no subject)

Zhuzhiguo <zhuzhiguo@huawei.com> wrote:
> Hi,
> 
> I have one question about how to implement YANG module that import 
> other-module which is NOT be implemented?
> 
> For example, module-A import module-B, but any nodes that depend on B 
> are not-supported
> 
> Module A {
>    import module-B;
> }
> 
> There are two way to mark module-B is not really in use:
> 
> Option-1: refer conformance-type in RFC 7895 (ietf-yang-library), mark 
> module-A as "implement", module-B is "import"

This is correct.  But if A augments some node in B, you have to implement B as well.
-----////all these augments are deviated

> This way seems work, but some teammates think it may not comply with 
> RFC.

Why wouldn't it?
------////client can get module-B, but can't do any operation on module-B

> And we also argue about what module-B should be presented in <hello>
> 
> <capabilities>
>    <capability>module-A</capability>
>    <capability>module-B</capability> ===>should any "import" module MUST
>    be sent by server to client also?
> <capabilities>

Assuming A and B are YANG 1.1 modules, they should NOT be listed in <hello> - yang-library is used instead.
> Option-2: mark module-B as "implement" also, but mark all-nodes as 
> deviated This way seems work also, but it will cause NETCONF-client 
> and NETCONF-server load module that have NO node that can be accessed

There's no reason to do this.



/martin